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
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() { jLabel1 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); lListas = new javax.swing.JList<>(); jLabel6 = new javax.swing.JLabel(); jScrollPane3 = new javax.swing.JScrollPane(); lContacto = new javax.swing.JList<>(); jScrollPane2 = new javax.swing.JScrollPane(); lContactoTotal = new javax.swing.JList<>(); jLabel3 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("Listas de distribucion:"); lListas.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); lListas.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lListasMouseClicked(evt); } }); jScrollPane1.setViewportView(lListas); jLabel6.setText("Contactos en lista seleccionada:"); lContacto.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); lContacto.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lContactoMouseClicked(evt); } }); jScrollPane3.setViewportView(lContacto); lContactoTotal.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); lContactoTotal.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { lContactoTotalMouseClicked(evt); } }); jScrollPane2.setViewportView(lContactoTotal); jLabel3.setText("Contactos:"); jButton1.setText("Salir"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jLabel6) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1)) .addComponent(jScrollPane3) .addComponent(jScrollPane1)) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\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.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453996", "0.69434965", "0.69369817", "0.6933186", "0.6929363", "0.69259083", "0.69255763", "0.69123995", "0.6911665", "0.6894565", "0.6894252", "0.68922615", "0.6891513", "0.68894076", "0.6884006", "0.68833494", "0.6882281", "0.6879356", "0.68761575", "0.68752", "0.6872568", "0.68604666", "0.68577915", "0.6856901", "0.68561065", "0.6854837", "0.68547136", "0.6853745", "0.6853745", "0.68442935", "0.6838013", "0.6837", "0.6830046", "0.68297213", "0.68273175", "0.682496", "0.6822801", "0.6818054", "0.68177056", "0.6812038", "0.68098444", "0.68094784", "0.6809155", "0.680804", "0.68033874", "0.6795021", "0.67937285", "0.6793539", "0.6791893", "0.6790516", "0.6789873", "0.67883795", "0.67833847", "0.6766774", "0.6766581", "0.67658913", "0.67575616", "0.67566", "0.6754101", "0.6751978", "0.6741716", "0.6740939", "0.6738424", "0.6737342", "0.6734709", "0.672855", "0.6728138", "0.6721558", "0.6716595", "0.6716134", "0.6715878", "0.67096144", "0.67083293", "0.6703436", "0.6703149", "0.6701421", "0.67001027", "0.66999036", "0.66951054", "0.66923416", "0.6690235" ]
0.0
-1
we could put some code here too
@Override public void onClick(DialogInterface dialog, int which) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void logic() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "protected void additionalProcessing() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void method_4270() {}", "private void kk12() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void poetries() {\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}", "public void mo38117a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "private void level7() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private void strin() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void preprocess() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "public abstract void mo27385c();", "public void logic(){\r\n\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public abstract void mo56925d();", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public abstract void mo6549b();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "void berechneFlaeche() {\n\t}", "public final void mo91715d() {\n }", "@Override\n public void preprocess() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public abstract void mo27386d();", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "static void feladat9() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\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}", "static void feladat7() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo1531a() {\n }", "@Override\n public Object preProcess() {\n return null;\n }", "public void mo55254a() {\n }", "private void sub() {\n\n\t}", "private void test() {\n\n\t}", "public void mo21793R() {\n }", "public void mo9848a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "static void feladat4() {\n\t}", "public void mo12930a() {\n }", "@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}", "public void method_191() {}", "public void mo23813b() {\n }", "public void mo21825b() {\n }", "public static void listing5_14() {\n }", "@Override\n\tprotected void postRun() {\n\n\t}", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected void h() {}" ]
[ "0.62578994", "0.6254943", "0.61485785", "0.6093534", "0.6066093", "0.60258734", "0.60074914", "0.59960514", "0.5977837", "0.5973849", "0.5940426", "0.58967686", "0.58881766", "0.5888091", "0.587451", "0.587232", "0.58508873", "0.5845405", "0.58406883", "0.58297604", "0.5813336", "0.5812955", "0.5812955", "0.58057696", "0.5789004", "0.57729304", "0.5757556", "0.57126325", "0.5706624", "0.5701721", "0.564474", "0.5631157", "0.56196135", "0.561436", "0.56135035", "0.5610066", "0.56056947", "0.56002724", "0.5593237", "0.5562056", "0.5562056", "0.5560675", "0.5548631", "0.5540569", "0.55386585", "0.55358315", "0.55323786", "0.55323786", "0.553099", "0.55194974", "0.5513357", "0.549876", "0.54929084", "0.54778075", "0.5476942", "0.5476942", "0.5476942", "0.5476942", "0.5476942", "0.5476942", "0.5476942", "0.54755914", "0.5472465", "0.54717433", "0.54666954", "0.54614145", "0.5455171", "0.5446549", "0.54456824", "0.54450166", "0.54439205", "0.5443779", "0.54358876", "0.54240036", "0.54207385", "0.54169255", "0.5411607", "0.5411317", "0.5411317", "0.54067093", "0.54067093", "0.5400622", "0.539618", "0.5395609", "0.5389986", "0.5389241", "0.53794074", "0.5378997", "0.5378089", "0.5377993", "0.5376916", "0.5374637", "0.5373246", "0.53688776", "0.53664964", "0.53623176", "0.53607124", "0.5354733", "0.5351815", "0.5349416", "0.5348907" ]
0.0
-1
Process the selection to determine if there are nodes/records that don't match
protected abstract NonMatchingResult processSelection( TableEntitySelection selection, Session session);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected NonMatchingResult processSelection(\n\t\t\tTableEntitySelection selection,\n\t\t\tSession session)\n\t\t{\n\t\t\tIterator<HierarchyNode> hierarchyNodeIter = ((HierarchyEntitySelection) selection)\n\t\t\t\t.getSelectedHierarchyNodes();\n\t\t\tHierarchyNode nonMatchingHierarchyNode = null;\n\t\t\twhile (nonMatchingHierarchyNode == null && hierarchyNodeIter.hasNext())\n\t\t\t{\n\t\t\t\tHierarchyNode hierarchyNode = hierarchyNodeIter.next();\n\t\t\t\tif (!matchHierarchyNode(hierarchyNode, session))\n\t\t\t\t{\n\t\t\t\t\tnonMatchingHierarchyNode = hierarchyNode;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (nonMatchingHierarchyNode == null)\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new NonMatchingResult(nonMatchingHierarchyNode, useJoinRecord);\n\t\t}", "public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }", "protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }", "protected boolean selectionAccept(Node[] nodes) {\n return true;\n }", "private boolean checkScanNodesCompleted() {\n\t\treturn cursor.getSelectionPos() >= jedisNodes.size();\n\t}", "@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }", "private void checkAndSet() {\n if (value == null) {\n throw new IllegalArgumentException(EXC_NodeCannotBeNull());\n }\n\n if (equalNodes(value, selectedNodes)) {\n return;\n }\n\n List<Node> validNodes = null;\n for (int i = 0; i < value.length; i++) {\n if (value[i] == null) {\n throw new IllegalArgumentException(EXC_NoElementOfNodeSelectionMayBeNull());\n }\n \n if (!isUnderRoot(value[i])) {\n if (validNodes == null) {\n validNodes = new ArrayList<Node>(value.length);\n for (int j = 0; j < i; j++) {\n validNodes.add(value[j]);\n }\n }\n } else if (validNodes != null) {\n validNodes.add(value[i]);\n }\n }\n if (validNodes != null) {\n newValue = validNodes.toArray(new Node[validNodes.size()]);\n if (equalNodes(newValue, selectedNodes)) {\n return;\n } \n } else {\n newValue = value;\n }\n\n if ((newValue.length != 0) && (vetoableSupport != null)) {\n try {\n // we send the vetoable change event only for non-empty selections\n vetoableSupport.fireVetoableChange(PROP_SELECTED_NODES, selectedNodes, newValue);\n } catch (PropertyVetoException ex) {\n veto = ex;\n return;\n }\n }\n updateSelection();\n }", "public abstract boolean hasSelection();", "protected void handleInvalidSelection(org.eclipse.jface.viewers.ISelection selection, org.eclipse.jface.viewers.ISelection newSelection) {\n\t}", "private void applyExclusionToSelectedNodeRecords( final boolean exclusion ) {\n\t\tfinal int[] selectedRows = getSelectedNodeRecordRows();\n\t\tfinal List<NodeRecord> records = getNodeRecords( selectedRows );\n\t\tfor ( final NodeRecord record : records ) {\n\t\t\trecord.setExclude( exclusion );\n\t\t}\n\t\trefreshRows( selectedRows );\n\t\tsetHasChanges( true );\n\t}", "@Override\n protected void processSelect() {\n \n }", "private boolean selectionFound(JTextPane pane) {\r\n\t\tfinal int selectionStart = pane.getSelectionStart();\r\n\t\tfinal int selectionEnd = pane.getSelectionEnd();\r\n\t\treturn selectionStart != selectionEnd;\r\n\t}", "private static void DoSelection()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tString selection = \"o_orderdate > Str (\\\"1996-12-19\\\") && o_custkey < Int (100)\";\n\n\t\tHashMap<String, String> exprs = new HashMap<String, String>();\n\t\texprs.put(\"att1\", \"o_orderkey\");\n\t\texprs.put(\"att2\", \"(o_totalprice * Float (1.5)) + Int (1)\");\n\t\texprs.put(\"att3\", \"o_orderdate + Str (\\\" this is my string\\\")\");\n\t\texprs.put(\"att4\", \"o_custkey\");\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Selection(inAtts, outAtts, selection, exprs, \"orders.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}", "private void checkNodesToSearch() {\n if (nodesToSearch == null || nodesToSearch.length == 0) {\n Graph graph;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n graph = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n graph = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n nodesToSearch = graph.getNodes().toArray();\n }\n }", "public void checkNodes() {\n // Don't do anything when you check the nodes. This nodes is built by\n // when the setTarget method is called.\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}", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "@Override\n protected boolean verifySelection()\n {\n // Print the log contents table\n logTable.printTable(\"Log Data: \"\n + perfLog.getLogFileName(perfMain.getPreference(PERF_LOG_FILE)),\n this,\n OrientationRequested.LANDSCAPE);\n\n return false;\n }", "void getNodes(List<Node> lNode, List<Node> lSelNode, List<Node> lExistNode, boolean blank) {\n\n switch (type()) {\n\n case FILTER:\n // get exists {} nodes\n // draft\n getExistNodes(getFilter().getExp(), lExistNode);\n break;\n\n case NODE:\n add(lNode, getNode(), blank);\n break;\n\n case EDGE:\n case PATH:\n case XPATH:\n case EVAL:\n for (int i = 0; i < nbNode(); i++) {\n Node node = getNode(i);\n add(lNode, node, blank);\n }\n break;\n\n case ACCEPT:\n //use case: join() check connection, need all variables\n add(lNode, getNode());\n break;\n\n case VALUES:\n for (Node var : getNodeList()) {\n add(lNode, var);\n }\n break;\n\n case MINUS:\n // second argument does not bind anything: skip it\n if (first() != null) {\n first().getNodes(lNode, lSelNode, lExistNode, blank);\n }\n break;\n\n case BIND:\n add(lSelNode, getNode());\n break;\n\n case QUERY:\n\n // use case: select * where { {select ?y fun() as ?var where {}} }\n // we want ?y & ?var for select *\t\t\t\n for (Exp ee : getQuery().getSelectFun()) {\n add(lSelNode, ee.getNode());\n }\n break;\n\n default:\n for (Exp ee : this) {\n ee.getNodes(lNode, lSelNode, lExistNode, blank);\n }\n }\n\n }", "boolean applicable(Selection selection);", "private void matchOnlyCurrentGraphState(TaskMonitor monitor) {\r\n\t\t// make a new list of the matched nodes, to avoid concurrent\r\n\t\t// modification problems\r\n\t\tList matchedNodes = getMatchedNodesOrdered();\r\n\r\n\t\tint total = matchedNodes.size();\r\n\t\tint count = 0;\r\n\r\n\t\tfor (Iterator nodeIt = matchedNodes.iterator(); nodeIt.hasNext();) {\r\n\t\t\tcount++;\r\n\t\t\tmonitor.report(count, total, \"Paths tested\");\r\n\t\t\tif (monitor.isCancelRequested())\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tRoadNode subNode = (RoadNode) nodeIt.next();\r\n\t\t\tif (subNode.isMatched()) {\r\n\t\t\t\tRoadNode matchNode = subNode.getMatch();\r\n\t\t\t\tNodeMatching matching = subNode.getMatching();\r\n\t\t\t\tmatchPathsFromNodes(matching);\r\n\t\t\t}\r\n\t\t}\r\n\t\tDebugFeature.saveFeatures(MATCH,\r\n\t\t\t\t\"Y:\\\\jcs\\\\testUnit\\\\roads\\\\pathMatches.jml\");\r\n\t\tDebugFeature.saveFeatures(SPLIT,\r\n\t\t\t\t\"Y:\\\\jcs\\\\testUnit\\\\roads\\\\pathSplits.jml\");\r\n\t\tDebug.println(\"paths matched = \" + pathMatchCount);\r\n\t\tDebug.println(\"splits matched = \" + splitMatchCount);\r\n\t}", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "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}", "public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }", "public boolean isSelectorNeeded() {\n if (!m_selectChecked) {\n if (m_selectorType != NestingCustomBase.SELECTION_UNCHECKED) {\n \n // before reporting selector needed, make sure at least once child is going to be present\n for (int i = 0; i < m_values.size(); i++) {\n DataNode node = (DataNode)m_values.get(i);\n if (!node.isIgnored()) {\n m_selectNeeded = true;\n break;\n }\n }\n \n }\n m_selectChecked = true;\n }\n return m_selectNeeded;\n }", "public boolean isSelectionEmpty() {\n\t\t\treturn tablecolselectmodel.isSelectionEmpty();\n\t\t}", "private boolean badEntryFound() {\n boolean flag = false;\n \n if(positionComboBox.getSelectedIndex() <= 0)\n {\n positionLabel.setForeground(Color.red);\n positionComboBox.requestFocusInWindow();\n flag = true;\n }\n else\n {\n positionLabel.setForeground(Color.black);\n }\n \n if(firstTextField.getText().trim().isEmpty())\n {\n fNameLabel.setForeground(Color.red);\n firstTextField.requestFocusInWindow();\n flag = true;\n }\n else\n {\n fNameLabel.setForeground(Color.black);\n }\n \n if(lastTextField.getText().trim().isEmpty())\n {\n lNameLabel.setForeground(Color.red);\n lastTextField.requestFocusInWindow();\n flag = true;\n }\n else\n {\n lNameLabel.setForeground(Color.black);\n }\n \n if(codeTextField.getText().trim().isEmpty())\n {\n codeLabel.setForeground(Color.red);\n codeTextField.requestFocusInWindow();\n flag = true;\n }\n else\n {\n codeLabel.setForeground(Color.black);\n }\n \n \n return flag;\n }", "protected void selectRows(BindException errors)\r\n {\n outdent();\r\n appendNewLine();\r\n append(\"FROM\");\r\n appendNewLine();\r\n append(\"(\");\r\n indent();\r\n appendNewLine();\r\n append(\"SELECT Run, \");\r\n append(_compareColumn);\r\n indent();\r\n\r\n for (int i = 0; i < _runs.size(); i++)\r\n {\r\n String separator = \",\" + getNewLine();\r\n\r\n for (RunColumn column : _gridColumns)\r\n {\r\n append(separator);\r\n append(\"CASE WHEN Run=?\");\r\n add(_runs.get(i).getRun());\r\n append(\" THEN \");\r\n append(column.getAggregate());\r\n append(\"(\");\r\n append(column.getName());\r\n append(\") ELSE NULL END AS Run\");\r\n appendValue(i);\r\n append(column.getLabel());\r\n separator = \", \";\r\n }\r\n }\r\n outdent();\r\n appendNewLine();\r\n append(\"FROM \");\r\n append(getFromClause());\r\n appendNewLine();\r\n SimpleFilter filter = new SimpleFilter();\r\n filter.addInClause(FieldKey.fromParts(\"Run\"), MS2Manager.getRunIds(_runs));\r\n\r\n addWhereClauses(filter);\r\n\r\n String firstType = _runs.get(0).getType();\r\n boolean sameType = true;\r\n for (MS2Run run : _runs)\r\n {\r\n sameType = sameType && firstType.equals(run.getType());\r\n }\r\n if (!sameType)\r\n {\r\n Set<FieldKey> engineScores = new HashSet<>();\r\n for (MS2RunType type : MS2RunType.values())\r\n {\r\n engineScores.addAll(type.getScoreColumnList());\r\n }\r\n Set<FieldKey> illegalColumns = new HashSet<>();\r\n for (SimpleFilter.FilterClause clause : filter.getClauses())\r\n {\r\n for (FieldKey colName : clause.getFieldKeys())\r\n {\r\n if (engineScores.contains(colName))\r\n {\r\n illegalColumns.add(colName);\r\n }\r\n }\r\n }\r\n if (!illegalColumns.isEmpty())\r\n {\r\n errors.addError(new LabKeyError(\"If you are comparing runs of different types, you cannot filter on search-engine specific scores: \" + illegalColumns));\r\n }\r\n }\r\n\r\n append(filter.getWhereSQL(MS2Manager.getTableInfoPeptides()));\r\n addAll(filter.getWhereParams(MS2Manager.getTableInfoPeptides()));\r\n \r\n appendNewLine();\r\n append(\"GROUP BY Run, \");\r\n append(_compareColumn);\r\n\r\n SimpleFilter proteinFilter = new SimpleFilter(_currentUrl, MS2Manager.getDataRegionNameProteins());\r\n // Add to GROUP BY\r\n for (FieldKey fieldKey : proteinFilter.getAllFieldKeys())\r\n {\r\n if (!fieldKey.equals(FieldKey.fromParts(\"Peptides\")) && !fieldKey.equals(FieldKey.fromParts(\"UniquePeptides\")))\r\n {\r\n append(\", \");\r\n append(fieldKey.toString());\r\n }\r\n }\r\n\r\n appendNewLine();\r\n\r\n String proteinHaving = proteinFilter.getWhereSQL(MS2Manager.getTableInfoProteins()).replaceFirst(\"WHERE\", \"HAVING\");\r\n // Can't use SELECT aliases in HAVING clause, so replace names with aggregate functions\r\n proteinHaving = proteinHaving.replaceAll(\"UniquePeptides\", \"COUNT(DISTINCT Peptide)\");\r\n proteinHaving = proteinHaving.replaceAll(\"Peptides\", \"COUNT(Peptide)\");\r\n addAll(proteinFilter.getWhereParams(MS2Manager.getTableInfoProteins()));\r\n append(proteinHaving);\r\n\r\n }", "public boolean validate(){\r\n \r\n // in some case, validate() may be called twice\r\n // hence clear the stack\r\n stack.clear();\r\n \r\n\t\tcollect();\r\n\t\r\n\t\tif (getBody()!=null){\r\n\t\t\t// select ?x\r\n\t\t\tfor (Variable var : getSelectVar()){\r\n\t\t\t\tif (hasExpression(var)){\r\n\t\t\t\t\tbind(var);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// select *\r\n\t\t\tif (isSelectAll()){\r\n\t\t\t\tfor (Variable var : getSelectAllVar()){\r\n\t\t\t\t\tif (hasExpression(var)){\r\n\t\t\t\t\t\tbind(var);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\tboolean ok = true;\r\n\t\t\t\r\n\t\t\tfor (Exp exp : getBody().getBody()){\r\n\t\t\t\tboolean b = exp.validate(this);\r\n\t\t\t\tif (! b){\r\n\t \t\t\tok = false;\r\n\t \t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn ok;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean requiresSelectVarious() {\n\t\treturn false;\r\n\t}", "private boolean isSameExtension(ListGridRecord[] selectedNode, Extension extension) {\n boolean result = true;\n for (ListGridRecord record : selectedNode) {\n FileTreeNode node = (FileTreeNode) record;\n VMResource resource = node.getResource();\n if (resource instanceof VMDirectory) {\n result = false;\n break;\n }\n if (resource instanceof VMFile) {\n Extension selExtension = ((VMFile) resource).getExtension();\n if (selExtension != extension) {\n result = false;\n break;\n }\n }\n }\n return result;\n }", "private void checkCriteria() {\n getNextCriteria();\n if (getReferences() < 1) { // Recordar de ver que se hace con la pregunta que se ignora!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n if (firstCriteria != -1)\n firstCriteria = currentCriteria;\n drawOptions();\n if (criteriaLeft.size() == 0)\n setEndingButtons();\n return;\n } else {\n checkCriteria();\n return;\n }\n }", "public static void check() {\n\t\twhile (!choiceOfNodes.isEmpty()) {\n\t\t\tNode node = choiceOfNodes.remove();\n\t\t\tif (node.isItGoal()) {\n\t\t\t\tSystem.out.println(\"\\nSolution: \\n\");\n\t\t\t\tprintTheBoards(node);\n\t\t\t\tSystem.out.println(\"No. of nodes generated in total: \" + nodesGenerated);\n\t\t\t\tSystem.out.println(\"No. of nodes expanded: \" + nodesOpened);\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tif (isItVisted(node)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tnodesOpened++;\n\t\t\t\t\tnodesCovered.add(node);\n\t\t\t\t\tstartOperation(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean matchesFilled() throws SQLException {\n\t\ttry {\n\t\t\tif (getMatches().last() == true) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "private boolean isDuplicated(TreeNode selTreeNode) {\r\n TreePath duplicatedPath = findByName(sponsorHierarchyTree, selTreeNode.toString());\r\n int level = selectedNode.getLevel();\r\n if(duplicatedPath != null && selectedNode.getLevel()==((DefaultMutableTreeNode)duplicatedPath.getLastPathComponent()).getLevel() && \r\n selTreeNode.toString().equals(duplicatedPath.getLastPathComponent().toString()) && sponsorHierarchyTree.getRowForPath(duplicatedPath) != sponsorHierarchyTree.getRowForPath(selTreePath) ) {\r\n CoeusOptionPane.showInfoDialog(\"A group with name '\"+selTreeNode.toString()+\"' already exists for level \"+(level+1));\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean parse()\n\t{\n\t\tif (m_sqlOriginal == null || m_sqlOriginal.length() == 0)\n\t\t\tthrow new IllegalArgumentException(\"No SQL\");\n\t\t//\n\t//\tif (CLogMgt.isLevelFinest())\n\t//\t\tlog.fine(m_sqlOriginal);\n\t\tgetSelectStatements();\n\t\t//\tanalyse each select\t\n\t\tfor (int i = 0; i < m_sql.length; i++)\n\t\t{\t\n\t\t\tTableInfo[] info = getTableInfo(m_sql[i].trim());\n\t\t\tm_tableInfo.add(info);\n\t\t}\n\t\t//\n\t\tif (CLogMgt.isLevelFinest())\n\t\t\tlog.fine(toString());\n\t\treturn m_tableInfo.size() > 0;\n\t}", "private boolean checkAction() {\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this, bundle\r\n .getString(\"dlg.error.updateWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "protected void checkSelectGesture(GraphicsNodeEvent evt) {\n\n\t\tGraphicsNodeMouseEvent mevt = null;\n\t\tif (evt instanceof GraphicsNodeMouseEvent) {\n\t\t\tmevt = (GraphicsNodeMouseEvent) evt;\n\t\t}\n\n\t\tGraphicsNode source = evt.getGraphicsNode();\n\t\tif (isDeselectGesture(evt)) {\n\t\t\tif (selectionNode != null) {\n\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t}\n\t\t\tclearSelection();\n\t\t} else if (mevt != null) {\n\n\t\t\tPoint2D p = mevt.getPoint2D();\n\n\t\t\tif ((source instanceof Selectable) && (isSelectStartGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t((Selectable) source).selectAt(p.getX(), p.getY());\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_STARTED, null));\n\n\t\t\t} else if (isSelectEndGesture(evt)) {\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\t((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t}\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\tShape newShape;\n\t\t\t\t\tnewShape = ((Selectable) selectionNode).getHighlightShape();\n\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t\t}\n\t\t\t} else if (isSelectContinueGesture(evt)) {\n\n\t\t\t\tif (selectionNode == source) {\n\t\t\t\t\tboolean result = ((Selectable) source).selectTo(p.getX(), p.getY());\n\t\t\t\t\tif (result) {\n\t\t\t\t\t\tShape newShape = ((Selectable) selectionNode).getHighlightShape();\n\n\t\t\t\t\t\tdispatchSelectionEvent(new SelectionEvent(null, SelectionEvent.SELECTION_CHANGED, newShape));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ((source instanceof Selectable) && (isSelectAllGesture(evt))) {\n\t\t\t\tif (selectionNode != source) {\n\t\t\t\t\tif (selectionNode != null) {\n\t\t\t\t\t\tselectionNodeRoot.removeTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t\tselectionNode = source;\n\t\t\t\t\tif (source != null) {\n\t\t\t\t\t\tselectionNodeRoot = source.getRoot();\n\t\t\t\t\t\tselectionNodeRoot.addTreeGraphicsNodeChangeListener(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t((Selectable) source).selectAll(p.getX(), p.getY());\n\t\t\t\tObject oldSelection = getSelection();\n\t\t\t\tShape newShape = ((Selectable) source).getHighlightShape();\n\t\t\t\tdispatchSelectionEvent(new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape));\n\t\t\t}\n\t\t}\n\t}", "private void checkMatch() {\r\n if ( undoStack.size() == 2 &&\r\n undoStack.get( 0 ).getNumber() ==\r\n undoStack.get( 1 ).getNumber() ) {\r\n pop();\r\n pop();\r\n }\r\n }", "@Override\r\n\tprotected boolean isValidView(final ResultSet resultSet) throws SQLException {\r\n\t\treturn !resultSet.getString(3).contains(\"BIN$\");\r\n\t}", "public void verSeleccionarResultadosRevisados()\r\n\t{\r\n\t\tactualizarFinalizacionConvocatorias();\r\n\t\tseleccionarresultadosrevis = new SeleccionarResultadosRevisados(this);\r\n\t\tseleccionarresultadosrevis.setVisible(true);\r\n\t}", "boolean repOk() {\n Set<Node> visited = new HashSet<Node>();\n Node n = header;\n while (n != null) {\n if (!visited.add(n)) {\n return false;\n }\n n = n.next;\n }\n return true;\n }", "public boolean addToSelectedNodes(LeafNode leaf)\n\t{\n\t\tif(leaf == null)\n\t\t\tthrow new NullPointerException();\n\t\treturn selectionNode.add(leaf);\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSelection() == null);\n\t}", "private boolean checkAction() {\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // Emptry node name\r\n if (jtfChildName.getText().isEmpty()) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutName\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this,\r\n bundle.getString(\"dlg.error.addWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "public ParseTreeNode visit(SelectNode selectNode) {\n return null;\n }", "private void checkSorting()\n {\n long parentChangeCounter = this.parent.getChangeCount();\n if (this.sortedRecords == null || this.changeCounter != parentChangeCounter)\n {\n long start = System.currentTimeMillis();\n \n // perform sort\n this.sortedRecords = this.parent.cloneRecordList();\n Collections.sort(this.sortedRecords, this);\n \n // recalculate selected index\n recalculateSelectedIndex();\n\n this.changeCounter = parentChangeCounter;\n \n if (logger.isDebugEnabled())\n logger.debug(this.recordCount()+\" records sorted in \"+(System.currentTimeMillis()-start)+ \"ms (selectedIndex=\"+getSelectedRecordIndex()+\")\");\n }\n }", "void findMatchings(boolean isProtein) {\n\n GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();\n HashSet<String > searchSpaceList = new HashSet<>();\n GraphDatabaseService databaseService = dbFactory.newEmbeddedDatabase(graphFile);\n for (int id: queryGraphNodes.keySet()) {\n if(isProtein)\n searchSpaceList.add(queryGraphNodes.get(id).label);\n else\n searchSpaceList.add(String.valueOf(queryGraphNodes.get(id).labels.get(0)));\n }\n for(String x: searchSpaceList) {\n ResourceIterator<Node> xNodes;\n try(Transaction tx = databaseService.beginTx()) {\n xNodes = databaseService.findNodes(Label.label(x));\n tx.success();\n }\n\n while (xNodes.hasNext()) {\n Node node = xNodes.next();\n if (searchSpaceProtein.containsKey(x))\n searchSpaceProtein.get(x).add(node.getId());\n else {\n HashSet<Long> set = new HashSet<>();\n set.add(node.getId());\n searchSpaceProtein.put(x, set);\n }\n }\n\n }\n\n if(isProtein)\n search(0, databaseService, true);\n else\n search(0, databaseService, false);\n databaseService.shutdown();\n }", "private void checkEdgesToSearch() {\n if (edgesToSearch == null || edgesToSearch.length == 0) {\n Graph hg;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n edgesToSearch = hg.getEdges().toArray();\n }\n }", "void updateTreeSelection() {\n\n TreePath[] selections = tree.getSelectionPaths();\n currentSelectedPaths.clear();\n if (selections != null) {\n for (TreePath selection : selections) {\n currentSelectedPaths.add(selection);\n }\n }\n if ((selections == null) || (selections.length == 0)) {\n farmStatistics.setEnabled(false);\n linkStatistics.setEnabled(false);\n synchronized (basicPanel.getClusterPanel().getTreeLock()) {\n basicPanel.getClusterPanel().updateClusters(new Vector(), new Hashtable());\n }\n synchronized (basicPanel.getValPanel().getTreeLock()) {\n basicPanel.getValPanel().updateValues(new Vector());\n }\n synchronized (basicPanel.getModPanel().getTreeLock()) {\n basicPanel.getModPanel().updateList(new Vector());\n }\n return;\n }\n if ((selections.length == 1)\n && (((DefaultMutableTreeNode) selections[0].getLastPathComponent()).getUserObject() instanceof rcNode)) {\n farmStatistics.setEnabled(canShowFarmStatistics());\n linkStatistics.setEnabled(canShowLinkStatistics());\n } else {\n farmStatistics.setEnabled(false);\n linkStatistics.setEnabled(false);\n }\n Object[] userSel = new Object[selections.length];\n selectedGroups.clear();\n for (int j = 0; j < selections.length; j++) {\n userSel[j] = ((DefaultMutableTreeNode) selections[j].getLastPathComponent()).getUserObject();\n if (userSel[j] instanceof String) { // group selected\n selectedGroups.add(userSel[j]);\n DefaultMutableTreeNode groupNode = ((DefaultMutableTreeNode) selections[j].getLastPathComponent());\n for (int i = 0; i < treeModel.getChildCount(groupNode); i++) {\n tree.addSelectionPath(selections[j].pathByAddingChild(treeModel.getChild(groupNode, i)));\n }\n }\n }\n\n // update the parameters window to show only common parameters\n updateParamAndModPanels(userSel);\n }", "private boolean selectContactInRowSet() {\r\n int index = getContactSelection().getMinSelectionIndex();\r\n if (index != -1) {\r\n try {\r\n rowSet.absolute(index+1);\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n return (index != -1);\r\n }", "public boolean reportFixture(Fixture fixture) {\n \tselection = fixture;\n \treturn selection == null;\n\t}", "public void deleteSelected() {\r\n \t\tObject cells[] = graph.getSelectionCells();\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \r\n \t\t// If a cell is a blocking region avoid removing its edges and\r\n \t\t// select its element at the end of the removal process\r\n \t\tSet edges = new HashSet();\r\n \t\tSet<Object> select = new HashSet<Object>();\r\n \r\n \t\t// Set with all regions that can be deleted as its child were removed\r\n \t\tSet<Object> regions = new HashSet<Object>();\r\n \t\t// Set with all JmtCells that we are removing\r\n \t\tSet<Object> jmtCells = new HashSet<Object>();\r\n \r\n \t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t// for(int k=0; k<cells.length; k++){\r\n \t\t// if(cells[k] instanceof JmtEdge){\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)cells[k])))).SubOut();\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)cells[k])))).SubIn();\r\n \t\t// }\r\n \t\t//\r\n \t\t// }\r\n \t\tfor (int i = 0; i < cells.length; i++) {\r\n \t\t\tif (!(cells[i] instanceof BlockingRegion)) {\r\n \t\t\t\t// Adds edge for removal\r\n \t\t\t\tedges.addAll(DefaultGraphModel.getEdges(graphmodel, new Object[] { cells[i] }));\r\n \t\t\t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t\t\t// quando vado a eliminare un nodo, a cui collegato un arco,\r\n \t\t\t\t// vado ad incrementare o diminuire il contatore per il\r\n \t\t\t\t// pulsanteAGGIUSTATUTTO\r\n \t\t\t\t// Iterator iter = edges.iterator();\r\n \t\t\t\t// while (iter.hasNext()) {\r\n \t\t\t\t// Object next = iter.next();\r\n \t\t\t\t// if (next instanceof JmtEdge){\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)next)))).SubOut();\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)next)))).SubIn();\r\n \t\t\t\t// }\r\n \t\t\t\t//\r\n \t\t\t\t// }\r\n \t\t\t\t// Stores parents information and cell\r\n \t\t\t\tif (cells[i] instanceof JmtCell) {\r\n \t\t\t\t\tif (((JmtCell) cells[i]).getParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t\tregions.add(((JmtCell) cells[i]).getParent());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tjmtCells.add(cells[i]);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Adds node for selection\r\n \t\t\t\tObject[] nodes = graph.getDescendants(new Object[] { cells[i] });\r\n \t\t\t\tfor (Object node : nodes) {\r\n \t\t\t\t\tif (node instanceof JmtCell || node instanceof JmtEdge) {\r\n \t\t\t\t\t\tselect.add(node);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// Removes blocking region from data structure\r\n \t\t\t\tmodel.deleteBlockingRegion(((BlockingRegion) cells[i]).getKey());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tif (!edges.isEmpty()) {\r\n \t\t\tgraphmodel.remove(edges.toArray());\r\n \t\t}\r\n \t\t// removes cells from graph\r\n \t\tgraphmodel.remove(cells);\r\n \r\n \t\t// Checks if all children of a blocking region have been removed\r\n \t\tIterator<Object> it = regions.iterator();\r\n \t\twhile (it.hasNext()) {\r\n \t\t\tjmtCells.add(null);\r\n \t\t\tBlockingRegion region = (BlockingRegion) it.next();\r\n \t\t\tList child = region.getChildren();\r\n \t\t\tboolean empty = true;\r\n \t\t\tfor (int i = 0; i < child.size(); i++) {\r\n \t\t\t\tif (child.get(i) instanceof JmtCell && !jmtCells.contains(child.get(i))) {\r\n \t\t\t\t\tempty = false;\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (empty) {\r\n \t\t\t\tmodel.deleteBlockingRegion(region.getKey());\r\n \t\t\t\tgraphmodel.remove(new Object[] { region });\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Removes cells from data structure\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tmodel.deleteStation(((CellComponent) ((JmtCell) cell).getUserObject()).getKey());\r\n \t\t\t} else if (cell instanceof JmtEdge) {\r\n \t\t\t\tJmtEdge link = (JmtEdge) cell;\r\n \t\t\t\tmodel.setConnected(link.getSourceKey(), link.getTargetKey(), false);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// If no stations remains gray select and link buttons\r\n \t\tif (graph.getModel().getRootCount() == 0) {\r\n \t\t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\t\tsetConnect.setEnabled(false);\r\n \t\t\tsetSelect.setEnabled(false);\r\n \t\t}\r\n \r\n \t\t// Selects components from removed blocking regions\r\n \t\tif (select.size() > 0) {\r\n \t\t\tgraph.setSelectionCells(select.toArray());\r\n \t\t\t// Resets parent information of cells that changed parent\r\n \t\t\tit = select.iterator();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tObject next = it.next();\r\n \t\t\t\tif (next instanceof JmtCell) {\r\n \t\t\t\t\t((JmtCell) next).resetParent();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}", "public String verifySelection() {\n\t\tList<TransactionType> selections = transactionTypes(selections2());\n\t\tif (selections.isEmpty())\n\t\t\treturn \"Site must be selected\";\n\t\tif (!couplings.hasCouplings())\n\t\t\treturn null;\n\t\tif (selections.size() == 1)\n\t\t\tif (couplings.from() == selections.get(0))\n\t\t\t\treturn ActorType.getActorType(couplings.from()).getName() + \" is selected so \" + ActorType.getActorType(couplings.to()).getName() + \" must be selected\";\n\t\treturn null;\n\t}", "@Override\n public boolean isMatch(DataTable table, TableRow row) {\n return !subFilter.isMatch(table, row);\n }", "public void sanityCheckNumNodes() {\n\t\tint sanity = viewedPos.sanityCheckGetNumberOfNodes();\n\t\tif(sanity != numPosRecorded) {\n\t\t\tSystem.err.println(\"ERROR: the number of nodes in the tree is not equal to the number of nodes added. #Added: \" + numPosRecorded + \" number received: \" + sanity);\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "@Then(\"^select non recharchable batteries$\")\r\n\tpublic void select_non_recharchable_batteries() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.nonreachargebatteries());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}", "private boolean checkIfHighlighted() {\n int i = 0;\n for (Node node : routeList) {\n if (node.getXPixels() != getHighlightGroup().getChildren().get(i).getTranslateX() ||\n node.getYPixels() != getHighlightGroup().getChildren().get(i).getTranslateY()) {\n return false;\n }\n i++;\n }\n return true;\n }", "public static void loadTree() throws NotBoundException, MalformedURLException, RemoteException, ClassNotFoundException, SQLException, InterruptedException {\n\n List<Object> ob1 = new ArrayList<>();\n ob1.add(1);\n ob1.add(1);\n//db Access1 \n List<List<Object>> sspFindMultyResult1 = ServerConnection.getServerConnector().searchMultipleResults(ob1, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n DefaultTreeModel model = (DefaultTreeModel) jTree1.getModel();\n\n DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();\n\n for (List<Object> sspFindMultyResults1 : sspFindMultyResult1) {\n DefaultMutableTreeNode dmtn1 = new DefaultMutableTreeNode(sspFindMultyResults1.get(1) + \"-\" + sspFindMultyResults1.get(3));\n root.add(dmtn1);\n\n List<Object> ob2 = new ArrayList<>();\n ob2.add(2);\n ob2.add(sspFindMultyResults1.get(0));\n//db Access2\n List<List<Object>> sspFindMultyResult2 = ServerConnection.getServerConnector().searchMultipleResults(ob2, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults2 : sspFindMultyResult2) {\n DefaultMutableTreeNode dmtn2 = new DefaultMutableTreeNode(sspFindMultyResults2.get(1) + \"-\" + sspFindMultyResults2.get(3));\n dmtn1.add(dmtn2);\n dmtn1.getLevel();\n\n List<Object> ob3 = new ArrayList<>();\n ob3.add(3);\n ob3.add(sspFindMultyResults2.get(0));\n//db Access3\n List<List<Object>> sspFindMultyResult3 = ServerConnection.getServerConnector().searchMultipleResults(ob3, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults3 : sspFindMultyResult3) {\n DefaultMutableTreeNode dmtn3 = new DefaultMutableTreeNode(sspFindMultyResults3.get(1) + \"-\" + sspFindMultyResults3.get(3));\n dmtn2.add(dmtn3);\n\n List<Object> ob4 = new ArrayList<>();\n ob4.add(4);\n ob4.add(sspFindMultyResults3.get(0));\n//db Access4\n List<List<Object>> sspFindMultyResult4 = ServerConnection.getServerConnector().searchMultipleResults(ob4, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults4 : sspFindMultyResult4) {\n DefaultMutableTreeNode dmtn4 = new DefaultMutableTreeNode(sspFindMultyResults4.get(1) + \"-\" + sspFindMultyResults4.get(3));\n dmtn3.add(dmtn4);\n\n List<Object> ob5 = new ArrayList<>();\n ob5.add(5);\n ob5.add(sspFindMultyResults4.get(0));\n//db Access5 \n List<List<Object>> sspFindMultyResult5 = ServerConnection.getServerConnector().searchMultipleResults(ob5, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults5 : sspFindMultyResult5) {\n DefaultMutableTreeNode dmtn5 = new DefaultMutableTreeNode(sspFindMultyResults5.get(1) + \"-\" + sspFindMultyResults5.get(3));\n dmtn4.add(dmtn5);\n\n }\n }\n }\n }\n }\n model.reload(root);\n }", "abstract public void showSelection(Node[] nodes) ;", "@Override\n\tpublic boolean docIteratorHasMatch(RetrievalModel r) {\n\t\treturn this.docIteratorHasMatchAll (r);\n\t}", "public boolean differ(Object a, Object b) {\n Node set1 = find(getNode(a));\n Node set2 = find(getNode(b));\n\n return set1 != set2;\n }", "@Test\n public void addBlankNodesFromMultipleDatasets() throws Exception {\n try (final Dataset g1 = createDataset1();\n final Dataset g2 = createDataset2();\n final Dataset g3 = factory.createDataset()) {\n\n addAllQuads(g1, g3);\n addAllQuads(g2, g3);\n\n // Let's make a map to find all those blank nodes after insertion\n // (The Dataset implementation is not currently required to\n // keep supporting those BlankNodes with contains() - see\n // COMMONSRDF-15)\n\n final Map<String, BlankNodeOrIRI> whoIsWho = new ConcurrentHashMap<>();\n // ConcurrentHashMap as we will try parallel forEach below,\n // which should not give inconsistent results (it does with a\n // HashMap!)\n\n // look up BlankNodes by name\n final IRI name = factory.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n try (Stream<? extends Quad> stream = g3.stream(null, null, name, null)) {\n stream.parallel().forEach(t -> whoIsWho.put(t.getObject().ntriplesString(), t.getSubject()));\n }\n\n assertEquals(4, whoIsWho.size());\n // and contains 4 unique values\n assertEquals(4, new HashSet<>(whoIsWho.values()).size());\n\n final BlankNodeOrIRI b1Alice = whoIsWho.get(\"\\\"Alice\\\"\");\n assertNotNull(b1Alice);\n final BlankNodeOrIRI b2Bob = whoIsWho.get(\"\\\"Bob\\\"\");\n assertNotNull(b2Bob);\n final BlankNodeOrIRI b1Charlie = whoIsWho.get(\"\\\"Charlie\\\"\");\n assertNotNull(b1Charlie);\n final BlankNodeOrIRI b2Dave = whoIsWho.get(\"\\\"Dave\\\"\");\n assertNotNull(b2Dave);\n\n // All blank nodes should differ\n notEquals(b1Alice, b2Bob);\n notEquals(b1Alice, b1Charlie);\n notEquals(b1Alice, b2Dave);\n notEquals(b2Bob, b1Charlie);\n notEquals(b2Bob, b2Dave);\n notEquals(b1Charlie, b2Dave);\n\n // And we should be able to query with them again\n // as we got them back from g3\n final IRI hasChild = factory.createIRI(\"http://example.com/hasChild\");\n // FIXME: Check graph2 BlankNode in these ..?\n assertTrue(g3.contains(null, b1Alice, hasChild, b2Bob));\n assertTrue(g3.contains(null, b2Dave, hasChild, b1Charlie));\n // But not\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Alice));\n assertFalse(g3.contains(null, b1Alice, hasChild, b1Charlie));\n assertFalse(g3.contains(null, b1Alice, hasChild, b2Dave));\n // nor\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n assertFalse(g3.contains(null, b2Dave, hasChild, b1Alice));\n\n // and these don't have any children (as far as we know)\n assertFalse(g3.contains(null, b2Bob, hasChild, null));\n assertFalse(g3.contains(null, b1Charlie, hasChild, null));\n }\n }", "boolean hasTreeNodeIdForVariantMatrix();", "private ElementSelection getSelectedElements()\n {\n final int[] rowViewIndexes = this.getSelectedRows();\n final NetPlan np = callback.getDesign();\n\n final List<NetworkElement> elementList = new ArrayList<>();\n final List<Pair<Demand, Link>> frList = new ArrayList<>();\n\n if (rowViewIndexes.length != 0)\n {\n final int maxValidRowIndex = model.getRowCount() - 1 - (hasAggregationRow() ? 1 : 0);\n final List<Integer> validRows = new ArrayList<Integer>();\n for (int a : rowViewIndexes) if ((a >= 0) && (a <= maxValidRowIndex)) validRows.add(a);\n\n if (networkElementType == NetworkElementType.FORWARDING_RULE)\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final String demandInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_DEMAND);\n final String linkInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_OUTGOINGLINK);\n final int demandIndex = Integer.parseInt(demandInfo.substring(0, demandInfo.indexOf(\"(\")).trim());\n final int linkIndex = Integer.parseInt(linkInfo.substring(0, linkInfo.indexOf(\"(\")).trim());\n frList.add(Pair.of(np.getDemand(demandIndex), np.getLink(linkIndex)));\n }\n } else\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final long id = (long) getModel().getValueAt(viewRowIndex, 0);\n elementList.add(np.getNetworkElement(id));\n }\n }\n }\n\n // Parse into ElementSelection\n final Pair<List<NetworkElement>, List<Pair<Demand, Link>>> selection = Pair.of(elementList, frList);\n final boolean nothingSelected = selection.getFirst().isEmpty() && selection.getSecond().isEmpty();\n\n // Checking for selection type\n final ElementSelection elementHolder;\n\n if (!nothingSelected)\n {\n if (!selection.getFirst().isEmpty())\n elementHolder = new ElementSelection(NetworkElementType.getType(selection.getFirst()), selection.getFirst());\n else if (!selection.getSecond().isEmpty())\n elementHolder = new ElementSelection(selection.getSecond());\n else elementHolder = new ElementSelection();\n } else\n {\n elementHolder = new ElementSelection();\n }\n\n return elementHolder;\n }", "public boolean checkLastNodeStatus()\r\n {\r\n return visitedNodes.isEmpty();\r\n }", "public boolean checkRowDBVNode(ResultSet rs){\n\t\ttry{\n\t\t\twhile(rs.next()){\n\t\t\t\tif(rs.getString(\"id\").equals(id))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t\treturn true;\n\t}", "private boolean triggerValidation()\r\n {\r\n System.out.println(\"*** Validation row : \" + selRow + \" col : \" + selColumn + \" ***\") ;\r\n /*\r\n * using the colIndex u can get the column bean for that column and then depending the\r\n * datatype of the column u apply appropriate validation rules\r\n */\r\n Object newValue = ((CoeusTextField)txtCell).getText();\r\n\r\n if (!tableStructureBeanPCDR.isIdAutoGenerated()\r\n && (selColumn == tableStructureBeanPCDR.getPrimaryKeyIndex(0)))\r\n {\r\n if (checkDependency(selRow, \"\"))\r\n {\r\n if(!CheckUniqueId(newValue.toString(), selRow, selColumn))\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"chkPKeyUniqVal_exceptionCode.2401\");\r\n\r\n CoeusOptionPane.showInfoDialog(msg);\r\n //after failure of checking, make sure selecting the failed row\r\n\r\n return false; //fail in uniqueid check\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }\r\n else\r\n {\r\n return false;//fail in dependency check\r\n }\r\n\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n\r\n\r\n }", "private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }", "@Override\n\tpublic boolean okToTraverse(Level3Element ele)\n\t{\n\t\treturn !ubiqueIDs.contains(ele.getUri());\n\t}", "private boolean isXpathQueryMatching(TreeWalkerAuditEvent event) {\n boolean isMatching;\n if (xpathExpression == null) {\n isMatching = true;\n }\n else {\n isMatching = false;\n final List<Item> items = getItems(event);\n for (Item item : items) {\n final AbstractNode abstractNode = (AbstractNode) item;\n isMatching = abstractNode.getTokenType() == event.getTokenType()\n && abstractNode.getLineNumber() == event.getLine()\n && abstractNode.getColumnNumber() == event.getColumnCharIndex();\n if (isMatching) {\n break;\n }\n }\n }\n return isMatching;\n }", "protected void noMatch() {\n Token[] tokens = m_errorHandler.noMatch(m_current, m_prev);\n m_current = tokens[0];\n m_prev = tokens[1];\n }", "@Override\n public boolean executeCommand() { remember the current state of 'my' way\n //\n super.executeCommand();\n\n // replace the list of nodes of 'my' way by the list of merged\n // nodes\n //\n for (Node n:mergedNodeList) {\n if (! getLayer().data.getNodes().contains(n)) {\n logger.warning(tr(\"Main dataset does not include node {0}\", n.toString()));\n }\n }\n conflict.getMy().setNodes(mergedNodeList);\n rememberConflict(conflict);\n return true;\n }", "public void testSelect_0()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n Gene gene = new IntegerGene(conf);\n gene.setAllele(new Integer(444));\n Chromosome secondBestChrom = new Chromosome(conf, gene, 3);\n secondBestChrom.setFitnessValue(11);\n selector.add(secondBestChrom);\n gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(false));\n Chromosome bestChrom = new Chromosome(conf, gene, 3);\n bestChrom.setFitnessValue(12);\n selector.add(bestChrom);\n selector.select(1, null, new Population(conf));\n }", "public boolean checkValidSelection(Point start, Point end){\n \t\tboolean flag = false;\n \t\tif (start.x == end.x) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if (start.y == end.y) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x - start.y) == (end.x - end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x + start.y) == (end.x + end.y)) {\n \t\t\tflag = true;\n \t\t}\n \t\treturn flag;\n \t}", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "@Override\n protected boolean shouldVisitSubtreeOfInternalMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "@Override\n protected boolean shouldVisitSubtreeOfInternalMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "private boolean findEmptyGroup(){\r\n boolean isEmpty = true;\r\n TreeNode root = (TreeNode)sponsorHierarchyTree.getModel().getRoot();\r\n TreePath result = findEmptyGroup(sponsorHierarchyTree, new TreePath(root));\r\n if( result != null && result.getLastPathComponent() instanceof Integer ){\r\n CoeusOptionPane.showInfoDialog(\r\n coeusMessageResources.parseMessageKey(\"sponsorHierarchyList_exceptionCode.1204\"));\r\n isEmpty = false;\r\n }\r\n return isEmpty;\r\n }", "public void testEmpty_2()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n Gene gene = new BooleanGene(conf);\n Chromosome chrom = new Chromosome(conf, gene, 5);\n Population pop = new Population(conf, 1);\n pop.addChromosome(chrom);\n Population popNew = new Population(conf);\n selector.select(1, pop, popNew);\n selector.empty();\n assertEquals(1, popNew.size());\n assertNotNull(popNew.getChromosome(0));\n }", "private void checkOverlaps() {\r\n final ArrayList<Vertex> overlaps = new ArrayList<Vertex>(3);\r\n final int count = getOutlineNumber();\r\n boolean firstpass = true;\r\n do {\r\n for (int cc = 0; cc < count; cc++) {\r\n final Outline outline = getOutline(cc);\r\n int vertexCount = outline.getVertexCount();\r\n for(int i=0; i < outline.getVertexCount(); i++) {\r\n final Vertex currentVertex = outline.getVertex(i);\r\n if ( !currentVertex.isOnCurve()) {\r\n final Vertex nextV = outline.getVertex((i+1)%vertexCount);\r\n final Vertex prevV = outline.getVertex((i+vertexCount-1)%vertexCount);\r\n final Vertex overlap;\r\n\r\n // check for overlap even if already set for subdivision\r\n // ensuring both triangular overlaps get divided\r\n // for pref. only check in first pass\r\n // second pass to clear the overlaps array(reduces precision errors)\r\n if( firstpass ) {\r\n overlap = checkTriOverlaps0(prevV, currentVertex, nextV);\r\n } else {\r\n overlap = null;\r\n }\r\n if( overlaps.contains(currentVertex) || overlap != null ) {\r\n overlaps.remove(currentVertex);\r\n\r\n subdivideTriangle(outline, prevV, currentVertex, nextV, i);\r\n i+=3;\r\n vertexCount+=2;\r\n addedVerticeCount+=2;\r\n\r\n if(overlap != null && !overlap.isOnCurve()) {\r\n if(!overlaps.contains(overlap)) {\r\n overlaps.add(overlap);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n firstpass = false;\r\n } while( !overlaps.isEmpty() );\r\n }", "@Override\n protected void processUnselect() {\n \n }", "private boolean checkAddrInputFields(){\n \tboolean same = textFieldCurrents.get(jTextFieldStart).equals(jTextFieldStart.getText()) &&\n\t\t\t\ttextFieldCurrents.get(jTextFieldEnd).equals(jTextFieldEnd.getText()) &&\n\t\t\t\tjComboBoxFormat.getSelectedIndex() == selectedFormat &&\n\t\t\t\tjCheckBoxQuickSearch.isSelected() == quickSearch;\n \t\n \tif(DEBUG){\n \t\toutputResults(\"lasts:\");\n \t\toutputResults(textFieldCurrents.get(jTextFieldStart));\n\t\t\toutputResults(textFieldCurrents.get(jTextFieldEnd));\n\t\t\toutputResults(\"\"+jComboBoxFormat.getSelectedIndex()); \n\t\t\toutputResults(\"nows:\");\n\t\t\toutputResults(jTextFieldEnd.getText());\n\t\t\toutputResults(jTextFieldStart.getText());\n\t\t\toutputResults(\"\"+selectedFormat);\n \t}\n \t\n \tif(!same){\n \t\tjButtonGetDirections.setText(\"Find Directions!\");\n \t}else{\n \t\tjButtonGetDirections.setText(\"Refresh Map\");\n \t}\n \treturn same;\n }", "private static boolean isItVisted(Node node) {\n\t\t\n\t\tboolean areNodesEqual = false;\n\t\tfor (Node temp : nodesCovered) {\n\t\t\tif(choice==1){\n\t\t\t\tif (node.count == temp.count) \t\t\t\t{\n\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t }\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tif (node.manhattanDist == temp.manhattanDist) {\n\t\t\t\t\t\tif (areTheyEqual(temp.stateSpace, node.stateSpace)) {\n\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn areNodesEqual;\n\t}", "public void test_caselessmatch14() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch14.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-false.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "private boolean checkLines(){\n\n for (int[] line : TwoPlayersActivity.lines) {\n\n if (field.get(line[0]).equals(field.get(line[1])) &&\n field.get(line[0]).equals(field.get(line[2])) &&\n !field.get(line[0]).getValue().equals(Cell.Value.NONE)){\n for (int index: line) {\n imageList.get(index).setBackgroundColor(Color\n .parseColor(TwoPlayersActivity.CELL_WIN_COLOR));\n }\n return true;\n }\n }\n return false;\n }", "private void badMatch() {\n\t\tArrayList<Integer> faceValues = new ArrayList<Integer>();\n\t\tInteger firstSelectableCardPos = null;\n\t\t\n\t\tfor (int card = 0; card < CARDS_SUM; card++) {\n\t\t\tPlayingCard thisCard = ((PlayingCard) getActivity().findViewById(solo.getImage(card).getId()));\n\t\t\t\n\t\t\t// cheat by finding card face without turning card over\n\t\t\tint face = thisCard.getCard();\n\t\t\tfaceValues.add(face);\n\t\t\t\n\t\t\t// can't select all cards\n\t\t\tif (thisCard.isLocked() || thisCard.getVisible()) {\n\t\t\t\tcontinue;\n\t\t\t} else if (firstSelectableCardPos == null) {\n\t\t\t\tfirstSelectableCardPos = card;\n\t\t\t}\n\t\t\t\n\t\t\t// if this is a different card, select the bad pair\n\t\t\tif (faceValues.get(firstSelectableCardPos) != face) {\n\t\t\t\tsolo.clickOnImage(firstSelectableCardPos);\n\t\t\t\tsolo.clickOnImage(card);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void checkNLFOJoin() {\n\n String extractedVar = \"\";\n String currQuery = \"\";\n List<Integer> sourceQueries = null;\n List<String> tmpTP = null;\n List<String> extractedVals = null;\n\n for (List<String> key : mapCTPtoQuerySrc.keySet()) {\n\n sourceQueries = mapCTPtoQuerySrc.get(key);\n\n for (int i = 0; i < sourceQueries.size(); i++) {\n\n currQuery = queries.get(sourceQueries.get(i));\n\n //Buuuuuuuuuuuuuug\n if (currQuery.contains(\"mass\")) {\n continue;\n }\n\n if (currQuery.contains(\"filter\") || currQuery.contains(\"FILTER\")) {\n\n extractedVals = myBasUtils.getFILTERvals(currQuery);\n extractedVar = myBasUtils.getFILTERvar(currQuery);\n\n if (extractedVals.size() >= 1) {\n\n if (key.get(0).equalsIgnoreCase(extractedVar) || key.get(2).equalsIgnoreCase(extractedVar)) {\n\n tmpTP = myDedUtils.getCleanTP(key);\n tmpTP.add(extractedVar);\n myBasUtils.insertToMap4(mapDTPtoAnsInverseMap, tmpTP, extractedVals);\n }\n }\n\n }\n\n }\n }\n\n }", "private void validOrderResult() {\n TreeNode currentTreeNode = treeLeaf;\n TreeNode orderTreeNode = null;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof OrderGlobalTreeNode) {\n orderTreeNode = currentTreeNode;\n break;\n } else {\n currentTreeNode = UnaryTreeNode.class.cast(currentTreeNode).getInputNode();\n }\n }\n if (null != orderTreeNode) {\n OrderGlobalTreeNode orderGlobalTreeNode = OrderGlobalTreeNode.class.cast(orderTreeNode);\n TreeNode aggTreeNode = orderTreeNode.getOutputNode();\n while (aggTreeNode != null && aggTreeNode.getNodeType() != NodeType.AGGREGATE) {\n aggTreeNode = aggTreeNode.getOutputNode();\n }\n if (null != aggTreeNode) {\n if (aggTreeNode instanceof FoldTreeNode) {\n TreeNode inputTreeNode = UnaryTreeNode.class.cast(aggTreeNode).getInputNode();\n if (inputTreeNode == orderTreeNode) {\n return;\n }\n UnaryTreeNode inputUnaryTreeNode = UnaryTreeNode.class.cast(inputTreeNode);\n if (inputUnaryTreeNode.getInputNode() == orderTreeNode &&\n (inputUnaryTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(inputUnaryTreeNode).getDirection() != Direction.BOTH)) {\n return;\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(inputUnaryTreeNode, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n OrderGlobalTreeNode addOrderTreeNode = new OrderGlobalTreeNode(inputUnaryTreeNode, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n UnaryTreeNode.class.cast(aggTreeNode).setInputNode(addOrderTreeNode);\n }\n } else {\n if (treeLeaf instanceof OrderGlobalTreeNode) {\n return;\n }\n TreeNode currTreeNode = orderTreeNode.getOutputNode();\n boolean hasSimpleShuffle = false;\n while (currTreeNode != null) {\n if (currTreeNode.getNodeType() == NodeType.FLATMAP\n || (currTreeNode instanceof PropertyNode &&\n !(UnaryTreeNode.class.cast(currTreeNode).getInputNode().getOutputValueType() instanceof EdgeValueType))) {\n hasSimpleShuffle = true;\n break;\n }\n currTreeNode = currTreeNode.getOutputNode();\n }\n if (!hasSimpleShuffle) {\n return;\n }\n\n UnaryTreeNode outputTreeNode = UnaryTreeNode.class.cast(treeLeaf);\n if (outputTreeNode.getInputNode() == orderTreeNode) {\n if (outputTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(outputTreeNode).getDirection() != Direction.BOTH) {\n return;\n }\n if (orderTreeNode.getOutputValueType() instanceof EdgeValueType && outputTreeNode instanceof PropertyNode) {\n return;\n }\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(treeLeaf, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n treeLeaf = new OrderGlobalTreeNode(treeLeaf, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n }\n }\n }", "private boolean checkSelectAll(){\n\t\tboolean ans = false;\n\t\tint i =0;//# of *\n\t\tfor(String temp : this.attrList){\n\t\t\tif(temp.equals(\"*\")){\n\t\t\t\t// ans = true;\n\t\t\t\ti++;\n\t\t\t\t// break;\n\t\t\t\tif (i==tableNames.size()) {\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "@Override\n public boolean hasNext() {\n return numeroDiNodiAncoraVisitabili>0;\n }", "private static void visitingNodes(int bBit, int startNode, int selectedKey, ArrayList<Integer> nodes) {\r\n\t\tFingerTables.checkFingerTable(bBit, startNode, selectedKey, nodes);\t\r\n\t}", "boolean winsAgainst(Selection selection);", "void findRec () {\r\n\r\n\t\tboolean found = false;\r\n\t\tfor (int x = 0; x < total; x++) {\r\n\t\t\tif (records[x][0].equals (txtNo.getText())) {\r\n\t\t\t\tfound = true;\r\n\t\t\t\tJOptionPane.showMessageDialog (this, \"Account No. \" + txtNo.getText () + \" is Already Exist.\",\r\n\t\t\t\t\t\t\t\"BankSystem - WrongNo\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\ttxtClear ();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (found == false) {\r\n\t\t\tsaveArray ();\r\n\t\t}\r\n\r\n\t}", "public MatchCode checkColumn(byte [] bytes, int offset, int length) {\n boolean recursive = false;\n do {\n\n // Nothing to match against, add to new and include\n if(this.column == null && this.newColumn == null) {\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n this.newColumn = newColumns.get(newIndex);\n return MatchCode.INCLUDE;\n }\n\n // Nothing old, compare against new\n if(this.column == null && this.newColumn != null) {\n int ret = Bytes.compareTo(newColumn.getBuffer(), newColumn.getOffset(),\n newColumn.getLength(), bytes, offset, length);\n\n // Same column\n if(ret == 0) {\n if(newColumn.increment() > this.maxVersions) {\n return MatchCode.SKIP;\n }\n return MatchCode.INCLUDE;\n }\n\n // Specified column is bigger than current column\n // Move down current column and check again\n if(ret <= -1) {\n if(++newIndex == newColumns.size()) {\n // No more, add to end and include\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n this.newColumn = newColumns.get(newIndex);\n return MatchCode.INCLUDE;\n }\n this.newColumn = newColumns.get(newIndex);\n //return checkColumn(bytes, offset, length);\n recursive = true;\n continue;\n }\n\n // ret >= 1\n // Specified column is smaller than current column\n // Nothing to match against, add to new and include\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n this.newColumn = newColumns.get(++newIndex);\n return MatchCode.INCLUDE;\n }\n\n // Nothing new, compare against old\n if(this.newColumn == null && this.column != null) {\n int ret = Bytes.compareTo(column.getBuffer(), column.getOffset(),\n column.getLength(), bytes, offset, length);\n\n // Same column\n if(ret == 0) {\n if(column.increment() > this.maxVersions) {\n return MatchCode.SKIP;\n }\n return MatchCode.INCLUDE;\n }\n\n // Specified column is bigger than current column\n // Move down current column and check again\n if(ret <= -1) {\n if(++index == columns.size()) {\n // No more, add to new and include (new was empty prior to this)\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n this.newColumn = newColumns.get(newIndex);\n this.column = null;\n return MatchCode.INCLUDE;\n }\n this.column = columns.get(index);\n //return checkColumn(bytes, offset, length);\n recursive = true;\n continue;\n }\n\n // ret >= 1\n // Specified column is smaller than current column\n // Nothing to match against, add to new and include\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n this.newColumn = newColumns.get(newIndex);\n return MatchCode.INCLUDE;\n }\n\n if (column != null && newColumn != null) {\n // There are new and old, figure which to check first\n int ret = Bytes.compareTo(column.getBuffer(), column.getOffset(),\n column.getLength(), newColumn.getBuffer(), newColumn.getOffset(),\n newColumn.getLength());\n\n // Old is smaller than new, compare against old\n if(ret <= -1) {\n ret = Bytes.compareTo(column.getBuffer(), column.getOffset(),\n column.getLength(), bytes, offset, length);\n\n // Same column\n if(ret == 0) {\n if(column.increment() > this.maxVersions) {\n return MatchCode.SKIP;\n }\n return MatchCode.INCLUDE;\n }\n\n // Specified column is bigger than current column\n // Move down current column and check again\n if(ret <= -1) {\n if(++index == columns.size()) {\n this.column = null;\n } else {\n this.column = columns.get(index);\n }\n //return checkColumn(bytes, offset, length);\n recursive = true;\n continue;\n }\n\n // ret >= 1\n // Specified column is smaller than current column\n // Nothing to match against, add to new and include\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n return MatchCode.INCLUDE;\n }\n }\n\n if (newColumn != null) {\n // Cannot be equal, so ret >= 1\n // New is smaller than old, compare against new\n int ret = Bytes.compareTo(newColumn.getBuffer(), newColumn.getOffset(),\n newColumn.getLength(), bytes, offset, length);\n\n // Same column\n if(ret == 0) {\n if(newColumn.increment() > this.maxVersions) {\n return MatchCode.SKIP;\n }\n return MatchCode.INCLUDE;\n }\n\n // Specified column is bigger than current column\n // Move down current column and check again\n if(ret <= -1) {\n if(++newIndex == newColumns.size()) {\n this.newColumn = null;\n } else {\n this.newColumn = newColumns.get(newIndex);\n }\n //return checkColumn(bytes, offset, length);\n recursive = true;\n continue;\n }\n\n // ret >= 1\n // Specified column is smaller than current column\n // Nothing to match against, add to new and include\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n return MatchCode.INCLUDE;\n }\n } while(recursive);\n\n // No match happened, add to new and include\n newColumns.add(new ColumnCount(bytes, offset, length, 1));\n return MatchCode.INCLUDE;\n }", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "void findSearchOrder() {\n boolean filled = false;\n for(int node: queryGraphNodes.keySet()) {\n\n vertexClass vc = queryGraphNodes.get(node);\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n filled = calcOrdering(edge);\n if (filled)\n break;\n }\n if(searchOrderSeq.size() == queryGraphNodes.size())\n break;\n\n }\n\n }", "boolean hasMatchedElements();", "@Test\n public void selectStatementSuccessful() throws SQLException {\n assertNotNull(testConnection.selectStatement(con, \"SELECT * FROM Employees;\"));\n assertNull(testConnection.selectStatement(con, \"SELECT * FROM Emp;\"));\n\n //Test if RS is empty\n assertTrue(testConnection.selectStatement(con, \"SELECT * FROM Employees\").next());\n assertFalse(testConnection.selectStatement(con, \"SELECT * FROM Employees WHERE email='x'\").next());\n }" ]
[ "0.64845264", "0.606539", "0.60595566", "0.5630703", "0.553", "0.526626", "0.5250325", "0.51914686", "0.51552033", "0.5073476", "0.5061768", "0.5047913", "0.49631143", "0.49616677", "0.4948591", "0.49270132", "0.48811543", "0.48740253", "0.48676854", "0.48651022", "0.48593074", "0.48475328", "0.48422202", "0.4801972", "0.4799806", "0.47821134", "0.47802287", "0.47615764", "0.47592336", "0.4751773", "0.47341183", "0.47295266", "0.4729425", "0.47220856", "0.46934152", "0.46908975", "0.46879047", "0.46857557", "0.4683172", "0.46746945", "0.46687716", "0.46629542", "0.46580184", "0.46514273", "0.46445823", "0.46256268", "0.461936", "0.4602626", "0.46010333", "0.4599419", "0.45965752", "0.45826024", "0.4580695", "0.4576878", "0.45763895", "0.45754412", "0.45706534", "0.45683116", "0.45666197", "0.4562315", "0.45619804", "0.45589662", "0.45589057", "0.45587057", "0.4551081", "0.4545896", "0.45330796", "0.4531681", "0.4528812", "0.4527208", "0.4517333", "0.45169", "0.45047525", "0.45034122", "0.45026186", "0.44992948", "0.44923186", "0.44908357", "0.44908357", "0.44806072", "0.4470177", "0.44652307", "0.44652158", "0.44633427", "0.44628292", "0.44621384", "0.44609165", "0.44591093", "0.44577217", "0.44553724", "0.44483697", "0.4448177", "0.44361782", "0.4435847", "0.44310057", "0.44291693", "0.44251847", "0.44118807", "0.44077682", "0.44031346" ]
0.5794736
3
This returns a permission to always use based on the context, regardless of if the record matches. By default, it always allows the service if the session user is in the Tech Admin role. This can be overridden in subclasses to always allow or disallow based on other conditions. A response of null indicates that there is no override and the rest of the logic needs to be checked.
protected UserServicePermission getPermissionOverride( ServicePermissionRuleContext<S> context) { if (context.getSession().isUserInRole(CommonConstants.TECH_ADMIN)) { return UserServicePermission.getEnabled(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean hasPermission(Permission permission) {\n // FacesContext context = FacesContext.getCurrentInstance();\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n// String imp = (String)context.getExternalContext().getSessionMap().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.hasPermission(permission);\n }\n else{\n return true;\n \n }\n \n }", "PermissionService getPermissionService();", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "public abstract boolean checkRolesAllowed(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "abstract public void getPermission();", "@Override\n protected String requiredGetPermission() {\n return \"user\";\n }", "public Permissions[] getPermissionsNeeded(ContainerRequestContext context) throws Exception {\n Secured auth = resourceInfo.getResourceMethod().getAnnotation(Secured.class);\n\n // If there's no authentication required on method level, check class level.\n if (auth == null) {\n auth = resourceInfo.getResourceClass().getAnnotation(Secured.class);\n }\n\n // Else, there's no permission required, thus we chan continue;\n if (auth == null) {\n log.log(Level.INFO, \"AUTHENTICATION: Method: \" + context.getMethod() + \", no permission required\");\n return new Permissions[0];\n }\n\n return auth.value();\n }", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "boolean getIsAuthorized();", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "public interface PermissionsManager {\n /**\n * @param permission for which to enquire\n *\n * @return whether the permission is granted.\n */\n boolean isPermissionGranted(Permission permission);\n\n /**\n * Checks whether the permission was already granted, and if it was not, then it requests.\n *\n * @param activity to provide mContext\n * @param permission for which to enquire\n *\n * @return whether the permission was already granted.\n */\n boolean requestIfNeeded(Activity activity, Permission permission);\n}", "public interface AclService<T> extends PermissionEvaluator {\n\n\t/**\n\t * Creates an acl for an object if neccessary and adds an ace for that\n\t * object with the permission specified. This adds the permission to the\n\t * currently-logged-in user\n\t * \n\t * @param object\n\t * The object for which the acl and ace are to be created.\n\t * @param permission\n\t * The permission to grant to the user on the object.\n\t */\n\tpublic void addPermission(T object, Permission permission);\n\t\n\t/**\n\t * Creates an acl for an object if neccessary and adds an ace for that\n\t * object with the permission specified for the specified user\n\t * \n\t * @param object\n\t * The object for which the acl and ace are to be created.\n\t * @param permission\n\t * The permission to grant to the user on the object.\n\t * @param user\n\t * A <code>User</code> who will be granted the permission on\n\t * the object.\n\t */\n\tpublic void addPermission(T object, Permission permission, User user);\n\n\t/**\n\t * Removes the permission of a user on an object. If the object does not\n\t * have an acl or if the ace does not exist for the object, do nothing.\n\t * \n\t * @param object\n\t * The object for which the permission is to be removed.\n\t * @param permission\n\t * The permission to remove from the user on the object.\n\t * @param user\n\t * The <code>User</code> who will lose the permission on\n\t * the object.\n\t */\n\tpublic void removePermission(T object, Permission permission, User user);\n\t\n\t/**\n\t * Gets a list of Permissions that the user has on the specified object.\n\t * \n\t * @param object\n\t * The object to retrieve the permission on.\n\t * @param user\n\t * \t\t\tThe <code>User</code> who is granted permissions on\n\t * the object.\n\t * @return A <code>Permission</code> containing the \n\t */\n\tpublic List<Permission> getPermissions(T object, User user);\n\n\t/**\n\t * Returns <code>boolean</code> true if the given <code>User</code> principle\n\t * has the given <code>Permission</code> on the give <code>Object</code>, returns\n\t * fale otherwise.\n\t */\n\tpublic boolean hasPermission(T object, Permission permission, User user);\n}", "public boolean hasPermission(Context paramContext, String paramString) {\n }", "boolean hasAttackerRoleId();", "public PermissionHandler getHandler() {\r\n return Permissions.Security;\r\n }", "public Boolean isPermissions() {\n return (Boolean) get(\"permissions\");\n }", "default Optional<Boolean> doesCalendarAccessAuthorized() {\n return Optional.ofNullable(toSafeBoolean(getCapability(CALENDAR_ACCESS_AUTHORIZED_OPTION)));\n }", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "protected Permissions getExcludedPolicy(){\n\treturn stateIs(INSERVICE_STATE) ? this.excludedPermissions : null;\n }", "@PreAuthorize(\"checkPermission('Legal Entity', 'Manage Legal Entities', {'view','create'})\")\n @GetMapping(\n produces = {\"application/json\"})\n @ResponseStatus(HttpStatus.OK)\n public void sampleEndpointThatRequiresUserToHavePermissionsToViewCreateLegalEnitites() {\n LOGGER.info(\"Preauthorize annotation have checked that user has permissions to view/create legal entities\");\n // continue custom implementation ...\n }", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "static boolean checkPermissionAllowed(Context context, String permission) {\n if (android.os.Build.VERSION.SDK_INT >= 23) {\n boolean hasPermission = false;\n try {\n // Invoke checkSelfPermission method from Android 6 (API 23 and UP)\n java.lang.reflect.Method methodCheckPermission = Activity.class.getMethod(\"checkSelfPermission\", java.lang.String.class);\n Object resultObj = methodCheckPermission.invoke(context, permission);\n int result = Integer.parseInt(resultObj.toString());\n hasPermission = (result == PackageManager.PERMISSION_GRANTED);\n } catch (Exception ex) {\n\n }\n\n return hasPermission;\n } else {\n return true;\n }\n }", "String getPermission();", "public Permission getPermission() {\n return permission;\n }", "protected abstract String getAuthorization();", "Object getPerm(String name, Object def);", "public String getFloodPerm() throws PermissionDeniedException;", "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "public int getPermission(Integer resourceId);", "boolean requestIfNeeded(Activity activity, Permission permission);", "public Permission getPermission(String objectId, User user, Boolean pending) throws UserManagementException;", "@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request) {\n\t\t\treturn this.decide(request, null);\n\t}", "@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}", "public Boolean getFlowTracking() throws PermissionDeniedException;", "boolean isHasPermissions();", "@Path(\"admin_area\")\n @GET\n @View(\"admin_page.jsp\")\n @RolesAllowed(\"admin\")\n public void sayRole(@Context SecurityContext securityContext) {\n\n logger.info(\"AdminRole :: \" + securityContext.isUserInRole(\"AdminRole\"));\n logger.info(\"admin :: \" + securityContext.isUserInRole(\"admin\"));\n logger.info(\"INFO :: \" + securityContext.isSecure());\n\n }", "public boolean checkPermission(Permission permission);", "@Override\n public boolean userCanAccess(int id) {\n return true;\n }", "@Override\n public boolean isPermitted(HttpServletRequest request, int permittedRole) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n int role = Integer.parseInt((String) session.getAttribute(\"role\"));\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token) && role == permittedRole) {\n result = true;\n }\n }\n return result;\n }", "public boolean hasPermission(T object, Permission permission, User user);", "@Override\n public Collection<WegasPermission> getRequieredUpdatePermission(RequestContext context) {\n return this.getState().getRequieredUpdatePermission(context);\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "public ResourceInformation.Permissions getEffectivePermissions() {\n\t\tif (effectivePermissions == null)\n\t\t\tfetchInfo();\n\t\treturn effectivePermissions;\n\t}", "@Override\n\tpublic int getIsActive() {\n\t\treturn _permissionType.getIsActive();\n\t}", "@Schema(description = \"Operations the current user is able to perform on this object\")\n public Map<String, Boolean> getCan() {\n return can;\n }", "public boolean isAccessGranted() {\n try {\n PackageManager packageManager = getPackageManager();\n ApplicationInfo applicationInfo = packageManager.getApplicationInfo(getPackageName(), 0);\n AppOpsManager appOpsManager = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE);\n int mode;\n assert appOpsManager != null;\n mode = appOpsManager.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n applicationInfo.uid, applicationInfo.packageName);\n return (mode == AppOpsManager.MODE_ALLOWED);\n\n } catch (PackageManager.NameNotFoundException e) {\n return false;\n }\n }", "public PolicyPermission getPolicyPermission()\n {\n return this.perm;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "public interface PermissionManagerServiceInternal extends PermissionManagerInternal,\n LegacyPermissionDataProvider {\n /**\n * Check whether a particular package has been granted a particular permission.\n *\n * @param packageName the name of the package you are checking against\n * @param permissionName the name of the permission you are checking for\n * @param userId the user ID\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkPermission(@NonNull String packageName, @NonNull String permissionName,\n @UserIdInt int userId);\n\n /**\n * Check whether a particular UID has been granted a particular permission.\n *\n * @param uid the UID\n * @param permissionName the name of the permission you are checking for\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkUidPermission(int uid, @NonNull String permissionName);\n\n /**\n * Adds a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void addOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Removes a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void removeOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Get whether permission review is required for a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return whether permission review is required\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n boolean isPermissionsReviewRequired(@NonNull String packageName,\n @UserIdInt int userId);\n\n /**\n * Reset the runtime permission state changes for a package.\n *\n * TODO(zhanghai): Turn this into package change callback?\n *\n * @param pkg the package\n * @param userId the user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void resetRuntimePermissions(@NonNull AndroidPackage pkg,\n @UserIdInt int userId);\n\n /**\n * Read legacy permission state from package settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code PackageSetting} which is a implementation detail that permission should not know.\n * Instead, it should retrieve the legacy state via a defined API.\n */\n void readLegacyPermissionStateTEMP();\n\n /**\n * Write legacy permission state to package settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionStateTEMP();\n\n /**\n * Get all the permissions granted to a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return the names of the granted permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n Set<String> getGrantedPermissions(@NonNull String packageName, @UserIdInt int userId);\n\n /**\n * Get the GIDs of a permission.\n *\n * @param permissionName the name of the permission\n * @param userId the user ID\n * @return the GIDs of the permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId);\n\n /**\n * Get the packages that have requested an app op permission.\n *\n * @param permissionName the name of the app op permission\n * @return the names of the packages that have requested the app op permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n String[] getAppOpPermissionPackages(@NonNull String permissionName);\n\n /** HACK HACK methods to allow for partial migration of data to the PermissionManager class */\n @Nullable\n Permission getPermissionTEMP(@NonNull String permName);\n\n /** Get all permissions that have a certain protection */\n @NonNull\n ArrayList<PermissionInfo> getAllPermissionsWithProtection(\n @PermissionInfo.Protection int protection);\n\n /** Get all permissions that have certain protection flags */\n @NonNull ArrayList<PermissionInfo> getAllPermissionsWithProtectionFlags(\n @PermissionInfo.ProtectionFlags int protectionFlags);\n\n /**\n * Start delegate the permission identity of the shell UID to the given UID.\n *\n * @param uid the UID to delegate shell permission identity to\n * @param packageName the name of the package to delegate shell permission identity to\n * @param permissionNames the names of the permissions to delegate shell permission identity\n * for, or {@code null} for all permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void startShellPermissionIdentityDelegation(int uid,\n @NonNull String packageName, @Nullable List<String> permissionNames);\n\n /**\n * Stop delegating the permission identity of the shell UID.\n *\n * @see #startShellPermissionIdentityDelegation(int, String, List)\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void stopShellPermissionIdentityDelegation();\n\n /**\n * Get all delegated shell permissions.\n */\n @NonNull List<String> getDelegatedShellPermissions();\n\n /**\n * Read legacy permissions from legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code LegacyPermissionSettings} which is a implementation detail that permission should not\n * know. Instead, it should retrieve the legacy permissions via a defined API.\n */\n void readLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Write legacy permissions to legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Callback when the system is ready.\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onSystemReady();\n\n /**\n * Callback when a storage volume is mounted, so that all packages on it become available.\n *\n * @param volumeUuid the UUID of the storage volume\n * @param fingerprintChanged whether the current build fingerprint is different from what it was\n * when this volume was last mounted\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onStorageVolumeMounted(@NonNull String volumeUuid, boolean fingerprintChanged);\n\n /**\n * Callback when a user has been created.\n *\n * @param userId the created user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserCreated(@UserIdInt int userId);\n\n /**\n * Callback when a user has been removed.\n *\n * @param userId the removed user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserRemoved(@UserIdInt int userId);\n\n /**\n * Callback when a package has been added.\n *\n * @param pkg the added package\n * @param isInstantApp whether the added package is an instant app\n * @param oldPkg the old package, or {@code null} if none\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageAdded(@NonNull AndroidPackage pkg, boolean isInstantApp,\n @Nullable AndroidPackage oldPkg);\n\n /**\n * Callback when a package has been installed for a user.\n *\n * @param pkg the installed package\n * @param previousAppId the previous app ID if the package is leaving a shared UID,\n * or Process.INVALID_UID\n * @param params the parameters passed in for package installation\n * @param userId the user ID this package is installed for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageInstalled(@NonNull AndroidPackage pkg, int previousAppId,\n @NonNull PackageInstalledParams params,\n @UserIdInt int userId);\n\n /**\n * Callback when a package has been removed.\n *\n * @param pkg the removed package\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageRemoved(@NonNull AndroidPackage pkg);\n\n /**\n * Callback when a package has been uninstalled.\n * <p>\n * The package may have been fully removed from the system, or only marked as uninstalled for\n * this user but still instlaled for other users.\n *\n * TODO: Pass PackageState instead.\n *\n * @param packageName the name of the uninstalled package\n * @param appId the app ID of the uninstalled package\n * @param pkg the uninstalled package, or {@code null} if unavailable\n * @param sharedUserPkgs the packages that are in the same shared user\n * @param userId the user ID the package is uninstalled for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageUninstalled(@NonNull String packageName, int appId, @Nullable AndroidPackage pkg,\n @NonNull List<AndroidPackage> sharedUserPkgs, @UserIdInt int userId);\n\n /**\n * Listener for package permission state (permissions or flags) changes.\n */\n interface OnRuntimePermissionStateChangedListener {\n\n /**\n * Called when the runtime permission state (permissions or flags) changed.\n *\n * @param packageName The package for which the change happened.\n * @param userId the user id for which the change happened.\n */\n @Nullable\n void onRuntimePermissionStateChanged(@NonNull String packageName,\n @UserIdInt int userId);\n }\n\n /**\n * The permission-related parameters passed in for package installation.\n *\n * @see android.content.pm.PackageInstaller.SessionParams\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n final class PackageInstalledParams {\n /**\n * A static instance whose parameters are all in their default state.\n */\n public static final PackageInstalledParams DEFAULT = new Builder().build();\n\n @NonNull\n private final List<String> mGrantedPermissions;\n @NonNull\n private final List<String> mAllowlistedRestrictedPermissions;\n @NonNull\n private final int mAutoRevokePermissionsMode;\n\n private PackageInstalledParams(@NonNull List<String> grantedPermissions,\n @NonNull List<String> allowlistedRestrictedPermissions,\n int autoRevokePermissionsMode) {\n mGrantedPermissions = grantedPermissions;\n mAllowlistedRestrictedPermissions = allowlistedRestrictedPermissions;\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Get the permissions to be granted.\n *\n * @return the permissions to be granted\n */\n @NonNull\n public List<String> getGrantedPermissions() {\n return mGrantedPermissions;\n }\n\n /**\n * Get the restricted permissions to be allowlisted.\n *\n * @return the restricted permissions to be allowlisted\n */\n @NonNull\n public List<String> getAllowlistedRestrictedPermissions() {\n return mAllowlistedRestrictedPermissions;\n }\n\n /**\n * Get the mode for auto revoking permissions.\n *\n * @return the mode for auto revoking permissions\n */\n public int getAutoRevokePermissionsMode() {\n return mAutoRevokePermissionsMode;\n }\n\n /**\n * Builder class for {@link PackageInstalledParams}.\n */\n public static final class Builder {\n @NonNull\n private List<String> mGrantedPermissions = Collections.emptyList();\n @NonNull\n private List<String> mAllowlistedRestrictedPermissions = Collections.emptyList();\n @NonNull\n private int mAutoRevokePermissionsMode = AppOpsManager.MODE_DEFAULT;\n\n /**\n * Set the permissions to be granted.\n *\n * @param grantedPermissions the permissions to be granted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setGrantedRuntimePermissions(\n * java.lang.String[])\n */\n public void setGrantedPermissions(@NonNull List<String> grantedPermissions) {\n Objects.requireNonNull(grantedPermissions);\n mGrantedPermissions = new ArrayList<>(grantedPermissions);\n }\n\n /**\n * Set the restricted permissions to be allowlisted.\n * <p>\n * Permissions that are not restricted are ignored, so one can just pass in all\n * requested permissions of a package to get all its restricted permissions allowlisted.\n *\n * @param allowlistedRestrictedPermissions the restricted permissions to be allowlisted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setWhitelistedRestrictedPermissions(Set)\n */\n public void setAllowlistedRestrictedPermissions(\n @NonNull List<String> allowlistedRestrictedPermissions) {\n Objects.requireNonNull(mGrantedPermissions);\n mAllowlistedRestrictedPermissions = new ArrayList<>(\n allowlistedRestrictedPermissions);\n }\n\n /**\n * Set the mode for auto revoking permissions.\n * <p>\n * {@link AppOpsManager#MODE_ALLOWED} means the system is allowed to auto revoke\n * permissions from this package, and {@link AppOpsManager#MODE_IGNORED} means this\n * package should be ignored when auto revoking permissions.\n * {@link AppOpsManager#MODE_DEFAULT} means no changes will be made to the auto revoke\n * mode of this package.\n *\n * @param autoRevokePermissionsMode the mode for auto revoking permissions\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setAutoRevokePermissionsMode(\n * boolean)\n */\n public void setAutoRevokePermissionsMode(int autoRevokePermissionsMode) {\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Build a new instance of {@link PackageInstalledParams}.\n *\n * @return the {@link PackageInstalledParams} built\n */\n @NonNull\n public PackageInstalledParams build() {\n return new PackageInstalledParams(mGrantedPermissions,\n mAllowlistedRestrictedPermissions, mAutoRevokePermissionsMode);\n }\n }\n }\n\n /**\n * Sets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n void setHotwordDetectionServiceProvider(@Nullable HotwordDetectionServiceProvider provider);\n\n /**\n * Gets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n @Nullable\n HotwordDetectionServiceProvider getHotwordDetectionServiceProvider();\n\n /**\n * Provides the uid of the currently active\n * {@link android.service.voice.HotwordDetectionService}, which should be granted RECORD_AUDIO,\n * CAPTURE_AUDIO_HOTWORD and CAPTURE_AUDIO_OUTPUT permissions.\n */\n interface HotwordDetectionServiceProvider {\n int getUid();\n }\n}", "@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }", "@Override\n\tpublic String checkPermision(String user, String userType) {\n\t\treturn null;\n\t}", "public Boolean isAuthorized(String userId);", "public boolean granted(){\n\t\treturn this.granted;\n\t}", "void checkPermission(T request) throws AuthorizationException;", "boolean hasRole();", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "@Override\r\n\tpublic Permission getPermission(int id) {\n\t\treturn null;\r\n\t}", "public FacebookPermissionsE permission(){\n\t\treturn this.permission;\n\t}", "Privilege getPrivilege();", "@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }", "public Boolean isAuthorizedForDataset() {\n return (attributes.containsKey(KEY_IS_AUTHORIZED_FOR_DS) ? (Boolean) attributes\n .get(KEY_IS_AUTHORIZED_FOR_DS) : null);\n }", "@JsonProperty(\"granted\")\n public boolean isGranted() {\n return granted;\n }", "@Override\n public Intent createShowAdminSupportIntent(int userId, boolean useDefaultIfNoAdmin) {\n\n if (getEnforcingAdminAndUserDetailsInternal(userId, null) != null\n || useDefaultIfNoAdmin) {\n return DevicePolicyManagerService.this.createShowAdminSupportIntent(userId);\n }\n return null;\n }", "private void dynamicPermission() {\n if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {\n Log.i(\"MainActivity\", \"android sdk <= 28 Q\");\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n String[] strings =\n {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n ActivityCompat.requestPermissions(this, strings, 1);\n }\n } else {\n // Dynamically apply for required permissions if the API level is greater than 28. The android.permission.ACCESS_BACKGROUND_LOCATION permission is required.\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\") != PackageManager.PERMISSION_GRANTED) {\n String[] strings = {android.Manifest.permission.ACCESS_FINE_LOCATION,\n android.Manifest.permission.ACCESS_COARSE_LOCATION,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\"};\n ActivityCompat.requestPermissions(this, strings, 2);\n }\n }\n }", "@ApiModelProperty(value = \"Operations the current user is able to perform on this object\")\n public Map<String, Boolean> getCan() {\n return can;\n }", "@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request,\n\t\t\tMap<String, String> additionalAttrs) {\n\t\tlog.trace (\"Entering decide()\");\n\t\t\n\t\tboolean decision = false;\n\t\t\n\t\t// Extract interesting parts of the HTTP request\n\t\tString method = request.getMethod();\n\t\tAuthzResource resource = new AuthzResource(request.getRequestURI());\n\t\tString subject = (request.getHeader(SUBJECT_HEADER));\t\t // identity of the requester\n\t\tString subjectgroup = (request.getHeader(SUBJECT_HEADER_GROUP)); // identity of the requester by group Rally : US708115\n\n\t\tlog.trace(\"Method: \" + method + \" -- Type: \" + resource.getType() + \" -- Id: \" + resource.getId() + \n\t\t\t\t\" -- Subject: \" + subject);\n\t\t\n\t\t// Choose authorization method based on the resource type\n\t\tResourceType resourceType = resource.getType();\n\t\tif (resourceType != null) {\n\n\t\t\tswitch (resourceType) {\n\n\t\t\tcase FEEDS_COLLECTION:\n\t\t\t\tdecision = allowFeedsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUBS_COLLECTION:\n\t\t\t\tdecision = allowSubsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase FEED:\n\t\t\t\tdecision = allowFeedAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUB:\n\t\t\t\tdecision = allowSubAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tdecision = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tlog.debug(\"Exit decide(): \" + method + \"|\" + resourceType + \"|\" + resource.getId() + \"|\" + subject + \" ==> \" + decision);\n\t\t\n\t\treturn new AuthRespImpl(decision);\n\t}", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "@Override\n public CurrentAccess getCurrentAccess() throws WebdavException {\n if (currentAccess != null) {\n return currentAccess;\n }\n\n if (event == null) {\n return null;\n }\n\n try {\n currentAccess = getSysi().checkAccess(event, PrivilegeDefs.privAny, true);\n } catch (Throwable t) {\n throw new WebdavException(t);\n }\n\n return currentAccess;\n }", "public boolean isAllowed(BaseAction actionClass) {\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tInteger requiredRoles = privilegeDef.get(actionClass.getClass().getSimpleName());\r\n\t\treturn requiredRoles == null || (requiredRoles & role) != 0;\r\n\t}", "public abstract boolean isRestricted();", "public boolean handlePerm(Player player, String perm);", "public String getPermission()\r\n {\r\n return permission;\r\n }", "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String authorizationHeader =\n requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n\n // Validate the Authorization header\n if (!isTokenBasedAuthentication(authorizationHeader)) {\n abortWithUnauthorized(requestContext);\n return;\n }\n\n // Extract the token from the Authorization header\n String token = authorizationHeader\n .substring(AUTHENTICATION_SCHEME.length()).trim();\n\n try {\n // Check if the token is valid\n validateToken(token);\n\n //extract the data you need\n String username = Jwts.parser().setSigningKey(keyGenerator.getKey()).parseClaimsJws(token).getBody().getIssuer();\n if (username!=null) {\n final SecurityContext securityContext = requestContext.getSecurityContext();\n requestContext.setSecurityContext(new SecurityContext() {\n @Override\n public Principal getUserPrincipal() {\n return new Principal() {\n @Override\n public String getName() {\n return username;\n }\n };\n }\n @Override\n public boolean isUserInRole(String permission) {\n\n List<RoleEntity> roleEntities = userDao.getUserByUsername(username).getRoleEntityList();\n List<PermissionEntity> permissionEntities = new ArrayList<>();\n\n //creating the list containg all the permissionsAllowed\n for (RoleEntity r : roleEntities) {\n for (PermissionEntity p : r.getPermissionEntityList()) {\n if (!permissionEntities.contains(p)) {\n permissionEntities.add(p);\n }\n }\n\n }\n\n List<String> permissionStrings = new ArrayList<>();\n\n //getting all the types (description and id are not important)\n for (PermissionEntity p : permissionEntities) {\n permissionStrings.add(p.getType());\n }\n\n //returns true if the list contains the permission given as parameter\n for (String p : permissionStrings) {\n if (p.equals(permission)) {\n return true;\n }\n }\n return false;\n }\n @Override\n public boolean isSecure() {\n return true;\n }\n @Override\n public String getAuthenticationScheme() {\n return AUTHENTICATION_SCHEME;\n }\n });\n }\n //getting value from annotation\n Method resourceMethod = resourceInfo.getResourceMethod();\n Secured secured = resourceMethod.getAnnotation(Secured.class);\n if (secured != null){\n List<String> permissionStrings = new ArrayList<>();\n for (SecurityPermission s : secured.permissionsAllowed()) {\n permissionStrings.add(s.getText());\n }\n\n //performing authorization\n if (permissionStrings.size() > 0 && !isAuthenticated(requestContext)) {\n refuseRequest();\n }\n\n for (String role : permissionStrings) {\n if (requestContext.getSecurityContext().isUserInRole(role)) {\n return;\n }\n else {\n throw new AuthentificationException(ExceptionMessageCatalog.NOT_ALLOWED);\n }\n }\n\n refuseRequest();\n }\n } catch (AuthentificationException e) {\n abortWithUnauthorized(requestContext);\n }\n }", "boolean hasCustomerUserAccess();", "boolean isApplicable(SecurityMode securityMode);", "public boolean checkPermission(PermissionCheckContext context) {\n PolarAccountInfo account = accountPrivilegeData.getAndCheckById(context.getAccountId());\n if (PolarAuthorizer.hasPermission(account, context.getPermission())) {\n return true;\n }\n\n return account.getRolePrivileges().getActiveRoleIds(context.getActiveRoles(), config.getMandatoryRoleIds())\n .stream()\n .map(accountPrivilegeData::getById)\n .filter(Objects::nonNull)\n .anyMatch(role -> PolarAuthorizer.hasPermission(role, context.getPermission()));\n }", "public boolean isAuthorized() {\r\n // TODO - implement User.isAuthorized\r\n throw new UnsupportedOperationException();\r\n }", "void permissionGranted(int requestCode);", "@Override\n public boolean execute(Context ctx) {\n AccessContext accessCtx = (AccessContext)ctx;\n HttpServletRequest req = accessCtx.getHttpRequest();\n HttpServletResponse resp = accessCtx.getHttpResponse();\n String contextPath = req.getContextPath();\n LogUtils.logDebug(logger, \"getContextPath: \", contextPath);\n\n if (this.authLevel >= AUTH_LEVEL_LOGGED_IN) {\n if (!accessCtx.containsAttribute(AccessContext.KEY_USER_ITEM)) {\n throw new IllegalStateException(\n \"User Item was not found, perhaps LoadUserItemCommand was not executed\");\n }\n }\n // From this point accessCtx.getUserItem is a valid entry.\n\n if (this.authLevel >= AUTH_LEVEL_LOGGED_IN) {\n if (accessCtx.getUserItem() == null) {\n try {\n if (accessCtx.getDatasetItem() == null) {\n // If datasetItem not exists, redirect to login page.\n String redirUrl = contextPath + AccessFilter.REDIRECT_LOGIN;\n LogUtils.logDebug(logger,\n \"Not logged in, redirecting to \", redirUrl);\n AccessFilter.redirect(req, resp, redirUrl);\n } else {\n // If datasetItem exists, then redirect to Dataset Overview page.\n String redirUrl = contextPath + AccessFilter.REDIRECT_DATASET_INFO\n + \"?datasetId=\" + accessCtx.getDatasetId()\n + \"&access_redir=1\";\n LogUtils.logDebug(logger,\n \"(1)Not authorized for this dataset, redirecting to \", redirUrl);\n AccessFilter.redirect(req, resp, redirUrl);\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Error while redirecting.\", e);\n }\n return true;\n }\n }\n\n // from this point accessCtx.getUserItem is a valid object.\n\n if (this.authLevel == AUTH_LEVEL_AUTHORIZED_FOR_DS) {\n if (!accessCtx.containsAttribute(AccessContext.KEY_IS_AUTHORIZED_FOR_DS)) {\n throw new IllegalStateException(\n \"IsAuthorizedForDataset was not set. \"\n + \"Perhaps LoadDatsetCommand was not executed.\");\n }\n\n if (!accessCtx.isAuthorizedForDataset()) {\n try {\n String redirUrl = contextPath + AccessFilter.REDIRECT_DATASET_INFO\n + \"?datasetId=\" + accessCtx.getDatasetId()\n + \"&access_redir=1\";\n LogUtils.logDebug(logger,\n \"(2)Not authorized for this dataset, redirecting to \", redirUrl);\n AccessFilter.redirect(req, resp, redirUrl);\n } catch (IOException e) {\n throw new RuntimeException(\"Error while redirecting.\", e);\n }\n return true;\n }\n }\n\n if (this.authLevel == AUTH_LEVEL_ADMIN) {\n if (!accessCtx.getUserItem().getAdminFlag()) {\n try {\n String redirUrl = AccessFilter.REDIRECT_INDEX_JSP;\n LogUtils.logDebug(logger,\n \"Not admin, redirecting to \", redirUrl);\n AccessFilter.redirect(req, resp, redirUrl);\n } catch (IOException e) {\n throw new RuntimeException(\"Error while redirecting.\", e);\n }\n return true;\n }\n }\n return false;\n }", "public T casePermission(Permission object) {\n\t\treturn null;\n\t}", "public interface IAccessPolicy {\n\n\t/**\n\t * Indicating if the current session can do a register process\n\t * \n\t * @param session\n\t * To be checked\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canRegister(Session session);\n\n\t/**\n\t * Indicating if the current session can do a login process\n\t * \n\t * @param session\n\t * To be checked\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canLogin(Session session);\n\n\t/**\n\t * Indicating if the current session can do a search\n\t * \n\t * @param session\n\t * To be checked\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canSearch(Session session);\n\n\t/**\n\t * Indicating if the current session can do a register process\n\t * \n\t * @param session\n\t * To be checked\n\t * @param user\n\t * Data of this user should be changed\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canEditUserData(Session session, User user);\n\n\t/**\n\t * Inidicating if the given session can comment\n\t * \n\t * @param session\n\t * to be investigated\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canComment(Session session);\n\n\t/**\n\t * Indicating if the given session can edit a given comment.\n\t * \n\t * @param session\n\t * the call belongs to\n\t * @param comment\n\t * to be checked\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canEditComment(Session session, Comment comment);\n\n\t/**\n\t * Indicating if the current session can create a snippet in the given\n\t * category.\n\t * \n\t * @param session\n\t * To be checked\n\t * @param category\n\t * Category where the snippet should be created\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canCreateSnippet(Session session, Category category);\n\n\t/**\n\t * Indicating if the current session can do a register process\n\t * \n\t * @param session\n\t * To be checked\n\t * @param snippet\n\t * Concrete snippet that should be deleted\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canDeleteSnippet(Session session, Snippet snippet);\n\n\t/**\n\t * Indicating if the current session can do a register process\n\t * \n\t * @param session\n\t * To be checked\n\t * @param snippet\n\t * Concrete snippet, that should be edited\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canEditSnippet(Session session, Snippet snippet);\n\n\t/**\n\t * Indicating if the given session can tag the given snippet\n\t * \n\t * @param session\n\t * to be checked. Concrete, the user of the session will be\n\t * checked\n\t * @param snippet\n\t * to be tagged\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canTagSnippet(Session session, Snippet snippet);\n\n\t/**\n\t * Indicating if the given session is able to rate a snippet\n\t * \n\t * @param session\n\t * to be checked. Concrete, the user of the session will be\n\t * checked\n\t * @param snippet\n\t * to be tagged\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canRateSnippet(Session session, Snippet snippet);\n\n\t/**\n\t * Indicating if the given session can edit a given category.\n\t * \n\t * @param session\n\t * the call belongs to\n\t * @param category\n\t * to be checked\n\t * @return true if operation succeeds if denied false\n\t */\n\tpublic boolean canEditCategory(Session session, Category category);\n\n\t/**\n\t * Indicating if the given session can delete a given comment\n\t * \n\t * @param session\n\t * the call belongs to\n\t * @param comment\n\t * to be checked\n\t * @return if operation succeeds if denied false\n\t */\n\tpublic boolean canDeleteComment(Session session, Comment comment);\n}", "public boolean isAdmin();", "@Override\n public void onRequestAllow(String permissionName) {\n }", "@Override\n public boolean hasPermission(User user, E entity, Permission permission) {\n\n // always grant READ access (\"unsecured\" object)\n if (permission.equals(Permission.READ)) {\n logger.trace(\"Granting READ access on \" + entity.getClass().getSimpleName() + \" with ID \" + entity.getId());\n return true;\n }\n\n // call parent implementation\n return super.hasPermission(user, entity, permission);\n }", "@Override\n\tpublic Response<Boolean> getRecommendScopes(RequestContext requestContext) {\n\t\treturn null;\n\t}", "boolean transactTo_isAccountDisabled(int code, String transactName, ComponentName who, String accountType, int userId) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean bDisabled = false;\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact:\" + transactName + \" to device policy manager service.\");\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeString(accountType);\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n bDisabled = _reply.readInt() == 1;\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n return bDisabled;\n }", "public boolean isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "Collection<? extends Role> getIsPerformOf();", "public interface TestService {\n// @PreAuthorize(\"hasAuthority('test')\")\n String test();\n}", "private interface Permit {\n\t\t/**\n\t\t * context id\n\t\t */\n\t\tpublic String id();\n\t\t\n\t\t/**\n\t\t * The context which we have a permit to\n\t\t */\n\t\tpublic ColumnContext context();\n\n\t\t/**\n\t\t * Must call release when done with context\n\t\t */\n\t\tpublic void revoke();\n\t}", "@Override\n\tprotected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue)\n\t\t\tthrows Exception {\n\t\treturn false;\n\t}", "int getPermissionRead();", "private boolean doesSessionUserHaveDataSetPermission(DataverseRequest req, Dataset dataset, Permission permissionToCheck) {\n if (permissionToCheck == null) {\n return false;\n }\n\n // Has this check already been done? \n // \n if (datasetPermissionMap.containsKey(permissionToCheck)) {\n // Yes, return previous answer\n return datasetPermissionMap.get(permissionToCheck);\n }\n\n // Check the permission\n boolean hasPermission = permissionService.requestOn(req, dataset).has(permissionToCheck);\n\n // Save the permission\n datasetPermissionMap.put(permissionToCheck, hasPermission);\n\n // return true/false\n return hasPermission;\n }", "@Override\n public boolean implies(Permission p) {\n\n\t// Quick reject tests\n\tif (p == null)\n\t return false;\n\tif (!(p instanceof SharedActivationPolicyPermission))\n\t return false;\n\n SharedActivationPolicyPermission other = \n (SharedActivationPolicyPermission)p; \n\n // Delegate to FilePermission logic \n boolean\tanswer = policyPermission.implies(other.policyPermission);\n\n\tif (DEBUG) {\n \t System.out.println(\"SharedActivationPolicyPermission::implies() - \" \n\t + \"checking \" + policyPermission + \" vs. \" \n\t + other.policyPermission + \": \" + answer);\n\t}\n\n\treturn answer;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager authzMan = getAuthorizationManager();\n try {\n if (!authzMan.canManageApplication(user)) {\n setRedirect(\"authorization-denied.htm\");\n return false;\n }\n return true;\n } catch (AuthorizationSystemException ex) {\n throw new RuntimeException(ex);\n }\n }", "boolean ignoresPermission();", "UserPermissions authenticate (Request request);", "@Override\n public Role getRole(InheritedAccessEnabled access) {\n Preference preference = (Preference) access;\n if (preference.getVisibleAtRole() == null) {\n return null;\n }\n String roleId = preference.getVisibleAtRole().getId();\n return OBDal.getInstance().get(Role.class, roleId);\n }", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }" ]
[ "0.6273712", "0.5985206", "0.5848004", "0.5699568", "0.5685991", "0.5618351", "0.55986667", "0.548766", "0.538082", "0.53670925", "0.5325963", "0.53221464", "0.53214", "0.528275", "0.5265935", "0.5263894", "0.5257011", "0.52522296", "0.524254", "0.5221486", "0.52200013", "0.5204857", "0.5201883", "0.5201082", "0.52006507", "0.5189744", "0.51699156", "0.5143116", "0.511767", "0.5116319", "0.5115332", "0.5107977", "0.50905234", "0.5090318", "0.5073117", "0.50631315", "0.50541073", "0.5043557", "0.50431764", "0.504112", "0.50381947", "0.50290674", "0.50265956", "0.5025722", "0.50236326", "0.5017804", "0.49983254", "0.49833485", "0.49823362", "0.4970188", "0.49661005", "0.49588585", "0.49446595", "0.4944169", "0.49371275", "0.49315822", "0.4921698", "0.49056545", "0.49048957", "0.49027273", "0.48998135", "0.48984453", "0.48929784", "0.4890864", "0.48813117", "0.48778078", "0.4875994", "0.48723933", "0.4872326", "0.48717576", "0.48667914", "0.4865726", "0.4855042", "0.48527503", "0.48504838", "0.4848993", "0.48487064", "0.4841146", "0.4833509", "0.4827502", "0.4823444", "0.48227593", "0.4820127", "0.48121062", "0.4811606", "0.48069644", "0.48022044", "0.48000783", "0.47960883", "0.47917712", "0.4785354", "0.47768056", "0.47754735", "0.47731268", "0.47703043", "0.47678837", "0.47595227", "0.47594488", "0.47500947", "0.47384375" ]
0.76241535
0
Determine the actual value to match, either from the static valueToMatch or from the session.
protected Object determineValueToMatch(Session session) { Object value; if (sessionInteractionParameterToMatch == null) { if (sessionAttributeToMatch == null) { value = valueToMatch; } else { value = session.getAttribute(sessionAttributeToMatch); } } else { value = WorkflowUtilities .getSessionInteractionParameter(session, sessionInteractionParameterToMatch); } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean matchesSafely(T actualValue) {\n return this.matchFn.test(actualValue);\n }", "public Long getSessionValue(String session) { return validSessions.get(session); }", "public static boolean matches(String param, String matchValue) {\n\t\tSystem.out.println(\"[propMatch] Matching \"+param+\" : \"+System.getProperty(param)+\" = \"+matchValue+\" ? \" + matchValue.equalsIgnoreCase(System.getProperty(param)));\n\t\treturn matchValue.equalsIgnoreCase(System.getProperty(param));\n\t}", "public T getValue(UUID player) {\n\t\tT value = values.get(player);\n\t\tif (value == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}", "@SuppressWarnings(\"unchecked\")\n protected <T> T getValFromSession(HttpSession session, String key, Class<T> clsT) {\n if (session == null) {\n return null;\n }\n return (T) session.getAttribute(key);\n }", "protected Object getValFromSession(HttpSession session, String key) {\n if (session == null) {\n return null;\n }\n return session.getAttribute(key);\n }", "public boolean evaluate() {\r\n\t\t\tif (this.isKnownValue()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// handle the case when this.getValue() is null\r\n\t\t\tif (this.getValue() == null) {\r\n\t\t\t\t// if the value is null, then we just need to see if expected evaluation is also null\r\n\t\t\t\treturn this.getCurrentEvaluation() == null;\r\n\t\t\t}\r\n\t\t\t// if entities have the same name, they are equals.\r\n\t\t\tif (this.getCurrentEvaluation().getName().equalsIgnoreCase(this.getValue().getName())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "public String getMatchingAttributeValue()\n\t{\n\t\treturn this.matchingAttributeValue;\n\t}", "float getMatch();", "public LoginMessageRequest getValue() {\n return localValue;\n }", "public LoginMessageRequest getValue() {\n return localValue;\n }", "@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "private <T> T findActual(T matchingObject, List<? extends T> list) {\n T actual = null;\n for (T check : list) {\n if (check.equals(matchingObject)) {\n actual = check;\n }\n }\n return actual;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic V getValue() {\n\t\t\n\t\tif (!valueSet) {\n\t\t\t// If the value has not been set this instance has recently been de-serialized\n\t\t\t\n\t\t\tif (valueIsSerializable) {\n\t\t\t\t// The original value was serializable and will thus have been been de-serialized too\n\t\t\t\tvalue = serializableValue;\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// The original value was NOT serializable so we need to generate it from the raw \n\t\t\t\t// submitted value again.\n\t\t\t\t\n\t\t\t\t// A converter may not be serializable either, so we obtain a new instance as well.\n\t\t\t\t// TODO: Maybe test if converter is serializable and if so keep a reference\n\t\t\t\tConverter converter = RequestParameterProducer.getConverter(requestParameter, targetType);\n\t\t\t\t\n\t\t\t\tObject convertedValue;\n\t\t\t\tif (converter != null) {\n\t\t\t\t\tconvertedValue = converter.getAsObject(getContext(), getViewRoot(), submittedValue);\n\t\t\t\t} else {\n\t\t\t\t\tconvertedValue = submittedValue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tvalue = (V) convertedValue;\n\t\t\t}\n\t\t\t\n\t\t\tvalueSet = true;\n\t\t}\n\t\t\n\t\treturn value;\n\t}", "Object getValueFrom();", "private void matchValues(String vConfValue, String resValue, Comparison comparison, String param) {\r\n\r\n if (vConfValue != null && (Double.parseDouble(vConfValue) == Double.parseDouble(resValue)\r\n || (Double.parseDouble(vConfValue) == (Double.parseDouble(resValue) * m_Fact_1024))\r\n || (Double.parseDouble(resValue) * m_Fact_1000 - Double.parseDouble(vConfValue) <10 ) && (Double.parseDouble(resValue) * m_Fact_1000 - Double.parseDouble(vConfValue) >=0 ) )) {\r\n comparison.setMatchSatus(\"MATCH\");\r\n } else {\r\n comparison.setMatchSatus(\"MISMATCH\");\r\n matchResult = false;\r\n }\r\n }", "protected IExpressionValue possibleVal()throws TableFunctionMalformedException,\r\n\t\t\t\t\t\t\t\t\t\t\t\t SomeStateUndeclaredException {\r\n\r\n\t\tthis.getName();\r\n\t\t\r\n\t\t// Use a list to store already known states or identifiers to evaluate already known values... \r\n//\t\tIExpressionValue ret = new SimpleProbabilityValue(Float.NaN);\r\n\t\tif (this.currentHeader != null) {\r\n\t\t\t// check if this is not a user-defined variable first;\r\n\t\t\tIExpressionValue userDefinedVariableValue = this.currentHeader.getUserDefinedVariable(noCaseChangeValue);\r\n\t\t\tif (userDefinedVariableValue != null) {\r\n\t\t\t\treturn userDefinedVariableValue;\r\n\t\t\t}\r\n\t\t\t// check if this is not another state of current node\r\n\t\t\tfor (TempTableProbabilityCell cell : this.currentHeader.getCellList()) {\r\n\t\t\t\t if (cell.getPossibleValue().getName().equalsIgnoreCase(value) ) {\r\n\t\t\t\t\t // Debug.println(\"\\n => Variable value found: \" + cell.getPossibleValue().getName());\r\n\t\t\t\t\t return cell.getProbability();\r\n\t\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// if null, it means it was called before an assignment\r\n\t\t\tthrow new SomeStateUndeclaredException(getNode().toString());\r\n\t\t}\r\n\t\t\r\n\r\n\r\n\t\t// Debug.println(\"An undeclared possible value or a \\\"varsetname\\\" was used : \" + value);\r\n//\t\treturn ret;\r\n\t\treturn null;\r\n\t}", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "java.lang.String getSearchValue();", "default <T> T match(BiFunction<? super K, ? super V, ? extends T> func) {\n return func.apply(getKey(), getValue());\n }", "@NonNull\n public T getRequestedValue() {\n return mRequestedValue;\n }", "boolean containsValue(Object toFind)\n\t\t{\n\t\t\tif(value != null && toFind.equals(value))\n\t\t\t\treturn true;\n\t\t\tif(nextMap == null)\n\t\t\t\treturn false;\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tif(node.containsValue(toFind))\n\t\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "public boolean match(Answer answer) {\n\t\tif ((answer == null) || (getQuestion() != answer.getQuestion()))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn getValue().equals(answer.getValue());\n\t}", "String getCurrentValue();", "public boolean getValue()\n\t{\n\t\tString tmp;\n\t\tpatt = Pattern.compile(NAME_PATTERN);\n\t\ttmp = name.getText().toString();\n\t\tif(patt.matcher(tmp).matches()){\n\t\t\tvname = tmp;\n\t\t}\n\t\telse{\n\t\t\tname.setError(getString(R.string.error_nameTxt));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\ttmp = home.getText().toString();\n\t\tif(tmp.length()!=0){\n\t\t\tif(patt.matcher(tmp).matches()){\n\t\t\t\tvhome=tmp;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thome.setError(getString(R.string.error_homeTXt));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void setMatchingAttributeValue(String value)\n\t{\n\t\tthis.matchingAttributeValue = value;\n\t}", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "public org.hl7.fhir.Boolean getActual()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().find_element_user(ACTUAL$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\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}", "public String getValue(Player player, String valueToGet) {\n \t\treturn getValue(player.getName(), player.getWorld().getName(),\n \t\t\t\tvalueToGet);\n \t}", "public abstract Object getValue(ELContext context);", "public abstract R getValue();", "private String matchVariable(String key) {\n\t\treturn variables.get(key);\n\t}", "boolean hasCustomValue();", "@Override\r\n public ConceptType getValue()\r\n {\r\n ConceptType value = this.value;\r\n String rawValue = this.getRawValue();\r\n if (null != value && value.getDisplay().equals(rawValue))\r\n return value;\r\n return super.getValue();\r\n }", "@Override\n public boolean equals(final Object obj)\n {\n return this.value.equals(obj);\n }", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "String getValue();", "public abstract Object getDecisionValue();", "private String getCriterionValueValue()\n {\n return getConvertedValue(myCriterionValue.get());\n }", "@Override\n public T getValue() {\n // Returns initial value if source is not set.\n return mLiveDataSource == null ? mInitialValue : mLiveDataSource.getValue();\n }", "public String getValue(String player, String world, String valueToGet) {\n\t\tif (players.containsKey(player))\n\t\t\treturn players.get(player);\n \n \t\tif (world == null || world.equals(\"\")) {\n \t\t\tSystem.err\n \t\t\t\t\t.println(\"[bPermissions] Some silly developer is checking for a blank world!\");\n \t\t\treturn \"BLANKWORLD\";\n \t\t}\n \n \t\tString value = \"\";\n \t\tint priority = -1;\n \t\tfor (String set : wpm.getPermissionSet(world).getPlayerNodes(player) != null ? wpm\n \t\t\t\t.getPermissionSet(world).getPlayerNodes(player)\n \t\t\t\t: new ArrayList<String>()) {\n \t\t\tif (!set.startsWith(\"^\")) {\n \t\t\t\tString name = set;\n \t\t\t\tString[] index = name.split(\"\\\\.\", 4);\n \t\t\t\tif (index.length == 3 && index[0].equals(valueToGet)) {\n \t\t\t\t\tint pr = Integer.parseInt(index[1]);\n \t\t\t\t\tif (pr > priority) {\n \t\t\t\t\t\tvalue = index[2];\n \t\t\t\t\t\tpriority = pr;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tif (!value.equals(\"\") && cache)\n\t\t\tplayers.put(player, value);\n \n \t\treturn value;\n \t}", "public abstract String getValue();", "public abstract String getValue();", "public abstract String getValue();", "public abstract int getPreferredValue();", "public abstract Value getValue();", "ReturnedValueEvaluationCondition getReturnedValue();", "public CompareResults handleUserAction(UserSession userSession, int inputValue) {\n int guessedNumber = userSession.getGuessedNumber();\n if(inputValue == guessedNumber) {\n userSession.addAction(inputValue, CompareResults.EQUAL);\n return CompareResults.EQUAL;\n } else {\n if(inputValue < guessedNumber) {\n userSession.addAction(inputValue, CompareResults.LOWER);\n userSession.setLowerBound(inputValue);\n return CompareResults.LOWER;\n } else {\n userSession.addAction(inputValue, CompareResults.BIGGER);\n userSession.setUpperBound(inputValue);\n return CompareResults.BIGGER;\n }\n }\n }", "@Override\n\t\tpublic Object getValueFrom(Object bean) {\n\t\t\treturn ( (HibernateValidatorEnhancedBean) bean ).$$_hibernateValidator_getFieldValue( name );\n\t\t}", "public abstract T getValue();", "public abstract T getValue();", "boolean isValue();", "public <K, V> V getSpecific(K key, MappingValueKey<V> valueKey);", "public void testGetUserID() {\n String result = \"userid\";\n \n sessionControl.expectAndReturn(session.getUserID(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getUserID(), result);\n }", "@Override\n\tpublic String find() {\n\n\t\tif(test != null && test.getTestData() != null) {\n\t\t\tTestData testData = test.getTestData();\n\t\t\t// check test data in system properties first\n\t\t\tString sys_value = System.getProperty(key);\n\t\t\tif(!StringUtils.isEmpty(sys_value)) {\n\t\t\t\treturn sys_value;\n\t\t\t}\n\n\t\t\t// check test data in system environments\n\t\t\tString sysEnv = System.getenv(key);\n\t\t\tif(!StringUtils.isEmpty(sysEnv)) {\n\t\t\t\treturn sysEnv;\n\t\t\t}\n\t\t\tMap<String, TestDataSource> data = testData.asMap();\n\t\t\t// check test data for override value\n\t\t\tif(data.containsKey(key)) {\n\t\t\t\tString overrideValue = (String) data.get(key).fullfill();\n\t\t\t\tif(!StringUtils.isEmpty(overrideValue.trim())) {\n\t\t\t\t\treturn overrideValue;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(test.getConfig() != null && test.getConfig().containsKey(key)) {\n\t\t\t\t\treturn test.getConfig().get(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}else if(td != null) {\n\t\t\tMap<String, TestDataSource> data = td.asMap();\n\t\t\treturn (String) data.get(key).fullfill();\n\t\t}\n\t\treturn key;\n\t}", "public String getMatchType() {\n return getStringProperty(\"MatchType\");\n }", "@Override\n public boolean raweq(LuaValue val) {\n return val.raweq(v);\n }", "protected abstract void onMatch(String value, Label end);", "private T bestValue(MatchTreeNode<T> node) {\n T value = null;\n if (node != null) {\n if (node.child(\"/\") != null) {\n value = node.child(\"/\").value();\n } else {\n value = bestValue(node.parent());\n }\n }\n return value;\n }", "public Optional<Locale> detect(String rawValue) {\n String value = caseSensitive ? rawValue : rawValue.toLowerCase();\n return Optional.ofNullable(mapping.get(value));\n }", "public T getExactMatch(String arg)\n\t{\n\t\treturn null;\n\t}", "private void findMatch()\n {\n if (this.matchLen > 0) \n {\n this.matchLen += ((this.matchLen - MAX_LENGTH) >>> 31);\n this.matchPos++;\n } \n else \n {\n // Retrieve match position\n this.matchPos = this.hashes[this.hash];\n\n // Detect match\n if ((this.matchPos != 0) && (this.pos - this.matchPos <= MASK2))\n {\n int r = this.matchLen + 1;\n\n while ((r <= MAX_LENGTH) && (this.buffer[(this.pos-r) & MASK2] == this.buffer[(this.matchPos-r) & MASK2])) \n r++;\n\n this.matchLen = r - 1;\n }\n } \n }", "public boolean isValue() {\n switch(this.getType()) {\n case CONSTANT_INTEGER : \n case CONSTANT_FLOAT :\n case CONSTANT_DOUBLE : \n case CONSTANT_LONG : \n case CONSTANT_STRING:\n return true ;\n default :\n return false;\n }\n }", "protected abstract Value evaluate();", "private void matchStringValues(String vConfValue, String resValue, Comparison comparison) {\r\n if (vConfValue != null && resValue != null && vConfValue.equals(resValue)) {\r\n comparison.setMatchSatus(\"MATCH\");\r\n } else {\r\n comparison.setMatchSatus(\"MISMATCH\");\r\n matchResult = false;\r\n }\r\n }", "private static URLMapping getURLMappingByValue(String value, URLMappingEnum urlMappingEnum) {\n\n if (urlMappingEnum == URLMappingEnum.ACTION) {\n\n for (URLMapping urlMapping : urlMappingList) {\n\n if (StringUtils.equals(urlMapping.getSplitKey()[1], ACTION_PREFIX)\n && StringUtils.equals(urlMapping.getFinalValue(), value)) {\n return urlMapping;\n }\n }\n } else {\n\n for (URLMapping urlMapping : urlMappingList) {\n\n if (StringUtils.equals(urlMapping.getSplitKey()[1], PARAM_PREFIX)\n && StringUtils.equals(urlMapping.getValue(), value)) {\n return urlMapping;\n }\n }\n }\n return null;\n }", "public int getMatchingScalar(String token) {\r\n if (getCurrentItem() == null) {\r\n return 0;\r\n }\r\n if (getCurrentItem().getText().equalsIgnoreCase(token)) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "TemplateModel getValue();", "boolean getValue();", "public static FieldMatcher equalColumnValue(String columnToMatch) {\n return (columnName, recordOneField, recordTwoField) -> {\n if (columnToMatch == null || columnToMatch.length() == 0) {\n throw new IllegalArgumentException(\"columnToMatch cannot be null or empty\");\n }\n if (columnToMatch.equals(columnName)) {\n return recordOneField.equals(recordTwoField);\n }\n return true;\n };\n }", "public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }", "public T getValue(Player player) {\n\t\treturn getValue(player.getUniqueId());\n\t}", "private static MatchInfo getMatchInfoStandardSession(int idMatch)\n {\n try\n {\n if( idMatch <= 0)\n {\n //non può essere una partita valida\n return new MatchInfo();\n }\n //match = DAOFactory.getInstance().getMatchDAO().get(idMatch);\n Match match = DAOFactory.getInstance().getMatchDAO().getForMatchInfo(idMatch);\n MatchInfo matchInfo = new MatchInfo();\n matchInfo.load(match);\n // Set values\n return matchInfo;\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving match info\", ex);\n return new MatchInfo();\n }\n }", "@java.lang.Override\n public long getIfMetagenerationMatch() {\n return ifMetagenerationMatch_;\n }", "public Object get(Object obj) throws AspException\n {\n Object queryString = QueryString.get(obj);\n if (!(queryString instanceof UndefinedValueNode)) {\n return queryString;\n }\n Object formValue = Form.get(obj);\n if (!(formValue instanceof UndefinedValueNode)) {\n return formValue;\n }\n Object serverVariable = ServerVariables.get(obj);\n if (!(serverVariable instanceof UndefinedValueNode)) {\n return serverVariable;\n }\n return Constants.undefinedValueNode;\n }", "String getVal();", "public boolean getMatch() {\n\t\treturn false;\n\t}" ]
[ "0.5321319", "0.51917654", "0.5173804", "0.51309705", "0.5121272", "0.5002144", "0.48948386", "0.4848688", "0.4825015", "0.4808902", "0.4808902", "0.48052052", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.47436666", "0.46851006", "0.46788067", "0.46452785", "0.46333477", "0.46302745", "0.46302745", "0.46302745", "0.46022832", "0.45980775", "0.4593573", "0.4587156", "0.45866537", "0.4556562", "0.45280674", "0.45040596", "0.45017898", "0.45017898", "0.45017898", "0.45017898", "0.45017898", "0.45017898", "0.45017502", "0.44968095", "0.44943163", "0.44772562", "0.44601455", "0.44580606", "0.44496414", "0.44472736", "0.44415554", "0.4432576", "0.4432576", "0.4432576", "0.4432576", "0.4432576", "0.4432576", "0.4432576", "0.4432576", "0.4432576", "0.4432576", "0.44305974", "0.44243276", "0.44207394", "0.44197705", "0.4419629", "0.4419629", "0.4419629", "0.44131464", "0.4413105", "0.44108212", "0.4410434", "0.44034493", "0.4399846", "0.4399846", "0.43970135", "0.43948725", "0.4392639", "0.4391414", "0.43863037", "0.43858948", "0.4383947", "0.43797266", "0.4376869", "0.43729672", "0.43677235", "0.4365867", "0.43545344", "0.43529683", "0.43489194", "0.43446845", "0.43375167", "0.43374953", "0.43325913", "0.4326193", "0.43197763", "0.4316828", "0.43088487", "0.43036965", "0.43006587", "0.42985764" ]
0.7584753
0
Get the label to show in the error message for the service key. In most cases, it's just the service key name but when that's not very userfriendly, this can return a different value.
protected static String getServiceKeyLabel(ServiceKey serviceKey) { if (ServiceKey.MASSDELETE.equals(serviceKey)) { return "delete"; } return serviceKey.getServiceName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getLabel(String key){\r\n \tFacesContext context = FacesContext.getCurrentInstance();\r\n \tString el = String.format(\"#{%s['%s']}\", Constantes.RESOURCE_BUNDLE_VAR,key);\r\n return context.getApplication().evaluateExpressionGet(context, el, String.class);\r\n }", "private String getLabel(String labelAudit) {\n\t\tString label = null;\n\t\tif(labelForAuditLabel.containsKey(labelAudit)) {\n\t\t\tlabel = labelForAuditLabel.get(labelAudit);\n\t\t\tif(label != null) {\n\t\t\t\tif(label.isEmpty())\n\t\t\t\t\tlabel = null;\n\t\t\t\telse\n\t\t\t\t\tlabel = messageSource.getMessage(label, null, Locale.getDefault());\n\t\t\t\t\t//messageSource.getMessage(\"label.dati_verbale\", values, Locale.getDefault())\n\t\t\t}\n\t\t} else {\n\t\t\t//LOGGER.info(\"label_mancante\");\n\t\t\tLOGGER.info(labelAudit);\n\t\t\tlabel = \"??key \" + labelAudit + \" not found??\";\n\t\t}\n\t\treturn label;\n\t}", "net.zyuiop.ovhapi.api.objects.license.Option getServiceNameOptionLabel(java.lang.String serviceName, java.lang.String label) throws java.io.IOException;", "protected Label getLabel(String key) {\n\t\treturn labels.get(key);\n\t}", "public String getClassLabel(String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "java.lang.String getLabelsOrThrow(java.lang.String key);", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "public String getErrorTextKey()\n {\n return errorTextKey;\n }", "public String getMessage() {\n return \"☹ OOPS!!! There isn't a task labeled \" + label;\n }", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "public static String getLabelBundle(String key){\r\n \tFacesContext context = FacesContext.getCurrentInstance();\r\n \tResourceBundle bundle = context.getApplication().getResourceBundle(context, Constantes.RESOURCE_BUNDLE_VAR);\r\n \treturn bundle.getString(key);\r\n }", "public AgnTagErrorKey getErrorKey() {\n\t\treturn errorKey;\n\t}", "public String getMessage(String key) {\n return messages.getProperty(key);\n }", "public static String getMessage(String key) {\n return getMessage(key, null);\n }", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }", "@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the last character\n return StringUtilsHelper.toResourceMessageKey((dotIndex < (type.length() - 1)) ? type.substring(dotIndex + 1) : type);\n\n }", "public String getAddVehicleGroupValidationMessage() {\r\n String str = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Please Input Valid Group Name\"), SHORTWAIT);\r\n\t\t return str;\r\n\t}", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTextVehicleGroupNameValidationMessage() {\r\n\t\tString str = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Please Input Vehicle Group Name\"), SHORTWAIT);\r\n\t\treturn str;\r\n\t}", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "String getFormFieldLabel();", "private String getMessage(String msgKey, Object... values) {\n String msg;\n try {\n msg = systemMessages.getString(msgKey);\n }\n catch (MissingResourceException ex) {\n return \"Error in data service: \" + msgKey;\n }\n\n return MessageFormat.format(msg, values);\n }", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getKey(DLabel key) {\n return key.getKey();\n }", "public String getLabel() {\r\n return lbl;\r\n }", "public YangString getServiceValue() throws JNCException {\n return (YangString)getValue(\"service\");\n }", "public YangString getServiceValue() throws JNCException {\n return (YangString)getValue(\"service\");\n }", "private static String getMessage(String key)\n {\n return mh.getMessage(key);\n }", "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }", "java.lang.String getLabel();", "@java.lang.Override\n public java.lang.String getLabelsOrThrow(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "@java.lang.Override\n public java.lang.String getLabelsOrThrow(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "@java.lang.Override\n public java.lang.String getLabelsOrThrow(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "@java.lang.Override\n public java.lang.String getLabelsOrThrow(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();\n if (!map.containsKey(key)) {\n throw new java.lang.IllegalArgumentException();\n }\n return map.get(key);\n }", "@Override\r\n\t\t\tpublic Object getKey() {\n\t\t\t\treturn service;\r\n\t\t\t}", "@Override\n public final String getMsg(final String key) {\n try {\n return messages.getString(key);\n } catch (Exception e) {\n return \"[\" + key + \"]\";\n }\n }", "public java.lang.String getLabel();", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.ads.googleads.v6.resources.Label getLabel();", "public String getTextVehicleGroupNamevalidationMessage() {\r\n\t\t\tString str = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Vehicle group name already exists.\"), MEDIUMWAIT);\r\n\t\t\treturn str;\r\n\t\t}", "public String getSystemExceptionLabel() {\n\t\treturn systemExceptionLabel;\n\t}", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n return s;\n }\n }", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "String getGetErrorAppTag();", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public String getDescriptiveServiceName() {\n if (serviceAbbreviation != null) {\n return serviceAbbreviation;\n }\n return serviceFullName;\n }", "private static String getMessage(String key, Object... o) {\n String msg = getLogger().getResourceBundle().getString(key);\n return MessageFormat.format(msg, o);\n }", "protected String getResourceString(String key)\r\n\t\t\tthrows MissingResourceException {\r\n\t\treturn StripesFilter.getConfiguration().getLocalizationBundleFactory()\r\n\t\t\t\t.getErrorMessageBundle(locale).getString(key);\r\n\t\t\r\n\t}", "private String getKey()\r\n\t\t{\r\n\t\t\tif (key != null)\r\n\t\t\t{\r\n\t\t\t\treturn key.toString();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn \"The key has not been found\";\r\n\t\t\t}\r\n\t\t}", "public String getMessage() {\n return getMessage(this.key, (Object[]) null, this.key, (Locale) null);\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "@Nullable private String getAltText() {\n\n //\n // First see what the user tried\n //\n String value = altTxt;\n if (null != value && 0 != value.length()) {\n return value;\n }\n\n //\n // Try the request\n //\n value = getServiceName();\n if (null != value && 0 != value.length()) {\n return value;\n }\n\n return DEFAULT_ALT_TXT;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getFormattedReceiptLabel() {\t \n\t String receiptLabel = res.getString(getReceiptLabel().getKey());\t \n\t int numberOfSpaces = ((totalLength - receiptLabel.length()) / 2);\t \n\t String prefix = \"\";\n\t String postfix = \"\";\n\t for(int i = 0; i < numberOfSpaces; i++) {\n\t\t prefix += \" \";\n\t\t postfix += \" \";\n\t }\n\t receiptLabel = prefix + receiptLabel + postfix;\t \n\t return receiptLabel;\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "com.google.ads.googleads.v6.resources.AdGroupLabel getAdGroupLabel();", "private String getLabel() {\n return this.label;\n }", "@Override\n public String getLabel() {\n return label;\n }", "public static String getString(String key) {\r\n\t\ttry {\r\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn \"Message retrieval error, please notify an administrator.\";\r\n\t\t}\r\n\t}", "public String getLabel()\n { \n return label;\n }", "String getLabel();", "String getLabel();", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "String getLabel() {\n return label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel()\n {\n return m_label;\n }", "@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();", "public final String getLabelCode() {\r\n\t\tString label = this.label;\r\n\t\tif (StringUtil.isEmpty(label))\r\n\t\t\treturn \"\";\r\n\t\tStringBuilder labelCode = new StringBuilder();\r\n\t\tint startIndex = 0;\r\n\t\tfor (int i=0; i<label.length();i++) {\r\n\t\t\tif (label.charAt(i) >= 'A' && label.charAt(i)<= 'Z') {\r\n\t\t\t\tif (startIndex!=0) {\r\n\t\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t\t}\r\n\t\t\t\tlabelCode.append(label.substring(startIndex, i).toLowerCase());\r\n\t\t\t\tstartIndex = i;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (startIndex<label.length()) {\r\n\t\t\tif (startIndex!=0) {\r\n\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t}\r\n\t\t\tlabelCode.append(label.substring(startIndex).toLowerCase());\r\n\t\t}\r\n\t\treturn labelCode.toString();\r\n\t}", "public String getLabelName() {\n return m_labelName;\n }", "public String getLabel()\n {\n return label;\n }", "com.google.ads.googleads.v6.resources.CustomerLabel getCustomerLabel();", "public String getLabel() {\n return AsteriskUtlities.toContextIdentifier(username + \"-\" + company);\n }", "public String getLabel() {\n return label;\n }" ]
[ "0.6484646", "0.6344522", "0.62656736", "0.61661595", "0.6071727", "0.6033372", "0.6033372", "0.6033372", "0.6033372", "0.59685117", "0.59589714", "0.5912778", "0.5884962", "0.5854934", "0.58423734", "0.5836592", "0.5817977", "0.5806481", "0.5806481", "0.57788265", "0.57752305", "0.57622814", "0.57549286", "0.5731882", "0.5716174", "0.57030636", "0.57026696", "0.56952775", "0.5690925", "0.5676629", "0.5676629", "0.5675415", "0.56749284", "0.5664083", "0.56397283", "0.56397283", "0.5639683", "0.5639683", "0.5631571", "0.563028", "0.5617859", "0.5608411", "0.5598696", "0.55947196", "0.55896103", "0.558936", "0.558936", "0.55868715", "0.55835366", "0.5564286", "0.55608886", "0.5531099", "0.5531099", "0.55160224", "0.5514699", "0.5506017", "0.55036026", "0.54956573", "0.5495163", "0.5483064", "0.5480161", "0.5479349", "0.5479349", "0.5479349", "0.5473323", "0.5473323", "0.545257", "0.5448156", "0.5437274", "0.5421498", "0.5421498", "0.5421498", "0.5415247", "0.5412568", "0.5412568", "0.5412568", "0.5412568", "0.5409965", "0.5405294", "0.5405294", "0.5405294", "0.5405294", "0.54033965", "0.54016185", "0.5397225", "0.53860456", "0.5382437", "0.53765106", "0.53765106", "0.536869", "0.53686666", "0.53672385", "0.53669125", "0.5364419", "0.53577065", "0.5353904", "0.5353038", "0.53514546", "0.53507733", "0.5349708" ]
0.7419093
0
Create the error message to return when the value doesn't match, or when rejectWhenMatches is specified and the value does match.
protected String createErrorMessage( ServiceKey serviceKey, SchemaNode selectionTableNode, Session session, NonMatchingResult nonMatchingResult) { Locale locale = session.getLocale(); String serviceKeyLabel = getServiceKeyLabel(serviceKey); StringBuilder bldr = new StringBuilder("Cannot ").append(serviceKeyLabel) .append(" ") .append(selectionTableNode.getLabel(locale)); HierarchyNode hierarchyNode = nonMatchingResult.getNonMatchingHierarchyNode(); if (hierarchyNode == null) { bldr.append(" record ") .append(nonMatchingResult.getNonMatchingRecord().getLabel(locale)); } else { if (hierarchyNode.isEnumerationNode()) { bldr.append(" node ").append(hierarchyNode.getEnumerationValue()); } else { bldr.append(" record "); Adaptation record; if (nonMatchingResult.isNonMatchOnJoinRecord()) { record = hierarchyNode.getJoinOccurrence(); } else { record = hierarchyNode.getOccurrence(); } bldr.append(record.getLabel(locale)); } } bldr.append(". "); if (rejectWhenMatches) { bldr.append("Cannot "); } else { bldr.append("Can only "); } Adaptation record; if (hierarchyNode == null) { record = nonMatchingResult.getNonMatchingRecord(); } else if (hierarchyNode.isEnumerationNode()) { record = hierarchyNode.getParentHierarchyNode().getOccurrence(); } else if (nonMatchingResult.isNonMatchOnJoinRecord()) { record = hierarchyNode.getJoinOccurrence(); } else { record = hierarchyNode.getOccurrence(); } SchemaNode fieldNode = record.getSchemaNode().getNode(fieldPath); bldr.append(serviceKeyLabel).append(" when ").append(fieldNode.getLabel(locale)); Object objToMatch = determineValueToMatch(session); if (NOT_NULL.equals(objToMatch)) { bldr.append(" has a value"); } else if (objToMatch == null) { bldr.append(" has no value"); } else { bldr.append(" is "); if (objToMatch instanceof Collection) { bldr.append("one of the values ["); Iterator<?> iter = ((Collection<?>) objToMatch).iterator(); while (iter.hasNext()) { bldr.append(iter.next()); if (iter.hasNext()) { bldr.append(", "); } } bldr.append("]"); } else { bldr.append(objToMatch); } } bldr.append("."); return bldr.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String failedMatcherMessage() {\n return \"FAILED!\";\n }", "String getInvalidMessage();", "@Factory\n public static <T extends Throwable> Matcher<T> withMessage(final Matcher<String> matcher) {\n return new CustomTypeSafeMatcher<T>(CustomMatchers.fixedDescription(\"message \", matcher)) {\n @Override\n protected boolean matchesSafely(T item) {\n return matcher.matches(item.getMessage());\n }\n\n public void describeMismatchSafely(T item, Description mismatchDescription) {\n matcher.describeMismatch(item.getMessage(), mismatchDescription);\n }\n };\n }", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "public String getInvalidPasswordMessage() {\n if (invalidPassword) {\n return getInvalidMessage(INVALID_PASSWORD_MSG);\n }\n if (passwordMismatch) {\n return getInvalidMessage(PASSWORD_MISMATCH_MSG);\n }\n if (generalFailure) {\n return getInvalidMessage(GENERAL_FAILURE_MSG);\n }\n return \"\";\n }", "String getFailureMessage();", "public String getInvalidTouAgreeMessage() {\n if (invalidTermsAgreement) {\n if (isLearnSphere) {\n return LS_ACCEPT_TERMS_MSG;\n } else {\n return ACCEPT_TERMS_MSG;\n }\n }\n return \"\";\n }", "public static ConfigValidationError valueError(\n String configField, String configValue, String message) {\n // Set oldValue to null\n return new ConfigValidationError(configField, null, configValue, message);\n }", "public Message generateInvalidMoveMessage() {\n Message moveMessage = new Message(false, -1,\n \"ERROR: It is not your turn or the space you have chosen is full.\");\n return moveMessage; \n }", "@Override\n public String getMessage() {\n return ErrorMessage.INVALID_NEGATIVE_PRICE_ERROR;\n }", "public static String getMessage(IPatternMatch match, boolean generatedMatcher) {\r\n \t\tif (generatedMatcher) {\r\n \t\t\treturn getMessageForGeneratedMatcher(match);\r\n \t\t}\r\n \t\telse {\r\n \t\t\treturn getMessageForGenericMatcher(match);\r\n \t\t}\r\n \t}", "public String createErrorMessage(CommandSender sender, MCommand command);", "protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n errorMessage_ = value;\n onChanged();\n return this;\n }", "private static ArrayList<String> patternMatch(String error, Pattern pat, String message) {\n //Pattern pattern = Pattern.compile(pat.toLowerCase());\n Matcher matcher = pat.matcher(message.toLowerCase());\n\n //There is a match with the supplied pattern\n if (matcher.find()) {\n ArrayList<String> matches = new ArrayList<String>();\n //Include message on first index\n matches.add(error);\n\n //Message has no variables, return solely the error / warning string\n if (matcher.groupCount() == 0)\n return matches;\n\n //Group all variables into one string\n String messageVariables = \"\";\n for (int i = 1; i <= matcher.groupCount(); i++) {\n if (i + 1 <= matcher.groupCount())\n messageVariables = messageVariables + Utils.removeLineBreaks(matcher.group(i)) + \" | \";\n else\n messageVariables = messageVariables + Utils.removeLineBreaks(matcher.group(i));\n }\n matches.add(messageVariables.toLowerCase());\n\n return matches;\n }\n\n return null;\n }", "String getErrorMessage();", "String getErrorMessage();", "private String formatError(String message) {\n return \"error : \" + message;\n }", "private static HttpCarbonMessage createErrorMessage(String responseValue, int statusCode) {\n\n HttpCarbonMessage response = createHttpCarbonMessage();\n if (responseValue != null) {\n byte[] array;\n try {\n array = responseValue.getBytes(\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n throw new HttpSourceAdaptorRuntimeException(\"Error sending response.\", e);\n }\n ByteBuffer byteBuffer = ByteBuffer.allocate(array.length);\n byteBuffer.put(array);\n response.setHeader(HttpHeaderNames.CONTENT_LENGTH.toString(), String.valueOf(array.length));\n byteBuffer.flip();\n response.addHttpContent(new DefaultLastHttpContent(Unpooled.wrappedBuffer(byteBuffer)));\n }\n response.setHttpStatusCode(statusCode);\n response.setProperty(DIRECTION, DIRECTION_RESPONSE);\n return response;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate String getInvalidMsg() {\n\t\t\n\t\tString retMsg = null;\n\t\t\n\t\tfinal HashSet<Integer>[] pOrders = new HashSet[] {\n\t\t\tnew HashSet<Integer>(8),\t//channel 0\n\t\t\tnew HashSet<Integer>(8),\t//channel 1\n\t\t\tnew HashSet<Integer>(8),\t//channel 2\n\t\t\tnew HashSet<Integer>(8)\t\t//channel 3\n\t\t};\n\t\t\n\t\tfor( int i = 0; i < getTableModel().getRowCount(); i++ ) {\n\t\t\tVideoEntry ve = getTableModel().getRowAt(i);\n\t\t\t\n\t\t\tfor( int j = 0; j < ve.getPlayOrder().length; j++ ) {\n\t\t\t\tif( pOrders[ve.getChannel()].contains(ve.getPlayOrder()[j]))\n\t\t\t\t\treturn \"Duplicate play order found for the \" + UIUtils.CRLF\n\t\t\t\t\t\t+ \" theme '\" + ve.getFileName()\n\t\t\t\t\t\t+ \"', choose a different play order.\";\n\n\t\t\t\tpOrders[ve.getChannel()].add( ve.getPlayOrder()[j] );\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif( getTableModel().getRowCount() <= 0 )\n\t\t\tretMsg = \"At least one theme file must be in this play list\";\n\t\t\n\t\treturn retMsg;\n\t}", "private String errorMessage() {\n\n StringBuilder strBuilder = new StringBuilder();\n strBuilder.append(eventBasedXorGatewayNode + \" => eventBasedXorGatewayNode \\n\");\n strBuilder.append(intermediateEvent1Node + \" => intermediateEvent1Node \\n\");\n strBuilder.append(intermediateEvent2Node + \" => intermediateEvent2Node \\n\");\n strBuilder.append(endNode1 + \" => endNode1 \\n\");\n strBuilder.append(endNode2 + \" => endNode2 \\n\");\n\n return strBuilder.toString();\n }", "public InvalidOptionChoice(String message) { super(message); }", "private String makeIllegalArgumentExceptionMessage(Object owner, String methodName, Object argument) {\n\n StringBuilder builder = new StringBuilder();\n\n String message = errorMessagePreamble(owner, methodName, argument);\n builder.append(message);\n\n builder.append(\" should have worked but did not. Please contact the tech team and tell it to change the jvm.\");\n\n return builder.toString();\n }", "String getErrorMessage(E input);", "protected abstract String getMessage();", "public Builder setErrmsg(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n errmsg_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorMessage_ = value;\n onChanged();\n return this;\n }", "public TurnBasedMultiplayer.CancelMatchResult createFailedResult(final Status status) {\n return new TurnBasedMultiplayer.CancelMatchResult() {\n /* class com.google.android.gms.games.internal.api.TurnBasedMultiplayerImpl.CancelMatchImpl.AnonymousClass1 */\n\n @Override // com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer.CancelMatchResult\n public String getMatchId() {\n return CancelMatchImpl.this.zzKI;\n }\n\n @Override // com.google.android.gms.common.api.Result\n public Status getStatus() {\n return status;\n }\n };\n }", "@Override\n\tpublic String getFailureMessage() {\n\t return null;\n\t}", "String errorMessage();", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "private void matchStringValues(String vConfValue, String resValue, Comparison comparison) {\r\n if (vConfValue != null && resValue != null && vConfValue.equals(resValue)) {\r\n comparison.setMatchSatus(\"MATCH\");\r\n } else {\r\n comparison.setMatchSatus(\"MISMATCH\");\r\n matchResult = false;\r\n }\r\n }", "@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull String invalidInput) {\n/* 57 */ if (NumberUtils.isNumber(invalidInput)) {\n/* 58 */ return getFailedValidationText(context, NumberUtils.createNumber(invalidInput));\n/* */ }\n/* 60 */ return getInputNotNumericText(context, invalidInput);\n/* */ }", "private RedisSMQException validationException(Object value, String cause) {\n\t\treturn new RedisSMQException(\"Value \" + value + \" \" + cause);\n\t}", "private static String buildMessageString(InvalidValue[] invalidValues) {\n StringBuilder strb = new StringBuilder();\n for (InvalidValue iv : invalidValues) {\n strb.append(\"\\n\").append(iv.getMessage());\n }\n return strb.toString();\n }", "String failureReason();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "default V getOrThrow(String message) {\n return Conditions.nonNull(get(), message);\n }", "public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tpercentInputValidator.validate(name, value);\n\t\t} catch (ParameterException e) {\n\t\t\tresult = e.getMessage();\n\t\t}\n\t\tLOG.debug(\"result:\" + result);\n\t\tAssert.assertTrue(!result.equals(referenceResult));\n\t}", "@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) {\n/* 87 */ return null;\n/* */ }", "@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}", "public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "public ExtensionPredicateEvaluationFailedErrorBuilder message(final String message) {\n this.message = message;\n return this;\n }", "@Override\n void assertErrorMessage(String messageText) {\n }", "protected static Value canonicalize(Value v) {\n if (Options.get().isDebugOrTestEnabled()) { // checking representation invariants\n String msg = null;\n if ((v.flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) != 0 && v.str != null)\n msg = \"fixed string and flags inconsistent\";\n else if ((v.flags & STR_PREFIX) != 0 && (v.str == null || v.str.isEmpty()))\n msg = \"prefix string inconsistent\";\n else if ((v.flags & NUM) != 0 && v.num != null)\n msg = \"number facet inconsistent\";\n else if (v.num != null && Double.isNaN(v.num))\n msg = \"number constant is NaN\";\n else if (v.object_labels != null && v.object_labels.isEmpty())\n msg = \"empty set of object labels\";\n else if (v.getters != null && v.getters.isEmpty())\n msg = \"empty set of getters\";\n else if (v.setters != null && v.setters.isEmpty())\n msg = \"empty set of setters\";\n else if (v.excluded_strings != null && v.excluded_strings.isEmpty())\n msg = \"empty set of excluded strings\";\n else if (v.included_strings != null && v.included_strings.isEmpty())\n msg = \"empty set of included strings\";\n else if (v.included_strings != null && v.included_strings.size() <= 1)\n msg = \"invalid number of included strings\";\n else if (v.excluded_strings != null && v.included_strings != null)\n msg = \"has both excluded strings and included strings\";\n else if ((v.flags & UNKNOWN) != 0 && ((v.flags & ~UNKNOWN) != 0 || v.str != null || v.num != null\n || (v.object_labels != null && !v.object_labels.isEmpty())\n || (v.getters != null && !v.getters.isEmpty())\n || (v.setters != null && !v.setters.isEmpty())))\n msg = \"'unknown' inconsistent with other flags\";\n else if (v.var != null && ((v.flags & PRIMITIVE) != 0 || v.str != null || v.num != null\n || (v.object_labels != null && !v.object_labels.isEmpty())\n || (v.getters != null && !v.getters.isEmpty())\n || (v.setters != null && !v.setters.isEmpty())))\n msg = \"mix of polymorphic and ordinary value\";\n else if ((v.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) != 0 && v.var == null)\n msg = \"PRESENT set for non-polymorphic value\";\n else if (v.excluded_strings != null && (v.flags & STR) == 0)\n msg = \"excluded strings present without fuzzy strings\";\n else if (v.included_strings != null && (v.flags & STR) == 0)\n msg = \"included_strings present without fuzzy strings\";\n if (msg != null)\n throw new AnalysisException(\"Invalid value (0x\" + Integer.toHexString(v.flags) + \",\"\n + Strings.escape(v.str) + \",\" + v.num + \",\" + v.object_labels\n + \",\" + v.getters + \",\" + v.setters + \",\" + (v.excluded_strings != null ? Strings.escape(v.excluded_strings) : null)\n + \",\" + (v.included_strings != null ? Strings.escape(v.included_strings) : null) + \"), \" + msg);\n if (Options.get().isPolymorphicDisabled() && v.isPolymorphic())\n throw new AnalysisException(\"Unexpected polymorphic value\");\n }\n canonicalizing = true;\n if (v.object_labels != null)\n v.object_labels = Canonicalizer.get().canonicalizeSet(v.object_labels);\n if (v.getters != null)\n v.getters = Canonicalizer.get().canonicalizeSet(v.getters);\n if (v.setters != null)\n v.setters = Canonicalizer.get().canonicalizeSet(v.setters);\n if (v.excluded_strings != null)\n v.excluded_strings = Canonicalizer.get().canonicalizeStringSet(v.excluded_strings);\n if (v.included_strings != null)\n v.included_strings = Canonicalizer.get().canonicalizeStringSet(v.included_strings);\n v.hashcode = v.computeHashCode();\n Value cv = Canonicalizer.get().canonicalize(v);\n canonicalizing = false;\n return cv;\n }", "public static String chosenCard2IsNull() {\n return \"The second card you chose is invalid, please select again: \";\n }", "private static ArrayList<String> processMessage(String message, ArrayList<Pattern> patterns, ArrayList<String> errorMessages) {\n int numPatterns = patterns.size();\n ArrayList<String> matchInformation;\n\n for (int i = 0; i < numPatterns; i++) {\n matchInformation = patternMatch(errorMessages.get(i), patterns.get(i), message);\n if(matchInformation != null && matchInformation.size() > 1)\n //if (matchInformation != null)\n return matchInformation;\n }\n\n message = Utils.removeLineBreaks(message);\n\n //There was no match for known patterns, returning original message only\n matchInformation = new ArrayList<String>();\n matchInformation.add(message);\n return matchInformation;\n }", "public void testGetProblemRejectReason_accuracy() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(null);\r\n assertEquals(\"The method getProblemRejectReason does not function correctly.\", null,\r\n exception.getProblemRejectReason());\r\n exception = new RejectReasonNotFoundException(null, null, reason);\r\n assertEquals(\"The method getProblemRejectReason does not function correctly.\", reason,\r\n exception.getProblemRejectReason());\r\n }", "@NonNull\n protected static List<RaveError> checkStringDef(\n boolean isNullable, @NonNull ValidationContext validationContext, @Nullable String value, String...\n acceptableValues) {\n List<RaveError> errors = checkNullable(value, isNullable, validationContext);\n if (value == null) {\n return errors;\n }\n\n for (String string : acceptableValues) {\n if (value.equals(string)) {\n return Collections.<RaveError>emptyList();\n }\n }\n return createStringDefError(value, acceptableValues, validationContext);\n }", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "@Override\n protected SimpleMessage prepareMessage() {\n SimpleMessage message = super.prepareMessage();\n message.setContent(onFailure());\n return message;\n }", "public ValidationFailure(String message) {\n this.message = message;\n }", "public String getAddVehicleGroupValidationMessage() {\r\n String str = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Please Input Valid Group Name\"), SHORTWAIT);\r\n\t\t return str;\r\n\t}", "@Override\n public String getMessage() {\n return \"Invalid token of \" + token + \" entered\";\n }", "public void addErrorMessage(ConstraintViolation<?> constraintViolation, Widget widget) {\n\t\tSpanElement msg = DOM.createSpan().cast();\n\t\tmsg.setInnerText(constraintViolation.getMessage());\n\t\tmsg.addClassName(\"help-block\");\n\t\twidget.getElement().getParentElement().appendChild(msg );\n\t}", "private String buildMessage(MqttNotification notification, String value) {\n if (notification != null) {\n if (notification.getOption().getRule().equals(\"#\")) {\n return value.toUpperCase();\n } else {\n return value.toUpperCase() + \" ( \" + getComparisonString(notification.getOption().getRule()) + \" \"\n + notification.getOption().getThreshold() + \" )\";\n }\n }\n return \"\";\n }", "@Override\n public final String toString() {\n return ErrorMessages.invalidOperation(getMessage());\n }" ]
[ "0.6049678", "0.5729521", "0.5423897", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5227517", "0.5207401", "0.51963204", "0.5195819", "0.51841086", "0.51500624", "0.5094022", "0.5051997", "0.5016112", "0.5009297", "0.5002233", "0.4994978", "0.4994978", "0.4993139", "0.4965604", "0.49655318", "0.49455285", "0.4936161", "0.49281806", "0.49236965", "0.49114272", "0.4906107", "0.48960215", "0.48814997", "0.48713273", "0.48632312", "0.48621556", "0.4861576", "0.4861576", "0.4861576", "0.4861576", "0.4861576", "0.4861576", "0.4861576", "0.4861576", "0.4861576", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48610437", "0.48561236", "0.48439085", "0.48366395", "0.4830324", "0.48240888", "0.48117402", "0.48117402", "0.48117402", "0.48117402", "0.48093817", "0.48069313", "0.47876763", "0.47784796", "0.47784522", "0.47752506", "0.47668785", "0.4752922", "0.47500706", "0.47379065", "0.47352296", "0.4732115", "0.4729905", "0.47290552", "0.47195658", "0.47105116", "0.4700887", "0.46996206", "0.46907797", "0.46849105", "0.4677567", "0.46689636", "0.46631557" ]
0.6124634
0
Loop over all selected hierarchy nodes until a nonmatching one is found
@Override protected NonMatchingResult processSelection( TableEntitySelection selection, Session session) { Iterator<HierarchyNode> hierarchyNodeIter = ((HierarchyEntitySelection) selection) .getSelectedHierarchyNodes(); HierarchyNode nonMatchingHierarchyNode = null; while (nonMatchingHierarchyNode == null && hierarchyNodeIter.hasNext()) { HierarchyNode hierarchyNode = hierarchyNodeIter.next(); if (!matchHierarchyNode(hierarchyNode, session)) { nonMatchingHierarchyNode = hierarchyNode; } } if (nonMatchingHierarchyNode == null) { return null; } return new NonMatchingResult(nonMatchingHierarchyNode, useJoinRecord); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inOrderTraverseRecursive();", "private ArrayList<ContentNode> findDescendants(Node currentNode, ArrayList<ContentNode> allNodes) throws RepositoryException {\n NodeIterator iterator = currentNode.getNodes();\n\n while (iterator.hasNext()) {\n Node nextNode = iterator.nextNode();\n\n if (nextNode.isNode() && !nextNode.isNodeType(\"hippofacnav:facetnavigation\")) {\n if (!nextNode.getNodes().hasNext()) {\n allNodes.add(new ContentNode(nextNode.getName(), nextNode.getProperties()));\n log.info(\"Added descendant node; \" + nextNode.getName());\n }\n findDescendants(nextNode, allNodes);\n }\n }\n\n return allNodes;\n }", "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "public void inOrderTraverseIterative();", "public List<T> wantedNodesIterative(Predicate<T> p) {\n //PART 4 \n if(root == null){\n return null;\n }\n LinkedList<TreeNode<T>> stack = new LinkedList<>();\n stack.add(root);\n \n List<T> wantedNodes =new LinkedList<>();\n TreeNode<T> current;\n \n while(!stack.isEmpty()){\n current = stack.pop();\n if(p.check(current.data)){\n wantedNodes.add(current.data);\n }\n if(current.right != null){\n stack.addFirst(current.right);\n }\n if(current.left != null){\n stack.addFirst(current.left);\n }\n }\n return wantedNodes;\n }", "@Test\n public void testTraverseDescendants() {\n System.out.println(\"testTraverseDescendants\");\n List<Person> people = dao.listDescendants(\"KWCB-HZV\", 10, \"\");\n assertIdsEqual(descendants, people);\n }", "Iterable<T> followNodeAndSelef(T start) throws NullPointerException;", "protected abstract void traverse();", "public void depthFirstTraverse() {\n\t\tInteger first = (Integer) edges.keySet().toArray()[0];\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\tdepthFirstTraverse(first, visited);\n\t}", "private static void checkRecurseUnordered(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1306 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1307 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.1\", new Object[] {\n/* 1308 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1309 */ Integer.toString(max1), \n/* 1310 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1311 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1314 */ int count1 = dChildren.size();\n/* 1315 */ int count2 = bChildren.size();\n/* */ \n/* 1317 */ boolean[] foundIt = new boolean[count2];\n/* */ \n/* 1319 */ for (int i = 0; i < count1; i++) {\n/* 1320 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* */ \n/* 1322 */ int k = 0; while (true) { if (k < count2) {\n/* 1323 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* */ try {\n/* 1325 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* 1326 */ if (foundIt[k]) {\n/* 1327 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* 1329 */ foundIt[k] = true;\n/* */ \n/* */ \n/* */ break;\n/* 1333 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ k++;\n/* */ continue;\n/* */ } \n/* 1337 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1341 */ for (int j = 0; j < count2; j++) {\n/* 1342 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1343 */ if (!foundIt[j] && !particle2.emptiable()) {\n/* 1344 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* */ } \n/* */ }", "Iterable<T> followNode(T start) throws NullPointerException;", "public Iterator<Node> findPath() throws GraphException{\n\t\t\n\t\t// create a start and end node\n\t\tNode begin = this.graph.getNode(this.start);\n\t\tNode finish = this.graph.getNode(this.end);\n\t\t// check to make sure a path exits between these nodes\n\t\tboolean test = findPath(begin, finish);\n\t\tif(test){\n\t\t\t// reset the variables of the map that were changed by invoking the findPath helper method\n\t\t\tthis.testLine = \"Luka<3<3\";\n\t\t\tthis.changeCount = -1;\n\t\t\t//return the iterator over the Stack of the Map that was modified by the findPath helper method\n\t\t\treturn this.S.iterator();\n\t\t}\n\t\t// return null if a path does not exist\n\t\treturn null;\n\t}", "private static void checkRecurse(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1258 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1259 */ throw new XMLSchemaException(\"rcase-Recurse.1\", new Object[] {\n/* 1260 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1261 */ Integer.toString(max1), \n/* 1262 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1263 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1266 */ int count1 = dChildren.size();\n/* 1267 */ int count2 = bChildren.size();\n/* */ \n/* 1269 */ int current = 0;\n/* 1270 */ for (int i = 0; i < count1; i++) {\n/* */ \n/* 1272 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* 1273 */ int k = current; while (true) { if (k < count2) {\n/* 1274 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* 1275 */ current++;\n/* */ try {\n/* 1277 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* */ \n/* */ break;\n/* 1280 */ } catch (XMLSchemaException e) {\n/* 1281 */ if (!particle2.emptiable())\n/* 1282 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null); \n/* */ } k++; continue;\n/* */ } \n/* 1285 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1289 */ for (int j = current; j < count2; j++) {\n/* 1290 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1291 */ if (!particle2.emptiable()) {\n/* 1292 */ throw new XMLSchemaException(\"rcase-Recurse.2\", null);\n/* */ }\n/* */ } \n/* */ }", "public void updateChildNodes() {\n\t\tList<FTNonLeafNode> nodesToRemove = new ArrayList<FTNonLeafNode>();\n\t\tfor (FTNonLeafNode intermediateNode : intermediateNodes.values()) {\n\t\t\tList<FTNode> childNodesToRemove = new ArrayList<FTNode>();\n\t\t\tfor (String childName : intermediateNode.childNodes.keySet()) {\n\t\t\t\tif (intermediateNodes.containsKey(childName)) {\n\t\t\t\t\t// update child node if it has child node\n\t\t\t\t\tFTNonLeafNode childNode = intermediateNodes.get(childName);\n\t\t\t\t\tif ((childNode instanceof FTOrNode) || (childNode instanceof FTAndNode)) {\n\t\t\t\t\t\tintermediateNode.addChildNode(childName, intermediateNodes.get(childName));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// if parent node is an OR node\n\t\t\t\t\t\t// remove this child\n\t\t\t\t\t\tif (intermediateNode instanceof FTOrNode) {\n\t\t\t\t\t\t\tchildNodesToRemove.add(childNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if parent node is an AND node\n\t\t\t\t\t\t// remove the parent node and child node\n\t\t\t\t\t\t// and set their values to false in case they are referenced by other nodes\n\t\t\t\t\t\telse if (intermediateNode instanceof FTAndNode) {\n\t\t\t\t\t\t\tnodesToRemove.add(intermediateNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t\t// mark the nodes as they are not getting removed till after the loop\n\t\t\t\t\t\t\tintermediateNode.resolved = true;\n\t\t\t\t\t\t\tintermediateNode.nodeValue = false;\n\t\t\t\t\t\t\tchildNode.resolved = true;\n\t\t\t\t\t\t\tchildNode.nodeValue = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tintermediateNode.removeChildNodes(childNodesToRemove);\n\t\t\t// if no child node left for this intermediate node,\n\t\t\t// then its parent node should remove this intermediate node as well\n\t\t}\n\t\t// remove the no child nodes\n\t\tfor (FTNonLeafNode node : nodesToRemove) {\n\t\t\tintermediateNodes.remove(node.nodeName);\n\t\t}\n\t}", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "private static void checkRecurseLax(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1357 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1358 */ throw new XMLSchemaException(\"rcase-RecurseLax.1\", new Object[] {\n/* 1359 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1360 */ Integer.toString(max1), \n/* 1361 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1362 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1365 */ int count1 = dChildren.size();\n/* 1366 */ int count2 = bChildren.size();\n/* */ \n/* 1368 */ int current = 0;\n/* 1369 */ for (int i = 0; i < count1; i++) {\n/* */ \n/* 1371 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* 1372 */ int j = current; while (true) { if (j < count2) {\n/* 1373 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1374 */ current++;\n/* */ \n/* */ \n/* */ try {\n/* 1378 */ if (particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler)) {\n/* 1379 */ current--;\n/* */ }\n/* */ break;\n/* 1382 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ j++;\n/* */ continue;\n/* */ } \n/* 1386 */ throw new XMLSchemaException(\"rcase-RecurseLax.2\", null); }\n/* */ \n/* */ } \n/* */ }", "public void RecursiveExpansion() throws TreeTooBigException {\r\n int transIndex; //Index to count transitions\r\n int[] newMarkup; //markup used to create new node\r\n boolean aTransitionIsEnabled = false; //To check for deadlock\r\n //Attribute used for assessing whether a node has occured before\r\n boolean repeatedNode = false; \r\n \r\n boolean allOmegas = false;\r\n \r\n boolean[] enabledTransitions = \r\n tree.dataLayer.getTransitionEnabledStatusArray(markup);\r\n\r\n //For each transition\r\n for (int i = 0; i < enabledTransitions.length; i++) {\r\n if (enabledTransitions[i] == true) {\r\n //Set transArray of to true for this index\r\n transArray[i] = true;\r\n \r\n //System.out.println(\"\\n Transition \" + i + \" Enabled\" );\r\n aTransitionIsEnabled = true;\r\n \r\n //print (\"\\n Old Markup is :\", markup);//debug\r\n \r\n //Fire transition to produce new markup vector\r\n newMarkup = fire(i);\r\n \r\n //print (\"\\n New Markup is :\", newMarkup);//debug\r\n \r\n //Check for safeness. If any of places have > 1 token set variable.\r\n for (int j = 0; j < newMarkup.length; j++) {\r\n if (newMarkup[j] > 1 || newMarkup[j] == -1) {\r\n tree.moreThanOneToken = true;\r\n break;\r\n }\r\n } \r\n \r\n //Create a new node using the new markup vector and attach it to\r\n //the current node as a child.\r\n children[i] = \r\n new myNode(newMarkup, this, tree, depth + 1);\r\n \r\n /* Now need to (a) check if any omegas (represented by -1) need to \r\n * be inserted in the markup vector of the new node, and (b) if the \r\n * resulting markup vector has appeared anywhere else in the tree. \r\n * We must do (a) before (b) as we need to know if the new node \r\n * contains any omegas to be able to compare it with existing nodes. \r\n */ \r\n allOmegas = children[i].InsertOmegas();\r\n \r\n //check if the resulting markup vector has occured anywhere else in the tree\r\n repeatedNode = (tree.root).FindMarkup(children[i]);\r\n \r\n if (tree.nodeCount >= Pipe.MAX_NODES && !tree.tooBig) {\r\n tree.tooBig = true;\r\n throw new TreeTooBigException();\r\n }\r\n \r\n if (!repeatedNode && !allOmegas) {\r\n children[i].RecursiveExpansion();\r\n }\r\n }\r\n }\r\n \r\n if (!aTransitionIsEnabled) {\r\n System.err.println(\"No transition enabled\");\r\n if (!tree.noEnabledTransitions || tree.pathToDeadlock.length < depth-1) {\r\n RecordDeadlockPath();\r\n tree.noEnabledTransitions = true;\r\n } else {\r\n System.err.println(\"Deadlocked node found, but path is not shorter\"\r\n + \" than current path.\");\r\n }\r\n } else {\r\n //System.out.println(\"Transitions enabled.\");\r\n }\r\n }", "public Vector<Node> GetAdditionalSubNodes();", "private void rootTreeIterate(Element rootNode) throws DocumentException {\n\n Iterator rootIterator = rootNode.elementIterator();\n\n while (rootIterator.hasNext()) {\n\n Element node = (Element) rootIterator.next();\n\n if (node.getName().equals(TABLE_NODE)) {\n processTableNode(node);\n } else if (node.getName().equals(CLASS_NODE)) {\n processClassNode(node);\n } else if (node.getName().equals(CLASS_PARENT_NODE)) {\n processClassParentNode(node);\n } else if (node.getName().equals(PROPERTY_NODE)) {\n processPropertyNode(node);\n } else if (node.getName().equals(PROPERTY_PARENT_NODE)) {\n processPropertyParentNode(node);\n } else {\n throw new DocumentException(\"Node with illegal name \\\"\" + node.getName() + \"\\\" found\");\n }\n }\n }", "public static void main(String[] args) {\n\n MultiChildTreeNode<String> ff = new MultiChildTreeNode<>(\"F\");\n MultiChildTreeNode<String> iff = new MultiChildTreeNode<>(\"I\");\n ff.children.add(iff);\n MultiChildTreeNode<String> kff = new MultiChildTreeNode<>(\"K\");\n ff.children.add(kff);\n MultiChildTreeNode<String> t2 = ff;//Subtree to find\n\n //Main tree\n MultiChildTreeNode<String> t1 = new MultiChildTreeNode<>(\"A\");\n MultiChildTreeNode<String> b = new MultiChildTreeNode<>(\"B\");\n MultiChildTreeNode<String> c = new MultiChildTreeNode<>(\"C\");\n MultiChildTreeNode<String> d = new MultiChildTreeNode<>(\"D\");\n t1.children.add(b);\n t1.children.add(c);\n t1.children.add(d);\n\n MultiChildTreeNode<String> e = new MultiChildTreeNode<>(\"E\");\n MultiChildTreeNode<String> h = new MultiChildTreeNode<>(\"H\");\n e.children.add(h);\n\n MultiChildTreeNode<String> f = new MultiChildTreeNode<>(\"F\");\n b.children.add(f);\n MultiChildTreeNode<String> i = new MultiChildTreeNode<>(\"I\");\n f.children.add(i);\n MultiChildTreeNode<String> j = new MultiChildTreeNode<>(\"J\");\n f.children.add(j);\n\n\n /**\n * A\n * / | \\\n * B C.. D...\n * / |\n *E.. F\n * / \\\n * I J\n * |\n * F\n * / \\\n * I K\n */\n j.children.add(ff); //commenting out this line should give false otherwise true\n\n MultiChildTreeNode<String> k = new MultiChildTreeNode<>(\"K\");\n MultiChildTreeNode<String> g = new MultiChildTreeNode<>(\"G\");\n b.children.add(e);\n\n b.children.add(g);\n MultiChildTreeNode<String> l = new MultiChildTreeNode<>(\"L\");\n c.children.add(k);\n c.children.add(l);\n\n MultiChildTreeNode<String> m = new MultiChildTreeNode<>(\"M\");\n MultiChildTreeNode<String> n = new MultiChildTreeNode<>(\"N\");\n MultiChildTreeNode<String> o = new MultiChildTreeNode<>(\"O\");\n d.children.add(m);\n d.children.add(n);\n d.children.add(o);\n CheckForSubTree<String> checker = new CheckForSubTree<>();\n System.out.println (checker.isSubTree(t1, t2));\n }", "protected void scanNodesForRecursion(Cell cell, HashSet<Cell> markCellForNodes, NodeProto [] nil, int start, int end)\n \t{\n \t\tfor(int j=start; j<end; j++)\n \t\t{\n \t\t\tNodeProto np = nil[j];\n \t\t\tif (np instanceof PrimitiveNode) continue;\n \t\t\tCell otherCell = (Cell)np;\n \t\t\tif (otherCell == null) continue;\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (markCellForNodes.contains(otherCell)) continue;\n \n \t\t\tLibraryFiles reader = this;\n \t\t\tif (otherCell.getLibrary() != cell.getLibrary())\n \t\t\t\treader = getReaderForLib(otherCell.getLibrary());\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (reader != null)\n \t\t\t\treader.realizeCellsRecursively(otherCell, markCellForNodes, null, 0);\n \t\t}\n \t\tmarkCellForNodes.add(cell);\n \t}", "private void renderDownPaths(Node n)\n {\n\tif (n.siblings.size()==0) {\n\t renderPath(n);\n\t return;\n\t}\n\n\tVectorIterator vi = new VectorIterator(n.siblings);\n\twhile (vi.hasNext()) {\n\t Node s = (Node)(vi.next());\n\t renderDownPaths(s);\n\t}\n }", "void traverseLevelOrder1() {\n\t\tint h = height(root);\n\t\tint i;\n\t\tfor (i = 1; i <= h; i++)\n\t\t\tprintGivenLevel(root, i);\n\t}", "private void awayFromAncestorCycle(Graph graph) {\n while (changeFlag) {\n changeFlag = false;\n List<Node> nodes = graph.getNodes();\n\n for (Node B : nodes) {\n List<Node> adj = graph.getAdjacentNodes(B);\n\n if (adj.size() < 2) {\n continue;\n }\n\n ChoiceGenerator cg = new ChoiceGenerator(adj.size(), 2);\n int[] combination;\n\n while ((combination = cg.next()) != null) {\n Node A = adj.get(combination[0]);\n Node C = adj.get(combination[1]);\n\n //choice gen doesnt do diff orders, so must switch A & C around.\n awayFromAncestor(graph, A, B, C);\n awayFromAncestor(graph, C, B, A);\n awayFromCycle(graph, A, B, C);\n awayFromCycle(graph, C, B, A);\n }\n }\n }\n changeFlag = true;\n }", "private void getAllNodesBreadthFirstSearch(List<Expression> nodesList)\n/* */ {\n/* 156 */ int indx = 0;\n/* 157 */ nodesList.add(this);\n/* */ \n/* 159 */ while (indx < nodesList.size()) {\n/* 160 */ Expression node = (Expression)nodesList.get(indx++);\n/* 161 */ for (Expression child : node.childs) {\n/* 162 */ nodesList.add(child);\n/* */ }\n/* */ }\n/* */ }", "public static void loadTree() throws NotBoundException, MalformedURLException, RemoteException, ClassNotFoundException, SQLException, InterruptedException {\n\n List<Object> ob1 = new ArrayList<>();\n ob1.add(1);\n ob1.add(1);\n//db Access1 \n List<List<Object>> sspFindMultyResult1 = ServerConnection.getServerConnector().searchMultipleResults(ob1, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n DefaultTreeModel model = (DefaultTreeModel) jTree1.getModel();\n\n DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();\n\n for (List<Object> sspFindMultyResults1 : sspFindMultyResult1) {\n DefaultMutableTreeNode dmtn1 = new DefaultMutableTreeNode(sspFindMultyResults1.get(1) + \"-\" + sspFindMultyResults1.get(3));\n root.add(dmtn1);\n\n List<Object> ob2 = new ArrayList<>();\n ob2.add(2);\n ob2.add(sspFindMultyResults1.get(0));\n//db Access2\n List<List<Object>> sspFindMultyResult2 = ServerConnection.getServerConnector().searchMultipleResults(ob2, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults2 : sspFindMultyResult2) {\n DefaultMutableTreeNode dmtn2 = new DefaultMutableTreeNode(sspFindMultyResults2.get(1) + \"-\" + sspFindMultyResults2.get(3));\n dmtn1.add(dmtn2);\n dmtn1.getLevel();\n\n List<Object> ob3 = new ArrayList<>();\n ob3.add(3);\n ob3.add(sspFindMultyResults2.get(0));\n//db Access3\n List<List<Object>> sspFindMultyResult3 = ServerConnection.getServerConnector().searchMultipleResults(ob3, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults3 : sspFindMultyResult3) {\n DefaultMutableTreeNode dmtn3 = new DefaultMutableTreeNode(sspFindMultyResults3.get(1) + \"-\" + sspFindMultyResults3.get(3));\n dmtn2.add(dmtn3);\n\n List<Object> ob4 = new ArrayList<>();\n ob4.add(4);\n ob4.add(sspFindMultyResults3.get(0));\n//db Access4\n List<List<Object>> sspFindMultyResult4 = ServerConnection.getServerConnector().searchMultipleResults(ob4, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults4 : sspFindMultyResult4) {\n DefaultMutableTreeNode dmtn4 = new DefaultMutableTreeNode(sspFindMultyResults4.get(1) + \"-\" + sspFindMultyResults4.get(3));\n dmtn3.add(dmtn4);\n\n List<Object> ob5 = new ArrayList<>();\n ob5.add(5);\n ob5.add(sspFindMultyResults4.get(0));\n//db Access5 \n List<List<Object>> sspFindMultyResult5 = ServerConnection.getServerConnector().searchMultipleResults(ob5, \"ssp_GL_LoadCombo_ActTree\", 4);\n\n for (List<Object> sspFindMultyResults5 : sspFindMultyResult5) {\n DefaultMutableTreeNode dmtn5 = new DefaultMutableTreeNode(sspFindMultyResults5.get(1) + \"-\" + sspFindMultyResults5.get(3));\n dmtn4.add(dmtn5);\n\n }\n }\n }\n }\n }\n model.reload(root);\n }", "public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}", "NodeVector getMatchingAncestors(\n XPathContext xctxt, int node, boolean stopAtFirstFound)\n throws javax.xml.transform.TransformerException\n {\n\n NodeSetDTM ancestors = new NodeSetDTM(xctxt.getDTMManager());\n XPath countMatchPattern = getCountMatchPattern(xctxt, node);\n DTM dtm = xctxt.getDTM(node);\n\n while (DTM.NULL != node)\n {\n if ((null != m_fromMatchPattern)\n && (m_fromMatchPattern.getMatchScore(xctxt, node)\n != XPath.MATCH_SCORE_NONE))\n {\n\n // The following if statement gives level=\"single\" different \n // behavior from level=\"multiple\", which seems incorrect according \n // to the XSLT spec. For now we are leaving this in to replicate \n // the same behavior in XT, but, for all intents and purposes we \n // think this is a bug, or there is something about level=\"single\" \n // that we still don't understand.\n if (!stopAtFirstFound)\n break;\n }\n\n if (null == countMatchPattern)\n System.out.println(\n \"Programmers error! countMatchPattern should never be null!\");\n\n if (countMatchPattern.getMatchScore(xctxt, node)\n != XPath.MATCH_SCORE_NONE)\n {\n ancestors.addElement(node);\n\n if (stopAtFirstFound)\n break;\n }\n\n node = dtm.getParent(node);\n }\n\n return ancestors;\n }", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "public void resetVisited() {\r\n\t\tvisited = false;\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tif (!visited)\r\n\t\t\t\tcontinue;\r\n\t\t\tchild.resetVisited();\r\n\t\t}\r\n\t}", "private List findDeepestNodes(Node root)\n\t {\n\t\t Object[] levelInformation = new Object[2];\n\t\t levelInformation[0] = 0;\n\t\t levelInformation[1] = new ArrayList();\n\t\t findDeepestNodes(root, 1, levelInformation);\n\t\t return (List) levelInformation[1];\n\t }", "@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }", "Iterator<CtElement> descendantIterator();", "public boolean continueTraversal() \r\n\t{\r\n\treturn true;\r\n\t}", "static void iterativeDfs(Node startingNode) {\n Set<Node> markedAsVisited = new HashSet<>();\n\n // creates a stack for piling up the nodes to visit\n ArrayDeque<Node> toBeVisited = new ArrayDeque<>();\n\n // sets the starting node as to be visited\n toBeVisited.push(startingNode);\n\n // adds the starting node to the set of marked as visited nodes\n markedAsVisited.add(startingNode);\n\n // while there nodes to visit\n while (!toBeVisited.isEmpty()) {\n\n // gets the current node\n Node current = toBeVisited.pop();\n\n // processes the node\n System.out.print(\"Node \" + current.val + \", \");\n\n // loops over the neighbours of the current node\n for (Node neighbour: current.neighbours) {\n\n // if the neighbour has not been already visited\n if (! markedAsVisited.contains(neighbour)) {\n\n // adds the neighbour to the ones to be visited\n toBeVisited.push(neighbour);\n\n // adds the neighbour to the set of marked as visited nodes\n markedAsVisited.add(neighbour);\n }\n }\n }\n }", "private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}", "private Stack<ShuffleDependency<?, ?, ?>> getMissingAncestorShuffleDependencies(RDD<?> rdd) {\n Stack<ShuffleDependency<?, ?, ?>> ancestors = new Stack<>();\n Set<RDD<?>> visited = Sets.newHashSet();\n // We are manually maintaining a stack here to prevent StackOverflowError\n // caused by recursively visiting\n Stack<RDD<?>> waitingForVisit = new Stack<>();\n waitingForVisit.push(rdd);\n while (waitingForVisit.size() > 0) {\n RDD<?> toVisit = waitingForVisit.pop();\n if (!visited.contains(toVisit)) {\n visited.add(toVisit);\n Set<ShuffleDependency<?, ?, ?>> shuffleDependencies = getShuffleDependencies(toVisit);\n if (shuffleDependencies == null || shuffleDependencies.size() == 0) {\n continue;\n }\n shuffleDependencies.forEach(shuffleDep -> {\n if (!shuffleIdToMapStage.containsKey(shuffleDep.shuffleId())) {\n ancestors.push(shuffleDep);\n waitingForVisit.push(shuffleDep.rdd());\n }\n });\n }\n }\n return ancestors;\n }", "private void findNeighbour(int offset) {\n TreeNodeImpl node = (TreeNodeImpl) projectTree.getLastSelectedPathComponent();\n TreePath parentPath = projectTree.getSelectionPath().getParentPath();\n NodeList list = (NodeList) node.getParent().children();\n\n for (int i = 0; i < list.size(); ++i) {\n if (list.get(i).equals(node)) {\n if (offset > 0 && i < list.size() - offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n if (offset < 0 && i >= offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n }\n }\n }", "private List<List<Edge>> walker(String sourceNode, String destNode, List<Edge> currentPath, List<List<Edge>> paths) {\n if (currentPath == null) {\n currentPath = new ArrayList<>();\n }\n if (paths == null) {\n paths = new ArrayList<>();\n }\n\n if (sourceNode.equals(destNode)) {\n return paths;\n }\n\n\n// List<Edge> edges = findByNodeA(sourceNode);\n List<Edge> edges = allEdges.stream().filter(edge -> edge.nodeA.equals(sourceNode)).collect(Collectors.toList());\n\n\n for (Edge edge : edges) {\n if (!currentPath.contains(edge)&&!containsBidirectionalRef(currentPath,edge)) {\n List<Edge> forkPath = (List<Edge>) ((ArrayList<Edge>) currentPath).clone();\n\n forkPath.add(edge);\n\n if (edge.getNodeB().equals(destNode)) {\n paths.add(forkPath);\n } else {\n walker(edge.getNodeB(), destNode,forkPath,paths);\n }\n }\n }\n\n return paths;\n }", "@Override\n public boolean shouldContinueSwitchedRootFound() {\n return false;\n }", "public abstract Collection<Node> getAllSuccessors();", "public synchronized Iterator<E> iteratorDownAll()\n {\n if (isEmpty())\n return new CNullIterator<E>();\n\n return new NodeIteratorDown<E>(this, this.m_LastNode, this.m_FirstNode.m_Element);\n }", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "@Test\n @Ignore\n public void testTraverseAncestors() {\n System.out.println(\"testTraverseAncestors\");\n List<Person> people = dao.listAncestors(\"KWCB-HZV\", 10, \"\", false);\n assertIdsEqual(ancestors, people);\n }", "private void findNext() {\n \tthis.find(true);\n }", "@Test\n public void whenAddTwoNodesOnDifferentLevelsThenNextFromBottomLevel() {\n tree.addChild(nodeOne, \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n Iterator iter = tree.iterator();\n assertThat(iter.next(), is(\"2\"));\n }", "public void refineTR(){\n ArrayList<Node> prevLevelNodes = new ArrayList<>();\n ArrayList<Node> currentLevelNodes;\n services.clear();\n prevLevelNodes.add(endNode);\n while (true){\n currentLevelNodes = new ArrayList<>();\n for (Node n: prevLevelNodes){\n //System.out.println(n.isDummy());\n if (!n.isDummy()){\n //System.out.println(n.getService().getSubServices().size());\n for (AbstractService as: n.getService().getSubServices())\n services.add(as.getAbstractServices().get(0));\n }\n for (Node n1: n.getTraceTR()){\n currentLevelNodes.add(n1);\n }\n }\n if (currentLevelNodes.isEmpty())break;\n prevLevelNodes = currentLevelNodes;\n }\n this.generateDependencyGraph();\n //this.findOptimalResponseTime();\n this.findOptimalThroughput();\n }", "void findSearchOrder() {\n boolean filled = false;\n for(int node: queryGraphNodes.keySet()) {\n\n vertexClass vc = queryGraphNodes.get(node);\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n filled = calcOrdering(edge);\n if (filled)\n break;\n }\n if(searchOrderSeq.size() == queryGraphNodes.size())\n break;\n\n }\n\n }", "public static void inOrderTraverse(Node root) {\n\t\tStack<Node> stack = new Stack<Node>();\n\t\tNode node = root;\n\t\twhile (node!=null || !stack.empty()) {\n if(node!=null){\n \t stack.push(node);\n \t node = node.lchild;\n }else{\n \t node = stack.pop();\n \t node.visit();\n \t node = node.rchild;\n }\n\t\t}\n\t}", "protected abstract Node[] getAllNodes();", "private TreePath findEmptyGroup(JTree tree, TreePath parent) {\r\n TreeNode node = (TreeNode)parent.getLastPathComponent();\r\n if (node != null && (node.getChildCount() <= 0 && node.getAllowsChildren())){\r\n return new TreePath( new Integer( 0 ) );\r\n \r\n }else{\r\n Object o = node;\r\n if (node.getChildCount() >= 0) {\r\n for (Enumeration e=node.children(); e.hasMoreElements(); ) {\r\n TreeNode n = (TreeNode)e.nextElement();\r\n TreePath path = parent.pathByAddingChild(n);\r\n TreePath result = findEmptyGroup(tree, path);\r\n if(result!=null)\r\n return result;\r\n // Found a match\r\n }\r\n }\r\n }\r\n return null;\r\n }", "Collection<Node> allNodes();", "@Override\r\n\tpublic Iterator<T> iteratorLevelOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tQueue<BSTNode<T>> work = new ArrayDeque<BSTNode<T>>();\r\n\t\twork.add(this.root);//start at the root\r\n\r\n\t\twhile(!work.isEmpty()) {\r\n\t\t\tBSTNode<T> node = work.remove();//pop the first\r\n\t\t\tlist.add(node.data);\r\n\t\t\t\r\n\t\t\tif(node.left!= null) {\r\n\t\t\t\twork.add(node.left);\r\n\t\t\t}\r\n\t\t\tif(node.right!= null) {\r\n\t\t\t\twork.add(node.right);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list.iterator();\r\n\t}", "@Override\r\n public Iterator<NamedTreeNode<T>> iterator()\r\n {\r\n return new Iterator<NamedTreeNode<T>>()\r\n {\r\n NamedTreeNode<T> n = (NamedTreeNode<T>)getLeftNode();\r\n @Override\r\n public boolean hasNext()\r\n {\r\n return n != null;\r\n }\r\n @Override\r\n public NamedTreeNode<T> next()\r\n {\r\n if( n == null ) {\r\n throw new NoSuchElementException();\r\n }\r\n NamedTreeNode<T> r = n;\r\n n = (NamedTreeNode<T>)n.getRightNode();\r\n return r;\r\n }\r\n @Override\r\n public void remove()\r\n {\r\n throw new UnsupportedOperationException();\r\n }\r\n };\r\n }", "private void listChildren(Node current) {\n if(current instanceof Element){ //finds the element tags in the XML document with XOM parser\n Element temp = (Element) current;\n switch(temp.getQualifiedName()) {\n case (\"grapes\"): //grapes tag doesn't do anything in particular except instantiating the file\n break;\n\n case (\"grape\"):\n createGrape(temp);\n break;\n\n case (\"seed\"):\n createSeed(temp);\n break;\n\n default:\n throw new IllegalArgumentException(\"Invalid input in XML \" ); //any other element type is not supported in our XML formatted file\n }\n }\n\n for (int i = 0; i < current.getChildCount(); i++) {\n listChildren(current.getChild(i)); //recursive call traverses the XML document in preorder\n }\n\n }", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "public abstract TreeIter<T> iterator();", "public void selectParents1() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }", "public abstract List<Node> getChildNodes();", "public void inOrderTraversal() {\n beginAnimation();\n treeInOrderTraversal(root);\n stopAnimation();\n\n }", "void updateAllParentsBelow();", "public void descendentsNodes(Node N, int element) {\n if (searchNodes(N, element)) {\n if (N.getData() == element) {\n printLDRNodes(N.getLeft());\n printLDRNodes(N.getRight());\n System.out.println();\n } else {\n descendentsNodes(N.getLeft(), element);\n descendentsNodes(N.getRight(), element);\n }\n }\n }", "private void getAllDescendants(DodlesActor root, HashMap<String, DodlesActor> result) {\n result.put(root.getName(), root);\n\n if (root instanceof BaseDodlesViewGroup) {\n BaseDodlesViewGroup group = (BaseDodlesViewGroup) root;\n\n for (Actor child : (SnapshotArray<Actor>) group.getChildren()) {\n getAllDescendants((DodlesActor) child, result);\n }\n }\n }", "void findCriteriaChains(PlanNode root, List<PlanNode> foundNodes, AnalysisRecord analysisRecord)\n throws QueryPlannerException, TeiidComponentException {\n\n PlanNode recurseRoot = root;\n if(root.getType() == NodeConstants.Types.SELECT) {\n \t\n // Walk to end of the chain and change recurse root\n while(recurseRoot.getType() == NodeConstants.Types.SELECT) {\n \t// Look for opportunities to replace with a semi-join \n \trecurseRoot = planMergeJoin(recurseRoot, root);\n \tif (root.getChildCount() == 0) {\n \t\troot = recurseRoot.getFirstChild();\n \t\tif (root.getType() != NodeConstants.Types.SELECT) {\n \t\t\troot = root.getParent();\n \t\t}\n \t}\n \trecurseRoot = recurseRoot.getFirstChild();\n }\n\n // Ignore trivial 1-node case\n if(recurseRoot.getParent() != root) {\n // Found root for chain\n foundNodes.add(root);\n }\n }\n \n if (recurseRoot.getType() != NodeConstants.Types.ACCESS) {\n for (PlanNode child : recurseRoot.getChildren()) {\n findCriteriaChains(child, foundNodes, analysisRecord);\n }\n }\n }", "boolean hasRecursive();", "default boolean hasChildren() {\n return iterator().hasNext();\n }", "static int findUnion(int i) {\n int result = i;\n while(parent[result] != result)\n result = parent[result];\n\n // update all parents of i to result\n while(parent[i] != i) {\n int temp = parent[i];\n parent[i] = result;\n i = temp;\n }\n return result;\n }", "Pair<String,LeafNode> chooseNode(T i){\n Set<Map.Entry<String, Identifier>> s= leafInfos.entrySet();\n Identifier page=null;\n LeafNode ln = null;\n for(Map.Entry<String,Identifier> p: s){\n TriangleShape t = triangleEncoder.parse(p.getKey());\n if(Geom2DSuits.contains(t,i.getLowerBound(),i.getUpperBound())){\n ln = readNode(p.getValue());\n return new Pair<String,LeafNode>(p.getKey(),ln);\n }\n\n// int r = test(t,(Interval)i);\n// if(r==0)\n// continue;\n// else{\n// page = p.getValue();\n// if(page.longValue()!=-1)\n// ln = readNode(page);\n// else{\n// ln = new LeafNode();\n// }\n// return new Pair<String,LeafNode>(p.getKey(),ln);\n// }\n }\n\n //2. there is no leaf node that contains i, scan the emptyNodes only when the insertion is running\n int k=0;\n for(String str: emptyNodes){\n TriangleShape t = triangleEncoder.parse(str);\n if(Geom2DSuits.contains(t,i.getLowerBound(),i.getUpperBound())){\n String sss = emptyNodes.remove(k);\n ln = new LeafNode();\n ln.triangle = t;\n return new Pair<String,LeafNode>(sss,ln);\n }\n ++k;\n }\n\n //3. error\n assert false;\n return new Pair<String,LeafNode>(null,null);\n }", "private void depthFirstSearch(Slot start, ArrayList<Pair<Slot, Slot>> moves, HashMap<Slot, Slot> parents) {\n boolean[][] visitedSlots = new boolean[Board.MAX_ROW][Board.MAX_COLUMN];\n\n setSlotsAsNotVisited(visitedSlots);\n\n Stack<Slot> dfsStack = new Stack<>();\n int color = start.getColor();\n\n dfsStack.push(start);\n Slot previous = start;\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), Slot.EMPTY);\n\n while (!dfsStack.empty()) {\n Pair<Slot, Slot> next;\n Slot current = dfsStack.pop();\n\n if (!visitedSlots[current.getRow()][current.getColumn()] && !current.equals(previous)) {\n if (!current.equals(start)) {\n visitedSlots[current.getRow()][current.getColumn()] = true;\n }\n\n next = new Pair<>(start, current);\n\n moves.add(next);\n }\n\n Slot up = getUp(current);\n Slot down = getDown(current);\n Slot left = getLeft(current);\n Slot right = getRight(current);\n\n if (left != null && !visitedSlots[left.getRow()][left.getColumn()]) {\n if (!isChild(current, left, parents)) {\n dfsStack.push(left);\n parents.put(left, current);\n }\n }\n\n if (down != null && !visitedSlots[down.getRow()][down.getColumn()]) {\n if (!isChild(current, down, parents)) {\n dfsStack.push(down);\n parents.put(down, current);\n }\n }\n\n if (right != null && !visitedSlots[right.getRow()][right.getColumn()]) {\n if (!isChild(current, right, parents)) {\n dfsStack.push(right);\n parents.put(right, current);\n }\n }\n\n if (up != null && !visitedSlots[up.getRow()][up.getColumn()]) {\n if (!isChild(current, up, parents)) {\n dfsStack.push(up);\n parents.put(up, current);\n }\n }\n\n previous = current;\n }\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), color);\n }", "@Test\n public void testWhenHierarchyContainsUnreachableNodes() {\n ClassInformation info = ClassInformation.postRenameInfoFor(false, \"A\", \"B\", null);\n\n ClassHierarchy hierarchy = new ClassHierarchyBuilder().build();\n hierarchy.add(info);\n\n HierarchyVerificationResult result = verifier.verifyHierarchy(hierarchy);\n assertFalse(result.success);\n assertTrue(result.foundUnreachableNodes);\n assertEquals(2, result.numberOfUnreachableNodes);\n }", "public void determinePartitions( Callback c ){\n mCurrentDepth = 0;\n GraphNode node;\n GraphNode child;\n int depth = 0;\n List levelList = new java.util.LinkedList();\n int i = 0;\n //they contain those nodes whose parents have not been traversed as yet\n //but the BFS did it.\n List orphans = new java.util.LinkedList();\n\n\n //set the depth of the dummy root as 0\n mRoot.setDepth( mCurrentDepth );\n\n mQueue.addLast( mRoot );\n\n while( !mQueue.isEmpty() ){\n node = (GraphNode)mQueue.getFirst();\n depth = node.getDepth();\n if( mCurrentDepth < depth ){\n\n if( mCurrentDepth > 0 ){\n //we are done with one level!\n constructPartitions( c, levelList, mCurrentDepth );\n }\n\n\n //a new level starts\n mCurrentDepth++;\n levelList.clear();\n }\n mLogger.log( \"Adding to level \" + mCurrentDepth + \" \" + node.getID(),\n LogManager.DEBUG_MESSAGE_LEVEL);\n levelList.add( node );\n\n //look at the orphans first to see if any\n //of the dependency has changed or not.\n /*it = orphans.iterator();\n while(it.hasNext()){\n child = (GraphNode)it.next();\n if(child.parentsBlack()){\n child.setDepth(depth + 1);\n System.out.println(\"Set depth of \" + child.getID() + \" to \" + child.getDepth());\n\n child.traversed();\n mQueue.addLast(child);\n }\n\n //remove the child from the orphan\n it.remove();\n }*/\n\n\n node.setColor( GraphNode.BLACK_COLOR );\n for( Iterator it = node.getChildren().iterator(); it.hasNext(); ){\n child = (GraphNode)it.next();\n if(!child.isColor( GraphNode.GRAY_COLOR ) &&\n child.parentsColored( GraphNode.BLACK_COLOR )){\n mLogger.log( \"Adding to queue \" + child.getID(),\n LogManager.DEBUG_MESSAGE_LEVEL );\n child.setDepth( depth + 1 );\n child.setColor( GraphNode.GRAY_COLOR );\n mQueue.addLast( child );\n }\n /*else if(!child.isTraversed() && !child.parentsBlack()){\n //we have to do the bumping effect\n System.out.println(\"Bumping child \" + child);\n orphans.add(child);\n }*/\n }\n node = (GraphNode)mQueue.removeFirst();\n mLogger.log( \"Removed \" + node.getID(),\n LogManager.DEBUG_MESSAGE_LEVEL);\n }\n\n //handle the last level of the BFS\n constructPartitions( c, levelList, mCurrentDepth );\n\n\n //all the partitions are dependant sequentially\n for( i = mCurrentDepth; i > 1; i-- ){\n constructLevelRelations( c, i - 1, i );\n\n }\n\n done( c );\n }", "public static void depthFirstSearchIterative(ArrayList<Node> graph) {\n\t\tSystem.out.println(\"DFS Iterative:\");\n\t\tif(graph.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tGraphUtils.cleanGraph(graph);\n\n\t\tDeque<Node> stack = new ArrayDeque<Node>();\n\t\tfor(Node node : graph) {\n\t\t\tif(node.state != Node.State.UNDISCOVERED) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnode.state = Node.State.DISCOVERED;\n\t\t\tstack.push(node);\n\t\t\twhile(!stack.isEmpty()) {\n\t\t\t\tnode = stack.pop();\n\t\t\t\t\n\t\t\t\t//process node\n\t\t\t\tSystem.out.print(node.name + \" -> \");\n\t\t\t\t\n\t\t\t\tfor(Edge e : node.edges) {\n\t\t\t\t\t//process edge\n\t\t\t\t\tNode neighbor = e.getNeighbor(node);\n\t\t\t\t\t\n\t\t\t\t\t//first time we see this node it gets added to the stack for later processing\n\t\t\t\t\tif(neighbor.state == Node.State.UNDISCOVERED) {\n\t\t\t\t\t\tneighbor.state = Node.State.DISCOVERED;\n\t\t\t\t\t\tstack.push(neighbor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//finished with this node\n\t\t\t\tnode.state = Node.State.COMPLETE;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\tGraphUtils.cleanGraph(graph);\n\t}", "private void runLoopCheck(HashMap<IconMain, Set<IconMain>> connections, IconMain iconFrom) {\n visited.add(iconFrom);\n if (connections.containsKey(iconFrom)) {\n Set<IconMain> set = connections.get(iconFrom);\n\n for (IconMain iconTo : set) {\n while (!iconTo.iconType.equals(\")\")) {\n if (visited.contains(iconTo)) {\n break;\n }\n runLoopCheck(connections, iconTo);\n }\n visited.add(iconTo);\n }\n }\n }", "public boolean GO ()\r\n\t{\r\n\t\t\r\n\t\t for (GenericTreeNode<String> node : ActualNode.getChildren()) {\r\n\t\t\t if (node.getData().equalsIgnoreCase(Navigation_WHERE)){\r\n\t\t\t\t Path.add(new GenericTreeNode<String>(ActualNode));\r\n\t\t\t\t ActualNode=new GenericTreeNode<String>(node);\r\n\t\t\t return true;\r\n\t\t\t }\r\n\t }\r\n\t\t return false;\r\n\t}", "public void expandAllNodes(JTree tree, int startingIndex, int rowCount){\n for(int i=startingIndex;i<rowCount;++i){\n tree.expandRow(i);\n }\n\n if(tree.getRowCount()!=rowCount){\n expandAllNodes(tree, rowCount, tree.getRowCount());\n }\n}", "private static void DepthFirstSearch(int i, ArrayList<ArrayList<Integer>> nodes, boolean[] visited) {\n\t\tif(nodes == null) return;\n\t\tvisited[i] = true;\n\t\tSystem.out.println(i);\n\t\tfor(int p : nodes.get(i)) {\n\t\t\tif(!visited[p]) {\n\t\t\t\tDepthFirstSearch(p,nodes, visited);\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "private void phaseOne(){\r\n\r\n\t\twhile (allNodes.size() < endSize){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//Pick a random node from allNodes\r\n\t\t\t\tint idx = random.nextInt(allNodes.size());\r\n\t\t\t\tNode node = allNodes.get(idx);\r\n\r\n\t\t\t\t//Get all relationships of node\t\t\t\t\r\n\t\t\t\tIterable<Relationship> ite = node.getRelationships(Direction.BOTH);\r\n\t\t\t\tList<Relationship> tempRels = new ArrayList<Relationship>();\r\n\r\n\t\t\t\t//Pick one of the relationships uniformly at random.\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\ttempRels.add(rel);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tidx = random.nextInt(tempRels.size());\r\n\t\t\t\tRelationship rel = tempRels.get(idx);\r\n\t\t\t\tNode neighbour = rel.getOtherNode(node);\r\n\r\n\t\t\t\t//Add the neighbour to allNodes\r\n\t\t\t\tif (!allNodes.contains(neighbour)){\r\n\t\t\t\t\tallNodes.add(neighbour);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttx.success();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If reached here, then phase one completed successfully.\r\n\t\treturn;\r\n\t}", "private void recur(Element element, List<Data> sources) throws Exception {\n\n Element[] relates = XMLUtil.getDirectRelateChildNodes(element);\n if (relates.length < 1) {\n return;\n }\n\n for (Element relatesData : relates) {\n log.info(\"###################### begin Import table [\"\n + XMLUtil.getSourceType(relatesData) + \"] ####################\");\n log.info(String.format(table_log, XMLUtil.getSourceType(relatesData)));\n\n HashMap<Integer, Integer> keys = DataAccessDelegate.getNumbersOfDataType(relatesData,\n dataSource);\n log.info(String.format(result_count, keys.size(), XMLUtil.getSourceType(relatesData)));\n if (keys == null || keys.isEmpty()) {\n continue;\n }\n Data sorData = getDataOfDataType(relatesData);\n sorData.setIdentifiers(keys);\n sources.add(sorData);\n\n log.info(String.format(relation_log, XMLUtil.getSourceType(element), XMLUtil\n .getSourceType(relatesData), XMLUtil.getSourceRelationType(relatesData)));\n\n HashMap<Integer, Integer> keys1 = DataAccessDelegate.getNumbersOfRelation(relatesData,\n dataSource);\n log.info(String.format(result_rel_count, keys1.size(), XMLUtil\n .getSourceRelationType(relatesData)));\n if (keys1 != null && !keys1.isEmpty()) {\n Data relData = getDataOfRelation(relatesData);\n relData.setIdentifiers(keys1);\n sources.add(relData);\n }\n log.info(\"###################### end Import table [\" + XMLUtil.getSourceType(relatesData)\n + \"] ####################\");\n recur(relatesData, sources);\n }\n }", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Location> possibleStartLocations = possibleStartLocations();\n\n\t\tfor(Entry<Integer, Location> startLocation : possibleStartLocations.entrySet()) {\n\t\t\t// Add startLocation to visited locations\n\t\t\tMap<Integer, Location> visitedLocations = new HashMap<Integer, Location>();\n\t\t\tvisitedLocations.put(startLocation.getKey(), startLocation.getValue());\n\t\t\t\n\t\t\t// Add startLocation to visited order\n\t\t\tList<Location> visitedOrder = new LinkedList<Location>();\n\t\t\tvisitedOrder.add(startLocation.getValue());\n\t\t\t\n\t\t\t// Start the recursion for the following start node\n\t\t\tfindSolution(startLocation, startLocation, visitedLocations, visitedOrder, 0);\n\t\t}\n\t}", "private static void iddfs(State curr, int depth) {\n for(int i = 0; i <= depth; i++) {\r\n\r\n if(curr.isGoalState()) \r\n System.out.println(i+\":\"+curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(i+\":\"+curr.getOrderedPair());//initial\r\n\r\n curr.close.add(curr);\r\n State currState = curr;\r\n while(!currState.isGoalState()) {\r\n if(currState.depth < i)\r\n curr.buildStack(currState.getSuccessors(currState));\r\n System.out.print(i+\":\");\r\n curr.printHelp(currState, 5);\r\n if(!curr.open.isEmpty()) {\r\n currState = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if(currState.isGoalState()) {\r\n System.out.println(i+\":\"+currState.getOrderedPair() + \" Goal\");\r\n curr.printPath(currState);\r\n return;\r\n }\r\n curr.open.clear(); curr.close.clear();\r\n }\r\n }", "public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }", "private Stack<Select> selectionPathAux(JoinPointClass current, String joinPointName,\n ArrayList<JoinPointClass> visitedList, Set<JoinPointClass> ignoreSet, SelectionPathV2 selPath) {\n\n Stack<Select> path = new Stack<>();\n\n if (ignoreSet.contains(current) || visitedList.contains(current)) {\n\n return path;\n }\n\n final Select selected = select(current, joinPointName);\n if (selected != null) {\n\n path.push(selected);\n return path;\n }\n\n visitedList.add(current);\n\n // System.out.println(\"SELECTS: \" + current.getSelects());\n for (final Select select : current.getSelects()) {\n final JoinPointClass next = getJoinPoint(select);\n Stack<Select> pathAux = selectionPathAux(next, joinPointName, visitedList, ignoreSet, selPath);\n if (!pathAux.isEmpty()) {\n pathAux.add(select);\n if (selPath.hasSecondaryPath()) {\n selPath.getSecondaryPath().get().add(select);\n }\n if (!path.isEmpty()) {\n if (!alreadyFound) {\n selPath.setSecondaryPath(pathAux);\n selPath.setTieBreakReason(\"use the first path found (from a depth first search)\");\n // System.out.println(\n // \"More than one path for inital join point '\" + joinPointName + \"'. Two of then are: \");\n // Function<Pair<String, String>, String> converted = p -> {\n // if (p.getLeft().equals(p.getRight())) {\n // return p.getLeft();\n // }\n // return \"(\" + p.getRight() + \" as \" + p.getLeft() + \")\";\n // };\n //\n // System.out.println(\"\\t1. \" + StringUtils.join(path, converted, \".\"));\n // System.out.println(\"\\t2. \" + StringUtils.join(pathAux, converted, \".\"));\n //\n // System.out.println(\"Select uses a depth first search. Will use 1.\");\n alreadyFound = true;\n }\n break;\n }\n path = pathAux;\n } else {\n ignoreSet.add(next);\n }\n }\n visitedList.remove(current);\n\n return path;\n }", "private static void loopNodes(NodeList childNodes) throws JSONException {\n for (int i = 0; i < childNodes.getLength(); ++i) {\n HashMap<String, String> tempHashMap = new HashMap<>();\n Node node = childNodes.item(i);\n String nodeName = node.getNodeName();\n if (!\"#text\".equals(nodeName)) {\n\n Attr attr = (Attr) node.getAttributes().getNamedItem(\"displayname\");\n String attribute = null;\n if (attr != null) {\n attribute = attr.getValue();\n }\n\n if (attribute != null) {\n tempHashMap.put(node.getNodeName(), attribute);\n elementStack.push(tempHashMap);\n } else {\n tempHashMap.put(node.getNodeName(), null);\n elementStack.push(tempHashMap);\n }\n\n if (node.hasChildNodes()) {\n loopNodes(node.getChildNodes());\n } else {\n addPathToCategories();\n }\n\n if (elementStack.size() > 0) {\n elementStack.pop();\n }\n\n }\n }\n\n }", "public final Object [] getVisibleElements() {\r\n\t\tfinal List<XElementNode> roots = new ArrayList<XElementNode>();\t\t\t\t\r\n\t\tStringBuffer paths = new StringBuffer();\r\n\r\n\t\t//if right side is empty, we take selection of left side:\r\n\t\tif(targetHierarchyTree.isEmpty()) {\r\n//\t\t\tfinal Map <FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal LinkedHashSet <FastMSTreeItem> currentSelection = sourceHierarchyTree.getSelection(); \r\n\t\t\tfor (FastMSTreeItem it: currentSelection) {\r\n\t\t\t\tpaths.append(it.getModel().getPath());\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\tsourceHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n//\t\t\t\t\telNode.removeChildren();\r\n//\t\t\t\t\tparents.put(item, elNode);\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //, parents); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t} else {\r\n\t\t\tfinal Map<FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal List <String> filterPaths = new ArrayList <String>();\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor(){\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXObjectModel node = item.getXObjectModel();\r\n\t\t\t\t\tString path = node.get(\"filterPath\");\r\n\t\t\t\t\tif (path != null) {\r\n\t\t\t\t\t\tfilterPaths.add(path);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn item.getChildCount() > 0;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tfor (String f: filterPaths) {\r\n\t\t\t\tpaths.append(f);\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n\t\t\t\t\telNode.removeChildren();\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t}\r\n\t\treturn new Object [] {roots.toArray(new XElementNode[0]), paths.toString()};\r\n\t}", "private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void recurseTargets(BoardCell cell, int i) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tSet<BoardCell> adjList = getAdjList(cell.getRow(), cell.getCol());\t\t\t\t\t// gets the adjacency set for the start cell\n\t\tvisited.add(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adds the start cell to the adjacency set\n\t\tif(cell.isRoomCenter()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// gets the cells that are room centers\n\t\t\ttargets.add(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adds the cell to the target set\n\t\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (once rooms are entered, they cannot be left)\n\t\t}\n\t\tif(cell.getOccupied()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// gets cells that are occupied\n\t\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (occupied cells cannot be visited)\n\t\t}\n\t\tif(i == 0) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// catches if this current iteration represents the last step in the move\n\t\t\ttargets.add(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// adds the cell to the target set\n\t\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (the player can move no further, and therefore further iterations are not necessary)\n\t\t}\n\t\tfor(BoardCell temp : adjList) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t// iterates through each cell in the adjacency set\n\t\t\tif(!(visited.contains(temp))) {\t\t\t\t\t\t\t\t\t\t\t\t\t// gets the cells that have not yet been visited\n\t\t\t\trecurseTargets(temp,i-1);\t\t\t\t\t\t\t\t\t\t\t\t\t// recursively calls itself with each cell and one less move\n\t\t\t}\n\t\t}\n\t\tvisited.remove(cell);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// removes the cell from the visited set\n\t\treturn;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exits the method (there are no more cases to check)\n\t}", "private List<Node> returnAllNodes(Node node) {\n List<Node> listOfNodes = new ArrayList<Node>();\n if (node != null) {\n listOfNodes.add(node);\n for (int i = 0; i < listOfNodes.size(); ++i) {\n Node n = listOfNodes.get(i);\n List<Node> children = n.children;\n if (children != null) {\n for (Node child : children) {\n if (!listOfNodes.contains(child)) {\n listOfNodes.add(child);\n }\n }\n }\n }\n }\n return listOfNodes;\n }", "public void traverseExcludeSelf(INext<T> next){\n if(next==null){\n return;\n }\n traverse(this,next,false);\n }", "WhileChildFilter(Node root){\n\t\t\tthis.root = root;\n\t\t}", "private static void traversals(Node root) {\n\t\tSystem.out.println(\"Node Pre \" + root.data);\n\t\tfor(Node child : root.children) {\n\t\t\tSystem.out.println(\"Edge Pre \" + root.data + \"--\" + child.data);\n\t\t\ttraversals(child);\n\t\t\tSystem.out.println(\"Edge Post \" + root.data + \"--\" + child.data);\n\t\t}\n\t\tSystem.out.println(\"Node Post \" + root.data);\n\t}", "private List<Path> expandExecution(Path input) {\n\t\tList<Path> childInputs = new ArrayList<>(); //store the paths generated from given path\n\t\t\n\t\t//search from the top node which have not been searched before\n\t\tfor(int j = input.bound; j < input.path.size() - 1; j++){\n\t\t\tdouble[] probabilityArray = cfg.getTransition_matrix().getRow(input.path.get(j));\n\t\t\tfor(int i = 0; i < probabilityArray.length; i++){\n\t\t\t\t//the node been visited before only have two situation:1.has been searched,2.the path contains it in the workList \n\t\t\t\tif(probabilityArray[i] > 0 && i != input.path.get(j + 1) && unvisited.contains(i)){\n\t\t\t\t\tList<Integer> tempPath = new ArrayList<>();\n\t\t\t\t\tfor(int index = 0; index < j + 1; index++)\n\t\t\t\t\t\ttempPath.add(input.path.get(index));\n\t\t\t\t\ttempPath.add(i);\n\t\t\t\t\t\n\t\t\t\t\tPath newInput = new Path(tempPath, j + 1);\n\t\t\t\t\tchildInputs.add(newInput);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn childInputs;\n\t}", "Node findLoopByHash(Node n){\n Hashtable<Node,Integer> nodes = new Hashtable<Node,Integer>();\n while (n.next != null){\n if (nodes.containsKey(n)) break;\n nodes.put(n,1);\n n=n.next;\n }\n if (n.next != null) return n;\n return null;\n }", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "private TreeNodeVisitor walkCorruptedPath(TreeLearner model, DataPoint dp, int j, Random rand) {\n TreeNodeVisitor curNode = model.getTreeNodeVisitor();\n while (!curNode.isLeaf()) {\n int path = curNode.getPath(dp);\n int numChild = curNode.childrenCount();\n if (curNode.featuresUsed().contains(j))// corrupt the feature!\n {\n // this gets us a random OTHER path, wont be the same b/c we would need to wrap\n // around 1 farther\n path = (path + rand.nextInt(numChild)) % numChild;\n }\n\n if (curNode.isPathDisabled(path))\n break;\n else\n curNode = curNode.getChild(path);\n }\n return curNode;\n }", "@Test\n public void whenTreeIsBlankThanHasNextIsFalse() {\n assertThat(this.tree.iterator().hasNext(), is(false));\n }", "private Node<E> findSet(Node<E> x) {\n if (x != x.parent) {\n Node<E> p = findSet(x.parent);\n x.parent.children.remove(x);\n p.children.add(x);\n x.parent = p;\n }\n return x.parent;\n }", "public void selectParents() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }" ]
[ "0.6048782", "0.5956616", "0.59478027", "0.5871156", "0.5793149", "0.57785296", "0.5655179", "0.55638736", "0.550138", "0.54993254", "0.5471796", "0.5452504", "0.5438932", "0.54237884", "0.54208934", "0.54208934", "0.54208934", "0.54164916", "0.54103005", "0.53979135", "0.5395107", "0.5375951", "0.53619915", "0.53381956", "0.5310438", "0.530742", "0.52934533", "0.52633154", "0.5255818", "0.52525115", "0.5247355", "0.5237901", "0.52148515", "0.5211807", "0.52058846", "0.5183814", "0.5172696", "0.51701933", "0.5153384", "0.5132793", "0.51295704", "0.51276046", "0.5127571", "0.51261866", "0.5117737", "0.51164293", "0.5115562", "0.5107653", "0.50956064", "0.50880635", "0.50769544", "0.50751424", "0.50736403", "0.50708073", "0.50631267", "0.50627315", "0.5058535", "0.50530356", "0.5045408", "0.5044917", "0.504166", "0.50375223", "0.50197995", "0.5019617", "0.501167", "0.50100046", "0.50099576", "0.5003811", "0.49926972", "0.4992333", "0.49915868", "0.4987485", "0.49852502", "0.49848074", "0.49818993", "0.49802104", "0.49780163", "0.49779847", "0.4976251", "0.4972712", "0.49698797", "0.4963024", "0.496173", "0.49540707", "0.49514547", "0.49492848", "0.49452338", "0.4943419", "0.4935947", "0.49358138", "0.4935663", "0.49350202", "0.49338812", "0.49314883", "0.49279192", "0.49265268", "0.49264252", "0.49181148", "0.49143746", "0.49076688" ]
0.49877366
71
first parameter is the context, second is the class of the activity to launch
@Override public void onItemClick(AdapterView<?> adapter, View item, int pos, long id) { Intent editIntent = new Intent(TodoListActivity.this, EditItemActivity.class); editIntent.putExtra("position", pos); editIntent.putExtra("value", todos.get(pos)); startActivityForResult(editIntent, EDIT_ITEM_REQUEST_CODE); // brings up the second activity }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void startActivity(Context context, Class<?> c) {\n\t\tIntent i = new Intent(context, c);\n\t\tcontext.startActivity(i);\n\t}", "public static void navigateToActivity(Context A, Class <?> B) {\n Intent myIntent = new Intent(A, B);\n A.startActivity(myIntent);\n }", "private void openNewActivity(Class<RegisterActivity> class_argument) {\r\n Intent intent = new Intent(this, class_argument);\r\n startActivity(intent);\r\n }", "public static void startActivity(Context context, String className) {\n\t\ttry {\n\t\t\tstartActivity(context, Class.forName(className));\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tL.log(e.toString());\n\t\t}\n\t}", "public static void startActivity(Context context, Class activity) {\n Intent thisIntent = new Intent(context, activity);\n context.startActivity(thisIntent);\n }", "public static void startUrself(Activity context) {\n\t\tIntent newActivity = new Intent(context, MainActivity.class);\n\t\tnewActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tcontext.startActivity(newActivity);\n\t\tcontext.finish();\n\t}", "public void newGame(View v){\n\n startActivity(new Intent(getApplicationContext(),MainActivity.class)); // same as startActivity(new Intent (this, Main2Activity.class));\n\n }", "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "private static Intent getIntent(Context context, Class<?> cls) {\n Intent intent = new Intent(context, cls);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n return intent;\n }", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "public static void navigateToActivity(Context A, Class <?> B, int flags) {\n Intent myIntent = new Intent(A, B);\n myIntent.setFlags(flags);\n A.startActivity(myIntent);\n }", "private void openActivity() {\n }", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n public static void goToIntent(Context ctx, Class<?> clazz) {\n Intent intent = new Intent(ctx, clazz);\n ctx.startActivity(intent);\n ((Activity) ctx).setResult(Activity.RESULT_CANCELED);\n ((Activity) ctx).finishAffinity();\n }", "public static void navigateToActivityByClassName(Context context, String className, int flags) throws ClassNotFoundException {\n Class <?> c = null;\n if ( className != null ) {\n try {\n c = Class.forName(className);\n } catch (ClassNotFoundException e) {\n QUFactory.QLog.debug(\"ClassNotFound\", e);\n }\n }\n\n navigateToActivity(context, c, flags);\n }", "public static void navigateToActivity(Context A, Class <?> B, Bundle extras) {\n Intent myIntent = new Intent(A, B);\n myIntent.putExtras(extras);\n A.startActivity(myIntent);\n }", "public static void start(Activity act, Class<?> class1) {\n\t\tact.startActivity(new Intent(act.getApplicationContext(), class1));\n\t}", "public static void navigateToActivity(Context A, Class <?> B, Bundle extras, int flags) {\n Intent myIntent = new Intent(A, B);\n myIntent.putExtras(extras);\n myIntent.setFlags(flags);\n A.startActivity(myIntent);\n }", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n Intent intent = new Intent(context, cla);\n intent.putExtras(bundle);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.push_left_out);\n }", "protected void activityStart(String act){\r\n Class c = Constants.getClass(act);\r\n if(c!=null){\r\n startActivity(new Intent(Main.this, c ));\r\n }\r\n }", "@Override\n public void onClick(View view) {\n Intent intent = ClassActivity.newIntent(getActivity(), mClass.getId());\n getActivity().startActivity( intent );\n }", "void startNewActivity(Intent intent);", "public void gotoActivity(Context context, Class<?> cla) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(android.R.anim.slide_in_left, R.anim.slide_out_right);\n\t}", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "public static void startActivity(Context context) {\n Intent homeIntent = new Intent(context, RequestActivity.class);\n context.startActivity(homeIntent);\n }", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "private void launch() {\n Intent intent = new Intent(getActivity(), ForumAddActivity.class);\n startActivity(intent);\n }", "public static void sendToNextActivity(Context context, Class aClass) {\n\n Intent intent = new Intent(context, aClass);\n context.startActivity(intent);\n ((Activity) context).overridePendingTransition(R.anim.activity_open_translate, R.anim.activity_close_scale);\n\n }", "public static void navigateToActivityByClassName(Context context, String className) throws ClassNotFoundException {\n Class <?> c = null;\n if ( className != null ) {\n try {\n c = Class.forName(className);\n } catch (ClassNotFoundException e) {\n QUFactory.QLog.debug(\"ClassNotFound\", e);\n }\n }\n\n navigateToActivity(context, c);\n }", "public static void startYourself(Context context) {\n Intent intent = new Intent(context, BookmarksActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n context.startActivity(intent);\n }", "@Override\n public void run() {\n startActivity(intent);\n }", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "public static void startActivity(Activity context, Class<?> c, int requestCode) {\n\t\tstartActivity(context, c, requestCode, new Bundle());\n\t}", "public static void start(Context context) {\n Intent intent = new Intent(context, ChatRoomActivity.class);\n context.startActivity(intent);\n }", "private static void redirectActivity(Activity activity, Class aClass) {\n Intent intent = new Intent(activity, aClass);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(intent);\n }", "public void startNewActivity(Context context, String packageName) {\n Intent intent = context.getPackageManager().getLaunchIntentForPackage(packageName);\n if (intent != null) {\n /* We found the activity now start the activity */\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n } else {\n /* Bring user to the market or let them choose an app? */\n intent = new Intent(Intent.ACTION_VIEW);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setData(Uri.parse(\"market://details?id=\" + packageName));\n context.startActivity(intent);\n }\n }", "public static void launchActivityFromExtras(final Context context, Bundle extras) {\n if (extras == null || !extras.getBoolean(KEY_LAUNCH_ACTIVITY)) {\n return;\n }\n\n Log.i(TAG, \"launchActivityFromExtras: extras=\" + extras);\n\n final String targetComponent = extras.getString(KEY_TARGET_COMPONENT);\n final Intent newIntent = new Intent().setComponent(TextUtils.isEmpty(targetComponent)\n ? TEST_ACTIVITY : ComponentName.unflattenFromString(targetComponent));\n\n if (extras.getBoolean(KEY_LAUNCH_TO_SIDE)) {\n newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_LAUNCH_ADJACENT);\n if (extras.getBoolean(KEY_RANDOM_DATA)) {\n final Uri data = new Uri.Builder()\n .path(String.valueOf(System.currentTimeMillis()))\n .build();\n newIntent.setData(data);\n }\n }\n if (extras.getBoolean(KEY_MULTIPLE_TASK)) {\n newIntent.addFlags(FLAG_ACTIVITY_MULTIPLE_TASK);\n }\n if (extras.getBoolean(KEY_NEW_TASK)) {\n newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK);\n }\n\n if (extras.getBoolean(KEY_REORDER_TO_FRONT)) {\n newIntent.addFlags(FLAG_ACTIVITY_REORDER_TO_FRONT);\n }\n\n ActivityOptions options = null;\n final int displayId = extras.getInt(KEY_DISPLAY_ID, -1);\n if (displayId != -1) {\n options = ActivityOptions.makeBasic();\n options.setLaunchDisplayId(displayId);\n newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_MULTIPLE_TASK);\n }\n final Bundle optionsBundle = options != null ? options.toBundle() : null;\n\n final Context launchContext = extras.getBoolean(KEY_USE_APPLICATION_CONTEXT) ?\n context.getApplicationContext() : context;\n\n try {\n if (extras.getBoolean(KEY_USE_INSTRUMENTATION)) {\n // Using PendingIntent for Instrumentation launches, because otherwise we won't\n // be allowed to switch the current activity with ours with different uid.\n // android.permission.STOP_APP_SWITCHES is needed to do this directly.\n final PendingIntent pendingIntent = PendingIntent.getActivity(launchContext, 0,\n newIntent, 0, optionsBundle);\n pendingIntent.send();\n } else {\n launchContext.startActivity(newIntent, optionsBundle);\n }\n } catch (SecurityException e) {\n Log.e(TAG, \"SecurityException launching activity\");\n } catch (PendingIntent.CanceledException e) {\n if (extras.getBoolean(KEY_SUPPRESS_EXCEPTIONS)) {\n Log.e(TAG, \"Exception launching activity with pending intent\");\n } else {\n throw new RuntimeException(e);\n }\n Log.e(TAG, \"SecurityException launching activity\");\n } catch (Exception e) {\n if (extras.getBoolean(KEY_SUPPRESS_EXCEPTIONS)) {\n Log.e(TAG, \"Exception launching activity\");\n } else {\n throw e;\n }\n }\n }", "private void goToActivity(Class goToClass) {\n Intent intent = new Intent(MenuActivity.this, goToClass);\n intent.putExtra(USER_ID,user.getId());\n intent.putExtra(USERNAME,user.getUserName());\n startActivity(intent);\n }", "private void launchTwo() {\n Intent intent = new Intent(getActivity(), SearchReviewActivity.class);\n\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(LaunchActivity.this, MainActivity.class);\n startActivity(intent);\n }", "public void iniciarActivity() {\n\n Intent intent = new Intent(ActivityA.this, ActivityB.class);\n startActivity(intent);\n }", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "private void startMainActivity() {\n Intent intent = new Intent(this, MyActivity.class);\n startActivity(intent);\n }", "public void ShowTaskListForm(View view)\n // //onClick ButtonNewTask\n {\n Log.d(\"CEGG\", \"click ShowTaskListForm\");\n\n // //Explicit intent to start\n Intent intent = new Intent(\n getApplicationContext(), TaskListActivity.class);\n startActivity(intent);\n }", "@Override\n public void startNewActivity(Bundle bundle, Class newClass) {\n if (newClass == DashboardActivity.class) {\n startActivity(DashboardActivity.getIntent(mContext));\n finish();\n }\n\n }", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tintent.putExtras(bundle);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n\t}", "private void mystartActivity(Class c){\n Intent intent = new Intent(this,c);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "private void courses() {\n\tstartActivity (new Intent(getApplicationContext(), Courses.class));\n\n\n}", "public void moveActivity(Class<?> kelas){\n context.startActivity(new Intent(context,kelas));\n }", "private void switchToActivity(Class c) {\n Intent tmp = new Intent(this, c);\n tempSaveToFile();\n if (c == PersonalScoreBoardActivity.class || c == ScoreBoardActivity.class) {\n tmp.putExtra(\"highToLow\", false);\n tmp.putExtra(\"currentGame\", TWENTYFORTYEIGHT);\n } else if(c == LoadActivity.class) {\n tmp.putExtra(\"currentGame\",TWENTYFORTYEIGHT);\n }\n startActivity(tmp);\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent i=new Intent(getApplicationContext(),MainActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "private Intent m34055b(Context context) {\n Intent intent = new Intent();\n String str = \"package\";\n intent.putExtra(str, context.getPackageName());\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setData(Uri.fromParts(str, context.getPackageName(), null));\n String str2 = \"com.huawei.systemmanager\";\n intent.setClassName(str2, \"com.huawei.permissionmanager.ui.MainActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.systemmanager.addviewmonitor.AddViewMonitorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.notificationmanager.ui.NotificationManagmentActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "public static void seeClassement(){\n\n\n Intent seeClassementIntent = new Intent(This, Classement_Activity.class);\n\n This.startActivity(seeClassementIntent);\n }", "protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}", "public void navigateToMainActivity(final Context context) {\n if (context != null) {\n Intent intentToLaunch = MainActivity.getCallingIntent(context);\n context.startActivity(intentToLaunch);\n }\n }", "Class<? extends Activity> getOpenInOtherWindowActivity();", "@Override\n public void onClick(View v) {\n Intent HomeScreen = new Intent(v.getContext(), MainActivity.class);\n startActivity(HomeScreen);\n }", "public void openActivity3(){\n Intent intent = new Intent(this, Favoris.class);\n startActivity(intent);\n }", "@Override\n\t\t public void launchApp(Context context, UMessage msg) {\n\t\t\t\t Toast.makeText(context, \"launchApp:\"+msg.custom, Toast.LENGTH_LONG).show();\n\t\t \t Intent it=new Intent(getApplicationContext(),MainActivity.class);//MenuActivity_VC\n\t\t \t\t it.putExtra(\"notify\", msg.custom);\n\t\t \t\t startActivity(it);\n\t\t\t }", "public void ShowNewTaskForm(View view)\n // //onClick ButtonNewTask\n {\n Log.d(\"CEGG\", \"click ButtonNewTask\");\n\n // //Explicit intent to start\n Intent intent = new Intent(\n getApplicationContext(), NewTaskFormActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}", "public static void startActivity(Activity context, Class<?> c, int requestCode, Bundle b) {\n\t\tIntent i;\n\t\ti = new Intent(context, c);\n\t\ti.putExtras(b);\n\t\tcontext.startActivityForResult(i, requestCode);\n\t}", "private void players() {\n\t\n\tstartActivity (new Intent(getApplicationContext(), Players.class));\n}", "@Override\n public void onClick(View v) {\n Context context = v.getContext();\n Intent intent = new Intent(context, FuelEntryListActivity.class);\n\n startActivity(intent);\n\n }", "private void opennointernetactivity(Context context) {\n NoInternetConnection_activity.startActivity((Activity) context);\n\n\n }", "@Override\n public void onClick(View v) {\n incidentalIntent = new Intent(getApplicationContext(),IncidentalTaskActivity.class);\n startActivity(incidentalIntent);\n }", "private PendingIntent openActivityPendingIntent(Context context) {\n Intent intent = new Intent(context, MainActivity.class);\n return PendingIntent.getActivity(context, 0, intent, 0);\n }", "private void openMainActivity(int pos) {\n Intent i = new Intent(Launcher.this, MainActivity.class);\n i.putExtra(\"division\", pos);\n startActivity(i);\n }", "public static void startLauncherActivity(Context context) {\n PackageManager packageManager = context.getPackageManager();\n Intent intent = packageManager.getLaunchIntentForPackage(context\n .getPackageName());\n ComponentName componentName = intent.getComponent();\n Intent mainIntent = Intent.makeRestartActivityTask(componentName);\n mainIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n mainIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n mainIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mainIntent.putExtra(\"isSessionExpired\", true);\n context.startActivity(mainIntent);\n }", "public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity1.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }", "public void onClickSignIn(View v){\n //Crear un nuevo intent\n Intent myIntent = new Intent(v.getContext(), SignIn.class);\n //Iniciar actividad\n startActivity(myIntent);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }", "public void launchLibraryActivity(View view){\n// joker=new Joker();\n// Intent myIntent = new Intent(getApplicationContext(), LibraryActivity.class);\n// myIntent.putExtra(\"key\",joker.getJoke());\n// startActivity(myIntent);\n new JokesFetchAsyncTask().execute(new Pair<Context, String>(this, \"Manfred\"));\n//\n\n// new JokesFetchAsyncTask().execute(getApplicationContext(),new Joker().getJoke());\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "public void openActivity3() {\n //I have an intent, which is called openCubicActivity\n //Make a new Intent that goes from this file to the cubic class file\n Intent openCubicActivity = new Intent(this, Cubic.class);\n startActivity(openCubicActivity);\n }", "protected void start(Context fromScreen,Class<?> toScreen, Boolean kill){\n Intent intent = new Intent(fromScreen, toScreen);\n startActivity(intent);\n if(kill){\n finish();\n }\n }", "public void openActivity2() {\n //I have an intent, which is called openQuadraticActivity\n //Make a new Intent that goes from this file to the quadratic class file\n Intent openQuadraticActivity = new Intent(this, Quadratic.class);\n startActivity(openQuadraticActivity);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, MainActivity.class);\n intent.putExtra(MainActivity.SELECTED_TAB_EXTRA_KEY, MainActivity.EARNINGS_TAB);\n context.startActivity(intent);\n// Intent intent = new Intent(context, TvBetaActivity.class);\n// context.startActivity(intent);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context=getContext();\n\n }", "public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity3.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }", "private void goToMainActivity(){\n Log.d(TAG, \"goToMainActivity: called\");\n saveUserLogin(login);\n\n Intent intent = new Intent(\"android.intent.action.MapActivity\");\n view.getContext().startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "public void onClick2(View v) {\n\n\n PackageManager pm = getPackageManager();\n Intent intent = pm.getLaunchIntentForPackage(\"com.lee.test\");\n\n if (intent != null) {\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }else {\n Toast.makeText(MainActivity.this,\"空intent\",Toast.LENGTH_SHORT).show();\n }\n\n\n }", "private void goSomewhere() {\n\n Intent intent = new Intent();\n intent.setClassName(Home.this,this.tip.getTipIntent());\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(StartActivity.this, MainActivity.class));\n }", "@Override\n public void onClick(View view) {\n try {\n if (ol_Data.getEnglish().equals(\"Courses\")) {\n\n Intent cour = new Intent(ctx, AllCourses.class);\n cour.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(cour);\n } else if (ol_Data.getEnglish().equals(\"Hijri Calender\")) {\n Intent nq = new Intent(ctx, CaldroidSampleActivity.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"Namaz Alarm\")) {\n Intent nq = new Intent(ctx, Muazzin.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"General Knowledge\")) {\n Intent nq = new Intent(ctx, GK.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }\n } catch (Exception e) {\n Toast.makeText(ctx, \"Error \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }", "public void drawerClickAndGo(int position)\n {\n Context a= MainActivity.this;\n Class b = Agenda.class ;//just init so there is no error\n\n\n if (position==0)\n //current position\n return;\n\n if (position==1)\n b = Agenda.class;\n\n\n Intent intent= new Intent(a,b);\n startActivity(intent);\n }", "public void openActivity2(){\n Intent intent = new Intent(this, SearchBook.class);\n startActivity(intent);\n }", "public void registrarDatos(Context context){\n Intent intent= new Intent(context, RegistroActivity.class);\n intent.putExtra(\"registro\",\"vacio\");\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}", "private void launchOtherTransaction(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity2.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }", "protected void startMainActivity() {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n }", "public void openCreateClassesActivity(View v) {\n Intent intent = new Intent(this, CreateClassesActivity.class);\n startActivity(intent);\n }", "Intent createNewIntent(Class cls);", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, TriggerActivity.class);\n startActivity(intent);\n }", "public static void startActivity(Context context) {\n context.startActivity(new Intent(context, CheetahSigninActivity.class));\n }", "public void run()\n {\n\n Intent in = new Intent(activity, loginfailed.class);\n in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(in);\n\n\n }", "private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }" ]
[ "0.71840644", "0.699816", "0.68885064", "0.68706685", "0.6855539", "0.6847189", "0.677608", "0.6770441", "0.6765704", "0.6747296", "0.67411315", "0.66757935", "0.66739136", "0.6650247", "0.6640501", "0.6624603", "0.66174287", "0.65704405", "0.6551789", "0.65461254", "0.65431213", "0.6534511", "0.65289116", "0.6528578", "0.65163326", "0.6506431", "0.64841956", "0.6437651", "0.6424241", "0.64055914", "0.64051086", "0.64043385", "0.63802063", "0.63729864", "0.6353196", "0.63522273", "0.63485193", "0.6345901", "0.6345858", "0.6343471", "0.6340243", "0.63330376", "0.63159776", "0.6312341", "0.63102305", "0.6301341", "0.6300579", "0.6263865", "0.6249425", "0.62466526", "0.62382907", "0.62336814", "0.6231348", "0.6227351", "0.62078893", "0.62037516", "0.61948407", "0.6194154", "0.61915725", "0.6189243", "0.6180946", "0.61744237", "0.61505187", "0.6148182", "0.6147559", "0.61451274", "0.61441076", "0.613745", "0.6134854", "0.61242616", "0.6119964", "0.611947", "0.61148036", "0.6107554", "0.6107319", "0.610068", "0.60979474", "0.6089243", "0.60864586", "0.6084902", "0.60800856", "0.60704875", "0.60629475", "0.6057655", "0.6053226", "0.6051232", "0.6050598", "0.6041254", "0.60392827", "0.60376024", "0.60359704", "0.6035821", "0.60314196", "0.60312974", "0.6027116", "0.6013648", "0.60093683", "0.60087997", "0.6006308", "0.59983146", "0.5996781" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_simple_display, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.my_notes_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\n }" ]
[ "0.72500116", "0.7204146", "0.71987385", "0.7180757", "0.71107906", "0.7043322", "0.7041613", "0.7015376", "0.7013112", "0.6982869", "0.69475657", "0.6941377", "0.6937569", "0.69213736", "0.69213736", "0.6892679", "0.6887231", "0.6877873", "0.68772626", "0.68644464", "0.68644464", "0.68644464", "0.68644464", "0.6855815", "0.68494046", "0.68220186", "0.68183845", "0.68154365", "0.6815009", "0.6815009", "0.68082577", "0.6802161", "0.68002385", "0.67936224", "0.67918605", "0.679087", "0.67849934", "0.6760954", "0.67599845", "0.67507833", "0.67461413", "0.67461413", "0.67431796", "0.67413616", "0.6728648", "0.672732", "0.67251813", "0.67251813", "0.67232496", "0.67152804", "0.67092025", "0.67071015", "0.6702423", "0.6701286", "0.66991764", "0.66969806", "0.66888016", "0.66863585", "0.6686101", "0.6686101", "0.66828436", "0.6681769", "0.6679519", "0.6671908", "0.66700244", "0.6665301", "0.66587126", "0.66587126", "0.66587126", "0.6658098", "0.66570866", "0.66570866", "0.66570866", "0.665458", "0.66533303", "0.66528934", "0.66513336", "0.66495234", "0.66490155", "0.6648172", "0.6648159", "0.6647816", "0.6647625", "0.6645882", "0.66453695", "0.66441536", "0.66413796", "0.66374624", "0.66360414", "0.6635178", "0.66346484", "0.66346484", "0.66346484", "0.6632149", "0.66308904", "0.66287386", "0.66283447", "0.6627003", "0.6624185", "0.6621111", "0.662078" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904231", "0.78061396", "0.7767007", "0.77273244", "0.76318634", "0.7621818", "0.7585249", "0.7531511", "0.7488678", "0.74574006", "0.74574006", "0.7439257", "0.7421747", "0.7403457", "0.73920685", "0.7387285", "0.7379893", "0.73710734", "0.7363068", "0.73565257", "0.7346117", "0.73421544", "0.73308754", "0.7328614", "0.7326444", "0.73191214", "0.7316894", "0.73141056", "0.7304816", "0.7304816", "0.73023325", "0.7298775", "0.7294159", "0.72872293", "0.7283658", "0.72814363", "0.72793216", "0.72604835", "0.72604835", "0.72604835", "0.72604495", "0.7260065", "0.72506464", "0.7223512", "0.7220288", "0.721808", "0.7204778", "0.72007537", "0.7199708", "0.7193875", "0.7185878", "0.7178243", "0.7169468", "0.7168278", "0.71544755", "0.7154114", "0.71363086", "0.7135266", "0.7135266", "0.7129425", "0.71291506", "0.712514", "0.71239674", "0.7123848", "0.71223545", "0.7118021", "0.7117761", "0.7117381", "0.7117381", "0.7117381", "0.7117381", "0.7117378", "0.71157014", "0.7112743", "0.71105623", "0.710936", "0.7106081", "0.7100549", "0.7099009", "0.70957214", "0.7094029", "0.7094029", "0.7086948", "0.70828027", "0.70810676", "0.7080609", "0.707419", "0.70687926", "0.7062512", "0.70614976", "0.70604354", "0.7051683", "0.7037832", "0.7037832", "0.7036669", "0.70357877", "0.70357877", "0.7033191", "0.7030764", "0.70303047", "0.70192975" ]
0.0
-1
This clone will copy characteristics data, but not the dynamic data, such as dates
public Payment clone() { Payment clonedPayment = new Payment(); clonedPayment.setIsReceivedPayment(this.isReceivedPayment); clonedPayment.setPaymentType(this.paymentType); clonedPayment.setPaymentCategory(this.paymentCategory); clonedPayment.setDescription(this.description); clonedPayment.setCurrencyCode(this.currencyCode); clonedPayment.setTotalAmount(this.totalAmount); clonedPayment.setPaymentMethodType(this.paymentMethodType); clonedPayment.setPayerPaymentMethodId(this.payerPaymentMethodId); clonedPayment.setPayeePaymentReceiveMethodId(this.payeePaymentReceiveMethodId); clonedPayment.setCheckNumber(this.checkNumber); clonedPayment.setPayerAccountId(this.payerAccountId); clonedPayment.setPayerAccountName(this.payerAccountName); clonedPayment.setPayerContactId(this.payerContactId); clonedPayment.setPayerContactName(this.payerContactName); clonedPayment.setPayerBillingAddressId(this.payerBillingAddressId); clonedPayment.setPayeeAccountId(this.payeeAccountId); clonedPayment.setPayeeAccountName(this.payeeAccountName); clonedPayment.setPayeeContactId(this.payeeContactId); clonedPayment.setPayeeContactName(this.payeeContactName); clonedPayment.setPayeeBillingAddressId(this.payeeBillingAddressId); clonedPayment.setDepartmentId(this.departmentId); clonedPayment.setCostCenterNumber(this.costCenterNumber); clonedPayment.setPrimaryPaymentReceiverEmpId(this.primaryPaymentReceiverEmpId); clonedPayment.setSecondaryPaymentReceiverEmpId(this.secondaryPaymentReceiverEmpId); clonedPayment.setPrimaryPaymentPayerEmpId(this.primaryPaymentPayerEmpId); clonedPayment.setSecondaryPaymentPayerEmpId(this.secondaryPaymentPayerEmpId); clonedPayment.setNotes(this.notes); return clonedPayment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProcessedDynamicData deepCopy( ) {\r\n\r\n ProcessedDynamicData copy = new ProcessedDynamicData( this.channelId );\r\n\r\n copy.channelId = this.channelId;\r\n copy.dateTimeStamp = new java.util.Date( this.dateTimeStamp.getTime() );\r\n copy.samplingRate = this.samplingRate;\r\n copy.eu = this.eu;\r\n\r\n copy.min = this.min;\r\n copy.max = this.max;\r\n\r\n copy.measurementType = this.measurementType;\r\n copy.measurementUnit = this.measurementUnit;\r\n\r\n // data and labels\r\n List<Double> dataCopy = new Vector<Double>();\r\n for( int i = 0; i < this.data.size(); i++ ) {\r\n dataCopy.add( new Double( this.data.get( i ) ) );\r\n }\r\n copy.setData( dataCopy );\r\n\r\n List<Double> dataLabels = new Vector<Double>();\r\n for( int i = 0; i < this.dataLabels.size(); i++ ) {\r\n dataLabels.add( new Double( this.dataLabels.get( i ) ) );\r\n }\r\n copy.setDataLabels( dataLabels );\r\n\r\n // create a deep copy of overalls\r\n if( overalls != null ) {\r\n copy.overalls = new OverallLevels( this.overalls.getChannelId() );\r\n copy.overalls.setDateTimeStampMillis( this.getDateTimeStampMillis() );\r\n Vector<String> overallKeys = this.overalls.getKeys();\r\n for( int i = 0; i < overallKeys.size(); i++ ) {\r\n copy.overalls.addOverall( new String( overallKeys.elementAt( i ) ),\r\n new Double( this.overalls.getOverall( overallKeys.elementAt( i ) ) ) );\r\n }\r\n }\r\n\r\n copy.xEUnit = this.xEUnit;\r\n copy.yEUnit = this.yEUnit;\r\n\r\n copy.xSymbol = this.xSymbol;\r\n copy.ySymbol = this.ySymbol;\r\n copy.xPhysDomain = this.xPhysDomain;\r\n copy.yPhysDomain = this.yPhysDomain;\r\n \r\n copy.noOfAppendedZeros = this.noOfAppendedZeros;\r\n\r\n return copy;\r\n }", "@Override\n public Data clone() {\n final Data data = new Data(name, code, numeric, symbol, fractionSymbol, fractionsPerUnit, rounding, formatString,\n triangulated.clone());\n return data;\n }", "@Override\n\tprotected Factura clone() throws CloneNotSupportedException {\n\t\t\n\t\t\tFactura copiaFactura = (Factura) super.clone();\n\t\t\tcopiaFactura.data= (Date)data.clone();\n\t\t\treturn copiaFactura;\n\t}", "public DescriptiveFramework clone();", "private Instances deepCopy(Instances data) {\n Instances newInst = new Instances(data);\n\n newInst.clear();\n\n for (int i = 0; i < data.size(); i++) {\n Instance ni = new DenseInstance(data.numAttributes());\n for (int j = 0; j < data.numAttributes(); j++) {\n ni.setValue(newInst.attribute(j), data.instance(i).value(data.attribute(j)));\n }\n newInst.add(ni);\n }\n\n return newInst;\n }", "public Object clone(){\r\n\t\tSampleData obj = new SampleData(letter,getWidth(),getHeight());\r\n\t\tfor ( int y=0;y<getHeight();y++ )\r\n\t\t\tfor ( int x=0;x<getWidth();x++ )\r\n\t\t\t\tobj.setData(x,y,getData(x,y));\r\n\t\treturn obj;\r\n\t}", "@Override\n\tpublic DataType clone(DataTypeManager dtm) {\n\t\tStructureDataType struct =\n\t\t\tnew StructureDataType(getCategoryPath(), getName(), getLength(), getUniversalID(),\n\t\t\t\tgetSourceArchive(), getLastChangeTime(), getLastChangeTimeInSourceArchive(), dtm);\n\t\tstruct.setDescription(getDescription());\n\t\tstruct.replaceWith(this);\n\t\treturn struct;\n\t}", "RecordInfo clone();", "public abstract DataTableDefinition clone();", "@Override\n protected Currency clone() {\n final Currency currency = new Currency();\n if (data != null) {\n currency.data = data.clone();\n }\n return currency;\n\n }", "@Override\n public MetaContainer clone() {\n return clone(false);\n }", "public Object clone() throws CloneNotSupportedException {\n/* 354 */ SlidingCategoryDataset clone = (SlidingCategoryDataset)super.clone();\n/* 355 */ if (this.underlying instanceof PublicCloneable) {\n/* 356 */ PublicCloneable pc = (PublicCloneable)this.underlying;\n/* 357 */ clone.underlying = (CategoryDataset)pc.clone();\n/* */ } \n/* 359 */ return clone;\n/* */ }", "public Object clone(){ \r\n\t\tBaseballCard cloned = new BaseballCard();\r\n\t\tcloned.name = this.getName();\r\n\t\tcloned.manufacturer=this.getManufacturer();\r\n\t\tcloned.year = this.getYear();\r\n\t\tcloned.price = this.getPrice();\r\n\t\tcloned.size[0]= this.getSizeX();\r\n\t\tcloned.size[1]= this.getSizeY();\r\n\t\treturn cloned;\r\n\t}", "@Override\n public Object clone() {\n return new ShortDate(getTime());\n }", "private void TCM__Object_clone__default() {\n final String attributeName = \"test\";\n final String attributeValue = \"value\";\n\n final Attribute attribute = new Attribute(attributeName, attributeValue);\n final Attribute clonedAttribute = attribute.clone();\n\n assertTrue(\"incorrect name in clone\", clonedAttribute.getName().equals(attributeName));\n assertTrue(\"incorrect value in clone\", clonedAttribute.getValue().equals(attributeValue));\n assertEquals(\"incoorect attribute type in clone\", clonedAttribute.getAttributeType(), Attribute.UNDECLARED_TYPE);\n }", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }", "public Function clone();", "public synchronized static <T extends Data> T clone(T value) {\n Object obj = null;\n if (value instanceof Data) {\n Constructor constructor = null;\n try {\n constructor = value.getClass().getDeclaredConstructor(Parcel.class);\n constructor.setAccessible(true);\n } catch (NoSuchMethodException e) {\n new CloneNotSupportedException(\"Make sure the 'protected \" + value.getClass().getSimpleName() + \"(Parcel in, int flag)'\" + \"constructor has been implemented:\" + value.getClass().getName()).printStackTrace();\n }\n\n if (null != constructor) {\n try {\n obj = constructor.newInstance((Parcel) null);\n if (obj instanceof Data) {\n ((T) obj).mThisDataName = (value).mThisDataName;\n ((T) obj).copy(value);\n }\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }\n return ((T) obj);\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "public CareerModel deepCopy() {\n return new CareerModel(this.name, this.riasecCategory,\n this.field, this.category, this.description,\n this.imagePath);\n }", "@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }", "public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "DataSource clone();", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public d clone() {\n ArrayList arrayList = this.e;\n int size = this.e.size();\n c[] cVarArr = new c[size];\n for (int i = 0; i < size; i++) {\n cVarArr[i] = ((c) arrayList.get(i)).clone();\n }\n return new d(cVarArr);\n }", "@Override\n\tpublic DataType copy(DataTypeManager dtm) {\n\t\tStructureDataType struct =\n\t\t\tnew StructureDataType(getCategoryPath(), getName(), getLength(), dtm);\n\t\tstruct.setDescription(getDescription());\n\t\tstruct.replaceWith(this);\n\t\treturn struct;\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public DessertVO clone() {\r\n return (DessertVO) super.clone();\r\n }", "protected AbstractChartModel copy(AbstractChartModel aCopy) {\n aCopy.title = title;\n aCopy.xAxisTitle = xAxisTitle;\n aCopy.yAxisTitle = yAxisTitle;\n aCopy.xRangeMax = xRangeMax;\n aCopy.xRangeMin = xRangeMin;\n aCopy.xRangeIncr = xRangeIncr;\n aCopy.yRangeMax = yRangeMax;\n aCopy.yRangeMin = yRangeMin;\n aCopy.yRangeIncr = yRangeIncr;\n aCopy.simModel = simModel;\n ArrayList list = new ArrayList();\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource) dataSources.get(i);\n list.add(ds.copy());\n }\n aCopy.dataSources = list;\n\n return aCopy;\n }", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}", "@Override\n public Object clone() throws CloneNotSupportedException{\n return super.clone();\n }", "@Override\r\n\tpublic DistributionSystemSetupTimes clone() {\r\n\t\tfinal DistributionSystemSetupTimes clone=new DistributionSystemSetupTimes();\r\n\t\tclone.setData(this);\r\n\r\n\t\treturn clone;\r\n\t}", "public void Duplicate()\n {\n\n tacc2 = tacc.clone();\n px2 = px.clone();\n py2 = py.clone();\n pz2 = pz.clone();\n\n tgyro2 = tgyro.clone();\n\n accx2 = accx.clone();\n accy2 = accy.clone();\n accz2 = accz.clone();\n\n lng2 = lng.clone();\n lat2 = lat.clone();\n }", "public void copy() {\n\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void cloneImage() {\n//\t\tColorModel cm = offimg.getColorModel();\n//\t\t boolean isAlphaPremultiplied = cm.isAlphaPremultiplied();\n//\t\t WritableRaster raster = offimg.copyData(null);\n//\t\t offimg2 = new BufferedImage(cm, raster, isAlphaPremultiplied, null);\n//\t\t BufferedImage currentImage = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);\n\n\t//Fastest method to clone the image (DOES NOT WORK for MACOS)\n//\t\t int[] frame = ((DataBufferInt)offimg.getRaster().getDataBuffer()).getData();\n//\t\t int[] imgData = ((DataBufferInt)offimg2.getRaster().getDataBuffer()).getData();\n//\t\t System.arraycopy(frame,0,imgData,0,frame.length);\n\t}", "Object clone();", "Object clone();", "Component deepClone();", "protected abstract VerifiableSensorOperation doClone();", "@Test\n public void testCloning() throws CloneNotSupportedException {\n DefaultPieDataset d1 = new DefaultPieDataset();\n d1.setValue(\"V1\", new Integer(1));\n d1.setValue(\"V2\", null);\n d1.setValue(\"V3\", new Integer(3));\n DefaultPieDataset d2 = (DefaultPieDataset) d1.clone();\n\n assertTrue(d1 != d2);\n assertTrue(d1.getClass() == d2.getClass());\n assertTrue(d1.equals(d2));\n }", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "protected void copyFrom(MCAlarmInfo srcInfo)\n\t{\n\t\tsetType(srcInfo.getType());\n\n\t\tsetTitle(srcInfo.getTitle());\n\n\t\tsetHour(srcInfo.getHour());\n\t\tsetMinute(srcInfo.getMinute());\n\t\tsetTimeZone(srcInfo.getTimeZone());\n\n\t\tsetData(srcInfo.getData());\n\t}", "public void _shallowCopyInternal(SL_Obj fromObjArg) {\n SATableReadCapabilityAttributesExtension fromObj = (SATableReadCapabilityAttributesExtension)fromObjArg;\n super._shallowCopyInternal((SL_Obj)fromObj);\n\n setPreSQL(fromObj.getPreSQL());\n\n setPostSQL(fromObj.getPostSQL());\n\n setRowOffSet(fromObj.getRowOffSet());\n\n setRowLimit(fromObj.getRowLimit());\n }", "@Override\npublic final Object clone() {\n return new ClockTime(dateValue());\n }", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\treturn super.clone();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\tCustomerList mylist = (CustomerList) super.clone();\n\t\ttry {\n\t\t\n\t\t\tmylist.m_prodList = (HashMap<Product,Integer>) m_prodList.clone();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Clone problem\");\n\t\t}\n\t\t\t\n\t\treturn mylist;\n\t}", "@Override // com.google.android.gms.internal.measurement.zzgi, java.lang.Object\n public /* synthetic */ Object clone() throws CloneNotSupportedException {\n zza zza2 = (zza) this.zzc.zza(zzf.zze, null, null);\n zza2.zza((zza) ((zzib) zzu()));\n return zza2;\n }", "@Override\n\tpublic Object deepCopy() {\n\t\tfinal UIAnimationMutable clone = new UIAnimationMutable(getName(), events.size(), controllers.size());\n\t\tfor (int i = 0, len = controllers.size(); i < len; ++i) {\n\t\t\tclone.controllers.add((UIController) controllers.get(i).deepCopy());\n\t\t}\n\t\tfor (int i = 0, len = events.size(); i < len; ++i) {\n\t\t\tfinal UIAttribute p = events.get(i);\n\t\t\tclone.events.add((UIAttribute) p.deepCopy());\n\t\t}\n\t\tclone.nextEventsAdditionShouldOverride = nextEventsAdditionShouldOverride;\n\t\tif (driver != null) {\n\t\t\tclone.driver = (UIAttribute) driver.deepCopy();\n\t\t}\n\t\treturn clone;\n\t}", "@Override\n public JokerVehicle clone(){\n return new JokerVehicle();\n }", "@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "public Object clone() throws CloneNotSupportedException { return super.clone(); }", "public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }", "public static void main(String[] args) throws CloneNotSupportedException {\n\t\tHouse house1 = new House(1,140.50);\r\n\t\tHouse house2 = (House) house1.clone();\r\n\t\tSystem.out.println(\" house1 id: \"+house1.getId()+\" area: \"+house1.getArea()+\" whenBuilt: \"+house1.getWhenBuilt());\r\n\t\t\r\n\t\tSystem.out.println(\" house2 id: \"+house2.getId()+\" area: \"+house2.getArea()+\" whenBuilt: \"+house2.getWhenBuilt());\r\n\t\t\r\n\t}", "public Card makeCopy(){\n return new Card(vimage);\n }", "public abstract Pessoa clone();", "public MmeApnSelectionProfile cloneShallow() {\n MmeApnSelectionProfile copy;\n try {\n copy = new MmeApnSelectionProfile(getNameValue().toString());\n } catch (JNCException e) {\n copy = null;\n }\n return (MmeApnSelectionProfile)cloneShallowContent(copy);\n }", "public abstract Object clone() ;", "public Object clone(){\n\t\tSongRecord cloned = new SongRecord();\n\t\tif (this.title == null){\n\t\t\tcloned.title = null;\n\t\t}\n\t\telse {\n\t\t\tcloned.title = new String(this.getTitle());\n\t\t}\n\t\tif (this.artist == null){\n\t\t\tcloned.artist = null;\n\t\t}\n\t\telse {\n\t\t\tcloned.artist = new String(this.getArtist());\n\t\t}\n\t\tcloned.min = this.getMin();\n\t\tcloned.sec = this.getSec();\n\t\treturn cloned;\n\t}", "@Override\n\tprotected Volga clone() throws CloneNotSupportedException {\n\t\tVolga v = (Volga) super.clone();\n\t\tv.modelname = v.modelname + \"-clone\";\n\t\treturn v;\n\t}", "@Test\n public void testInfoCopyTest() {\n assertTestInfoSpecies(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER, new TestInfo());\n\n // Changing information other than species will not affect the copy\n testInfoCopyTest(false, new TestInfo());\n testInfoCopyTest(false, new TestInfo().attacking(AbilityNamesies.OVERGROW));\n testInfoCopyTest(false, new TestInfo().defending(AbilityNamesies.BLAZE));\n\n // Even if the default Pokemon are explicitly set, it will override the setting in the copy\n testInfoCopyTest(true, new TestInfo(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER));\n testInfoCopyTest(true, new TestInfo().attacking(PokemonNamesies.BULBASAUR));\n testInfoCopyTest(true, new TestInfo().defending(PokemonNamesies.CHARMANDER));\n }", "public abstract Object clone();", "@Override\n protected PrMorb1000 clone() throws CloneNotSupportedException {\n return (PrMorb1000) super.clone();\n }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public MmeApnSelectionProfile clone() {\n MmeApnSelectionProfile copy;\n try {\n copy = new MmeApnSelectionProfile(getNameValue().toString());\n } catch (JNCException e) {\n copy = null;\n }\n return (MmeApnSelectionProfile)cloneContent(copy);\n }", "@Override\n\tpublic Automaton clone() {\n\t\tAutomaton a;\n\t\t// Try to create a new object.\n\t\ttry {\n\t\t\ta = getClass().newInstance();\n\t\t} catch (final Throwable e) {\n\t\t\t// Well golly, we're sure screwed now!\n\t\t\tlogger.error(\"Warning: clone of automaton failed: {}\", e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t\ta.setEnvironmentFrame(getEnvironmentFrame());\n\n\t\t// Copy over the states.\n\t\tfinal HashMap<State, State> map = new HashMap<>(); // Old states to new\n\t\t// states.\n\t\tstates.forEach(state -> {\n\t\t\tfinal State newState = new State(state.getID(), new Point(state.getPoint()), a);\n\t\t\tnewState.setLabel(state.getLabel());\n\t\t\tnewState.setName(state.getName());\n\t\t\tmap.put(state, newState);\n\t\t\ta.addState(newState);\n\t\t\tif (this instanceof MooreMachine) {\n\t\t\t\t((MooreMachine) a).setOutput(newState, ((MooreMachine) this).getOutput(state));\n\t\t\t}\n\t\t});\n\n\t\tfinalStates.forEach(state -> {\n\t\t\ta.addFinalState(map.get(state));\n\t\t});\n\n\t\ta.setInitialState(map.get(getInitialState()));\n\n\t\t// Copy over the transitions.\n\n\t\tstates.forEach(state -> {\n\t\t\tfinal State from = map.get(state);\n\t\t\tgetTransitionsFromState(state).forEach(transition -> {\n\t\t\t\tfinal State to = map.get(transition.getToState());\n\t\t\t\tSystem.err.println(\"Transition name: \" + transition.toString());\n\t\t\t\tfinal Transition toBeAdded = transition.clone();\n\t\t\t\ttoBeAdded.setFromState(from);\n\t\t\t\ttoBeAdded.setToState(to);\n\t\t\t\tSystem.err.println(\"toBeAdded is null: \" + (toBeAdded == null));\n\t\t\t\tSystem.err.println(\"toBeAdded.from is null: \" + (toBeAdded.getFromState() == null));\n\t\t\t\tSystem.err.println(\"toBeAdded.to is null: \" + (toBeAdded.getToState() == null));\n\t\t\t\ta.addTransition(toBeAdded);\n\t\t\t});\n\t\t});\n\n\t\tfinal List<Note> notes = getNotes();\n\t\tfinal List<Note> copyNotes = a.getNotes();\n\t\tcheckArgument(notes.size() == copyNotes.size());\n\n\t\tIntStream.range(0, notes.size()).forEach(i -> {\n\t\t\ta.addNote(new Note(notes.get(i).getAutoPoint(), notes.get(i).getText()));\n\t\t\tcopyNotes.get(i).setView(notes.get(i).getView());\n\t\t});\n\t\t// Should be done now!\n\t\treturn a;\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\n\t}", "private ArrayList<Concert> cloneConcertList(){\n ArrayList<Concert> tempConcertList = new ArrayList<Concert>();\n tempConcertList.addAll(concertList);\n return tempConcertList;\n }", "@Override\n public Object clone() {\n try {\n IdentificationSet<X> newSet = (IdentificationSet<X>) super.clone();\n newSet.map = (HashMap<X, Identification>) map.clone();\n return newSet;\n } catch (CloneNotSupportedException e) {\n throw new InternalError();\n }\n }", "@Override\n protected Message cloneMsgSpecificData()\n {\n WorldBeliefMsg clone = new WorldBeliefMsg(belief);\n return clone;\n }", "public Clone() {}", "public SceneLabelObjectState copy(){\n\n\t\t//get a copy of the generic data from the supertype\n\t\tSceneDivObjectState genericCopy = super.copy(); \n\n\t\t//then generate a copy of this specific data using it (which is easier then specifying all the fields\n\t\t//Separately like we used too)\n\t\tSceneLabelObjectState newObject = new SceneLabelObjectState(\n\t\t\t\tgenericCopy,\n\t\t\t\tObjectsCurrentText,\t\t\n\t\t\t\tCSSname,\n\t\t\t\tcursorVisible,\n\t\t\t\tTypedText,\n\t\t\t\tCustom_Key_Beep,\n\t\t\t\tCustom_Space_Beep);\n\n\t\treturn newObject;\n\n\n\t}", "public CMObject copyOf();", "public Object clone() throws CloneNotSupportedException {\n\t\tColeccionGenerica clonado= null;\n\t\tclonado= (ColeccionGenerica) super.clone();\n\t\tIterator<Integer> keys= clonado.coleccion.keySet().iterator();\n\t\tIterator<T> values= clonado.coleccion.values().iterator();\n\t\tclonado.coleccion.clear();\n\t\twhile (keys.hasNext() && values.hasNext()) {\n\t\t\tclonado.coleccion.put(keys.next(), values.next());\n\t\t}\n\t\treturn clonado;\n\t}", "@Override\n public Product clone() throws CloneNotSupportedException {\n\n Product newObject = (Product)super.clone();\n if(this.category != null) {\n try {\n newObject.category = ((Category) this.category.clone());\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n }\n if(this.price != null) {\n try {\n newObject.price = (this.price.clone());\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n }\n return newObject;\n }", "public Card copy(){\n return new Card(Suits, Value);\n }", "protected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public OnsetCondition clone() {\n OnsetCondition data = new OnsetCondition(this.name);\n data.timeInfos.addAll(this.timeInfos);\n return data;\n }", "public Object clone()\n {\n PSRelation copy = new PSRelation(new PSCollection(m_keyNames.iterator()),\n new PSCollection(m_keyValues.iterator()));\n \n copy.m_componentState = m_componentState;\n copy.m_databaseComponentId = m_databaseComponentId;\n copy.m_id = m_id;\n\n return copy;\n }", "public MossClone() {\n super();\n }", "@Override\r\n\tpublic ComputerPart clone() {\n\t\treturn null;\r\n\t}", "Prototype makeCopy();" ]
[ "0.6488974", "0.64537764", "0.62518543", "0.61892647", "0.6073042", "0.6068961", "0.60606414", "0.6012142", "0.5965371", "0.59485847", "0.5914098", "0.5890429", "0.58886635", "0.5854227", "0.5840478", "0.5838458", "0.57677764", "0.5749793", "0.5735633", "0.5733367", "0.5729666", "0.57268834", "0.57237977", "0.57237977", "0.57237977", "0.5715698", "0.56855464", "0.5676584", "0.5667827", "0.5665908", "0.5665908", "0.5665908", "0.5665908", "0.5665908", "0.5665908", "0.5665908", "0.5665908", "0.5665908", "0.5655395", "0.56454074", "0.56179565", "0.561366", "0.56111217", "0.56046844", "0.56028086", "0.55997", "0.55992943", "0.55862933", "0.55862933", "0.557875", "0.5572041", "0.55711025", "0.5545676", "0.55373234", "0.55235344", "0.5514896", "0.5509022", "0.55061615", "0.55005634", "0.55005634", "0.55005634", "0.54984707", "0.5491336", "0.5490166", "0.54883224", "0.5482915", "0.54649884", "0.5448206", "0.5447882", "0.5446952", "0.54377526", "0.54364276", "0.5435375", "0.5433899", "0.54242903", "0.54240525", "0.5422164", "0.5421271", "0.5421264", "0.54181165", "0.54181165", "0.54181165", "0.54181165", "0.54121554", "0.54014325", "0.54010636", "0.53999186", "0.53972864", "0.5385796", "0.53853947", "0.5384752", "0.5382677", "0.5379813", "0.53791595", "0.5372533", "0.5369786", "0.53685653", "0.53670406", "0.5362803", "0.53599876", "0.53572565" ]
0.0
-1
this.paymentDateTime = new DateTime(paymentDateTime);
public void setPaymentDateTime(DateTime paymentDateTime) { this.paymentDateTime = paymentDateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }", "public void setDate(DateTime \n date) {\n this.date = date;\n }", "private DateTimeAdjusters() {\n\n }", "public void setDatetime(LocalDateTime datetime){\n this.datetime = datetime;\n }", "public Date getPaymentTime() {\n\t\treturn paymentTime;\n\t}", "public DateTime() {\n this((BusinessObject) null);\n }", "public Date getPayTime() {\n return payTime;\n }", "public Date getPayTime() {\n return payTime;\n }", "public User(){\n registerDate = new LocalDateTime();\n }", "public void setDealingTime(Date dealingTime)\n/* */ {\n/* 171 */ this.dealingTime = dealingTime;\n/* */ }", "public void setPaymentDate( Date paymentDate ) {\n this.paymentDate = paymentDate;\n }", "public DateTime getArrivalDateTime() {\n return arrivalDateTime;\n }", "public void setDueDate(Date d){dueDate = d;}", "public Date getRegisterDateTime() { return registerDateTime; }", "public LocalDateTime getDateTime() {\n return dateTime;\n }", "public DateTime getDateTime()\n\t{\n\t\treturn null;\n\t}", "public String getIncomingPaymentDate() {\n return incomingPaymentDate;\n }", "public DateTime() {\n setCharacteristic(null);\n setYear(1582);\n setMonth(0);\n setDay(1);\n setHours(0);\n setMinutes(0);\n setSeconds(0);\n }", "public void setDatetime(Date datetime) {\n\t\tthis.datetime = datetime;\n\t}", "public Date getWishPaymentTime() {\n return wishPaymentTime;\n }", "@Override\r\n\tpublic long getPaidDateTime() {\n\t\treturn 0;\r\n\t}", "@Override\n public void setDateTimeService(DateTimeService dateTimeService) {\n this.dateTimeService = dateTimeService;\n }", "public void setDatetime(long datetime) {\n this.datetime = datetime;\n }", "public Calendar getDateTime() {\n return dateTime;\n }", "private final void m43719a(DateTime dateTime) {\n m43714a().edit().putString(ManagerWebServices.PARAM_LAST_ACTIVITY_DATE, dateTime.a(C8802d.f30889a)).apply();\n }", "public Date getPaidTime() {\n return paidTime;\n }", "public void setPaymentTime(Date paymentTime) {\n\t\tthis.paymentTime = paymentTime;\n\t}", "@Override\n public DateTimeService getDateTimeService() {\n return dateTimeService;\n }", "if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "public void setDatetime(XMLGregorianCalendar dateTime) {\r\n\t\tthis.datetime = dateTime;\r\n\t}", "@Override\n\tpublic void setPaymentDate(java.util.Date paymentDate) {\n\t\t_esfShooterAffiliationChrono.setPaymentDate(paymentDate);\n\t}", "public void setUppdateTime(Date uppdateTime) {\n this.uppdateTime = uppdateTime;\n }", "public pay_date() {\n initComponents();\n }", "public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }", "public void setDateInvoiced (Timestamp DateInvoiced);", "public Date getUppdateTime() {\n return uppdateTime;\n }", "public Date getDealingTime()\n/* */ {\n/* 159 */ return this.dealingTime;\n/* */ }", "public Date getDate() {\n return dateTime;\n }", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\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 void setUpdateDatetime(Date updateDatetime);", "@Test\n public void testSetRegistrationDate1() {\n LocalDateTime now = LocalDateTime.now();\n user1.setRegistrationDate(now);\n assertEquals(\"RegistrationDate should be \" + now.toString(), user1.getRegistrationDate(), now);\n }", "public long getDatetime() {\n return datetime;\n }", "void setInvoicedDate(Date invoicedDate);", "@Override\r\n\tpublic void pay(long dateTime, float charge) {\n\t\t\r\n\t}", "public void setDateTimeService(DateTimeService dateTimeService) {\n this.dateTimeService = dateTimeService;\n }", "public void setRequestDate(Date requestDate);", "public void setDateAcct (Timestamp DateAcct);", "public void setDateAcct (Timestamp DateAcct);", "public String getDatetime() {\n return datetime;\n }", "public Date getTransactrateDate() {\n return transactrateDate;\n }", "@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setWishPaymentTime(Date wishPaymentTime) {\n this.wishPaymentTime = wishPaymentTime;\n }", "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "long getDateTime();", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "public void setDate() {\n this.date = new Date();\n }", "public DateTime(String datetime) {\n super();\n if(datetime!=null) {\n try {\n SimpleDateFormat f = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = (Date)f.parse(datetime);\n this.setTime(date.getTime());\n } catch (ParseException e) {\n }\n\n }\n }", "public void setDateInvoice(Date dateInvoice) {\n this.dateInvoice = dateInvoice;\n }", "public void setDateTime(String datetime) {\n\t\tlog.trace(\"Set dateTime to [{}]\", datetime);\n\t\tthis.dateTime = datetime;\n\t}", "public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }", "private void calculatePaymentDate() {\n\t\t\tBmoReqPayType bmoReqPayType = (BmoReqPayType)reqPayTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoReqPayType == null && bmoRequisition.getReqPayTypeId().toInteger() > 0) {\n\t\t\t\tbmoReqPayType = bmoRequisition.getBmoReqPayType();\n\t\t\t}\n\t\t\tif (bmoReqPayType != null) {\n\t\t\t\tif (!deliveryDateBox.getTextBox().getValue().equals(\"\")) {\n\t\t\t\t\tDate dueDate = DateTimeFormat.getFormat(getUiParams().getSFParams().getDateFormat()).parse(deliveryDateBox.getTextBox().getValue());\n\t\t\t\t\tCalendarUtil.addDaysToDate(dueDate, bmoReqPayType.getDays().toInteger());\n\t\t\t\t\tpaymentDateBox.getDatePicker().setValue(dueDate);\n\t\t\t\t\tpaymentDateBox.getTextBox().setValue(GwtUtil.dateToString(dueDate, getSFParams().getDateFormat()));\n\t\t\t\t}\n\t\t\t} else reqPayTypeListBox.setSelectedId(\"-1\");\t\t\t\t\n\t\t}", "public Date getActualBuyingTime() {\n return actualBuyingTime;\n }", "public Date getCheckoutDate() {\n return checkoutDate;\n }", "public void setPaidTime(Date paidTime) {\n this.paidTime = paidTime;\n }", "protected void setReturnDate(Date d){ this.returnDate = d; }", "public void setShipped(){\n this.shipped = new Date();\n }", "public void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);", "public DateTime getDepartDateTime() {\n return departDateTime;\n }", "public void setBirthDate(Date birthDate);", "public MyDate(long inElapsedTime)\n {\n //put in logic here\n elapsedTime = inElapsedTime;\n this.setDate(elapsedTime);\n }", "public Date getStudyDateTime()\n {\n return studyDateTime;\n }", "public void setValidatedTo(Date validatedTo);", "protected void saveLocalDate() {\n\n }", "public LocalDateTime getDateTime() {\n return null;\n }", "public void setRequestDate(Date requestDate) { this.requestDate = requestDate; }", "public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }", "public Date getPayDate() {\n\t\treturn payDate;\n\t}", "public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }", "public void setPAYMENT_DATE(Date PAYMENT_DATE) {\r\n this.PAYMENT_DATE = PAYMENT_DATE;\r\n }", "public void setBirthDate(Date inBirthDate)\n {\n birthdate = inBirthDate;\n }", "public void setPayTime(Date payTime) {\n this.payTime = payTime;\n }", "public void setPayTime(Date payTime) {\n this.payTime = payTime;\n }", "public String getPayoutDate() {\n return payoutDate;\n }", "public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }", "public OneTimeDonation(float amount, LocalDateTime date) {\n super(amount, date);\n }", "public DateTime(final BusinessObject parent) {\n super(parent);\n if (clock == null) {\n throw new ApplicationException(\"Clock not set up\");\n }\n setValue(new java.util.Date(clock.getTime()));\n isNull = false;\n }", "public void setMovementDate (Timestamp MovementDate);", "public OffsetDateTime getDateTime() {\n return this.dateTime;\n }", "public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "public Date getRealEstablish() {\r\n return realEstablish;\r\n }", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "public DateTime getBilledAt() {\n return this.billedAt;\n }", "public DateTime getDateTimeValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' does not have a DateTime.\");\n }" ]
[ "0.6856077", "0.685116", "0.6466686", "0.64195687", "0.63828576", "0.63549405", "0.6341382", "0.6341382", "0.6301663", "0.62898433", "0.6265056", "0.62210345", "0.62104607", "0.6182915", "0.61827075", "0.6180072", "0.6167843", "0.6152373", "0.6140807", "0.61044955", "0.6082641", "0.6063225", "0.6061349", "0.60611933", "0.6060842", "0.605514", "0.60549945", "0.60431206", "0.6026365", "0.6006325", "0.6006325", "0.5998172", "0.5991177", "0.5987778", "0.5964749", "0.59358746", "0.5935227", "0.5912047", "0.590299", "0.5892037", "0.58874905", "0.5883208", "0.5883208", "0.58747363", "0.58736336", "0.58722466", "0.5868774", "0.5866281", "0.5858295", "0.58563423", "0.58513904", "0.58513904", "0.58296514", "0.5829613", "0.58228576", "0.5821846", "0.5809886", "0.58093894", "0.58093894", "0.58080757", "0.57926047", "0.5791539", "0.57839715", "0.5782846", "0.57770926", "0.57746583", "0.5773863", "0.576594", "0.57545686", "0.57429284", "0.57354856", "0.5731046", "0.57271314", "0.57249975", "0.5719504", "0.57181746", "0.571736", "0.57060635", "0.5703731", "0.57015485", "0.57005465", "0.56929123", "0.56922805", "0.56865853", "0.56865853", "0.5681506", "0.56794316", "0.56794316", "0.56761664", "0.56757903", "0.5674669", "0.5668764", "0.5666033", "0.56633353", "0.5662605", "0.56603205", "0.56538355", "0.5650006", "0.56488067", "0.5647174" ]
0.7331451
0
Create a sample invalid KB HL support.
@SubL(source = "cycl/kb-hl-supports.lisp", position = 33298) public static final SubLObject create_sample_invalid_kb_hl_support() { return make_kb_hl_support(UNPROVIDED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = TrainException.class)\n\tpublic void testCreateLocomotiveWithInvalidOneDigitSpecification() throws TrainException\n\t{\n\t\tString invalidSpecification = \"Z\";\n\t\tInteger validGrossWeight = 5;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock locomotiveWithInvalidSpecification = \n\t\t\t\tnew asgn2RollingStock.Locomotive(validGrossWeight , invalidSpecification);\n\t}", "@Test\r\n public void testCreateInvalid() throws PAException {\r\n thrown.expect(PAException.class);\r\n thrown.expectMessage(\"Missing Disease/Condition. \");\r\n StudyProtocol studyProtocol = TestSchema.createStudyProtocolObj();\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(studyProtocol.getId());\r\n StudyDiseaseDTO studyDiseaseDTO = new StudyDiseaseDTO();\r\n studyDiseaseDTO.setStudyProtocolIdentifier(spIi);\r\n studyDiseaseDTO.setCtGovXmlIndicator(BlConverter.convertToBl(true));\r\n bean.create(studyDiseaseDTO);\r\n }", "@Test(expected = TrainException.class)\n\tpublic void testCreateLocomotiveWithInvalidSpecification() throws TrainException\n\t{\n\t\tString invalidSpecification = \"3Z\";\n\t\tInteger validGrossWeight = 5;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock locomotiveWithInvalidSpecification = \n\t\t\t\tnew asgn2RollingStock.Locomotive(validGrossWeight , invalidSpecification);\n\t}", "private void addSampleData() {\r\n }", "@Test\n public void create_400() throws Exception {\n\n // PREPARE THE DATABASE\n // No data needed in database\n\n // PREPARE THE TEST\n // No preparation needed\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(400, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"Wrong inputs\", body);\n\n }", "com.indosat.eai.catalist.standardInputOutput.DummyInputDocument.DummyInput addNewDummyInput();", "@Test(expected=RuntimeException.class)\n public void missingPartOfHeader(){\n Header h;\n SimpleReader sr = new SimpleReader();\n String fileForLexer = sr.FileToString(\"sample_abc/invalid_for_testing.abc\");\n abcLexer lex = new abcLexer(fileForLexer);\n abcParser parser = new abcParser(lex);\n h=parser.parseHeader();}", "@Test(expected = TrainException.class)\n\tpublic void testCreateLocomotiveWithInvalidGrossWeight() throws TrainException\n\t{\n\t\tString validClassification = \"5E\";\n\t\tInteger invalidGrossWeight = -1;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock locomotiveWithInvalidGrossWeight = \n\t\t\t\tnew asgn2RollingStock.Locomotive(invalidGrossWeight , validClassification);\n\t}", "ExpProtocol ensureSampleAliquotProtocol(User user) throws ExperimentException;", "int rawDataCreateDownSampleLevelNumber();", "@Override public void createSample(Sample sample)\n {\n try\n {\n clientDoctor.createSample(sample);\n }\n catch (RemoteException e)\n {\n throw new RuntimeException(\"Error while creating sample. Please try again.\");\n }\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n String string0 = \"iody27>B{<G\";\n NucleotideSequence nucleotideSequence0 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence0).getLength();\n QualitySequence qualitySequence0 = mock(QualitySequence.class, new ViolatedAssumptionAnswer());\n NucleotideSequence nucleotideSequence1 = mock(NucleotideSequence.class, new ViolatedAssumptionAnswer());\n doReturn(0L).when(nucleotideSequence1).getLength();\n ArtificialPhd artificialPhd0 = ArtificialPhd.createNewbler454Phd(\"iody27>B{<G\", nucleotideSequence1, qualitySequence0);\n Map<String, String> map0 = artificialPhd0.getComments();\n ArtificialPhd artificialPhd1 = ArtificialPhd.createNewbler454Phd(\"iody27>B{<G\", nucleotideSequence0, qualitySequence0, map0);\n PhdBuilder phdBuilder0 = null;\n try {\n phdBuilder0 = new PhdBuilder(artificialPhd1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // initial capacity should be > 0 :0\n //\n verifyException(\"org.jcvi.jillion.internal.core.util.GrowableShortArray\", e);\n }\n }", "@Test\n public void officeActionCreateWithMismatchingEviCaseNo77777778() {\n // This test case validate the understanding based on which the create\n // office-action api has been developed.\n // ie, while creating an office-action inside a given serial number the\n // incoming association of evidence file has to match\n // the serial number of office-action.\n // In-other words the incoming associated evidence files needs to exists\n // inside the same office-action case number.\n testCreateSampleEviOneForOffActn78();\n testCreateSampleEviTwoForOffActn78();\n testCreateOfficeAction77();\n }", "@Test\n @Tag(\"bm1000\")\n public void testRECIPELP() {\n CuteNetlibCase.doTest(\"RECIPELP.SIF\", \"-266.616\", \"-104.818\", NumberContext.of(7, 4));\n }", "public Object create(String key_letters) throws XtumlException;", "@Test\n @Tag(\"bm1000\")\n public void testADLITTLE() {\n CuteNetlibCase.doTest(\"ADLITTLE.SIF\", \"225494.96316238036\", null, NumberContext.of(7, 4));\n }", "@Test \n public void bookHotelTestError1() throws DatatypeConfigurationException, BookHotelFault { \n BookHotelInputType input = CreateBookHotelInputType(\"Hello you\", \"Tick Joachim\", \"50408824\", 2, 11);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The booking number you provided was not linked to any hotel\", e.getMessage());\n } \n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n @Disabled\n public void illTest(){\n ExerciseSotrageHandler exerciseSotrageHandler = new ExerciseSotrageHandler();\n Exercise exercise = exerciseSotrageHandler.createExercise();\n }", "@Test\n @Tag(\"bm1000\")\n public void testBOEING1() {\n CuteNetlibCase.doTest(\"BOEING1.SIF\", \"-335.2135675071266\", \"286.9746573387996\", NumberContext.of(7, 4));\n }", "@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }", "@PostMapping()\n @ApiOperation(value = \"생성\")\n public ApiResult create(@RequestBody SampleDto sampleDto){\n log.info(\"Create\");\n\n return OK(\n sampleService.create(\n sampleDto.getTitle(), sampleDto.getDescription()\n )\n );\n }", "@Test\n @Tag(\"bm1000\")\n public void testBOEING2() {\n CuteNetlibCase.doTest(\"BOEING2.SIF\", \"-3.1501872802E+02\", \"-73.36896910872208\", NumberContext.of(7, 4));\n }", "public ProblematicSingleDataUnit(String sampleId, String sampleInput, String sampleOutput) {\n if(sampleId.length() == 0){this.sampleId = \"MISSING\";}else{this.sampleId = sampleId;}\n if(sampleInput.length() == 0){this.sampleInput = \"MISSING\";}else{this.sampleInput = sampleId;}\n if(sampleOutput.length() == 0){this.sampleOutput = \"MISSING\";}else{this.sampleOutput = sampleId;}\n }", "public Sample(Date sampledate, double WBC,int platelet, double RBC, double HCT) throws Exception \n {\n // initialise instance variables\n this.sampledate = sampledate;\n this.WBC = WBC;\n this.platelet = platelet;\n this.RBC = RBC;\n this.HCT = HCT;\n if (platelet <= 1 || platelet >= 700) throw new Exception(\"Invalid Platelet Value \" + platelet); \n if (WBC <= 1 || WBC >= 50 ) throw new Exception (\"Invalid WBC value \" + WBC);\n if (RBC <= 1 || WBC >= 30 ) throw new Exception (\"Invalid RBC value \" + RBC); \n if (HCT <= 20 || HCT >= 60 ) throw new Exception (\"Invalid Hematocrit value \" + HCT); \n \n }", "@Test\n public void testAddReading() {\n System.out.println(\"addReading\");\n BMIData bmid = new BMIData();\n BMIReadings instance = new BMIReadings();\n fail(\"Not Yet Implemented.\");\n \n }", "public void testConstructorWithMalformedTypeSpecification8() throws Exception {\r\n root.addChild(createObject(\"name\", TYPE_INT));\r\n\r\n try {\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }", "public void testNewSeqNewNamedSrc() throws Exception\n {\n String accid = \"NOGOOD\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setLibraryName(\"name5\");\n raw.setCellLine(\"HeLa\");\n raw.setGender(\"Male\");\n raw.setOrganism(\"mouse, laboratory\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertTrue(ms.getMSKey().intValue() > 0); // a new key was created\n // cleanup new record\n sqlMgr.executeUpdate(\n \"delete prb_source where _source_key = \" + ms.getMSKey()\n );\n }", "public void testNewSeqNewSrc() throws Exception\n {\n String accid = \"NOGOOD\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setGender(\"Male\");\n raw.setCellLine(\"HeLa\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertTrue(ms.getMSKey().intValue() > 0); // a new key was created\n // cleanup new record\n sqlMgr.executeUpdate(\n \"delete prb_source where _source_key = \" + ms.getMSKey()\n );\n }", "private MolecularSample createTestSample() {\n testMolecularSample = new MolecularSample();\n testMolecularSample.setName(TEST_MOLECULAR_SAMPLE_NAME_CREATE);\n testMolecularSample.setMaterialSample(TEST_MATERIAL_SAMPLE_UUID);\n testMolecularSample.setSampleType(TEST_MOLECULAR_SAMPLE_SAMPLE_TYPE);\n \n persist(testMolecularSample);\n \n return testMolecularSample;\n }", "@Test\n @Tag(\"bm1000\")\n public void testFFFFF800() {\n CuteNetlibCase.doTest(\"FFFFF800.SIF\", \"555679.5648174941\", \"1858776.4328128027\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n public void createNewCase_withNoAddressTypeForEstab() throws Exception {\n doCreateNewCaseTest(\n \"Floating palace\", EstabType.OTHER, AddressType.SPG, CaseType.SPG, AddressLevel.U);\n }", "public static final SubLObject setup_kb_hl_supports_file() {\n access_macros.register_macro_helper($sym8$DO_KB_HL_SUPPORT_DEPENDENTS_HELPER, $sym9$DO_KB_HL_SUPPORT_DEPENDENTS);\n Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_kb_hl_support$.getGlobalValue(), Symbols.symbol_function($sym19$KB_HL_SUPPORT_PRINT_FUNCTION_TRAMPOLINE));\n Structures.def_csetf($sym20$KB_HLS_ID, $sym21$_CSETF_KB_HLS_ID);\n Equality.identity($sym12$KB_HL_SUPPORT);\n Structures.register_method(Sxhash.$sxhash_method_table$.getGlobalValue(), $dtp_kb_hl_support$.getGlobalValue(), Symbols.symbol_function($sym28$SXHASH_KB_HL_SUPPORT_METHOD));\n Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_kb_hl_support_content$.getGlobalValue(), Symbols.symbol_function($sym36$KB_HL_SUPPORT_CONTENT_PRINT_FUNCTION_TRAMPOLINE));\n Structures.def_csetf($sym37$KB_HLSC_ARGUMENT, $sym38$_CSETF_KB_HLSC_ARGUMENT);\n Structures.def_csetf($sym39$KB_HLSC_DEPENDENTS, $sym40$_CSETF_KB_HLSC_DEPENDENTS);\n Equality.identity($sym29$KB_HL_SUPPORT_CONTENT);\n subl_macro_promotions.declare_defglobal($sym43$_KB_HL_SUPPORTS_FROM_IDS_);\n access_macros.register_macro_helper($sym53$DO_KB_HL_SUPPORTS_TABLE, $sym54$DO_KB_HL_SUPPORTS);\n subl_macro_promotions.declare_defglobal($sym58$_KB_HL_SUPPORT_INDEX_);\n subl_macro_promotions.declare_defglobal($sym65$_KB_HL_SUPPORTS_BEING_CREATED_);\n access_macros.register_macro_helper($sym75$PROCESS_TMS_KB_HL_SUPPORT_QUEUE, $sym76$WITH_KB_HL_SUPPORT_REJUSTIFICATION);\n access_macros.register_macro_helper($sym78$CREATE_KB_HL_SUPPORT_DUMP_ID_TABLE, $sym79$WITH_KB_HL_SUPPORT_DUMP_ID_TABLE);\n return NIL;\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW7() {\n CuteNetlibCase.doTest(\"GROW7.SIF\", \"-4.7787811814711526E7\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testBORE3D() {\n CuteNetlibCase.doTest(\"BORE3D.SIF\", \"1373.0803942085367\", null, NumberContext.of(7, 4));\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCreateIllegalThaiMoney() {\n setFactory(\"ThaiMoneyFactory\");\n moneyFactory.createMoney(0.9);\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW15() {\n CuteNetlibCase.doTest(\"GROW15.SIF\", \"-1.068709412935753E8\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testGROW22() {\n CuteNetlibCase.doTest(\"GROW22.SIF\", \"-1.608343364825636E8\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testAdd1Entry1() {\n\t\ttry {\n\t\t\tfloat maxLF = (float) 0.5;\n\t\t\tHTableWords h = new HTableWords(maxLF);\n\t\t\tString word = \"abc\";\n\t\t\th.addWord(word);\n\t\t\tassertTrue(h.nbWords() == 1);\n\t\t} catch (WException e) {\n\t\t\tfail();\n\t\t}\n\t}", "public void testExtensionsDummy() throws Exception\n\t{\n\t\t//TODO: test does not validate: either fix test or fix the function\n\t\tm_random.setSeed(692981264);\n\t\ttestExtensions(new DummyTestKeyPairGenerator(m_random));\n\t}", "public abstract FastqSampleGroup create(File sampleDir) throws IOException;", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_NumBins = (-3104);\n discretize0.m_MakeBinary = true;\n try { \n discretize0.setInputFormat((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public void createFailure() {\n\t\tgetController().changeFree(true);\t\t\n\t\tdisplayAdvertisement(\"opponent failure\");\n\t\tvalidate();\n\t}", "Failuredetector.FailureCheck.Builder addSignallingHeader(Failuredetector.FailureCheck.Builder failureCheckMessage);", "@Test\r\n\tpublic void testPrecisionInvalidWeight(){\r\n\t\ttry{\r\n\t\t\tPacker.pack(\"./src/test/resources/precisionInvalidWeight.txt\");\r\n\t\t}catch (APIException e) {\r\n\t\t\t// test passed - exception expected when incorrect parameters are being passed\r\n\t\t\tSystem.out.println(\"Test Passed. PrecisionInvalidWeight.\");\r\n\t\t\treturn;\r\n\t\t} catch (Throwable t){\r\n\t\t\tSystem.out.println(\"Unexpected throwable: \" + t.getMessage());\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\tfail(\"APIException was expected\");\r\n\t}", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.useBinNumbersTipText();\n // Undeclared exception!\n try { \n discretize0.getOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output format defined.\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n Discretize discretize0 = new Discretize(\"Y\");\n discretize0.makeBinaryTipText();\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(3337);\n int int0 = 82;\n // Undeclared exception!\n try { \n binarySparseInstance0.isMissing((Attribute) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n TechnicalInformation technicalInformation0 = lovinsStemmer0.getTechnicalInformation();\n assertFalse(technicalInformation0.hasAdditional());\n }", "@org.junit.Test\n\tpublic void invalidAudioFormat() {\n\t\tAudioFormat format = new AudioFormat(8000, 24, 3, true, true);\n\n\t\tMicrophoneListener listener = new MicrophoneListener() {\n\t\t\t@Override\n\t\t\tpublic void onReceive(byte[] data) {\n\t\t\t}\n\t\t};\n\n\t\tMicrophone mic = new Microphone(format, listener);\n\t\tmic.start();\n\t\ttry {\n\t\t\tThread.sleep(500);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\n\t\tif (mic.isRunning()) {\n\t\t\tfail();\n\t\t}\n\t\tmic.interrupt();\n\t}", "@Test(expected = TrainException.class)\n\tpublic void testCreateFreightCarWithInvalidGoodsType() throws TrainException\n\t{\n\t\tString invalidGoodsType = \"Z\";\n\t\tInteger validGrossWeight = 5;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock freightCarWithInvalidGoodsType = \n\t\t\t\tnew asgn2RollingStock.FreightCar(validGrossWeight , invalidGoodsType);\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testBRANDY() {\n CuteNetlibCase.doTest(\"BRANDY.SIF\", \"1518.509896488128\", null, NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testSEBA() {\n CuteNetlibCase.doTest(\"SEBA.SIF\", \"15711.6\", \"35160.46056\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"bm1000\")\n public void testKB2() {\n CuteNetlibCase.doTest(\"KB2.SIF\", \"-1.74990012991E+03\", \"0.0\", NumberContext.of(7, 4));\n }", "@Override\n public void action(HB hb) {\n hb.reset();\n hb.setStatus(this.getClass().getSimpleName() + \" Loaded\");\n\n final float MAX_PLAYBACK_RATE = 2;\n final float START_PLAY_RATE = 1;\n\n\n // define the duration of our sample. We will set this when the sample is loaded\n float sampleDuration = 0;\n /**************************************************************\n * Load a sample and play it\n *\n * simply type samplePLayer-basic to generate this code and press <ENTER> for each parameter\n **************************************************************/\n\n final float INITIAL_VOLUME = 1; // define how loud we want the sound\n Glide audioVolume = new Glide(INITIAL_VOLUME);\n\n // Define our sample name\n final String SAMPLE_NAME = \"data/audio/long/1979.wav\";\n\n // create our actual sample\n Sample sample = SampleManager.sample(SAMPLE_NAME);\n\n // test if we opened the sample successfully\n if (sample != null) {\n // Create our sample player\n SamplePlayer samplePlayer = new SamplePlayer(sample);\n // Samples are killed by default at end. We will stop this default actions so our sample will stay alive\n samplePlayer.setKillOnEnd(false);\n\n // Connect our sample player to audio\n Gain gainAmplifier = new Gain(HB.getNumOutChannels(), audioVolume);\n gainAmplifier.addInput(samplePlayer);\n HB.getAudioOutput().addInput(gainAmplifier);\n\n /******** Write your code below this line ********/\n\n // we need to assign this new samplePlayer to our class samplePlayer\n this.samplePlayer = samplePlayer;\n\n // Create an on Off Control\n\n // type booleanControl to generate this code \n BooleanControl stopPlayControl = new BooleanControl(this, \"Play\", true) {\n @Override\n public void valueChanged(Boolean control_val) {// Write your DynamicControl code below this line \n // if true, we will play\n samplePlayer.pause(!control_val);\n\n // if we are going to play, we will create the updateThread, otherwise we will kill it\n\n if (control_val){\n // create a new thread if one does not exists\n if (updateThread == null) {\n updateThread = createUpdateThread();\n }\n }\n else\n {\n // if we have a thread, kill it\n if (updateThread != null)\n {\n updateThread.interrupt();\n updateThread = null;\n }\n }\n\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl stopPlayControl code \n\n\n // get our sample duration\n sampleDuration = (float)sample.getLength();\n\n // make our sampleplay a looping type\n samplePlayer.setLoopType(SamplePlayer.LoopType.LOOP_FORWARDS);\n\n // Define what our directions are\n final int PLAY_FORWARD = 1;\n final int PLAY_REVERSE = -1;\n\n // define our playbackRate control\n Glide playbackRate = new Glide(START_PLAY_RATE);\n // define our sample rate\n Glide playbackDirection = new Glide(PLAY_FORWARD); // We will control this with yaw\n\n // This function will be used to set the playback rate of the samplePlayer\n // The playbackDirection will have a value of -1 when it is in reverse, and 1 in forward\n // This is multiplied by the playbackRate to get an absolute value\n Function calculatedRate = new Function(playbackRate, playbackDirection) {\n @Override\n public float calculate() {\n return x[0] * x[1];\n }\n };\n\n // now set the rate to the samplePlayer\n samplePlayer.setRate(calculatedRate);\n\n // Use a Buddy control to change the PlaybackRate\n // Simply type floatBuddyControl to generate this code\n FloatControl playbackRateControl = new FloatControl(this, \"Playback Rate\", START_PLAY_RATE) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line\n playbackRate.setValue((float)control_val);\n // Write your DynamicControl code above this line\n }\n }.setDisplayRange(0, MAX_PLAYBACK_RATE, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl playbackRateControl code\n\n\n // create a checkbox to make it play forward or reverse\n // type booleanControl to generate this code\n BooleanControl directionControl = new BooleanControl(this, \"Reverse\", false) {\n @Override\n public void valueChanged(Boolean control_val) {// Write your DynamicControl code below this line\n if (!control_val){\n playbackDirection.setValue(PLAY_FORWARD);\n }\n else{\n playbackDirection.setValue(PLAY_REVERSE);\n }\n // Write your DynamicControl code above this line\n }\n };// End DynamicControl directionControl code\n\n\n\n // display a slider for position\n // Type floatSliderControl to generate this code \n FloatControl audioPosition = new FloatControl(this, \"Audio Position\", 0) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n samplePlayer.setPosition(control_val);\n setAudioTextPosition(control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_DEFAULT);// End DynamicControl audioPosition code\n\n\n // set our newly created control to the class reference\n audioSliderPosition = audioPosition;\n\n // Type textControl to generate this code \n TextControl audioPositionText = new TextControl(this, \"Audio Position\", \"\") {\n @Override\n public void valueChanged(String control_val) {// Write your DynamicControl code below this line \n // we will decode our string value to audio position\n\n // we only want to do this if we are stopped\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl audioPositionText code \n\n\n\n // set newly create DynamicControl to our class variable\n\n audioTextPosition = audioPositionText;\n // create a thread to update our position while we are playing\n // This is done in a function\n updateThread = createUpdateThread();\n\n // We will set sample Start and End points\n // define our start and end points\n Glide loop_start = new Glide(0);\n Glide loop_end = new Glide(sampleDuration);\n\n samplePlayer.setLoopStart(loop_start);\n samplePlayer.setLoopEnd(loop_end);\n\n // Simply type floatBuddyControl to generate this code \n FloatControl loopStartControl = new FloatControl(this, \"Loop start\", 0) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n float current_audio_position = (float)samplePlayer.getPosition();\n\n if (current_audio_position < control_val){\n samplePlayer.setPosition(control_val);\n }\n loop_start.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl loopStartControl code\n\n\n\n // Simply type floatBuddyControl to generate this code \n FloatControl loopEndControl = new FloatControl(this, \"Loop End\", sampleDuration) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n loop_end.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl loopEndControl code\n\n\n // Add a control to make sample player start at loop start position\n\n // Type triggerControl to generate this code \n TriggerControl startLoop = new TriggerControl(this, \"Start Loop\") {\n @Override\n public void triggerEvent() {// Write your DynamicControl code below this line \n samplePlayer.setPosition(loop_start.getCurrentValue());\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl startLoop code \n\n\n /******** Write your code above this line ********/\n } else {\n HB.HBInstance.setStatus(\"Failed sample \" + SAMPLE_NAME);\n }\n /*** End samplePlayer code ***/\n\n }", "public static void hvitetest1w(){\r\n\t}", "@Test\n @Tag(\"unstable\")\n @Tag(\"bm1000\")\n public void testTUFF() {\n CuteNetlibCase.doTest(\"TUFF.SIF\", \"0.29214776509361284\", \"0.8949901867574317\", NumberContext.of(7, 4));\n }", "@Test\n public void parse_invalidPreamble_failure() {\n assertParseFailure(parser,\n \"1 some random string\" + ACTION_DESC_ADD + GENRE_DESC_SCIENCE_FICTION,\n MESSAGE_INVALID_FORMAT);\n\n // invalid prefix being parsed as preamble\n assertParseFailure(parser,\n \"1 i/ string\" + ACTION_DESC_ADD + GENRE_DESC_SCIENCE_FICTION,\n MESSAGE_INVALID_FORMAT);\n }", "TeststepBlock createTeststepBlock();", "@Test\n public void testCreateLabelInvoiceBarcode_Standard_Failure()\n {\n \t\n \ttry {\n \t\t\n \t\tlogger.info(\"Testing creation of label, invoice and barcode for failure scenario .\");\n \t\tString fileName = \"./com/cts/ptms/carrier/yrc/resources/InputData_Standard_Failure.xml\";\n\t \tURL url = getClass().getClassLoader().getResource(fileName);\n\t\t\tshipmentRequest.setFileName(url.getFile());\n \t\tshipmentRequest.setCarrier(\"YRC\");\n\t \tshipmentRequest.setGenLabel(true);\n\t \tshipmentResponse = yrcSoapClient.createShipmentRequest(shipmentRequest);\n\t \tlogger.info(\"Status:\"+shipmentResponse );\n\t \t\n\t \tassertEquals(\"ERROR\", shipmentResponse.getStatus());\n\t\t\t\n \t} \n\t\tcatch(Exception e)\n\t\t{\n\t\t\tassertEquals(\"Failure\", \"Failure\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Exception occured\"+e.getMessage());\n\t\t}\n \t\n }", "@Test(timeout = 4000)\n public void test366() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Byte byte0 = new Byte((byte)1);\n Label label0 = new Label(errorPage0, byte0);\n Component component0 = label0.samp();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test\n void createInvalidSystemLoinc() throws IOException {\n Exception exception = executeMappingException(\"create-history-of-travel-invalid-system-loinc.json\");\n assertEquals(\"The system is not correct. It should be 'http://loinc.org', but it was 'http://snomed.info/sct'.\", exception.getMessage());\n }", "@Test\n public void testIsCreatable()throws Exception{\n\n NormalDefender nd = new NormalDefender(new Position(0,0),\n generateLevel.getAttackersList());\n assertFalse(generateLevel.isCreatable(nd));\n }", "@Test\n @Tag(\"bm1000\")\n public void testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(44);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance(6);\n binarySparseInstance1.dataset();\n Discretize discretize0 = new Discretize();\n discretize0.setMakeBinary(true);\n try { \n discretize0.setInputFormat((Instances) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "@Before\r\n public void create() {\r\n dataGenerator = new DataGenerator();\r\n dataGenerator.setTextureEngine(new BasicTextureEngine());\r\n// chunkType = new BasicChunkType();\r\n// chunkType.setColumns(30);\r\n// chunkType.setRows(20);\r\n core = new MockDisplayCore();\r\n userCameraInterface = new UserCameraInterface();\r\n\r\n core.build(\"BasicChunkRendererTest\");\r\n\r\n shaderEngine = new BasicShaderEngine();\r\n\r\n// camera = new MockCameraImpl();\r\n camera = new Camera();\r\n camera.setAspectRatio(1);\r\n camera.setFarPlane(100);\r\n camera.setNearPlane(0.1f);\r\n camera.setFieldOfView(60);\r\n\r\n camera.setProjectionMatrixLocation(shaderEngine.get(ShaderProgramType.UNTEXTURED_MOVABLE).getProjectionMatrixLocation());\r\n camera.setModelMatrixLocation(shaderEngine.get(ShaderProgramType.UNTEXTURED_MOVABLE).getModelMatrixLocation());\r\n camera.setViewMatrixLocation(shaderEngine.get(ShaderProgramType.UNTEXTURED_MOVABLE).getViewMatrixLocation());\r\n camera.create();\r\n\r\n userCameraInterface.setCamera(camera);\r\n\r\n renderer=new BasicChunkRenderer();\r\n renderer.setAttributeLocations(new int[] {0,1,2});\r\n renderer.setIndexEngine(new BasicIndexEngine());\r\n renderer.setRows(chunkRows);\r\n renderer.setColumns(chunkColumns);\r\n\r\n chunks = new ArrayList<>();\r\n for (int i = 0; i<totalChunkRows*chunkRows;i=i+chunkRows) {\r\n for (int j = 0; j<totalChunkColumns*chunkColumns;j=j+chunkColumns) {\r\n chunks.add(dataGenerator.createChunk(chunkRows, chunkColumns, i, j));\r\n }\r\n }\r\n\r\n renderer.build(chunks);\r\n\r\n // OpenGLDebugger.printChunkBuffers(chunk);\r\n\r\n }", "@Test\n public void setSampleSizeInBits_minus1() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> {\n final int SAMPLE_SIZE_BITS = -1;\n AudioConfigManager.setSampleSizeInBits(SAMPLE_SIZE_BITS);\n assertEquals(AudioFormatConfig.sampleSizeInBits, SAMPLE_SIZE_BITS);\n });\n }", "@Test\n\tpublic void driverRegisterChapter() {\n\t\tfinal Object testingData[][] = {\n\t\t\t{\n\t\t\t\t\"title1\", \"name1\", \"middleName1\", \"surname1\", \"https://google.com\", \"[email protected]\", \"672195205\", \"address1\", \"chapter56\", \"chapter56\", null\n\t\t\t},//1. All fine\n\t\t\t{\n\t\t\t\t\"\", \"name1\", \"middleName1\", \"surname1\", \"https://google.com\", \"[email protected]\", \"672195205\", \"address1\", \"chapter57\", \"chapter57\", ConstraintViolationException.class\n\t\t\t},//2. Title = blank\n\t\t\t{\n\t\t\t\t\"title1\", \"\", \"middleName1\", \"surname1\", \"https://google.com\", \"[email protected]\", \"672195205\", \"address1\", \"chapter58\", \"chapter58\", ConstraintViolationException.class\n\t\t\t},//3. Name = blank\n\t\t\t{\n\t\t\t\t\"title1\", \"name1\", \"\", \"surname1\", \"https://google.com\", \"[email protected]\", \"672195205\", \"address1\", \"chapter59\", \"chapter59\", null\n\t\t\t},//4. Middle name = blank\n\t\t\t{\n\t\t\t\t\"title1\", \"name1\", \"middleName1\", \"surname1\", \"hola\", \"[email protected]\", \"672195205\", \"address1\", \"chapter61\", \"chapter55\", ConstraintViolationException.class\n\t\t\t},//5. Photo = no URL\n\t\t\t{\n\t\t\t\t\"title1\", \"name1\", \"middleName1\", \"surname1\", \"https://google.com\", \"123455666\", \"672195205\", \"address1\", \"chapter64\", \"chapter64\", IllegalArgumentException.class\n\t\t\t},//6. Email = no pattern\n\n\t\t};\n\n\t\tfor (int i = 0; i < testingData.length; i++)\n\t\t\tthis.templateRegisterChapter((String) testingData[i][0], (String) testingData[i][1], (String) testingData[i][2], (String) testingData[i][3], (String) testingData[i][4], (String) testingData[i][5], (String) testingData[i][6],\n\t\t\t\t(String) testingData[i][7], (String) testingData[i][8], (String) testingData[i][9], (Class<?>) testingData[i][10]);\n\t}", "ExternalExample createExternalExample();", "@Test\n\tpublic void testHw1_1000000LOC26_1()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 result = new hw1_1000000LOC26();\n\t\tassertNotNull(result);\n\t\t// add additional test code here\n\t}", "private static void createTestBestellungHorizontal(){\n\t\ta = new Artikel(\"ASPIRIN Tabl 500 mg Ad 20 Stk\", \"Medikament\", \"0\");\n\t\ta.setEAN(\"7680085370118\");\n\t\tsetPharmacode(a, \"0058910\");\n\t\tAnwender anwender = new Anwender(\"007\", \"topsecret\");\n\t\torder = new Bestellung(\"Test-Bestellung\", anwender);\n\t\torder.addItem(a, 1);\n\t\t\n\t}", "@Test void test1() {\n\t\tAztecCode marker = new AztecEncoder().addUpper(\"C\").addPunctuation(\"!!!\").addDigit(\"0\").addPunctuation(\"!!\").fixate();\n\t\tclearMarker(marker);\n\n\t\tassertTrue(new AztecDecoder().process(marker));\n\n\t\tassertEquals(\"C!!!0!!\", marker.message);\n\t\tassertEquals(0, marker.totalBitErrors);\n\t}", "TestBlock createTestBlock();", "@Test\n public void validHeaderTest(){\n //test for a complete header with some missing values\n Header h;\n SimpleReader sr = new SimpleReader();\n String fileForLexer = sr.FileToString(\"sample_abc/piece1.abc\");\n abcLexer lex = new abcLexer(fileForLexer);\n abcParser parser = new abcParser(lex);\n h=parser.parseHeader();\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getTitle(),\"PieceNo.1\");\n assertEquals(h.getComposer(),\"Unknown\");//uses a default value\n assertEquals(h.getIndex(),\"1\");\n assertEquals(h.getMeter(),\"4/4\");\n assertEquals(h.getNoteLength(),\"1/4\");\n assertEquals(h.getTempo(),\"140\");\n assertEquals(h.getKey(),\"C\");\n }", "public void testHsqlSample_Medium() throws Exception\n {\n execHsqlTest(new Configuration(\"config/evaluator/hsql_sample_medium.xml\"));\n }", "@Test\n public void testValidator() throws Exception {\n\n // No warnings/error\n Device device = buildDevice();\n List<Issue> issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 0);\n\n // Error for missing statusReason\n device = buildDevice().toBuilder().statusReason(Collections.emptyList()).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 1);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 0);\n\n // Warning for statusReason\n device = buildDevice().toBuilder().statusReason(Arrays.asList(\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(\"http://terminology.hl7.org/CodeSystem/device-status-reason\")).code(Code.of(\"invalidCode\")).build()).build(),\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(\"invalidSystem\")).code(Code.of(\"online\")).build()).build()\n )).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Warning for type\n device = buildDevice().toBuilder()\n .type(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build()).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n\n // Error for type\n device = buildDevice().toBuilder()\n .type(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidLanguage\")).build()).build()).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n\n // Warning and error for specialization.systemType\n device = buildDevice().toBuilder().specialization(Arrays.asList(\n Specialization.builder().systemType(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build()).build(),\n Specialization.builder().systemType(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidSystem\")).build()).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Warning and error for safety\n device = buildDevice().toBuilder().safety(Arrays.asList(\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build(),\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(\"invalidSystem\")).code(Code.of(ENGLISH_US)).build()).build()\n )).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Warning for test-language-primary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-primary-extension\")\n .value(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n issues.forEach(System.out::println);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n\n // Error for test-language-primary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-primary-extension\")\n .value(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidLanguage\")).build()).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n assertEquals(FHIRValidationUtil.countInformation(issues), 1);\n\n // Warning for test-language-secondary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-secondary-extension\")\n .value(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Error for test-language-secondary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-secondary-extension\")\n .value(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidLanguage\")).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n assertEquals(FHIRValidationUtil.countInformation(issues), 1);\n\n // Warning for test-language-tertiary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-tertiary-extension\")\n .value(Code.of(\"tlh\")).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Error for test-language-tertiary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-tertiary-extension\")\n .value(Code.of(\"invalidLanguage\")).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCreateIllegalMalayMoney() {\n setFactory(\"MalayMoneyFactory\");\n moneyFactory.createMoney(0.9);\n }", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "@Test\n\tpublic void testInvalidCtor() {\n\t\tSnacksHot nachos = new SnacksHot(\"Chips\", 3, \"100gr\", \"img/icons/box.png\");\n\t\tList<Snack> getraenkeListe = new ArrayList<Snack>();\n\t\ttry {\n\t\t\tgetraenkeListe.add( new SnacksHot(\"Chips\", 3, \"100gr\", \"img/icons/box.png\"));\n\t\t} catch (Exception e) {\n\t\t\t// hier erwarten wir tatsächlich, das uns die exception um die ohren fliegt\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\tassertEquals(\"No object should be created for invalid IBAN\", null, getraenkeListe);\n\t}", "public String createH() {\n\t\t// Create H per the algorithm\n\t\t// Create vertices of X --- The number of vertices in X is taken from the paper\n\t\t// k = (2 + epsilon)log n\n\t\tthis.createXVertices();\n\t\t// Create edges within X (both successive and random)\n\t\tthis.createXEdges();\n\n\t\treturn \"H Created (X Vertices)\";\n\n\t}", "@Override\n\tpublic SuccessMessage create(String kw, String descr, Integer flag,\n\t\t\tString kindOf, String lables, String logo, Integer creator,\n\t\t\tInteger owner) {\n\t\tthrow new I18nMessageException(\"502\");\n\t}", "@DataProvider(name = \"BadReadsTest\")\n public Object[][] makeBadReadsTest() {\n List<Object[]> tests = new ArrayList<>();\n final SAMFileHeader header = ArtificialReadUtils.createArtificialSamHeader(seq.getSequenceDictionary());\n tests.add(new Object[]{\n header,\n ArtificialReadUtils.createArtificialRead(header, \"read1\", 0, 10, 10),\n ArtificialReadUtils.createArtificialRead(header, \"read2\", 0, 9, 10)});\n tests.add(new Object[]{\n header,\n ArtificialReadUtils.createArtificialRead(header, \"read1\", 0, 10, 10),\n ArtificialReadUtils.createArtificialRead(header, \"read2\", 1, 9, 10)});\n tests.add(new Object[]{\n header,\n ArtificialReadUtils.createArtificialRead(header, \"read1\", 1, 10, 10),\n ArtificialReadUtils.createArtificialRead(header, \"read2\", 0, 9, 10)});\n return tests.toArray(new Object[][]{});\n }", "protected abstract void instantiateDataForAddNewTemplate (AsyncCallback<DATA> callbackOnSampleCreated) ;", "QualityScenario createQualityScenario();", "@Test\n void createInvalidCodeLoinc() throws IOException {\n Exception exception = executeMappingException(\"create-history-of-travel-invalid-code.json\");\n assertEquals(\"Expected loinc-code for history of travel, but got 'http://loinc.org:94653-9' instead\", exception.getMessage());\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize(\"GUIEditors.props\");\n discretize0.useBinNumbersTipText();\n // Undeclared exception!\n try { \n discretize0.output();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "public abstract ExternalRecord createExternalRecord()\r\n\t\t\tthrows Exception;", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "public void testInvalidData() throws CSVFormatException, AddMicrosoftBandFileException, FileNotFoundException {\r\n\t\tInputStream testFile = new FileInputStream(fileDirectory + \"MS_Band_Data.csv\");\r\n\t\tAddMicrosoftFileAction apfa = new AddMicrosoftFileAction(testFile, prodDAO, ID);\r\n//\t\tassertEquals(4, apfa.getPatients().size());\r\n\t\tassertTrue(apfa.getErrors().hasErrors());\r\n\t}", "@Test\r\n\tpublic void createChapterDriver() {\r\n\t\tfinal Object testingData[][] = {\r\n\t\t\t{ // Successful test\r\n\t\t\t\t\"producer3\", 305, null\r\n\t\t\t}, { // Content without year\r\n\t\t\t\t\"producer1\", 305, IllegalArgumentException.class\r\n\t\t\t}, { // A user tries to create an content \r\n\t\t\t\t\"user3\", 305, IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++)\r\n\t\t\tthis.createChapterTemplate((String) testingData[i][0], (Integer) testingData[i][1], (Class<?>) testingData[i][2]);\r\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"(vLoO6y2\\\"Vht&{{\", \"(vLoO6y2\\\"Vht&{{\");\n Checkbox checkbox0 = new Checkbox(hidden0, \"!\", \"(vLoO6y2\\\"Vht&{{\");\n // Undeclared exception!\n try { \n checkbox0.samp();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n URL uRL0 = MockURL.getFtpExample();\n ResourceURLContent resourceURLContent0 = new ResourceURLContent(uRL0, true);\n CatalogTexture catalogTexture0 = new CatalogTexture(\"6=];vR`]y%YV(7Ma`Lv\", \"DRAWING_MODE\", resourceURLContent0, 1.3333334F, 0.0F, \">HYd+446`M2q`z*\", true);\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-2291), homeTexture0, (-1240), homeTexture0, (-2291), 5);\n homeEnvironment0.getSkyTexture();\n assertEquals((-1240), homeEnvironment0.getSkyColor());\n assertEquals((-2291), homeEnvironment0.getGroundColor());\n assertTrue(homeEnvironment0.isObserverCameraElevationAdjusted());\n assertEquals(240, homeEnvironment0.getVideoHeight());\n assertEquals(25, homeEnvironment0.getVideoFrameRate());\n assertEquals(300, homeEnvironment0.getPhotoHeight());\n assertEquals(400, homeEnvironment0.getPhotoWidth());\n assertEquals(5.0F, homeEnvironment0.getWallsAlpha(), 0.01F);\n assertEquals(13684944, homeEnvironment0.getCeillingLightColor());\n assertEquals((-2291), homeEnvironment0.getLightColor());\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n // Undeclared exception!\n try { \n SQLUtil.renderCreateTable((DBTable) null, false, nameSpec0, (PrintWriter) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }", "@Test(expectedExceptions = PicardException.class)\n public void testFilteringToVcfWithNoSequenceDictionary() throws Exception {\n final File out = File.createTempFile(\"filterVcfTest.\", \".vcf\");\n out.deleteOnExit();\n\n final FilterVcf filterer = new FilterVcf();\n filterer.CREATE_INDEX = true;\n filterer.INPUT = BAD_INPUT;\n filterer.OUTPUT = out;\n filterer.MIN_AB = 0;\n filterer.MIN_DP = 18;\n filterer.MIN_GQ = 0;\n filterer.MAX_FS = Double.MAX_VALUE;\n\n filterer.doWork();\n }", "@Test\n public void test2IsCreatable()throws Exception{\n\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertTrue(generateLevel.isCreatable(nd));\n }", "@Test \n\tpublic void generateBytesTest_NegativeTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'bytes' radio button \n\t\thomePage.selectContentType(\"bytes\");\n\n\t\t// enter '-300' in the count field \n\t\thomePage.inputCount(\"-300\");\n\n\t\t// click \"Generate Lorum Ipsum\" button\n\t\thomePage.generateLorumIpsum();\n\t\tGeneratedPage generatedPage = new GeneratedPage(driver);\n\n\t\t// validate the number of bytes generated \n\t\tint byteCount = generatedPage.getActualGeneratedCount(\"bytes\");\n\t\tAssert.assertTrue(\"Incorrect reported byte count with -300 input\" ,byteCount == 0);\n\t}" ]
[ "0.5350796", "0.5338843", "0.5335548", "0.52530235", "0.51726365", "0.5048736", "0.5042753", "0.49820986", "0.49713618", "0.4954407", "0.49501583", "0.4947052", "0.49285778", "0.49152377", "0.49085897", "0.49059188", "0.4902972", "0.4884161", "0.4877514", "0.48648235", "0.48584357", "0.48489824", "0.48471305", "0.48440447", "0.48326215", "0.48312074", "0.48275015", "0.48213947", "0.48185727", "0.48161617", "0.48111564", "0.48005527", "0.47968084", "0.4789451", "0.47711122", "0.47691283", "0.47689956", "0.47625998", "0.47624293", "0.4744509", "0.4741926", "0.47389308", "0.47339216", "0.47322428", "0.47208217", "0.47192064", "0.47166035", "0.47154593", "0.47016752", "0.46980837", "0.46973795", "0.46957275", "0.4690871", "0.46901232", "0.46873736", "0.46809542", "0.46787164", "0.46737778", "0.4670209", "0.46656954", "0.46643952", "0.46604434", "0.46568584", "0.46564555", "0.4650474", "0.4646762", "0.46387893", "0.46363372", "0.46313226", "0.4624768", "0.46239278", "0.4619979", "0.4619535", "0.4618618", "0.46172482", "0.46158054", "0.4615605", "0.46134192", "0.4608505", "0.46028763", "0.459604", "0.45958087", "0.4593966", "0.4593674", "0.45897198", "0.45883146", "0.45871857", "0.45860302", "0.45847973", "0.45834488", "0.45820782", "0.45813742", "0.4580513", "0.4580363", "0.4578603", "0.4574695", "0.45743588", "0.45722595", "0.45706317", "0.45693976" ]
0.79923785
0
CVS_ID("Id: kbhlsupports.lisp 126640 20081204 13:39:36Z builder ");
public static final SubLObject setup_kb_hl_supports_file() { access_macros.register_macro_helper($sym8$DO_KB_HL_SUPPORT_DEPENDENTS_HELPER, $sym9$DO_KB_HL_SUPPORT_DEPENDENTS); Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_kb_hl_support$.getGlobalValue(), Symbols.symbol_function($sym19$KB_HL_SUPPORT_PRINT_FUNCTION_TRAMPOLINE)); Structures.def_csetf($sym20$KB_HLS_ID, $sym21$_CSETF_KB_HLS_ID); Equality.identity($sym12$KB_HL_SUPPORT); Structures.register_method(Sxhash.$sxhash_method_table$.getGlobalValue(), $dtp_kb_hl_support$.getGlobalValue(), Symbols.symbol_function($sym28$SXHASH_KB_HL_SUPPORT_METHOD)); Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_kb_hl_support_content$.getGlobalValue(), Symbols.symbol_function($sym36$KB_HL_SUPPORT_CONTENT_PRINT_FUNCTION_TRAMPOLINE)); Structures.def_csetf($sym37$KB_HLSC_ARGUMENT, $sym38$_CSETF_KB_HLSC_ARGUMENT); Structures.def_csetf($sym39$KB_HLSC_DEPENDENTS, $sym40$_CSETF_KB_HLSC_DEPENDENTS); Equality.identity($sym29$KB_HL_SUPPORT_CONTENT); subl_macro_promotions.declare_defglobal($sym43$_KB_HL_SUPPORTS_FROM_IDS_); access_macros.register_macro_helper($sym53$DO_KB_HL_SUPPORTS_TABLE, $sym54$DO_KB_HL_SUPPORTS); subl_macro_promotions.declare_defglobal($sym58$_KB_HL_SUPPORT_INDEX_); subl_macro_promotions.declare_defglobal($sym65$_KB_HL_SUPPORTS_BEING_CREATED_); access_macros.register_macro_helper($sym75$PROCESS_TMS_KB_HL_SUPPORT_QUEUE, $sym76$WITH_KB_HL_SUPPORT_REJUSTIFICATION); access_macros.register_macro_helper($sym78$CREATE_KB_HL_SUPPORT_DUMP_ID_TABLE, $sym79$WITH_KB_HL_SUPPORT_DUMP_ID_TABLE); return NIL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "static String copyright() {\n\t\treturn com.ibm.is.sappack.gen.tools.jobgenerator.abapProgramUploadWizard.Copyright.IBM_COPYRIGHT_SHORT;\n\t}", "public static String getVersion()\n\t{\n\t\treturn (\"$Revision: 1.2 $,$Date: 2006/10/26 01:35:10 $\") ;\n\t}", "public static String getVersion()\n\t{\n\t\treturn (\"$Revision: 1.2 $,$Date: 2006/12/07 08:57:29 $\");\n\t}", "String buildVersion();", "public static String getVersion()\n\t{\n\t\treturn (\"$Revision: 1.3 $\") ;\n\t}", "public static String getVersion()\n\t{\n\t\treturn \"$Revision: 1.2 $,$Date: 2006/11/14 06:09:22 $\";\n\t}", "@Override\r\n\tprotected String getProjectHelpId() {\n\t\treturn null;\r\n\t}", "protected String getHelpContextId() {\r\n\t\treturn IRubyHelpContextIds.PROJECTS_VIEW;\r\n\t}", "public String getVersion()\r\n {\r\n return(\"Ver. 1.0\");\r\n }", "String mo10312id();", "public static String getMARFSourceCodeRevision() {\n return \"$Revision: 1.17 $\";\n }", "public String getClId() {\r\n return clId;\r\n }", "public String getClId() {\r\n\t\treturn clId;\r\n\t}", "public static String getMARFSourceCodeRevision() {\n return \"$Revision: 1.12 $\";\n }", "public String getModuleVLHId() throws BaseTechnicalError, RemoteException {\n \treturn JazzQAConstants.MODULE_PEDVALIDACAO_VLH;\n\t}", "private static String getCommitId(RevCommit m )\n\t{\n\t\treturn m.getId().abbreviate(10).name();\n\t}", "String indexBlackLabVersion();", "public String getDisplayName() {\n return \"Rhapsody Build\";\n }", "public String getHelpingSolutionTypeName()\n/* */ {\n/* 55 */ return this.helpingSolutionTypeName;\n/* */ }", "public static String getVersion()\n {\n return \"\";\n }", "public static String getVersion()\n {\n return \"\";\n }", "public abstract String getHelpId();", "String getWorkfileRevisionString();", "public Version version()\n/* */ {\n/* 518 */ return PackageVersion.VERSION;\n/* */ }", "public String getClVersion() {\r\n return clVersion;\r\n }", "public String generateVSVID();", "String getVersionLabel();", "String version();", "private String getCommandLineFlags(String version) {\n char majorVersion = version.charAt(0);\n if (majorVersion == '1')\n return \"/teamcity\";\n return \"-teamcity\";\n }", "public String getVersion()\n\t{\n\t\treturn \"$Date$\";\n\t}", "public static void printInfoAboutCloneName() {\n System.err.println(\n \"The name of the clone should start with vb- for VirtualBox clones, with kvm- for KVM clones, and with amazon- for Amazon clones.\");\n }", "private RLabel getBuildLabel() {\n if (buildLabel == null) {\n buildLabel = new RLabel();\n buildLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/productBuild\\\") %>\");\n buildLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n buildLabel.setName(\"buildLabel\");\n }\n return buildLabel;\n }", "public interface IHelpContextIds {\n\tpublic static final String PREFIX = CpPlugInUI.PLUGIN_ID + \".\"; //$NON-NLS-1$\n\n\tpublic static final String COMPONENT_PAGE = PREFIX + \"component_page\"; //$NON-NLS-1$\n\tpublic static final String DEVICE_PAGE = PREFIX + \"device_page\"; //$NON-NLS-1$\n\tpublic static final String PACKS_PAGE = PREFIX + \"packs_page\"; //$NON-NLS-1$\n\n}", "public String mo1081b() {\n return \"com.crashlytics.sdk.android:beta\";\n }", "String getBbgGlobalId();", "public void gitThis(){\n\t}", "String artifactSourceId();", "@DISPID(38)\r\n\t// = 0x26. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint id();", "public synchronized String generateBranchId() {\n long num = rand.nextLong() + Utils.counter++ + System.currentTimeMillis();\n byte bid[] = digester.digest(Long.toString(num).getBytes());\n return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid);\n }", "@Override\r\n\tpublic String shortProjectDescr() {\n\t\treturn null;\r\n\t}", "@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(13)\n\tint id();", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public String getClName() {\r\n return clName;\r\n }", "public String getBuildInfo() {\n return FxSharedUtils.getFlexiveEdition() + \" \" + FxSharedUtils.getFlexiveVersion();\n }", "String offerVersion();", "public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }", "public String toString( ) {\n return \"v\" + id;\n }", "String labPlanId();", "public int getHC_Org2_ID();", "String getModID();", "String getModID();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "String getModuleVersionNumber();", "public String getNewId() {\n\t\treturn \"sccp-\" + idCounter++;\n\t}", "public static String findIdeInfo() {\n\n\t\tStringBuilder infoStringBuilder = new StringBuilder();\n\n\t\tIProduct eclipseProduct = Platform.getProduct();\n\n\t\t// IDE name.\n\t\tString ideName = eclipseProduct.getName();\n\t\tinfoStringBuilder.append(\"IDE Name: \").append(ideName).append(\"\\n\");\n\n\t\t// IDE version.\n\t\t// Here we use the way\n\t\t// org.eclipse.ui.internal.ProductProperties.getAboutText() has used to\n\t\t// find version number.\n\n\t\tURL location = FileLocator.find(eclipseProduct.getDefiningBundle(), new Path(\"$nl$/about.mappings\"), null);\n\n\t\tif (location != null) {\n\n\t\t\tStringBuilder ideVersionBuilder = new StringBuilder();\n\n\t\t\ttry (InputStream is = location.openStream()) {\n\n\t\t\t\tPropertyResourceBundle bundle = new PropertyResourceBundle(is);\n\n\t\t\t\ttry {\n\t\t\t\t\tString versionName = bundle.getString(\"1\");\n\t\t\t\t\tideVersionBuilder.append(versionName);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString versionNumber = null;\n\n\t\t\t\ttry {\n\t\t\t\t\tversionNumber = bundle.getString(\"2\");\n\t\t\t\t\tideVersionBuilder.append(\" (\").append(versionNumber).append(\")\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t// Sometimes this above step doesn't capture the version number.\n\t\t\t\t// Then we try the bellow option.\n\t\t\t\tif (versionNumber == null) {\n\t\t\t\t\tVersion version = eclipseProduct.getDefiningBundle().getVersion();\n\t\t\t\t\tideVersionBuilder.append(\" (\").append(version.toString()).append(\")\");\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tString ideVersion = ideVersionBuilder.toString();\n\t\t\tinfoStringBuilder.append(\"IDE Version: \").append(ideVersion).append(\"\\n\");\n\n\t\t}\n\n\t\t// Plugin version.\n\t\tString pluginVersion = Platform.getBundle(Activator.PLUGIN_ID).getVersion().toString();\n\t\tinfoStringBuilder.append(\"LakJ Plugin Version: \").append(pluginVersion).append(\"\\n\");\n\n\t\t// System user name.\n\t\tString username = System.getProperty(\"user.name\");\n\t\tinfoStringBuilder.append(\"System Username: \").append(username);\n\n\t\treturn infoStringBuilder.toString();\n\n\t}", "private static C1442g m23466b() {\n return C1442g.m5949a(\"StartApp\", GeneratedConstants.INAPP_VERSION);\n }", "public String toString() {\n if ( release ) return \"Release \"+ major;\n else return \"Version \" + major + '.' + commitNumber();\n }", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}", "long getPackageid();", "long getPackageid();", "@DISPID(27)\r\n\t// = 0x1b. The runtime will prefer the VTID if present\r\n\t@VTID(27)\r\n\tint revisionID();", "public int getNewProjectUniqueId() {\r\n\t\treturn lastProjectUniqueID +1;\r\n\t}", "@Override\r\n\tprotected String getHelpId() {\n\t\treturn null;\r\n\t}", "public String getCygwinCvs() {\r\n\t\treturn cygwinCvs;\r\n\t}", "protected String method_4266() {\r\n String[] var10000 = field_3418;\r\n return \"mob.enderdragon.growl\";\r\n }", "public String toString()\n {\n String strResult =\n new String(\"Class: CaptureCustomerLaunchShuttle (Revision \" + getRevisionNumber() + \")\" + hashCode());\n return (strResult);\n }", "public static String getBuiltBy() {\r\n return getJarInfo(\"Built-By\");\r\n }", "com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces xgetSetupID();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getId(IApiComponent component) throws CoreException {\n StringBuffer buffer = new StringBuffer();\n //$NON-NLS-1$\n buffer.append(component.getSymbolicName()).append(\" \").append('(').append(component.getVersion()).append(')');\n return buffer.toString();\n }", "@DISPID(1611005960) //= 0x60060008. The runtime will prefer the VTID if present\n @VTID(35)\n short parameterNameSurroundedByTheSymbol();", "public static String windowBanner(){\n String bannerOut = \"\";\n \n \tbannerOut = \"*******************************************\\n\";\n \tbannerOut += \"Name:\t\tyour name here\\n\";\n \tbannerOut += \"Class:\t\tCS20S\\n\";\n \tbannerOut += \"Assignment:\tAx Qy\\n\";\n \tbannerOut += \"*******************************************\\n\\n\"; \n \n return bannerOut;\n }", "String getProjectName();", "public String getVersion() {\r\n return (\"2004.09\");\r\n }", "public static Object gvcBuildDate(Object... arg) {\r\nUNSUPPORTED(\"7r5j1w6y3ov7ta18s257h2rqv\"); // char *gvcBuildDate(GVC_t* gvc) { return gvc->common.info[2]; }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "java.lang.String getProjectName();", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();", "@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();", "long getVersionNumber();", "String getProgramId();", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\n @VTID(20)\n int templateID();", "String mo20731c();", "String indexBlackLabBuildTime();" ]
[ "0.61821455", "0.5903969", "0.5777657", "0.57586384", "0.56377757", "0.5627166", "0.56164944", "0.5599237", "0.5596187", "0.54801804", "0.53701144", "0.53555095", "0.52719283", "0.5267716", "0.52500314", "0.5239395", "0.52218837", "0.5203061", "0.51875746", "0.51714915", "0.51686275", "0.51686275", "0.5163003", "0.5159648", "0.51515585", "0.5144012", "0.5135717", "0.5121496", "0.51163155", "0.5089684", "0.5066703", "0.50592464", "0.5058572", "0.50546885", "0.502828", "0.5027441", "0.50231177", "0.5020941", "0.5016406", "0.50074524", "0.5000752", "0.4988988", "0.49841496", "0.49773896", "0.49708468", "0.49626195", "0.49584094", "0.49446994", "0.49417168", "0.49410856", "0.49407896", "0.49407896", "0.49386257", "0.49386257", "0.49386257", "0.49386257", "0.49386257", "0.49386257", "0.49386257", "0.49386257", "0.49375227", "0.49356565", "0.4932965", "0.493256", "0.4929851", "0.49269056", "0.49262032", "0.49262032", "0.49238002", "0.4921765", "0.49214828", "0.4915541", "0.491447", "0.4909941", "0.49094006", "0.49083114", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49064603", "0.49016634", "0.48916924", "0.489139", "0.48861143", "0.48859674", "0.4883296", "0.48790452", "0.48772824", "0.48772824", "0.48719704", "0.48698094", "0.4865727", "0.48601586", "0.48496643" ]
0.0
-1
The main method of AdventureDesigner
public static void main(String[] args) { try { tree = new SceneTree(); System.out.println("Creating a story..."); System.out.print("Please enter a title: "); Scanner in = new Scanner(System.in); String title = in.nextLine(); System.out.print("Please enter a scene: "); String scene = in.nextLine(); tree.addNewNode(title, scene); System.out.println(); System.out.println("Scene #" + tree.getCursor().getSceneID() + " added."); System.out.println(); String choice = ""; do { try { printMenu(); System.out.print("Please enter a selection: "); choice = in.next().toUpperCase(); switch(choice) { case "A": in.nextLine(); System.out.println(); System.out.print("Please enter a title: "); String t = in.nextLine(); System.out.print("Please enter a scene: "); String s = in.nextLine(); tree.addNewNode(t,s); System.out.println(); System.out.println("Scene #" + tree.getCursor().getNumScene() + " added."); System.out.println(); break; case "R": System.out.println(); System.out.print("Please enter an option: "); String remove = in.next(); tree.removeScene(remove); System.out.println(); break; case "S": System.out.println(); tree.getCursor().displayFullScene(); System.out.println(); break; case "P": System.out.println(); System.out.println(tree.toString()); System.out.println(); break; case "B": System.out.println(); tree.moveCursorBackwards(); System.out.println("Successfuly moved to " + tree.getCursor().getTitle()); System.out.println(); break; case "F": System.out.println(); System.out.print("Which option do you wish to go to: "); String forward = in.next(); tree.moveCursorForward(forward); System.out.println(); System.out.println("Successfuly moved to " + tree.getCursor().getTitle()); System.out.println(); break; case "G": playGame(); break; case "N": System.out.println(); System.out.println(tree.getPathFromRoot()); System.out.println(); break; case "M": System.out.println(); System.out.print("Move current scene to: "); int num = in.nextInt(); tree.moveScene(num); System.out.println(); System.out.println("Successfully moved scene"); System.out.println(); break; } } catch(FullSceneException e) { System.out.println(); System.out.println("You cannot add another scene!"); System.out.println(); } catch(NoSuchNodeException e) { System.out.println(); System.out.println("That option does not exist."); System.out.println(); } } while(!choice.equals("Q")); } catch(FullSceneException e) { System.out.println(); System.out.println("Hey"); System.out.println(); } System.out.println(); System.out.println("Program terminating normally..."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String arg[]){\r\n GameContainer gc = new GameContainer(new GameManager());\r\n\r\n gc.setWidth(400);\r\n gc.setHeight(300);\r\n gc.setScale(2);\r\n\r\n gc.setClearScreen(true);\r\n gc.setLightEnable(true);\r\n gc.setDynamicLights(true);\r\n gc.start();\r\n }", "public static void main(String args[]) \n {\n\n \n \n \tNewFrame.introDialog();\n EvolutionGame game = new EvolutionGame();\n \n \n while(true)\n\n {\n Area nextArea = ioUtils.enterCommand(character);\n\n if(!character.fighting)\n {\n if(nextArea != character.currentArea)\n\n {\n\n character.moveToArea(nextArea);\n NewFrame.setAreaDescription();\n NewFrame.addCharacters();\n\n }\n }\n else\n {\n\n }\n \n\n }\n\n }", "public static void main(String[] args) {\n DatabaseModel databaseModel = new DatabaseModel();\n EditorView editorView = new EditorView(\"Gamebook Editor\");\n new EditorController(databaseModel, editorView);\n }", "public static void main(String[] args) {\n CalendarProgram cp = new CalendarProgram();\n ItemsServices itemS = new ItemsServices(new Driver());\n ItemController itemControl = new ItemController(itemS,cp);\n itemControl.start();\n \n }", "public static void main(String[] args) {\n\t\tDormitorySystem2 dorm = new DormitorySystem2(new GUI());\n\t}", "public static void main(String[] args){\n\t\tnew GamePanel(790,630); //Sonst grauer Streifen an den Rändern rechts und unten\n\t}", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "public static void main(String[] args) {\n Game game = new Game(\"Programming 2 Project\",600,600);\n game.start();\n \n }", "private void goAdventure() {\n\n\t\tint experience = playern.getExp();\n\t\tint random = randomHelper.randomten();\n\n\t\t/**\n\t\t * Random part that starts with 10% occurance when user chooses goAdventuring()\n\t\t */\n\t\tif (random == 0) {\n\t\t\tSystem.out.println(\"You see nothing but unicorns running in the swaying grass..\");\n\t\t\tSystem.out.println(\"[press enter to continue]\");\n\t\t\tsc.nextLine();\n\t\t}\n\n\t\t/**\n\t\t * Chooses storyboard and battle depending on experience level\n\t\t */\n\t\tif (experience >= 40) {\n\t\t\tStoryboardTwo.leveltwo();\n\t\t\tbattleSpider();\n\t\t}else {\n\t\t\tStoryboard.intro();\n\t\t\tbattleVampire();\n\t\t}\n\t\t}", "public static void main(String[] args) throws Exception {\n\t\tFoodMenu();\n\t}", "public static void main(String[] args){\n DotComBust game = new DotComBust();\n game.setUpGame();\n game.startPlaying();\n }", "public static void start() {\n \t\tMainGame.display.disp(\"What type of monster do you want to fight?:\");\r\n \t\t//Display the buttons for the choice of monster\r\n \t\tMainGame.display.Enable(MainGame.display.warriorM, MainGame.display.fighterM);\r\n \t}", "public static void main(String[] args) {\n Dimensions dimensions = new Dimensions(20, 20, 5);\r\n Case theCase = new Case(\"220B\", \"Dell\", \"240\", dimensions);\r\n\r\n Monitor theMonitor = new Monitor(\"27inch Beast\", \"Acer\", 27, new Resolution(2540, 1440));\r\n\r\n Motherboard theMotherboard = new Motherboard(\"BJ-200\", \"Asus\", 4, 6, \"v2.44\");\r\n\r\n PC thePC = new PC(theCase, theMonitor, theMotherboard);\r\n thePC.powerUp();\r\n\r\n Table theTable = new Table(\"Dark Wood\", 1, 2, 1, 6);\r\n Couch theCouch = new Couch(\"Beige\", \"Fethers\", 4);\r\n LivingRoom livingRoom = new LivingRoom(4, 10, theTable, theCouch);\r\n\r\n livingRoom.getTable().serveTable();\r\n livingRoom.confyGuests();\r\n }", "public main() {\n initComponents();\n \n }", "public static void main(String[] args) {\n\t\t\t\tAdditonGameMethod();\n\t\t\t}", "public static void main(String[] args){\n\t\tGameLoop game=new GameLoop();\n\t\tgame.registerGlobalCallbacks();\n\t\t//Game loop and setting initial scene\n\t\tmusic = new Sound(\"res\\\\Music.wav\");\n\t\tmusic.setLoop(true);\n\t\tgameOverMenu.setMusic(new Sound(\"res\\\\GameOver.wav\"));\n\t\ttimeText = new Text(screenWidth*9/10-100,screenHeight*1/32-20,20,20,\"\");\n\t\ttimeText.setColor(0, 0, 0);\n\t\tscoreText = new Text(screenWidth*9/10-100,screenHeight*1/32,20,20,\"\");\n\t\tscoreText.setColor(0, 0, 0);\n\t\twaveText = new Text(screenWidth*9/10-100,screenHeight*1/32+20,20,20,\"\");\n\t\twaveText.setColor(0, 0, 0);\n\t\t\n\t\tinitScene iLauncher = new initScene(game);\n\t\toLauncher = new overScene(game);\n\t\t\n\t\tmainMenu.addUnselItem(screenWidth/2-165, screenHeight/2-300, 50, 50, \"Spell Flingers\",0,0,1);\n\t\tmainMenu.addUnselItem(25, screenHeight-45, 20, 20, \"CONTROLS: WASD to move, esc to pause, and mouse buttons to cast spells!\",0,0,0);\n\t\tmainMenu.addUnselItem(screenWidth/2-265, screenHeight/2-308, 64, (Texture) SpellList.getTexture(Spell.ARCANE_MISSILE)[0]);\n\t\tmainMenu.addUnselItem(screenWidth/2+265, screenHeight/2-308, 64, (Texture) SpellList.getTexture(Spell.ARCANE_MISSILE)[0]);\n\t\tmainMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-100, 30, 30, \"Play Game\", 1, 0, 0, 0, 0, 0), iLauncher);\n\t\tmainMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-50, 30, 30, \"Exit\", 1, 0, 0, 0, 0, 0), null);\n\t\tmainMenu.select(0);\n\t\t\n\t\tpauseMenu.addUnselItem(screenWidth/2-165, screenHeight/2-300, 50, 50, \"PAUSED\",0,1,0);\n\t\tpauseMenu.addUnselItem(timeText);\n\t\tpauseMenu.addUnselItem(scoreText);\n\t\tpauseMenu.addUnselItem(waveText);\n\t\tpauseMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-100, 30, 30, \"Resume Game\", 1, 0, 0, 0, 0, 0), game);\n\t\tpauseMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-50, 30, 30, \"Abandon Run\", 1, 0, 0, 0, 0, 0), oLauncher);\n\n\t\ttimeTextGO = new Text(screenWidth/2-165, 240, 20, 20,\"\");\n\t\ttimeTextGO.setColor(1, 1, 1);\n\t\tscoreTextGO = new Text(screenWidth/2-165, 270, 20, 20,\"\");\n\t\tscoreTextGO.setColor(1, 1, 1);\n\t\twaveTextGO = new Text(screenWidth/2-165, 300, 20, 20,\"\");\n\t\twaveTextGO.setColor(1, 1, 1);\n\t\tgameOverMenu.addUnselItem(screenWidth/2-165, 100, 50, 50, \"GAME OVER\",1,0,0);\n\t\tgameOverMenu.addUnselItem(timeTextGO);\n\t\tgameOverMenu.addUnselItem(scoreTextGO);\n\t\tgameOverMenu.addUnselItem(waveTextGO);\n\t\tgameOverMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2+50, 30, 30, \"New Game\", 1, 0, 0, 1, 1, 1), iLauncher);\n\t\tgameOverMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2+100, 30, 30, \"Return to Main Menu\", 1, 0, 0, 1, 1, 1), mainMenu);\n\t\tgameOverMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2+150, 30, 30, \"Exit\", 1, 0, 0, 1, 1, 1), null);\n\t\t\n\t\tgame.setScene(mainMenu);\n\t\tgame.gameLoop();\n\t}", "public static void main() {\n \n }", "public static void main()\n {\n\n Magazine magazine1 = new Magazine (\"David Publishing\", \"Mega Magazine\", 30, \"Maria Craig\", \"22/06/2014\");\n\n System.out.println();\n magazine1.getEditor();\n magazine1.getDate();\n magazine1.getPublisher();\n magazine1.getPublicationTitle();\n magazine1.getPrice();\n // Display a blank line\n System.out.println();\n\n \n // Create an instance of Book\n \n Book Book1 = new Book (\"Beckem and windsor\", \"Remember\", 100, 2451, \"Sue bright\");\n\n Book1.getPageNumber();\n Book1.getAuthor();\n Book1.getPublisher();\n Book1.getPublicationTitle();\n Book1.getPrice(); \n }", "public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}", "public static void main(String[] args)\r\n/* 95: */ {\r\n/* 96: 93 */ GoalViewer viewer = new GoalViewer();\r\n/* 97: 94 */ JFrame frame = new JFrame(\"Testing\");\r\n/* 98: 95 */ frame.getContentPane().add(viewer);\r\n/* 99: 96 */ frame.setBounds(100, 100, 400, 400);\r\n/* 100: 97 */ frame.setDefaultCloseOperation(3);\r\n/* 101: 98 */ frame.setVisible(true);\r\n/* 102: 99 */ Relation t = new Relation(\"goal\", new Entity(\"may\"), new Entity(\"rug\"));\r\n/* 103:100 */ t.addType(\"want\");\r\n/* 104:101 */ t.addType(\"not\", \"feature\");\r\n/* 105:102 */ viewer.view(t);\r\n/* 106: */ }", "public static void main(String[] args) {\n game();\n }", "public static void main(String[] args) {\n\t\tIFroggerGraphics graphic = new FroggerGraphic(15, 15,true, false,false);\n\t\tgraphic.menuScreen();\n\t}", "public static void main(String[] args) {\n\t\tHuman a = new Human();\r\n\t\tHuman b = new Human();\r\n\t\ta.attack(b);\r\n\t\ta.showHealth();\r\n\t\tb.showHealth();\r\n\t\t\r\n\t\tWizard wizard1 = new Wizard();\r\n\t\twizard1.fireBall(a);\r\n\t\twizard1.heal(wizard1);\r\n\t\twizard1.showHealth();\r\n\t\t\r\n\t\tSamurai s1 = new Samurai();\r\n\t\ts1.howMany();\r\n\t\tSamurai s2 = new Samurai();\r\n\t\ts1.howMany();\r\n\t\ts2.howMany();\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tResources.setEncoding(Resources.ENCODING_UTF_8);\r\n\t\tGame.setInfo(\"gameInfo.xml\");\r\n\t\tGame.init();\r\n\t\tGame.getRenderEngine().setBaseRenderScale((float) 2);\r\n\t\tGame.getScreenManager().setResolution(Resolution.custom(1280, 720, \"1280*720\"));\r\n\t\tGame.getScreenManager().addScreen(new mainMenu());\r\n\t\tGame.getScreenManager().addScreen(mainGameScreen.getInstance());\r\n\t\tGame.getScreenManager().displayScreen(mainMenu.NAME);\r\n\t\tGame.start();\r\n\t\tSystem.out.println(\"Game version is: \" + Game.getInfo().getVersion());\r\n\t\tSystem.out.println(\"Currently active screen: \" + Game.getScreenManager().getCurrentScreen().getName());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\tHero hero = new Hero(\"Nighthawk\");\r\n\t\thero.show();\r\n\t\thero.fight();\r\n\t}", "static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}", "public static void main(String[] args)\r\n/* 45: */ {\r\n/* 46:44 */ CauseViewer view = new CauseViewer();\r\n/* 47:45 */ Entity thing = new Entity();\r\n/* 48:46 */ thing.addType(\"dog\");\r\n/* 49:47 */ PathElementFrame pathElement = new PathElementFrame(\"toward\", thing);\r\n/* 50:48 */ JFrame frame = new JFrame();\r\n/* 51:49 */ frame.getContentPane().add(view);\r\n/* 52:50 */ frame.setBounds(0, 0, 200, 200);\r\n/* 53:51 */ frame.setVisible(true);\r\n/* 54: */ }", "public static void main()\n\t{\n\t}", "public static void main(String[] argv) {\n\t\ttry {\n\t\t\tAppGameContainer container = new AppGameContainer(new MyGame());\n\t\t\tcontainer.setDisplayMode(800, 600, false);\n\t\t\tcontainer.start();\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tGame game = new Game();\n\t\t//game.playGame();\n\t}", "public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }", "public static void main(String[] args) {\n\t\tHuman obj1 = new Man();\r\n\t\tExtendsExample obj2 = new ExtendsExample();\r\n\t\tobj2.show();\r\n\t\tobj1.eat();\r\n\t}", "public static void main(String[] args) {\n\t\tRoomManager rm = new RoomManager();\t\t\n\t\tItemManager im = new ItemManager();\n\t\tBear bear = new Bear(\"Mama Bear\", \"\", \"\", 0);\n\t\tPlayer p = new Player();\n\t\tArrayList<Item> invItemsList = new ArrayList<Item>();\n\t\t\n\t\t//instantiate rooms and items in memory\n\t\trm.init();\n\t\tim.initItems();\n\t\t\n\t\t\n\t\t// set current room to starting room\t\t\n\t\tp.setCurrentRoom(rm.rooms[0]);\n\t\t\n\t\t// print main objective\n\t\tSystem.out.println(\"\\n\\n\\n Objective: Be friends with the bears, or die trying\"\n\t\t\t\t+ \"\\nIf you should wish to quite and anytime, please enter 'teleport far away'.\\n\"\n\t\t\t\t+ \"please enter the commands you see that you would like to execute\\n\");\n\t\t\n\t\t// Print initial menu\n\t\tprintRoom(p, invItemsList, im, rm);\t\n\t\t\n\t\t// Game loop\n\t\tdo {\t\t\t\n\t\t\t// take input from user and parse\n\t\t\tString[] result = collectInput();\n\t\t\tparse(result, p, rm, im, invItemsList, bear);\n\t\t\t\n\t\t} while(b);\n\t\t\n\t}", "public static void main(String []args){\n\t\t\n\t\tEnterprise myEnt= new Enterprise(\"Dookie and the Crew\");\n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, fall back to cross-platform\n\t\t try {\n\t\t UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());\n\t\t } catch (Exception ex) {\n\t\t // not worth my time\n\t\t }\n\t\t}\n\t\tMainMenu myMenu= new MainMenu(myEnt);\n\t \n\t\t\n\t\n\t}", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Graphics.graphicsMainMenu();\r\n //Print main menu\r\n Menu.mainMenu();\r\n }", "public static void main(String[] args) {\n\t\t\tGameStore4(1); // Lab 5 Part 4\n\n\t}", "public static void main(String[] args) {\n\t\tDisplay.openWorld(\"maps/pasture.map\");\n\n Display.setSize(15, 15);\n Display.setSpeed(7);\n Robot andre = new Wanderer(int i, int j);\n for(int n = 0; n<36; n++) {\n for(int k=0; k<36; k++) {\n andre.wander(); \n }\n explode();\n \n\t\t// TODO Create an instance of a Horse inside the pasture\n\t\t// TODO Have the horse wander for 36 steps with a timer of 7\n\t\t// TODO Have the horse explode()\n\t}\n\n}", "public static void main(String[] args) {\n\t\tgame(1);\r\n\t}", "public void run(){\n ArrayList<String> menuItems = new ArrayList<>();\n menuItems.add(\"Play the Game\");\n menuItems.add(\"Close the Program\");\n menuItems.add(\"Show the highest score\");\n String menu = CollectionTools.collectionPrinter('S', menuItems);\n runMenu(menu);\n }", "public static void main(String[] args) {\n Trivia game = new Trivia();\n game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public static void main(String[] args) {\n // TODO code application logic here\n //play();//This method will start the 20 minute battle scene music\n gameplay = true;\n while(gameplay) {\n /*#extra credit made a separate class and music selector below:*/\n Luong_7_audioclass pl = new Luong_7_audioclass();//this is how to use classes, pl._ to start the methods\n pl.soundsystem_commands();//this is the object used to call upon the public method sound system\n intro();//starts the game \n } \n }", "public static void main(String[] args)\n {\n Director director = new Director();\n // Crear los objetos ConcreteBuilder\n BuilderCajita Menu1 = new ConstructorTipo1();\n BuilderCajita Menu2 = new ConstructorTipo2();\n BuilderCajita Menu3 = new ConstructorTipo3();\n // Construir un coche con equipamiento base\n director.construir( Menu1 );\n Cajita MenuTipo1 = Menu1.getCajita();\n // Construir un coche con equipamiento medio\n director.construir( Menu2 );\n Cajita MenuTipo2 = Menu2.getCajita();\n // Construir un coche con equipamiento full\n director.construir( Menu3 );\n Cajita MenuTipo3 = Menu3.getCajita();\n // Mostrar la información de cada coche creado\n mostrarCaracteristicas( MenuTipo1 );\n mostrarCaracteristicas( MenuTipo2 );\n mostrarCaracteristicas( MenuTipo3 );\n }", "public static void main( String args[] ) throws IOException {\n\t\t\r\n\t\t\r\n\t\tmancalaFrame = new MancalaFrame(); // create Mancala Frame\r\n\t\tMenuBar menuBar = new MenuBar(); // Create Menu bar\r\n\t\tmancalaFrame.setDefaultCloseOperation( MancalaFrame.EXIT_ON_CLOSE ); // exit on close\r\n\t\tmancalaFrame.setJMenuBar(menuBar); // add menu bar\r\n\t\tmancalaFrame.setLocationRelativeTo(null); // open in center of screen\r\n\t\tMancalaTest.newGame();\r\n\t\t\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t//Setting.SetSettings();\n\t\tMorse.start(\"Hello world\");\n\t\t/*\n\t\tDimensions.Init();\n\t\tDimensions.MoveY(50);\n\t\t\n\t\tDimensions.ChangeLine();\n\t\t*/\n\t\t/*\n\t\tDimensions.Init(20);\n\t\t\n\t\n\t\t amount = 90;\n\t\t speed = 20;\n\t\tDimensions.SetSpeedForThis(speed);\n\t\t//Dimensions.MoveY(500);\n\t\twhile(!Button.ESCAPE.isDown()){\n\t\t\tif(Button.DOWN.isDown()){\n\t\t\t\tDimensions.MoveY(amount);\n\t\t\t}else if(Button.UP.isDown()){\n\t\t\t\tDimensions.MoveY(-amount);\n\t\t\t}else if(Button.LEFT.isDown()){\n\t\t\t\tDelay.msDelay(5000);\n\t\t\t\tDimensions.MoveX(amount);\n\t\t\t}else if(Button.RIGHT.isDown()){\n\t\t\t\tDelay.msDelay(5000);\n\t\t\t\tDimensions.MoveX(-amount);\n\t\t\t}else if(Button.ENTER.isDown()){\n\t\t\t\tsetting();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tDelay.msDelay(50);\n\t\t\t\n\t\t}\n\t\t*/\n\t}", "public static void main(String[] args) {\n//\n// controller.setSoldierRank(0, \"Turai\");\n// controller.addModel(new Model(2, \"Lera\", \"RavSamal\"));\n// controller.updateViews();\n\n Controller controller = new Controller();\n controller.addModel(new Model(1, \"Gal\", \"Citizen\"));\n controller.addModel(new Model(12121, \"bubu\", \"Smar\"));\n controller.addModel(new Model(624, \"Groot\", \"Tree\"));\n controller.addModel(new Model(-10, \"Deadpool\", \"Awesome\"));\n controller.addModel(new Model(100, \"Nikita\", \"Citizen\"));\n\n controller.presentUI();\n\n controller.updateViews();\n }", "public static void main(String[] args) {\n\n Sport sport1 = new Sport(\"Ice Hockey\");\n //sport1.setName(\"ice hockey\");\n System.out.println(sport1.getName());\n sport1.description();\n\n Running running = new Running(\"Running\");\n// running.setName(\"Running\");\n running.setDistance(10);\n running.description();\n\n\n //more examples about super\n\n\n\n\n //toString()\n\n //abstract class / method example\n\n //interface\n\n //is-a relationship (instanceof)\n\n //final keyword\n\n }", "public static void main( String args[] ) {\r\n\t\tGameContainer gc = \r\n\t\tnew GameContainer(DEFAULT_GAME_SIZE,DEFAULT_GAME_SIZE);\r\n\t}", "public static void main(String[] args) {\n\n System.out.println(\"Welcome to TEAM-11 Game\");\n new GameEngine().start();\n }", "public static void main(String[] args){\n\t\t EventQueue.invokeLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t // create our game and set it to visible\n\t \tSnakeGame game = new SnakeGame();\n\t }\n\t });\n\t}", "public static void main(String[] args) {\n Artefact umbrella = new Artefact(3,5,\"umbrella\",0); // princess umbrella\r\n System.out.println(\"--Umbrella-- \\n\"+umbrella);\r\n\r\n // create sample artefacts that hurts Mario (ex. barrel, fire barrel, cement tins)\r\n Artefact barrel = new Artefact(6,7,\"barrel\",2);\r\n System.out.println(\"\\n--Barrel-- \\n\"+barrel);\r\n barrel.setPositionY(5);\r\n System.out.println(\"\\n--Barrel after moving left 2 places-- \\n\"+barrel);\r\n\r\n Artefact fireBall = new Artefact(6,2,\"ball\",6);\r\n System.out.println(\"\\n--Fire Ball-- \\n\"+fireBall);\r\n System.out.println(\"\\nFire Ball boosted points = \" + fireBall.getPoints(true));\r\n fireBall.destroyed();\r\n //since destruction sets shape to null it would not appear\r\n System.out.println(\"\\n--Fire Ball after destruction-- \\n\"+fireBall);\r\n\r\n\r\n //STRUCTURES\r\n\r\n //create sample structure for mario to climb up\r\n Structures stair = new Structures(3,3,\"rectangular\", 2, true);\r\n System.out.println(\"\\n--Stairs-- \\n\"+stair);\r\n\r\n\r\n //PLAYERS\r\n //create a new player\r\n MarioPlayers mario1 = new MarioPlayers(\"mario1\");\r\n System.out.println(\"\\n--Player 1-- \\n\"+mario1);\r\n\r\n //saved player\r\n MarioPlayers mario2 = new MarioPlayers(\"mario2\", 8, 1450, 3);\r\n System.out.println(\"\\n--Player 2-- \\n\"+mario2);\r\n\r\n\r\n //OTHER TESTS\r\n\r\n //Checking that abstract method cannot be instantiated and causes error\r\n //Objects error = new Objects(5,5,\"x\");\r\n //System.out.println(\"\\n--Error-- \\n\"+error);\r\n }", "public static void main(String[] args) {\r\n MenuCard mc = new MenuCard();\r\n mc.menuCard();\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\tDragon trogdor = new Dragon();\n\t\t\n\t\ttrogdor.displayEnergy();\n\t\ttrogdor.attackTown();\n\t\ttrogdor.attackTown();\n\t\ttrogdor.attackTown();\n\t\ttrogdor.eatHumans();\n\t\ttrogdor.eatHumans();\n\t\ttrogdor.fly();\n\t\ttrogdor.fly();\n\t\ttrogdor.displayEnergy();\n\t}", "public static void main(String[] args)\n {\n Pokeball pokeball = new Pokeball();\n Pokeball greatball = new Greatball();\n Pokeball ultraball = new Ultraball();\n Pokeball masterball = new Masterball();\n ArrayList<AbstractPokemon> ashPokemon = new ArrayList<AbstractPokemon>();\n ashPokemon.add(new Charmander());\n ashPokemon.add(new Squirtle());\n ashPokemon.add(new Bulbasaur());\n PokemonTrainer ash = new PokemonTrainer(\"Ash\", ashPokemon, AbstractPokemon.Type.ANY_TYPE, masterball);\n ActorWorld world = new ActorWorld();\n AbstractPokemon charmander = new Charmander();\n AbstractPokemon squirtle = new Squirtle();\n AbstractPokemon bulbasaur = new Bulbasaur();\n AbstractPokemon vulpix = new Vulpix();\n AbstractPokemon poliwhirl = new Poliwhirl();\n AbstractPokemon sunkern = new Sunkern();\n AbstractPokemon magby = new Magby();\n AbstractPokemon magikarp = new Magikarp();\n AbstractPokemon oddish = new Oddish();\n String[] worldChoices = {\"Randomly Generated\", \"Blank\", \"Cancel\"};\n int worldSelection = JOptionPane.showOptionDialog(null, \"Please select the world template:\", \"World Selection\",\n JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, worldChoices, worldChoices[0]);\n if (worldSelection == 2)\n {\n JOptionPane.showMessageDialog(null, \"No world chosen. Program will terminate.\", \"World Selection\", JOptionPane.PLAIN_MESSAGE);\n System.exit(0);\n }\n else if (worldSelection == 0)\n {\n spawn(charmander, world);\n spawn(squirtle, world);\n spawn(bulbasaur, world);\n spawn(vulpix, world);\n spawn(poliwhirl, world);\n spawn(sunkern, world);\n spawn(magby, world);\n spawn(magikarp, world);\n spawn(oddish, world);\n spawn(ash, world);\n }\n world.show();\n }", "public static void main(String[] args) {\n\t\t\n\t\tCar toyota=new Car();\n\t\t\n\t//\ttoyota.model=\"camry\";\n\t//\ttoyota.make = \"2014\";\n\t\t\n\t\ttoyota.display_characterstics();\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n GestionContactos gc = new GestionContactos();\n menu(gc);\n }", "public static void main(String[] args) {\n\n ShapeGame shapeGame = new ShapeGame();\n shapeGame.run();\n }", "public static void drawMain()\n {\n // Draws the title of the program\n UI.setColor(Color.black);\n UI.fillRect(55, 5, 485, 50);\n UI.setColor(Color.white);\n UI.setFontSize(50);\n UI.drawString(\"Movie Recommender\", 60, 50);\n }", "public static void main(String[] args) {\n new GameJFrame();\n // new DigitalWatch();\n }", "public static void main(){\n\t}", "public static void main(String[] args) {\n\t\tEagle eagle = new Eagle();\n\t\teagle.eat();\n\t\teagle.sound();\n\t\teagle.fly();\n\t\tSystem.out.println(\"sdfsdf\"+Bird.numberOfLegs);\n\t\tSystem.out.println(\"sadfsf\"+Bird.outCovering);\n\t}", "public static void main(String[] arguments){\r\n TicTac frame = new TicTac(); //runs the screen layout class.\r\n }", "public GameMain()\n {\n allenBad = new AllenSucks(this);\n }", "public static void main(String args[]) {\n\n if (args.length < 1) {\n System.err.println(USAGE_MSG);\n System.exit(1);\n }\n\n String command;\n Scanner commandLine = new Scanner(System.in);\n\n try {\n state = GameState.instance();\n if (args[0].endsWith(\".zork\")||args[0].endsWith(\".bork\")) {\n state.initialize(new Dungeon(args[0]));\n System.out.println(\"\\n\\n\\n\\n\\nWelcome to \" + \n state.getDungeon().getName() + \"!\");\n } else if (args[0].endsWith(\".sav\")) {\n state.restore(args[0]);\n System.out.println(\"\\nWelcome back to \" + \n state.getDungeon().getName() + \"!\");\n } else {\n System.err.println(USAGE_MSG);\n System.exit(2);\n }\n\n System.out.print(\"\\n\" + \n state.getAdventurersCurrentRoom().describe() + \"\\n\");\n\n command = promptUser(commandLine);\n\n while (!command.equals(\"q\")) {\n\t\tif(command.equals(\"EVENT\")){\n\t\t System.out.println(\"Welcome, hacker. These hacks may be gameBreaking and or dangerous to your health if typed wrong, be warned. Enter the Event name CAPS matters.\");\n\t\t command = promptUser(commandLine);\n\t\t System.out.print(EventFactory.instance().parse(command).execute());\n\t\t \n\t\t} else {\n\t\t//System.out.print(\"\\n\\n\\n\"); \t\t//Spacer that makes it look cleaner\n\t\tSystem.out.print(\n CommandFactory.instance().parse(command).execute());\n\n command = promptUser(commandLine);\n\t\t}\n\t }\n\n System.out.println(\"Bye!\");\n\n } catch(Exception e) { \n e.printStackTrace(); \n }\n }", "public static void main(String[] args) {\n Engine ry = new Engine();\n ry.interactWithKeyboard();\n // ry.interactWithKeyboard();\n\n }", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tRoomFactory roomFactory = new RoomFactory();\n\t\tRoom room = roomFactory.getInstance(\"bed\");\n\t\troom.type();\n\t\t\n\t}", "public static void main(String[] args) { \r\n Connect4TextConsole board = new Connect4TextConsole();\r\n board.newGame();\r\n }", "public static void main (String args[]) {\r\n\t\t\r\n\t\tinputScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tinputScreen.setSize(700,500);\r\n\t\tinputScreen.getContentPane();\r\n\t\tinputScreen.setVisible(true);\r\n\t\t\r\n\r\n\t\tEmployeeName();\r\n\t\tEmployeeAddress();\r\n\t\tEmployeePhoneNumber();\r\n\t\tEmployeeJob();\r\n\t\tEmployeeHoursWorked();\r\n\t\tEmployeePay();\r\n\t\tBottomRow();\r\n\t\tAction();\r\n\t\tAction2();\r\n\t\tAction3();\r\n\t\tSearchAction();\r\n\t\t\r\n\t\r\n\t\tinputScreen.getContentPane().add(GUI1Panel);\r\n\t\tGUI1Panel.setBorder(border1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args)\n {\n // initialise instance variables\n Contacts ct = new Contacts();\n UI.initialise();\n \n UI.addButton(\"Print All\", ct::printAll);\n UI.addButton(\"Clear\", UI::clearGraphics);\n UI.addButton(\"Quit\", UI::quit);\n \n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "public static void main(String[] args) {\n MainGameClass mg=new MainGameClass();\n mg.start();\n \n \n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n ItemRegistry itemRegistry = new ItemRegistry();\n Printer printer = new Printer();\n AccountingHandler accountingHandler = new AccountingHandler();\n InventoryHandler inventoryHandler = new InventoryHandler();\n Register register = new Register(printer, itemRegistry, accountingHandler, inventoryHandler);\n Controller contr = new Controller(register);\n View view = new View(contr);\n\n view.sampleExecution();\n }", "public static void main(String[] args){\n Car myCar = new Car();\n myCar.car_human();\n myCar.car_color(); \n }", "public static void main(String[] args) {\n ExhibitionCenter ec = DefaultInstantiator.createExhibitionCenter();\n\n Organizer o = new Organizer(new User(\"Daniel\", \"daniell\", \"email@dd23\", \"password\", new ArrayList<>(), \"\"));\n List<Organizer> lo = new ArrayList<>();\n lo.add(o);\n\n Exhibition e1 = new Exhibition();\n e1.setState(new ExhibitionCreatedState(e1));\n e1.setOrganizersList(new OrganizersList(lo));\n\n Exhibition e2 = new Exhibition();\n e2.setState(new ExhibitionCreatedState(e2));\n e2.setOrganizersList(new OrganizersList(lo));\n\n List<Exhibition> le = new ArrayList<>();\n le.add(e1);\n le.add(e2);\n\n ec.setExhibitionsRegister(new ExhibitionsRegister(le));\n\n new CreateDemonstrationUI(ec, o);\n }", "public static void main(String[] args){\n var system = VacSys.getInstance();\n system.main();\n }", "public static void main(String[] args) {\r\n\t\r\n\t\tUno game = new Uno();\r\n\t\t\r\n\t\tgame.game();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) throws Exception {\n\n ActionField af = new ActionField();\n af.runTheGame();\n }", "public static void main(String[] args) {\n\t\tGeneralPractitioner gp1 = new GeneralPractitioner(\"Stefan\", 32);\n\t\tSurgron s1 = new Surgron(\"Ivana\", 38);\n\t\tgp1.doMedicine();\n\t\tgp1.makeHouseCalls();\n\t\ts1.doMedicine();\n\t\ts1.performSurgery();\n\n\t}", "public static void main(String[] args) { \n \t//creates a new StudyGui and runs it\n \tnew StudyGui().run();\n }", "public static void main (String []args) {\n\t\t// Seed is to ensure we get the same initial cards every time.\n\t\tGameWindow gw = Main.generateWindow(new Deuces(), Deck.OrderByRank);\n\t\tgw.setVisible(true);\n\t}", "Programming(){\n\t}", "public static void main(String[] args) throws IOException {\n //create the game as an object for listener access, and create the frame/pane\n Adventure theGame = new Adventure(); \n JFrame frame = new JFrame(\"Test Subject 525's Deep Space Adventure\");\n Container pane = frame.getContentPane();\n \n //custom fonts for GUI\n Font gameFont = new Font(\"Georgia\", Font.ITALIC, 16);\n Font directionalFont = new Font(\"Papyrus\", Font.BOLD, 30);\n Font utilitiesFont = new Font(\"Georgia\", Font.BOLD, 30);\n \n //create the buttons, input field, output text area, and a label\n JTextField inputArea = new JTextField();\n JTextArea outputArea = new JTextArea();\n JButton north = new JButton(\"NORTH\");\n JButton east = new JButton(\"EAST\");\n JButton south = new JButton(\"SOUTH\");\n JButton west = new JButton(\"WEST\");\n JButton instruct = new JButton(\"INSTRUCTIONS\");\n JButton quit = new JButton(\"QUIT\");\n JButton current = new JButton(\"CURRENT ROOM\");\n JLabel title = new JLabel(\"CONTROL PAD\", SwingConstants.CENTER);\n \n //apply the custom fonts accordingly to components\n inputArea.setFont(gameFont);\n outputArea.setFont(gameFont);\n north.setFont(directionalFont);\n east.setFont(directionalFont);\n west.setFont(directionalFont);\n south.setFont(directionalFont);\n quit.setFont(utilitiesFont);\n instruct.setFont(utilitiesFont);\n current.setFont(utilitiesFont);\n title.setFont(utilitiesFont);\n \n //set initial pane's layout to 0 rows, 1 column, and place the output area in it\n pane.setLayout(new GridLayout(0,1));\n outputArea.setText(theGame.printInstructions());\n outputArea.setEditable(false); //don't make it editable\n pane.add(outputArea);\n \n //make a new panel for buttons below the initial pane\n JPanel buttons = new JPanel();\n buttons.setLayout(new GridLayout(3,3)); //3 rows, 3 columns\n buttons.add(current);\n buttons.add(north);\n buttons.add(title);\n buttons.add(west);\n buttons.add(inputArea);\n buttons.add(east);\n buttons.add(instruct);\n buttons.add(south);\n buttons.add(quit);\n pane.add(buttons);\n \n //add listener to input area\n InputListener inputFunctionality = new InputListener(theGame, outputArea, inputArea, frame);\n inputArea.addActionListener(inputFunctionality);\n \n //add listener to buttons\n ButtonListener buttonFunctionality = new ButtonListener(theGame, outputArea, frame);\n north.addActionListener(buttonFunctionality);\n south.addActionListener(buttonFunctionality);\n west.addActionListener(buttonFunctionality);\n east.addActionListener(buttonFunctionality);\n quit.addActionListener(buttonFunctionality);\n instruct.addActionListener(buttonFunctionality);\n current.addActionListener(buttonFunctionality);\n frame.setSize(1050,850); //set the initial frame size\n frame.setVisible(true);\n \n //make it so that the GUI frame appears at the center of the screen instead of the top left\n Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n int x = (int) ((dimension.getWidth()-frame.getWidth()) / 2);\n int y = (int) ((dimension.getHeight()-frame.getHeight()) / 2);\n frame.setLocation(x, y);\n \n //seed generation for testing\n Random rand;\n if (args.length == 2) {\n // use a seed if provided for testing\n rand = new Random(Integer.parseInt(args[1]));\n }\n else {\n rand = new Random(); // let it be really random\n }\n if (args.length >= 1) {\n theGame.entryWay = randomWorld(args[0], rand);\n }\n else {\n theGame.entryWay = randomWorld(\"world.txt\", rand);\n }\n //always moves the player to the entry way at the start \n theGame.player.moveTo(theGame.entryWay); \n }", "public static void main(String[] args)\r\n\t{\r\n\t\tnew SimpleGame();\r\n\t}", "public static void main(String[] args) {\n Toy ironMan = ToyFactory.createToy(\"Hero\", \"Iron Man\", \" I am Iron man!\", 75, null);\n Toy thanos = ToyFactory.createToy(\"Villian\", \"Thanos\", \"I am inevitable!\" , 85, \"Infinity Gaunlet\");\n // Toy redHulk = ToyFactory.createToy(\"Villian\", \"Red Hulk\", \"It culmnber time\", 50, \"cars\");\n // Toy joker = ToyFactory.createToy(\"Villian\", \"Put a smile on that face!\", \"Joker\", 75, \"Knife\");\n // System.out.println(thanos.getWeapon());\n // redHulk.another();\n\n System.out.println(ironMan.getWeapon());\n\n // ironMan.sayCatchPhrase();\n }", "public static void main(String[] args) {\n Course introProgramming = new IntroToProgrammingCourse(\"Intro to Programming\", \"330\", 2);\n Course introJava = new IntroJavaCourse(\"Intro to Java Programming\", \"331\", 3, \"Intro to Programming\");\n AdvancedJavaCourse advancedJava = new AdvancedJavaCourse(\"Advanced Java Programming\", \"332\", 4, \"Intro to Java Programming\");\n System.out.println(introProgramming.printCourse());\n System.out.println(introJava.printCourse());\n System.out.println(advancedJava.printCourse());\n }", "public static void main(String[] args) {\n Elvis elvis = Elvis.getInstance();\n elvis.leaveTheBuilding();\n }", "public Exercice2() {\n\n initComponents();\n \n Tools.windowsInit(this); \n etat = State.Init;\n presentation1();\n }", "public static void main(String[] args) {\n new GraphicStudyApp();\n }", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public static void main(String[] args) {\n Game game = new HaMGame();\n game.playGame();\n }", "static void mainmenu() {\n\t\t\n\t\tSystem.out.println(\"Welcome. This is a rogue-like text-based RPG game.\");\n\t\tEngine.sleep(1);\n\t\tSystem.out.println(\"You control your character by entering your desired action when prompted.\");\n\t\tEngine.sleep(1);\n\t\tSystem.out.println(\"Do you want to start your journey?\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" y: yes \t\tn: no\t\t\");\n\t\tresponse = Engine.request();\n\t\tif(response == false) {\n\t\t\tSystem.out.println(\"W-What are you doing here then? If you're not here to play the game then what do you even want to do?\");\n\t\t\tSystem.out.println(\"To start, write \\\"Y\\\" or \\\"y\\\" in the console \");\n\t\t\tSystem.out.println(\"I won't ask again. Do you want to start your journey?\");\n\t\t\tresponse = Engine.request();\n\t\t\tif(response == false) {\n\t\t\t\tSystem.out.println(\"I am not here to judge your decision. Farewell.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Glad you came to your senses.\");\t\t\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Very well.\");\n\t\t}\n\t\tSystem.out.println();\t\t\n\t\tif(Engine.devmode == true) System.out.println(\"\tDebug: StartMenu passed\");\n\t\t\n\t\t\t// Cadet dungeon check\n\t\tif(Progresslog.cadetplaytime < 3) {\n\t\t\tSystem.out.println(\"You seem to be new at the game. Would you like to play through a more tailored experience,\\n\"\n\t\t\t\t\t+ \"which is designed for inexperienced players and introduces you to the game's mechanics?\");\n\t\t\tif(Engine.devmode == true) System.out.println(\"Cadet playtime: \" + Progresslog.cadetplaytime);\n\t\t\tresponse = Engine.request();\n\t\t\tif(response == true) {\n\t\t\t\tSystem.out.println(\"Alright then.\");\n\t\t\t\tDungeoncadet();\n\t\t\t} else DungeonGen();\t\t\t\n\t\t} else DungeonGen();\t\t\n\t}", "public static void main(String[] args) {\n\t\tVendingMachine machine = new VendingMachine();\n\t}", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "public static void main(String args[]) {\n\t\tSharedPreferences.setCardCliked(false);\n\t\tSharedPreferences.setPlaying(true);\n\t\t//get shuffled deck of cards\n\t\tsSolitaireDeck = new Deck();\n\n\t\tsTableauOne = new GUITableauPile(1, sSolitaireDeck.getRandomCards(1));\n\t\tsTableauTwo = new GUITableauPile(2, sSolitaireDeck.getRandomCards(2));\n\t\tsTableauThree = new GUITableauPile(3, sSolitaireDeck.getRandomCards(3));\n\t\tsTableauFour = new GUITableauPile(4, sSolitaireDeck.getRandomCards(4));\n\t\tsTableauFive = new GUITableauPile(5, sSolitaireDeck.getRandomCards(5));\n\t\tsTableauSix = new GUITableauPile(6, sSolitaireDeck.getRandomCards(6));\n\t\tsTableauSeven = new GUITableauPile(7, sSolitaireDeck.getRandomCards(7));\n\t\t\n\t\tsStockPile = new GUIStockPile(24, sSolitaireDeck.getRandomCards(24));\n\t\t\n\t\tsWastePile = new GUIWastePile();\n\t\t\n\t\tsFoundadtionClubs = new GUIFoundadtionClubs();\n\t\tsFoundationDiamonds = new GUIFoundationDiamonds();\n\t\tsFoundationHearts = new GUIFoundationHearts();\n\t\tsFoundationSpades = new GUIFoundationSpades();\n\t\t\n\t\tnew GUI(sTableauOne, sTableauTwo, sTableauThree, sTableauFour, sTableauFive, sTableauSix, sTableauSeven,\n\t\t\t\tsStockPile, sWastePile, sFoundadtionClubs, sFoundationDiamonds, sFoundationHearts, sFoundationSpades);\n\t\t\n\t\tnew GameLogic(sTableauOne, sTableauTwo, sTableauThree, sTableauFour, sTableauFive, sTableauSix, sTableauSeven,\n\t\t\t\tsStockPile, sWastePile, sFoundadtionClubs, sFoundationDiamonds, sFoundationHearts, sFoundationSpades);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the number of rows and columns on enemy site followed by position of Documents\");\n\t\tEnemySite s=new EnemySite(new EnemySiteDimensions(sc.nextInt(),sc.nextInt(),new Position(sc.nextInt(),sc.nextInt(),'\\u0000')));\n\t\ts.display();\n\t\tl:while(true) {\n\t\tSystem.out.println(\"Enter choice\\n1.Add INsect\\n2.Move Insect\\n3.Rename Insect\\n4.Remove Insect\\n5.exit\\n\");\t\n\t\tswitch(sc.nextInt()) {\n\t\tcase 1:\n\t\t\ts.addInsect();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ts.moveInsect();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\ts.renameInsect();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\ts.removeInsect();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tbreak l;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Enter a valid choice\");\n\t\t\n\t\t}\n\t\ts.display();\n\t\tif(s.checkSuccess()) {\n\t\t\tSystem.out.println(\"Mission Accomplished\");\n\t\t\tbreak l;\n\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setupAdventure() {\n\t\tArrayList<Ship> availableShips = new ArrayList<Ship>();\n\t\tavailableShips = game.getAvailableShips();\n\t\tint selectedDays = 0;\n\t\tboolean stateAskPlayingDays = false;\n\t\twhile (stateAskPlayingDays == false) {\n\t\t\tSystem.out.println(\"How many days you want your adventure last (Choose between 20 and 50 days)? \");\n\t\t\ttry {\n\t\t\t\tint number = scanner.nextInt();\n\t\t\t\tif (number >= 20 && number <= 50) {\n\t\t\t\t\tstateAskPlayingDays = true;\n\t\t\t\t\tselectedDays = number;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"You should choose between 20 and 50 days\");\n\t\t\t\t}\n\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\t\n\t\tboolean stateChoosenShip = false;\n\t\twhile (stateChoosenShip == false) \n\t\t{\n\t\t\tSystem.out.println(\"Choose your ship!\");\n\t\t\tprintAvailableShips(availableShips);\n\t\t\ttry {\n\t\t\t\tint choosenShip = scanner.nextInt();\n\t\t\t\tif (choosenShip <= availableShips.size() && choosenShip > 0) {\n\t\t\t\t\tstateChoosenShip = true;\n\t\t\t\t\tShip selectedShip = availableShips.get(choosenShip - 1);\n\t\t\t\t\tgame.startAdventure(selectedDays, selectedShip);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"You should choose ship from available ships!\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n Beverage espresso = new Espresso();\n System.out.println(espresso.getDescription()\n +\" $\"+ espresso.cost()+\"\\n\");\n\n // order a houseblend with mocha\n Beverage houseblend = new HouseBlend();\n houseblend = new Mocha(houseblend);\n System.out.println(houseblend.getDescription()\n +\" $\"+ houseblend.cost()+\"\\n\");\n\n //order an american with soy and mocha\n Beverage americano = new Americano();\n americano = new Mocha(americano);\n americano = new SoyMilk(americano);\n System.out.println(americano.getDescription()\n + \" $\"+americano.cost()+\"\\n\");\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tVentana_v2 ventana=new Ventana_v2();\r\n\t\tventana.setVisible(true);\r\n\r\n\t}", "public static void Main(String args[]) {\n Magacin magacin = new Magacin(\"Trosarina\");\n Artikal artikal = new Artikal(\"123\", \"Prolom voda\");\n magacin.dodajArtikal(artikal);\n magacin.ispisiSveOpise();\n }", "public static void main(String[] args) {\n\t\tGameSkill m = new GameSkill();\n\t\t\n\t}" ]
[ "0.6750851", "0.67433435", "0.66234297", "0.65591794", "0.6522043", "0.6513764", "0.64937353", "0.64643174", "0.6449529", "0.64420563", "0.6439917", "0.642595", "0.64229286", "0.6401036", "0.63942933", "0.6380274", "0.63757384", "0.6375686", "0.6370652", "0.6366641", "0.6335535", "0.63279486", "0.63104737", "0.63101226", "0.63068324", "0.6303398", "0.62762964", "0.6270674", "0.6270289", "0.62583804", "0.6249324", "0.623472", "0.62143856", "0.6213689", "0.62133867", "0.6208314", "0.61983716", "0.61964804", "0.6196465", "0.61960137", "0.61937195", "0.61934024", "0.6192117", "0.61847377", "0.6184735", "0.61742306", "0.6168771", "0.6167987", "0.61614203", "0.6160785", "0.6158129", "0.6157927", "0.61515325", "0.61507875", "0.6147076", "0.6138158", "0.61297756", "0.61182", "0.61174", "0.6116983", "0.61143315", "0.61138546", "0.611376", "0.61111313", "0.6110985", "0.6105077", "0.6100729", "0.6100414", "0.6100306", "0.6091563", "0.6090613", "0.6089968", "0.60893005", "0.6086606", "0.60857266", "0.60833406", "0.60762423", "0.60750055", "0.607429", "0.6070811", "0.6068435", "0.606442", "0.60603446", "0.60597694", "0.60592306", "0.60565436", "0.60511464", "0.6041563", "0.6041541", "0.60401326", "0.6039389", "0.603871", "0.60375655", "0.6034918", "0.60331154", "0.60317683", "0.60292983", "0.6025874", "0.6022731", "0.6022488", "0.6020275" ]
0.0
-1
A method that starts at the root of the tree and displays the scene.
public static void playGame() { Scanner input = new Scanner(System.in); SceneNode node = tree.getRoot(); String option; System.out.println(); System.out.println("Now beginning game..."); System.out.println(); while(!node.isEnding()) { System.out.println(node.getTitle()); System.out.println(node.getSceneDescription()); System.out.println(); if(node.getLeft() != null) System.out.println("A) " + node.getLeft().getTitle()); if(node.getMiddle() != null) System.out.println("B) " + node.getMiddle().getTitle()); if(node.getRight() != null) System.out.println("C) " + node.getRight().getTitle()); System.out.println(); System.out.print("Please enter an option: "); option = input.next().toUpperCase(); System.out.println(); switch(option) { case "A": node = node.getLeft(); break; case "B": node = node.getMiddle(); break; case "C": node = node.getRight(); break; } } System.out.println(node.getTitle()); System.out.println(node.getSceneDescription()); System.out.println(); System.out.println("The End"); System.out.println(); System.out.println("Returning back to creation mode..."); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Scene() {\n Scene scene = new Scene(this.root);\n this.stage.setScene(scene);\n this.stage.show();\n }", "protected void displayInitialScene() {\n stageManager.switchScene(FxmlView.SPLASH, StageStyle.UNDECORATED);\n }", "public void startScene()\r\n\t{\r\n\t\tthis.start();\r\n\t}", "public void display() {\n ITree.Node root = this.createNode(0);\n TreePrinter.printNode(root);\n }", "@Override\n public void start (Stage primaryStage) {\n Group root = new Group();\n Scene scene = new Scene(root, AppConstants.STAGE_WIDTH, AppConstants.STAGE_HEIGHT);\n ModulePopulator = new ModuleCreationHelper(root, scene, primaryStage);\n view = new View();\n scene.setFill(AppConstants.BACKGROUND_COLOR);\n // scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n view.init(root, ModulePopulator);\n ModulePopulator.setView(view);\n ModulePopulator.createMainPageModules();\n view.initRunner(root, ModulePopulator);\n primaryStage.setTitle(\"SLogo!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n\n System.out.println(\"App Has Started!\");\n }", "@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tStackPane pane = new StackPane();\n\t\tScene scene = new Scene(pane);\n\t\tfirstLevel();\n\t\tpane.getChildren().add(mRoot);\n\t\tstage.setScene(scene);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void start(Stage primaryStage) throws IOException {\n\t\t// Create the root of the graph scene. It is mainly used in the updateScene() method.\n\t\troot = new Group();\n\n\t\t// Create a simulation with N elements\n\t\tsimulation = new Simulation();\n\n\t\t// Configure and start periodic scene update: after PERIOD_MS ms, updateScene() is called.\n\t\ttimeline = new Timeline(new KeyFrame(PERIOD_MS, ae -> {\n\t\t\tupdateScene();\n\t\t})); // \"->\" is a Java 8 specific construction\n\t\ttimeline.setCycleCount(Animation.INDEFINITE);\n\t\ttimeline.play();\n\n\n\t\t/** Allows the window to be dragged by the mouse */\n\t root.setOnMousePressed(new EventHandler<MouseEvent>() {\n\t \t@Override\n\t public void handle(MouseEvent event) {\n\t xOffset = primaryStage.getX() - event.getScreenX();\n\t yOffset = primaryStage.getY() - event.getScreenY();\n\t }\n\t });\t \n\t root.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n \tprimaryStage.setX(event.getScreenX() + xOffset);\n\t primaryStage.setY(event.getScreenY() + yOffset);\n\t }\n\t });\n\t \n\t \n\t /** Adds the stylesheet for visual effect */\n\t root.getStylesheets().add(\"/stylesheet.css\");\n\t root.getStyleClass().add(\"rootPane\");\n\t \n\t /** Adds icon */\n\t primaryStage.getIcons().add(new Image(\"/icon.png\"));\n\t \n\t Scene scene = new Scene(root, Simulation.SPACE_SIZE, Simulation.SPACE_SIZE, Simulation.BACKGROUND); \n\t primaryStage.setScene(scene);\n \tprimaryStage.setTitle(\"Gabriel's Land\");\n \tprimaryStage.setResizable(false);\n\t primaryStage.getScene().setCursor(Cursor.HAND);\n\t primaryStage.show();\n\n\t}", "protected void buildScene() {\n Geometry cube1 = buildCube(ColorRGBA.Red);\n cube1.setLocalTranslation(-1f, 0f, 0f);\n Geometry cube2 = buildCube(ColorRGBA.Green);\n cube2.setLocalTranslation(0f, 0f, 0f);\n Geometry cube3 = buildCube(ColorRGBA.Blue);\n cube3.setLocalTranslation(1f, 0f, 0f);\n\n Geometry cube4 = buildCube(ColorRGBA.randomColor());\n cube4.setLocalTranslation(-0.5f, 1f, 0f);\n Geometry cube5 = buildCube(ColorRGBA.randomColor());\n cube5.setLocalTranslation(0.5f, 1f, 0f);\n\n rootNode.attachChild(cube1);\n rootNode.attachChild(cube2);\n rootNode.attachChild(cube3);\n rootNode.attachChild(cube4);\n rootNode.attachChild(cube5);\n }", "public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"Scene.fxml\"));\n primaryStage.setTitle(\"Project 3\");\n primaryStage.setScene(new Scene(root, 600, 600));\n primaryStage.show();\n }", "@Override\r\n public void start(Stage primaryStage) {\n VFlow flow = FlowFactory.newFlow();\r\n\r\n // make it visible\r\n flow.setVisible(true);\r\n\r\n // create two nodes:\r\n // one leaf node and one subflow which is returned by createNodes\r\n createFlow(flow, 3, 6);\r\n\r\n // show the main stage/window\r\n showFlow(flow, primaryStage, \"VWorkflows Tutorial 05: View 1\");\r\n }", "public void start() {\n BorderPane borderPane = new BorderPane();\n VBox centerPane = new VBox();\n\n borderPane.setTop(lobbyMenu());\n\n String TITLE = \"Connect 4\";\n Text title = new Text(TITLE);\n title.setFont(Font.font(\"Arial\", FontWeight.BOLD, 30));\n centerPane.getChildren().add(title);\n centerPane.getChildren().add(lobbyButtons());\n centerPane.setAlignment(Pos.CENTER);\n\n borderPane.setCenter(centerPane);\n\n Scene scene = new Scene(borderPane, 520, 360);\n\n stage.setTitle(TITLE);\n stage.setScene(scene);\n }", "@Override\n public void start(Stage primaryStage) {\n root = new VBox(10);\n root.setPadding(new Insets(30));\n initLabel();\n //set up scene\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.sizeToScene();\n primaryStage.setTitle(\"Mastermind\");\n primaryStage.show();\n }", "public void mostrarRootLayout() {\n try {\n // Load root layout from fxml file.\n // Carrega o layout raíz do arquivo FXML \"RootLayout\"\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(LivrariaPrincipal.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n // Mostra a cena que contém o layour raíz\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n\n // Dá acesso do controlador para o aplicativo principal\n RootLayoutController controller = loader.getController();\n controller.setMainApp(this);\n\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "static void setRoot(String fxml) throws IOException {\n scene.setRoot(loadFXML(fxml));\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml_files/home.fxml\"));\n primaryStage.setScene(new Scene(root, 1000, 700));\n primaryStage.show();\n }", "public void initRootLayout(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n Scene scene = new Scene(rootLayout);\n \n primaryStage.setScene(scene);\n \n RootLayoutController controller = loader.getController();\n controller.setGame(this);\n \n primaryStage.show(); \n showCreateNewPlayer();\n }catch(IOException e){\n }\n }", "public TreeScenery() {\r\n\t\tstopped = false;\r\n\t\tthis.position = new Vector2(0, 400);\r\n boundingRectangle = new Rectangle();\r\n treeAnimation = AssetLoader.treeAnimation;\r\n\t}", "public void setCurrentSceneGraphTree(Node root) {\n \t\ttreeModel = new JMonkeyTreeModel(root);\n \t\tfinal PopUpTree tree = new PopUpTree(treeModel);\n \t\t// final JTree tree = new JTree(new DefaultMutableTreeNode());\n \t\ttree.setEditable(true);\n \t\ttree.getSelectionModel().setSelectionMode(\n \t\t\t\tTreeSelectionModel.SINGLE_TREE_SELECTION);\n \t\ttree.setShowsRootHandles(true);\n \t\tJMenuItem addTerrain = new JMenuItem(\"Add Enitity\");\n \t\ttree.addToPopup(addTerrain);\n \t\taddTerrain.addActionListener(new ActionListener() {\n \n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tdoAddEntity(tree.getSelectionPath());\n \t\t\t}\n \t\t});\n \n \t\tJMenuItem delete = new JMenuItem(\"Remove Entity\");\n \t\tdelete.addActionListener(new ActionListener() {\n \n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tdeleteNode(tree.getSelectionPath());\n \t\t\t}\n \t\t});\n \t\ttree.addToPopup(delete);\n \t\ttree.setOpaque(true);\n \n \t\ttreeScrollPane.removeAll();\n \t\ttreeScrollPane.add(new JScrollPane(tree), BorderLayout.CENTER);\n \t\trepaint();\n \t}", "public void setupScene() {\n\t\tplayScene = new Scene(new Group());\n\t\tupdateScene(playScene);\n\t\twindow.setScene(playScene);\n\t\twindow.show();\n\t}", "@Override\n\tpublic void start(Stage primaryStage) {\n\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/view/History.fxml\"));\n\t\t\tScene window = new Scene(root);\n\t\t\tprimaryStage.setScene(window);\n\t\t\tprimaryStage.show();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void initRootLayout() {\r\n try {\r\n // Load root layout from fxml file.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(FilmApp.class.getResource(\"view/RootLayout.fxml\"));\r\n rootLayout = (BorderPane) loader.load();\r\n\r\n // Show the scene containing the root layout.\r\n Scene scene = new Scene(rootLayout);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws IOException {\n\t Parent root = FXMLLoader.load(getClass().getResource(\"WeatherView.fxml\"));\r\n\t \r\n\t //setting the title of the stage\r\n\t primaryStage.setTitle(\"Weather Forecast\");\r\n\t \r\n\t //Setting the scene in the stage\r\n\t primaryStage.setScene(new Scene(root));\r\n\t \r\n\t //this method shows the stage\r\n\t primaryStage.show();\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t}", "@Override\r\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"ui/main.fxml\")); //FXMLLoader.load(Utilities.getResourceURL(\"ui/main.fxml\"));\r\n primaryStage.setTitle(\"Custom Groovy Game Engine\");\r\n primaryStage.setScene(new Scene(root, 960, 480));\r\n primaryStage.show();\r\n }", "public void initRootLayout() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_MAIN));\r\n\r\n try {\r\n rootLayout = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_MAIN, ex);\r\n\r\n return;\r\n }\r\n\r\n Scene scene = new Scene(rootLayout);\r\n scene.getStylesheets().add(STYLESHEET_DEFAULT);\r\n\r\n mainStage.setScene(scene);\r\n mainStage.setTitle(\"Business eValuator\");\r\n mainStage.setResizable(true);\r\n mainStage.centerOnScreen();\r\n mainStage.setHeight(900);\r\n mainStage.show();\r\n }", "public void mainMenu(ActionEvent e) throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/FXML/SelectGameFXML.fxml\"));\n Parent root = loader.load();\n gameroot.getScene().setRoot(root);\n }", "public void moveScene(Parent root) {\n Stage stage = new Stage();\n stage.setScene(new Scene(root));\n stage.show();\n }", "private void loadScene() throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"CurriculumDisplaySE.fxml\"));\n loader.setController(this);\n Parent root = loader.load();\n scene = new Scene(root);\n }", "@FXML\r\n\tpublic void goToMain() {\r\n\t\tViewNavigator.loadScene(\"Welcome to WatchPlace\", ViewNavigator.HOME_SCENE);\r\n\t}", "@Override\n public void start (Stage stage) throws IOException {\n init.start(stage);\n myScene = view.makeScene(50,50);\n stage.setScene(myScene);\n stage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n // set up window.\n primaryStage.setWidth(600);\n primaryStage.setHeight(400);\n primaryStage.setResizable(false);\n\n // set up scenes.\n FXMLLoader mainMenuLoader = new FXMLLoader(getClass().getResource(\"FXML/mainMenuLayout.fxml\"));\n Scene mainMenuScene = new Scene(mainMenuLoader.load());\n FXMLLoader gameLoader = new FXMLLoader(getClass().getResource(\"FXML/gameLayout.fxml\"));\n Scene gameScene = new Scene(gameLoader.load());\n\n // set the main menu to load into the game.\n MainMenuController mainMenuController = (MainMenuController) mainMenuLoader.getController();\n mainMenuController.setGameScene(gameScene);\n\n primaryStage.setScene(mainMenuScene);\n\n primaryStage.show();\n\n }", "@Override\n\tpublic void onShowScene() {\n\t\t\n\t}", "public EDMGraphScene() {\n setKeyEventProcessingType(EventProcessingType.FOCUSED_WIDGET_AND_ITS_PARENTS);\n\n addChild(backgroundLayer);\n addChild(mainLayer);\n addChild(connectionLayer);\n addChild(upperLayer);\n\n router = RouterFactory.createOrthogonalSearchRouter(mainLayer, connectionLayer);\n\n getActions().addAction(ActionFactory.createZoomAction());\n getActions().addAction(ActionFactory.createPanAction());\n getActions().addAction(ActionFactory.createSelectAction(new SceneSelectProvider()));\n\n graphLayout.addGraphLayoutListener(new GridGraphListener());\n sceneLayout = LayoutFactory.createSceneGraphLayout(this, graphLayout);\n }", "public void displayMainScreen(ActionEvent event) throws IOException {\n Parent parent = FXMLLoader.load(getClass().getResource(\"/View_Controller/MainScreen.fxml\"));\n Scene targetScene = new Scene(parent);\n\n Stage window = (Stage) ((Button) event.getSource()).getScene().getWindow();\n window.setScene(targetScene);\n window.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n // Loads the Home view\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml/Home.fxml\"));\n\n primaryStage.setTitle(\"To-Do Manager\"); // Sets the title of the window\n\n // Sets the Home view as the first scene\n Scene scene = new Scene(root, 854, 480);\n\n // Sets the window's scene\n primaryStage.setScene(scene);\n\n // Prevents user from resizing window ( because of UI reasons )\n primaryStage.setResizable(false);\n\n // Displays the window\n primaryStage.show();\n }", "public void initRootLayout() {\r\n try {\r\n // Load root layout from fxml file.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/rootlayout.fxml\"));\r\n rootLayout = (BorderPane) loader.load();\r\n \r\n // Show the scene containing the root layout.\r\n scene = new Scene(rootLayout);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n \r\n controller = loader.getController();\r\n controller.setMainApp(this);\r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void goToMainScene() {\n\n scenesSeen.clear();\n this.window.setScene(firstScene.createAndReturnScene());\n scenesSeen.add(firstScene);\n }", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start(Stage primaryStage)\n throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {\n makeMainGrid();\n Scene myHomeScene = new Scene(myMainGrid, WINDOW_WIDTH, WINDOW_HEIGHT);\n primaryStage.setScene(myHomeScene);\n primaryStage.show();\n }", "@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }", "@Override\n public void start(Stage primaryStage) throws IOException {\n Main.primaryStage = primaryStage;\n Main.primaryStage.setTitle(\"American Travel Bucketlist\");\n\n //Call the extension of the FXMLLoader for the MainView.\n showMainView();\n }", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n URL url = TwitterFX.class.getClassLoader().getResource(\"twitterfx.fxml\");\n loader.setLocation(url);\n rootLayout = (AnchorPane) loader.load();\n buildLayout();\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout, 600,400);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start(Stage primaryStage) {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"scenes/main_menu.fxml\"));\n primaryStage.setTitle(\"Führerschein Theorieprüfung\");\n primaryStage.setScene(new Scene(root));\n primaryStage.setResizable(false);\n\n primaryStage.show();\n\n new FadeIn(root).play();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@FXML\n private void loadMainMenu() throws IOException {\n Parent parent = FXMLLoader.load(getClass().getResource(MAIN_MENU_FXML));\n Stage mainStage = StageInitializer.parentStage;\n mainStage.getScene().setRoot(parent);\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"app_layout.fxml\"));\n\t\tVBox rootNode = loader.load();\n\n\t\tScene scene = new Scene(rootNode);\n \n Pane menuPane= (Pane) rootNode.getChildren().get(0);\n\t\tmenuPane.getChildren().add(createMenubar());\n\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setTitle(\"Temperature Convertor\");\n\t\t//primaryStage.setResizable(false); to make sure application is not resizable\n\t\tprimaryStage.show();\n\t}", "public void start(Stage myStage) { \n \n System.out.println(\"Inside the start() method.\"); \n \n // Give the stage a title. \n myStage.setTitle(\"JavaFX Skeleton.\"); \n \n // Create a root node. In this case, a flow layout \n // is used, but several alternatives exist. \n FlowPane rootNode = new FlowPane(); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 200); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public void initRootLayout() {\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApplication.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n \t}\n }", "public void draw() {\n drawNode(root);\n }", "public static void showMainView() throws IOException {\n //Load the MainView.\n Main.FxmlLoader(MAIN_VIEW_PATH);\n //Display the view to the user.\n primaryStage.show();\n }", "public void start(Stage primaryStage)\n {\n \tint wid = 520;\n int hei = 200;\n Text hello = new Text(50, 50, \"Hello, JavaFX!\");\n Text question = new Text(120, 80, \"How's it going?\");\n Text question2 = new Text(120, 160, \"Are you getting any ideas?\");\n \n Line simpleLine = new Line(0, 0, 520, 200);\n \n Circle simpleCircle = new Circle(260,100,20);\n Rectangle simpleRectangle = new Rectangle(200,100,20,30);\n Ellipse e = new Ellipse(200, 30, 10,20);\n \n Group root = new Group(e,simpleRectangle, hello, question, question2, simpleLine, simpleCircle); \n Scene scene = new Scene(root, 520, 200, Color.ANTIQUEWHITE);\n \n primaryStage.setTitle(\"A JavaFX Program\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Pepoview.class.getResource(\"MainWindow.fxml\"));\n rootLayout = (SplitPane) loader.load(); \n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start(Stage primaryStage) throws Exception\n {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/main/mainMenu.fxml\"));\n Pane root = loader.load();\n\n MainMenuController controller = loader.getController();\n controller.start(primaryStage);\n\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.setTitle(\"RU Cafe: Main Menu\");\n primaryStage.setResizable(false);\n primaryStage.show();\n }", "public void start_game() throws IOException, JAXBException {\n savetoxml();\n logger.trace(\"starting the game now...\");\n primarystage.setResizable(false);\n primarystage.setScene(game_scene);\n primarystage.show();\n\n }", "public void draw() \n\t {\n\t\t draw(root,0,0,1,1,true);\n\t }", "public void navigateToRoot()\r\n\t{\r\n\t\tnavigateTo(m_rootInstance, false);\r\n\t}", "public void draw() {\n drawNode(root, true);\n }", "private void mainScene(){\n // create maze load and route load/save buttons\n Button loadMazeButton = new Button(\"Load Maze\");\n loadMazeButton.setStyle(buttonStyle);\n loadMazeButton.setMinHeight(50);\n loadMazeButton.setMinWidth(170);\n Button loadRouteButton = new Button(\"Load Route\");\n loadRouteButton.setStyle(buttonStyle);\n loadRouteButton.setMinHeight(50);\n loadRouteButton.setMinWidth(170);\n Button saveRouteButton = new Button(\"Save Route\");\n saveRouteButton.setStyle(buttonStyle);\n saveRouteButton.setMinHeight(50);\n saveRouteButton.setMinWidth(170);\n\n // organise them in a HBox\n HBox routeBox = new HBox();\n routeBox.setAlignment(Pos.CENTER);\n routeBox.setSpacing(10);\n routeBox.setPadding(new Insets(10.0));\n routeBox.getChildren().addAll(\n loadMazeButton, loadRouteButton, saveRouteButton\n );\n\n // create maze display and display it in a VBox\n vMaze = null;\n tileBox = new VBox();\n tileBox.setAlignment(Pos.CENTER);\n tileBox.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(176,188,60),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n\n // which further goes into a HBox\n // this creates two layers of background: the interior\n // of the maze and the exterior to the left and right\n HBox tileBackground = new HBox();\n tileBackground.setAlignment(Pos.CENTER);\n tileBackground.setMinHeight(VisualMaze.DISPLAY_HEIGHT);\n tileBackground.setMinWidth(VisualMaze.DISPLAY_WIDTH);\n tileBackground.getChildren().add(tileBox);\n\n // create step button and label for messages\n Button stepButton = new Button(\"Next Step\");\n stepButton.setMinHeight(50);\n stepButton.setMinWidth(80);\n stepButton.setStyle(buttonStyle);\n mainMessage = new Label();\n mainMessage.setFont(new Font(\"Arial\", 30));\n mainMessage.setTextFill(Color.web(\"#c4bd52\"));\n mainMessage.setContentDisplay(ContentDisplay.CENTER);\n\n // and organise them on a borderpane\n BorderPane stepBox = new BorderPane();\n stepBox.setPadding(new Insets(10.0));\n stepBox.setRight(stepButton);\n stepBox.setLeft(mainMessage);\n\n // load all containers on a root container\n VBox root = new VBox();\n root.setAlignment(Pos.CENTER);\n root.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(80,76,76),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n root.getChildren().addAll(routeBox, tileBackground, stepBox);\n \n // set the main scene\n main = new Scene(root);\n\n // set the button events\n stepButton.setOnAction(e->{nextStep();});\n loadMazeButton.setOnAction(e->{requestInput(RequestType.MAZE);});\n loadRouteButton.setOnAction(e->{requestInput(RequestType.LROUTE);});\n saveRouteButton.setOnAction(e->{requestInput(RequestType.SROUTE);});\n }", "public void draw() {\n draw(root, true);\n }", "public static void playGame(){\n SceneNode tempCursor = sceneTree.cursor;\n sceneTree.cursor = sceneTree.root;\n System.out.println(\"Now beginning game...\\n\");\n while(!sceneTree.cursor.isEnding()){\n sceneTree.cursor.displayScene();\n System.out.println(\"A)\"+sceneTree.cursor.getLeft().getTitle());\n if(sceneTree.cursor.getMiddle()!=null)\n System.out.println(\"B)\"+sceneTree.cursor.getMiddle().getTitle());\n if(sceneTree.cursor.getRight()!=null)\n System.out.println(\"C)\"+sceneTree.cursor.getRight().getTitle());\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter an option:\");\n String option = in.next().toLowerCase();\n sceneTree.moveCursorForwards(option);\n }\n sceneTree.cursor.displayScene();\n sceneTree.cursor = tempCursor;\n System.out.println(\"\\nThe End\\n\\n\"+\"Returning back to creation mode...\");\n\n\n\n }", "@Override\r\n\tpublic void start(Stage stage) {\n\r\n scenes.put(SceneName.MAIN, new MainView(stage).getScene());\r\n scenes.put(SceneName.SCENE1, new ViewOne(stage).getScene());\r\n/*\t\tscenes.put(SceneName.SCENE2, new ViewTwo(stage).getScene());\r\n\t\tscenes.put(SceneName.SCENE3, new ViewThree(stage).getScene());\r\n*/\r\n\r\n\t\t// Start with the main scene\r\n\t\tstage.setScene(scenes.get(SceneName.MAIN));\r\n\t\tstage.setTitle(\"Multi-Scene Demo\");\r\n\t\tstage.show();\r\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"mainMenu/mainMenu.fxml\"));\n primaryStage.setTitle(\"Hello World\");\n Scene s =new Scene(root, defaultWindowWidth, defaultWindowHight);\n s.getStylesheets().add(getClass().getResource(\"css/main.css\").toExternalForm());\n primaryStage.setScene(s);\n primaryStage.setMinHeight(480);\n primaryStage.setMinWidth(480);\n primaryStage.show();\n }", "public void sceneRoot(){\n primaryStage = new Stage();\n root = new Group();\n Scene scene = new Scene(root,sceneWidth,sceneHeight, Color.web(\"#b8cfcc\"));\n primaryStage.setTitle(\"Dry Cleaning System\");\n primaryStage.setScene(scene);\n primaryStage.show();\n primaryStage.setResizable(false);\n\n totalPricePlaceholder = new Label(\"Total Price: \");\n totalPricePlaceholder.setLayoutX(950);\n totalPricePlaceholder.setLayoutY(300);\n totalPricePlaceholder.setFont(new Font(22));\n\n totalPrice = new Label(\"0DKK\");\n totalPrice.setLayoutX(985);\n totalPrice.setLayoutY(350);\n totalPrice.setFont(new Font(22));\n totalPrice.setTextFill(Color.CORAL);\n\n root.getChildren().addAll(totalPricePlaceholder,totalPrice);\n }", "static public void activate() {\n instance.buildTree();\n instance.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t\t//StackPane stackPane = new StackPane();\n\t\t//Button button = new Button(\"Przycisk\");\n\t\t//stackPane.getChildren().add(button);\n\t\t//Scene scene = new Scene(stackPane,400,400);\n\t\t//primaryStage.setScene(scene);\n\t\t\n\t\t\n\t\t//Stack Pane from FXML file\n\t\t//****************************************//\n\t\tFXMLLoader fxmlLoader = new FXMLLoader();\n\t\tfxmlLoader.setLocation(this.getClass().getResource(\"/fxml/MainStackPane.fxml\"));\n\t\tStackPane stackPane = fxmlLoader.load();\n\t\tScene scene = new Scene(stackPane);\n\t\tprimaryStage.setScene(scene);\n\t\t\n\t\tprimaryStage.setTitle(\"First JavaFx app\");\n\t\tprimaryStage.show();\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void start(Stage primaryStage) {\r\n\t\tthis.primaryStage=primaryStage;\r\n\t\tthis.primaryStage.setTitle(\"AmwayWinston\");\r\n\t\t\r\n\t\tinitRootLayout();\r\n\t\t\r\n\t\tshowPersonOverview();\r\n\t\t\r\n\t}", "@Override\n public void start(Stage stage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"Lesson3.fxml\"));\n \n \n // Create Scene with background Color\n Scene scene = new Scene(root, 700, 350, Color.LIGHTYELLOW);\n \n // set scene on stage with title\n stage.setTitle(\"Lesson 3 FXML\");\n stage.setScene(scene);\n stage.show();\n }", "@Override\n public void start(Stage primaryStage) throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"/MainMenuLayout.fxml\"));\n primaryStage.setTitle(\"Pairs\");\n primaryStage.setMinHeight(600);\n primaryStage.setMinWidth(600);\n primaryStage.setScene(new Scene(root));\n primaryStage.show();\n }", "@Override\n protected void initScene() {\n setupCamera(0xff888888);\n\n /*\n * Create a Cube and display next to the cube\n * */\n setupCube();\n\n\n /*\n * Create a Sphere and place it initially 4 meters next to the cube\n * */\n setupSphere();\n\n\n /*\n * Create a Plane and place it initially 2 meters next to the cube\n * */\n setupPlane();\n setupImage();\n setupText();\n\n }", "@Override\r\n public void start(Stage primaryStage) {\r\n \r\n \r\n // StackPane root = new StackPane(); \r\n Scene scene = new Scene(root, 900, 900); //set up a window with these propotions\r\n \r\n primaryStage.setTitle(\"Keep it Clean simulator\"); //window title\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n \r\n setLayout();\r\n \r\n drawUI.Draw(dataInput, tileMin, tileMax);\r\n }", "@Override\n public void start(Stage primaryStage) {\n\n // Creates the scene and displays it to the main window\n Scene withDrawPaneSetup = new Scene(withDrawPaneSetup(primaryStage), 1024, 768);\n primaryStage.setScene(withDrawPaneSetup);\n }", "public void openGamePane() {\n\t\tParent root;\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(GAMEPANELOCATION));\n\t\t\tloader.setController(this);\n\t\t\troot = loader.load();\n\t\t\tScene scene = new Scene(root);\n\t\t\tStage stage = new Stage();\n\t\t\tstage.setScene(scene);\n\t\t\tstage.show();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tgamePane.setBackground(new Background(new BackgroundFill(new Color(195/256.0,222/256.0,250/256.0,1),CornerRadii.EMPTY, Insets.EMPTY)));\n\t\tgameObjects=new HashMap<Integer,GameObjectVisualComponent>();\n\t\tpodium=new ArrayList<Text>();\n\t\tpodium.add(new Text(gamePane.getWidth()-100,15,\"TOP\"));\n\t\tgamePane.getChildren().add(podium.get(0));\n\t}", "public void display() {\n push();\n noStroke();\n\n // creates the Box around the menus\n fill(backgroundColor); // light grey\n rect(0, 0, sidebarWidth, height);\n\n // for loops that draws each scenes icon\n for (int i = 0; i < sceneAmount; i++) {\n\n //checks the for loop has reach the icon for the current scene\n if (i == scene) {\n push();\n\n // Draws a rectancle in the place where the icon is gonna be\n fill(chosenColor); // light blue color\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n }\n \n\n // Draws the icons one after the others with a determined distance between them\n image(sidebarLogos[i], 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n\n // if chosen scene draws glow effect ontop\n if (i == scene) {\n image(glow, 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n }\n }\n\n // draws shadow image ontop of all the icons\n image(shadow, 0, 0);\n pop();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/sample.fxml\"));\n Parent root = loader.load();\n primaryStage.setTitle(\"Tower Defence\");\n s = new Scene(root, 600, 480);\n primaryStage.setScene(s);\n primaryStage.show();\n MyController appController = (MyController)loader.getController();\n appController.createArena(); \t\t\n\t}", "@Override\n public void start(Stage primaryStage) {\n\n pStage = primaryStage;\n\n try {\n\n\n Parent root = FXMLLoader.load(getClass().getResource(\"/GUI.fxml\"));\n\n Scene scene = new Scene(root, 600, 400);\n\n primaryStage.setTitle(\"Shopper 5000 Ultimate\");\n\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.show();\n\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void handle(ActionEvent event) {\n\t\ttry {\r\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"Roomless\"));\r\n\t\t\tMain.stage.setScene (new Scene(root, 700, 500));\r\n\t\t\tMain.stage.show();\r\n\t\t} catch (Exception exception) {\r\n\t\t\texception.printStackTrace();\r\n\t\t}\r\n\t}", "public void loadGameView() {\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Spiel Laden\");\n\t\t\tBorderPane root = new BorderPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/LoadGame.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tLoadGameViewController loadGameViewController = (LoadGameViewController) loader.getController();\n\t\t\tloadGameViewController.setOnitamaController(onitamaController);\n\t\t\tloadGameViewController.init();\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "public Scene scene() {\n AnchorPane anchorPane = new AnchorPane();\n\n Pane track = raceTrack.trackpainting();\n\n AnchorPane.setTopAnchor(track, 40.0);\n AnchorPane.setLeftAnchor(track, 40.0);\n\n determineStartingLocation(carOne, carTwo, carThree);\n\n carPosition(carOne);\n carPosition(carTwo);\n carPosition(carThree);\n\n AnchorPane.setTopAnchor(btnStartRace, 480.0);\n AnchorPane.setLeftAnchor(btnStartRace, 740.0);\n\n AnchorPane.setTopAnchor(btnEndRace, 480.0);\n AnchorPane.setLeftAnchor(btnEndRace, 730.0);\n\n AnchorPane.setTopAnchor(txtWarning, 600.0);\n AnchorPane.setLeftAnchor(txtWarning, 610.0);\n\n anchorPane.setBackground(\n new Background(new BackgroundFill(Color.rgb(0, 132, 0),\n CornerRadii.EMPTY, Insets.EMPTY)));\n\n anchorPane.getChildren().addAll(track, carOne, carTwo, carThree, btnStartRace, btnEndRace, txtWarning);\n\n Scene scene = new Scene(anchorPane, 1580, 1030);\n return scene;\n }", "public void buildInitialScene() {\n\t\t\n\t\t//Creation image background\n\t\tfinal String BACKGROUND_PATH = \"src/assets/img/temp_background.png\";\n\t\tthis.background = new GameImage(BACKGROUND_PATH);\n\n\t\t//Creation image Game Over\n\t\tfinal String GAME_OVER_PATH = \"src/assets/img/erro.png\";\n\t\tthis.errorScene = new Sprite(GAME_OVER_PATH);\n\n\t\t//Game over sprite center position\n\t\tthis.errorScene.x = spos.calculatePosition(WindowConstants.WIDTH, 2, this.errorScene, 2);\n\t\tthis.errorScene.y = spos.calculatePosition(WindowConstants.HEIGHT, 2, this.errorScene, 2);\n\t}", "@Override\n public void start(Stage stage) throws IOException {\n logInfo();\n\n scene = new Scene(loadFXML(\"mainView\"));\n stage.setScene(scene);\n stage.setTitle(\"OzoMorph\");\n stage.show();\n }", "@FXML\n public void viewFrontPage() throws IOException {\n System.out.println(\"viewing Front page\");\n Parent windowFrontPage;\n windowFrontPage = FXMLLoader.load(getClass().getResource(\"FrontPage.fxml\"));\n Stage mainStage = Gui.parentWindow;\n mainStage.getScene().setRoot(windowFrontPage);\n }", "@FXML\n private void renderTree() {\n unmountTree();\n buildTree(inputN, treePane.getWidth() / 2, treePane.getHeight(), Math.toRadians(inputTrunkAngle), inputBranchLength);\n mountTree();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\n\t\tprimaryStage.setTitle(\"News from The Guardian\");\n\t\t\n\t\tNewsReader reader = new NewsReader();\n\n\t\tView view = new View(reader);\n\t\t\n\t\tScene scene = new Scene(view.getRoot(), WIDTH, HEIGHT);\n\t\t\n\t\tprimaryStage.setScene(scene);\n\t\ttry{\n\t\t\tscene.getStylesheets().add(News.class.getResource(\"app.css\").toExternalForm());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"boop\");\n//\t\t\te.printStackTrace();\n\t\t}\n\t\tprimaryStage.setResizable(false);\n\t\tprimaryStage.show();\n\t\t\n\t}", "@Override\n public void start(final Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/mainView.fxml\"));\n primaryStage.setTitle(\"Unicorn RayTracer\");\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.setMaxWidth(900);\n primaryStage.setHeight(610);\n primaryStage.show();\n\n MenuItem menuItem = ((MenuBar) scene.lookup(\"#menuBar\")).getMenus().get(0).getItems().get(3);\n menuItem.disableProperty().bind(image.imageProperty().isNull());\n menuItem.setOnAction(a -> IO.saveImage(scene.getWindow(), image.getImage()));\n\n primaryStage.setOnCloseRequest(a -> AController.raytracer.stopRender());\n scene.setOnKeyPressed(a -> {\n if (a.getCode() == KeyCode.ESCAPE) AController.raytracer.stopRender();\n });\n primaryStage.setOnCloseRequest(\n a -> Platform.exit()\n );\n\n }", "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "public void createScene();", "@FXML\r\n\tpublic void viewTest( ) {\r\n\t\ttry {\r\n\t\t\tParent root2 = FXMLLoader.load(getClass().getResource(\"../view/TestView.fxml\"));\r\n\t\t\tMain.stage.setScene(new Scene (root2, 700, 500));\r\n\t\t\tMain.stage.show();\r\n\t\t} catch (Exception exception) {\r\n\t\t\texception.printStackTrace();\r\n\t\t}\r\n\t}", "public void homeClicked() {\r\n Pane newRoot = loadFxmlFile(Home.getHomePage());\r\n Home.getScene().setRoot(newRoot);\r\n }", "public void loadMainMenuView()\n\t{\n\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Onitama\");\n\t\t\tGridPane root = new GridPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/MainMenu.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tMainMenuViewController viewController = (MainMenuViewController) loader.getController();\n\t\t\tviewController.setOnitamaController(onitamaController);\n\t\t\tviewController.init();\n\t\t\t\n\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override // Override the start method in the Application class\r\n /**\r\n * Start method for layout building\r\n */\r\n public void start(Stage primaryStage)\r\n {\n Scene scene = new Scene(pane, 370, 200);\r\n primaryStage.setTitle(\"Sales Conversion\"); // Set the stage title\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.show(); // Display the stage\r\n }", "@Override\r\n public void start(Stage stage){\n Text msg = new Text(\"Hola JavaFX\");\r\n \r\n //toplevel node\r\n VBox root = new VBox();\r\n \r\n //add the child node to VBox root node\r\n root.getChildren().add(msg);\r\n \r\n //Create a scene\r\n Scene scene = new Scene(root, 300, 50);\r\n \r\n //set the scene to the stage\r\n stage.setScene(scene);\r\n \r\n //set a title for the stage\r\n stage.setTitle(\"Hola Aplicación JavaFX\");\r\n \r\n //show the stage\r\n stage.show();\r\n }", "private void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(VIEW_ROOT_LAYOUT_FXML));\n rootLayout = loader.load();\n\n mApplicationCompositionRoot = new ApplicationCompositionRoot(this, rootLayout);\n\n //grab your root here\n rootLayout.setOnMousePressed(event -> {\n xOffset = event.getSceneX();\n yOffset = event.getSceneY();\n });\n\n //move around here\n rootLayout.setOnMouseDragged(event -> {\n mPrimaryStage.setX(event.getScreenX() - xOffset);\n mPrimaryStage.setY(event.getScreenY() - yOffset);\n });\n\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n mPrimaryStage.setScene(scene);\n mPrimaryStage.show();\n\n //Give the controller access to the main app.\n RootLayout controller = loader.getController();\n controller.setMainApp(this);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start( Stage primaryStage ) throws Exception {\n primaryStage.setTitle(\"Battleship\");\n primaryStage.setScene(createScene());\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(\n getClass().getResource(\"/View/main.fxml\"));\n Pane root = (Pane)loader.load();\n\n listController = loader.getController();\n listController.start(primaryStage);\n\n primaryStage.setTitle(\"Song Library - Nick Carchio and Adam Romano\");\n primaryStage.setScene(new Scene(root, 750 , 500));\n primaryStage.show();\n\n }", "void createScene(){\n\t\tmainScene = new Scene(mainPane);\r\n\t\t\r\n\t\t//If keyEvent is not focussed on a node on the scene, you can attach\r\n\t\t//a keyEvent to a scene to be consumed by the screen itself.\r\n\t\tCloser closer = new Closer();\r\n\t\tmainScene.setOnKeyPressed(closer);\r\n\t}", "public void begin() {\n\t\tview.setVisible(true);\n\t}", "@Override protected void startup() {\n BlaiseGraphicsTestFrameView view = new BlaiseGraphicsTestFrameView(this);\n canvas1 = view.canvas1;\n root1 = view.canvas1.getGraphicRoot();\n canvas1.setSelectionEnabled(true);\n show(view);\n }", "@FXML\n private void startGame(){\n AnchorPane anchorPane = new AnchorPane();\n Scene gameScene = new Scene(anchorPane, 800, 600);\n Stage gameStage = new Stage();\n GameView gameView = new GameView(anchorPane, gameScene, gameStage);\n gameView.gameStart();\n }" ]
[ "0.7548423", "0.717734", "0.71746457", "0.69273514", "0.68485194", "0.68402773", "0.681752", "0.6790022", "0.67398757", "0.6734439", "0.6692132", "0.66897875", "0.66564494", "0.6649682", "0.664377", "0.6628543", "0.6618436", "0.661277", "0.6611598", "0.6593317", "0.6585952", "0.655145", "0.654359", "0.6533714", "0.6528199", "0.6516094", "0.650594", "0.6497802", "0.64695615", "0.6464526", "0.6461886", "0.6446412", "0.64218324", "0.64191395", "0.6419004", "0.64059067", "0.64026254", "0.6402295", "0.63984895", "0.639334", "0.6382978", "0.6378309", "0.6364268", "0.635576", "0.63495106", "0.63434786", "0.6340521", "0.6339601", "0.6336957", "0.6327532", "0.6327015", "0.6310729", "0.6303068", "0.6288099", "0.6283398", "0.62811893", "0.62797755", "0.62791234", "0.62762046", "0.62737113", "0.6272761", "0.6272711", "0.62724584", "0.6271708", "0.62702227", "0.6265295", "0.6263726", "0.6263373", "0.62522596", "0.62509036", "0.6248891", "0.6240834", "0.62327635", "0.62226546", "0.62199485", "0.6218745", "0.6216479", "0.62138295", "0.6211884", "0.62095356", "0.62023896", "0.61984485", "0.6194461", "0.61915755", "0.61915344", "0.6188016", "0.6187311", "0.6186502", "0.61853033", "0.61831075", "0.6180348", "0.6173821", "0.6158769", "0.61579895", "0.6149977", "0.6149137", "0.6146815", "0.6145761", "0.61436576", "0.613303" ]
0.63290197
49
A method that prints the menu
public static void printMenu() { System.out.println("A) Add Scene"); System.out.println("R) Remove Scene"); System.out.println("S) Show Current Scene"); System.out.println("P) Print Adventure Tree"); System.out.println("B) Go Back A Scene"); System.out.println("F) Go Forward A Scene "); System.out.println("G) Play Game"); System.out.println("N) Print Path To Cursor"); System.out.println("M) Move Scene"); System.out.println("Q) Quit"); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "public static void printMenu(){\n System.out.print(\"1. List all writing groups\\n\" +\n \"2. List all the data for one writing group\\n\"+\n \"3. List all publishers\\n\"+\n \"4. List all the data for one publisher\\n\"+\n \"5. List all books\\n\"+\n \"6. List all the data for one book\\n\"+\n \"7. Insert new book\\n\"+\n \"8. Insert new publisher\\n\"+\n \"9. Remove a book\\n\"+\n \"10. Quit\\n\\n\");\n }", "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(SearchMenu.MENU_HEAD);\n\t\tSystem.out.println(SearchMenu.TYPE_MESSAGE );\n\t\tSystem.out.println(SearchMenu.QUIT);\n\t\tSystem.out.println(SearchMenu.MENU_TAIL);\n\t\tSystem.out.println(SearchMenu.INPUT_PROMPT);\n\t}", "public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE + ChatMaintainer.CS().getPartner());\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "public void printMenu()\n\t{\n\t\tSystem.out.println(ChatMenu.MENU_HEAD);\n\t\tSystem.out.println(ChatMenu.TYPE_MESSAGE);\n\t\tSystem.out.println(ChatMenu.QUIT);\n\t\tSystem.out.println(ChatMenu.MENU_TAIL);\n\t\tSystem.out.println(ChatMenu.INPUT_PROMPT);\n\t}", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "private static void printMainMenu() {\n\t\tprintln(\"Main Menu:\");\n\t\tprintln(\"\\tI: Import Movie <Title>\");\n\t\tprintln(\"\\tD: Delete Movie <Title>\");\n\t\tprintln(\"\\tS: Sort Movies\");\n\t\tprintln(\"\\tA: Sort Actors\");\n\t\tprintln(\"\\tQ: Quit\");\n\t}", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "void printMainMenu(){\n\t\tSystem.out.println(\"\\n\\nMarketo Music\");\n\t\tSystem.out.println(\"Main Menu\");\n\t\tSystem.out.println(\"1. Create Playlist: create <playlist name>\");\n\t\tSystem.out.println(\"2. Edit Playlist: edit <playlist id>\");\n\t\tSystem.out.println(\"3. Print Song: song <song id>\");\n\t\tSystem.out.println(\"4. Print Playlist: playlist <playlist id>\");\n\t\tSystem.out.println(\"5. Print All Songs or Playlists: print song/playlist\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"8. Quit: quit\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "public void print() {\n stdout(name + \", \" + description);\n stdout(\"-----------------------------------\");\n for (MenuComponent menuComponent : components) {\n menuComponent.print();\n }\n stdout(\"\\n\");\n }", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "private void printMainMenu() {\n\t\tSystem.out.println(\"1. Go adventuring\");\n\t\tSystem.out.println(\"2. Enter tavern\");\n\t\tSystem.out.println(\"3. Show details about your character\");\n\t\tSystem.out.println(\"4. Exit game\");\n\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "public static void printMenu(){\r\n try{\r\n Thread.sleep(100);\r\n }catch(Exception e){}\r\n System.out.println(\"Use numbers to choose a option:\");\r\n System.out.println(\"1.- New Order.\");\r\n System.out.println(\"2.- Add to exist Order.\");\r\n System.out.println(\"3.- Show Order.\");\r\n System.out.println(\"4.- Administration.\");\r\n System.out.println(\"5.- Exit.\");\r\n System.out.print(\"-> \");\r\n }", "private String print_Menu()\n\t{\n\t\tSystem.out.println(\"\\n----------CS542 Link State Routing Simulator----------\");\n\t\tSystem.out.println(\"(1) Create a Network Topology\");\n\t\tSystem.out.println(\"(2) Build a Forward Table\");\n\t\tSystem.out.println(\"(3) Shortest Path to Destination Router\");\n\t\tSystem.out.println(\"(4) Modify a Topology (Change the status of the Router)\");\n\t\tSystem.out.println(\"(5) Best Router for Broadcast\");\n\t\tSystem.out.println(\"(6) Exit\");\n\t\tSystem.out.print(\"Master Command: \");\n\n\t\treturn scan.next();\n\t}", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "public static void f_menu(){\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"-------------Soft_AVERAGE_HEIGHT-----------------\");\n System.out.println(\"-------------version 1.0 23-oct-2020------------\");\n System.out.println(\"-------------make by Esteban Gaona--------------\");\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"-------------------------------------------------\");\n}", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "private void printLoggedInMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \n\t\t\"1.Search Users\", \"2.Search Movies\", \"3.View Feed\", \"4.View Profile\", \"5.Logout\", \"6.Exit\");\n\t}", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "public static void printMenu(BankAgency ag) {\n\t\tSystem.out.println(\"Menu of \" + ag.getAgencyName() + \" (\" + ag.getAgencyLoc() + \")\");\n\t\tSystem.out.println(\"1 - List of the Agency accounts\");\n\t\tSystem.out.println(\"2 - See an account (by its number)\");\n\t\tSystem.out.println(\"3 - Operation on account\");\n\t\tSystem.out.println(\"4 - Account management\");\n\t\tSystem.out.println(\"0 - Quit\");\n\t\tSystem.out.print(\"Choice -> \");\n\t}", "private void printMovieMenu(){\n\t\tprint(\"Please choose from the options below\"+System.lineSeparator(), \"1.Search by Actor\", \"2.Search by Title\", \"3.Search by Genre\",\"4.Back to Login Menu\");\n\t}", "private static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }", "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"AVAILABLE ORDERS\");\n\t\tSystem.out.println(\"================\");\n\t\tSystem.out\n\t\t\t\t.println(\"HELP - shows information on \" +\n\t\t\t\t\t\t\"available orders\");\n\t\tSystem.out\n\t\t\t\t.println(\"DIR - displays the content \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t .println(\"DIRGALL - displays the content\" +\n\t\t\t\t \" of current directory\");\n System.out\n\t\t .println(\" and all its internal\" +\n\t\t\t\t \" subdirectories\"); \t\t\n\t\tSystem.out\n\t\t\t\t.println(\"CD dir - changes the current \" +\n\t\t\t\t\t\t\"directory to its subdirectory [dir]\");\n\t\tSystem.out\n\t\t\t\t.println(\"CD .. - changes the current \" +\n\t\t\t\t\t\t\"directory to its father directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"WHERE - shows the path and name \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"FIND text - shows all the images \" +\n\t\t\t\t\t\t\"whose name includes [text]\");\n\t\tSystem.out\n\t\t\t\t.println(\"DEL text - information and delete \" +\n\t\t\t\t\t\t\"a picture named [text] of current \" +\n\t\t\t\t\t\t\"directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"MOVE text - move an image named \" +\n\t\t\t\t\t\t\"[text] to another directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMG time - displays a carousel \" +\n\t\t\t\t\t\t\"with the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" each image is displayed\" +\n\t\t\t\t\t\t\" [time] seconds\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMGALL time - displays a carousel with\" +\n\t\t\t\t\t\t\" the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" and in all its internal\" +\n\t\t\t\t\t\t\" subdirectories; each image is\");\n\t\tSystem.out.println(\" displayed [time] \" +\n\t\t\t\t\"seconds\");\n\t\tSystem.out.println(\"BIGIMG - displays the bigest image int the current\" +\n\t\t\t\t\"directory\");\n\t\tSystem.out.println(\"END - ends of program \" +\n\t\t\t\t\"execution\");\n\t}", "void printPlaylistMenu(){\n\t\tSystem.out.println(\"\\n\\nPlaylist Menu:\");\n\t\tSystem.out.println(\"1. Delete Song: delete <song id>\");\n\t\tSystem.out.println(\"2. Insert Song: insert <song id>\");\n\t\tSystem.out.println(\"3. Search and Insert Song: insert_search title/artist <string of words to be searched>\");\n\t\tSystem.out.println(\"4. Print Playlist: print\");\n\t\tSystem.out.println(\"5. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Main Menu: main\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}", "private void printCreateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opret Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Tilføj Medarbejder\");\n System.out.println(\"(2) Tilføj Kunde\");\n System.out.println(\"(3) Tilføj Produkt\");\n System.out.println(\"(4) Bekræft\");\n System.out.print(\"Valg: \");\n }", "public static void WriteMainMenu(){\r\n System.out.println(\"\\n=================Welcome to McDonalds=================\");\r\n System.out.println(\"1. Take Order \\n2. Edit McDonalds Menu \\n3. Exit application \");\r\n }", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}", "public void printCarte() {\r\n\r\n\t\tSystem.out.println(\"Welcome to Yoyo-Restaurant <3\");\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"-<3----<3----<3----<3----<3----<3----<3----<3----<3----<3\");\r\n\t\tSystem.out.println(\"Our Menu \");\r\n\t\tfor (Menu menu : items) {\r\n\t\t\tmenu.print();\r\n\t\t}\r\n\r\n\t}", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "public static void mainMenu() \n\t{\n\t\t// display menu\n\t\tSystem.out.print(\"\\nWhat would you like to do?\" +\n\t\t\t\t\"\\n1. Enter a new pizza order (password required)\" +\n\t\t\t\t\"\\n2. Change information of a specific order (password required)\" +\n\t\t\t\t\"\\n3. Display details for all pizzas of a specific size (s/m/l)\" +\n\t\t\t\t\"\\n4. Statistics of today's pizzas\" +\n\t\t\t\t\"\\n5. Quit\" +\n\t\t\t\t\"\\nPlease enter your choice: \");\t\n\t}", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "private static void menu()\r\n\t{\r\n\t\tSystem.out.println(\"0. ** FOR INSTRUCTOR **\");\r\n\t\tSystem.out.println(\" Seed 5 URLs, set 3 keywords, creates 1000 Producers and 10 Consumers\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"1. Add seed url\");\r\n\t\tSystem.out.println(\"2. Add consumer (Parser)\");\r\n\t\tSystem.out.println(\"3. Add producer (Fetcher)\");\r\n\t\tSystem.out.println(\"4. Add keyword search\");\r\n\t\tSystem.out.println(\"5. Print stats\");\r\n\t}", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "public void menu(){\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"<=======|\" + name + \"|=======>\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"1 -> Jouer\");\n\t\tSystem.out.println(\"2 -> Creer votre personnage\");\n\t\tSystem.out.println(\"3 -> Charger\");\n\t\tSystem.out.println(\"4 -> Best Score\");\n\t\tSystem.out.println(\"5 -> Instruction\");\n\t\tSystem.out.println(\"6 -> Quitter\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint choice = in.nextInt();\n\n\t\t\tswitch (choice){\n\t\t\t\tcase 1:\n\t\t\t\t\tstartPlay();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreateChar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tchargeGame();\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.print(\" NOM -\");\n\t\t\t\t\tSystem.out.print(\" GENRE -\");\n\t\t\t\t\tSystem.out.print(\" SANTEE -\");\n\t\t\t\t\tSystem.out.print(\" FORCE -\");\n\t\t\t\t\tSystem.out.print(\" ARMES -\");\n\t\t\t\t\tSystem.out.println(\" ARGENT -\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tbdd.dbQuery(\"SELECT * FROM score ORDER BY health DESC\");\n\t\t\t\t\tmenu();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\trules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\texit();\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Choix non valide\");\n\t\t\t\t\tmenu();\n\t\t\t}\n\t}", "private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "public static void menu(){\n System.out.println(\"-Ingrese el número correspondiente-\");\n System.out.println(\"------------ Opciones -------------\");\n System.out.println(\"------------ 1. Sumar -------------\");\n System.out.println(\"------------ 2. Restar ------------\");\n System.out.println(\"------------ 3. Multiplicar -------\");\n System.out.println(\"------------ 4. Dividir -----------\");\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "private void displayColourMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------- Colour Menu ---------------\");\r\n System.out.println(\"(1) To edit Colour1\");\r\n System.out.println(\"(2) To edit Colour2\");\r\n System.out.println(\"(3) To edit Colour3\");\r\n }", "static void DisplayMainMenu()\n {\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Menu\");\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Enter Selection\");\n \tSystem.out.println(\"1) Send Message\");\n \tSystem.out.println(\"2) Receive Message\");\n \tSystem.out.println(\"3) Run regression test\");\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "private void printEditMenu(){\n System.out.println(\"fh - Flip horizontal \\n fv - Flip vertical \\n sl - Slide left \\n sr - Slide right \\n su - Slide up \\n sd - Slide down \\n nr - Slide number right. Currently=\" + numberRight + \"\\n nl - Slide number left. Currently=\" + numberLeft + \"\\n nd - Slide number down. Currently=\" + numberDown + \"\\n nu - Slide number up. Currently=\" + numberUp + \"\\n r - Repeat last operation (Default slide left) \\n q - Quit (Return to main menu)\");\n }", "public void PrintMenu() throws IOException {\r\n\t\t//loop the menu until the user chooses to quit\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"Welcome to the EnigmaMachine command interface!\");\r\n\t\t\tSystem.out.println(\"Enter 1 to add the plugs\");\r\n\t\t\tSystem.out.println(\"Enter 2 to add the rotors\");\r\n\t\t\tSystem.out.println(\"Enter 3 to add the reflector\");\r\n\t\t\tSystem.out.println(\"Enter 4 to enter the message\");\r\n\t\t\tSystem.out.println(\"Enter 5 to quit the menu and start the machine\");\r\n\t\t\t\r\n\t\t\tint option = this.readIntegerFromCmd();\r\n\t\t\t//jump to different method according to the input of the user\r\n\t\t\tif (option == 1) {\r\n\t\t\t\tthis.addPlug();\r\n\t\t\t}else if (option == 2) {\r\n\t\t\t\tthis.addRotors();\r\n\t\t\t}else if (option == 3) {\r\n\t\t\t\tthis.addReflector();\r\n\t\t\t}else if (option == 4) {\r\n\t\t\t\tthis.addMessage();\r\n\t\t\t}else if (option == 5) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "private static void displayMainMenu() {\n\t\tSystem.out.println(\"\\t Main Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"au <username> : Registers as a new user \\n\"\n\t\t\t\t+ \"du <username> : De-registers a existing user \\n\"\n\t\t\t\t+ \"li <username> : To login \\n\"\n\t\t\t\t+ \"qu : To exit \\n\"\n\t\t\t\t+\"====================================\\n\");\n\t}", "static void menuPrincipal() {\n System.out.println(\n \"\\nPizzaria o Rato que Ri:\" + '\\n' +\n \"1 - Novo pedido\" + '\\n' +\n \"2 - Mostrar pedidos\" + '\\n' +\n \"3 - Alterar estado do pedido\" + '\\n' +\n \"9 - Sair\"\n );\n }", "private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}", "static void afficherMenu() {\n\t\tSystem.out.println(\"\\n\\n\\n\\t\\tMENU PRINCIPAL\\n\");\n\t\tSystem.out.println(\"\\t1. Additionner deux nombres\\n\");\n\t\tSystem.out.println(\"\\t2. Soustraire deux nombres\\n\");\n\t\tSystem.out.println(\"\\t3. Multiplier deux nombres\\n\");\n\t\tSystem.out.println(\"\\t4. Deviser deux nombres\\n\");\n\t\tSystem.out.println(\"\\t0. Quitter\\n\");\n\t\tSystem.out.print(\"\\tFaites votre choix : \");\n\t}", "private void displayEditMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Edit Menu ------------\");\r\n System.out.println(\"(1) Edit Car Colour\");\r\n System.out.println(\"(2) Edit Car Price\");\r\n System.out.println(\"(3) Back to Main Menu\");\r\n }", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "public static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\r\n }", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "public static void customerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the customers\");\n System.out.println(\"2 - Would you like to search for a customer's information\");\n System.out.println(\"3 - Adding a new customer's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public void run(){\n ArrayList<String> menuItems = new ArrayList<>();\n menuItems.add(\"Play the Game\");\n menuItems.add(\"Close the Program\");\n menuItems.add(\"Show the highest score\");\n String menu = CollectionTools.collectionPrinter('S', menuItems);\n runMenu(menu);\n }", "private void printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\n }", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "private void displayPlayerMenu () {\n System.out.println();\n System.out.println(\"Player Selection Menu:\");\n System.out.println(\n \"Timid player...........\" + TIMID);\n System.out.println(\n \"Greedy player..........\" + GREEDY);\n System.out.println(\n \"Clever player..........\" + CLEVER);\n System.out.println(\n \"Interactive player.....\" + INTERACTIVE);\n }", "public void mostrar() {\n\t\tHerramientas.println(menu);\n\t}", "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "private static void displayRepoMenu() {\n\t\tSystem.out.println(\"\\t Repo Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"su <username> : To subcribe users to repo \\n\"\n\t\t\t\t+ \"ci: To check in changes \\n\"\n\t\t\t\t+ \"co: To check out changes \\n\"\n\t\t\t\t+ \"rc: To review change \\n\"\n\t\t\t\t+ \"vh: To get revision history \\n\"\n\t\t\t\t+ \"re: To revert to previous version \\n\"\n\t\t\t\t+ \"ld : To list documents \\n\"\n\t\t\t\t+ \"ed <docname>: To edit doc \\n\"\n\t\t\t\t+ \"ad <docname>: To add doc \\n\"\n\t\t\t\t+ \"dd <docname>: To delete doc \\n\"\n\t\t\t\t+ \"vd <docname>: To view doc \\n\"\n\t\t\t\t+ \"qu : To quit \\n\" \n\t\t\t\t+ \"====================================\\n\");\n\t}", "public static void printMenu(String menuChoice, String... params) {\n switch (menuChoice) {\n case \"main\":\n mainMenuLines();\n break;\n case \"help\":\n helpMenuLines();\n break;\n case \"exit\":\n saveBeforeQuit();\n break;\n case \"lead\":\n newLeadLines(params);\n break;\n case \"convert\":\n convertLeadLines(params);\n break;\n }\n clearCommandLine();\n printProgramTitle();\n for (String line : menuLine) {\n print(line);\n }\n printFull();\n }", "private void displayMainMenu () {\n System.out.println();\n System.out.println(\n \"Enter the number of the action to perform: \");\n System.out.println(\n \"Run game...............\" + PLAY_GAME);\n System.out.println(\n \"Exit...................\" + EXIT);\n }", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "public abstract void displayMenu();", "public static void Menus(String[] Menu){\r\n for(int i = 0;i<Menu.length;i++){\r\n System.out.print(Menu[i]);\r\n }\r\n }", "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}" ]
[ "0.87378323", "0.8721137", "0.8703674", "0.8677377", "0.8627934", "0.84432894", "0.84097373", "0.8399124", "0.8382806", "0.8335007", "0.82929474", "0.8276624", "0.82353294", "0.81703794", "0.8081872", "0.80707395", "0.8041751", "0.8031423", "0.80307335", "0.8026573", "0.8004017", "0.7997135", "0.79957515", "0.79871947", "0.795449", "0.79506767", "0.7930473", "0.7905858", "0.7904582", "0.78975534", "0.787743", "0.7867113", "0.7861199", "0.78377235", "0.78370756", "0.7822124", "0.78133786", "0.7793158", "0.7777476", "0.7776076", "0.7772965", "0.7762039", "0.77575123", "0.7756564", "0.7754412", "0.77533937", "0.7735967", "0.77322286", "0.7728692", "0.77092063", "0.76727533", "0.76667106", "0.76591796", "0.7653773", "0.7652594", "0.7637058", "0.7605527", "0.760475", "0.7599974", "0.7565116", "0.75582397", "0.7547003", "0.7538703", "0.753466", "0.75312704", "0.7478969", "0.746422", "0.745916", "0.7456175", "0.7446439", "0.74457717", "0.74450976", "0.74448746", "0.743737", "0.74271625", "0.7424231", "0.7423883", "0.741748", "0.74123526", "0.7399492", "0.73751664", "0.73680115", "0.7354087", "0.73478395", "0.7332711", "0.73280776", "0.73278075", "0.7325539", "0.7311132", "0.7304742", "0.72941566", "0.72828287", "0.7281127", "0.72632843", "0.72572356", "0.72422093", "0.72302055", "0.7218364", "0.72182065", "0.72086316" ]
0.8552449
5
converts image to base64 string to be stored on Firebase code taken from user skabir from Stack Overflow:
public String convertImage(ImageView itemImage){ Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap(); ByteArrayOutputStream stream = new ByteArrayOutputStream(); bmp.compress(Bitmap.CompressFormat.PNG, 100, stream); byte[] byteArray = stream.toByteArray(); String imageFile = Base64.encodeToString(byteArray, Base64.DEFAULT); return imageFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n\n Log.d(\"Image Log:\", imageEncoded);\n return imageEncoded;\n }\n else{\n return \"\";\n }\n }", "String convertImageToBase64String(final BufferedImage img) {\n final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", byteArrayOutputStream);\n return Base64.getEncoder().encodeToString(byteArrayOutputStream.toByteArray());\n } catch (IOException e) {\n logger.error(\"cannot convert image to base 64\", e);\n }\n return null;\n }", "public static String encodeToBase64(Bitmap image) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n return Base64.encodeToString(b, Base64.DEFAULT);\n }", "public static String bitmapEncodeTobase64(Bitmap image) {\n Bitmap immage = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n immage.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n return imageEncoded;\n }", "public String emitAsImageBase64() {\n BufferedImage img = emitAsBufferedImage();\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "public static String convertImageToBase64(String path) {\n\n Bitmap btmp = BitmapFactory.decodeFile(path);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n btmp.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] byteArrayImage = baos.toByteArray();\n\n return Base64.encodeToString(byteArrayImage, Base64.DEFAULT);\n }", "public String getStringImage() {\n if (bitmap != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n } else {\n return null;\n }\n }", "public String fromImageToString(BitmapDrawable personPhoto){\n Bitmap photoBitmap = personPhoto.getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n photoBitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] photoByteFormat = stream.toByteArray();\n String encodedImage = Base64.encodeToString(photoByteFormat, Base64.NO_WRAP);\n return encodedImage;\n }", "public static String getBase64FromImage(ImageView imageView) {\n\n\n imageView.buildDrawingCache();\n Bitmap bitmap = imageView.getDrawingCache();\n //Bitmap bitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap();\n return getBase64FromBitmap(bitmap);\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n ref.child(\"user\").child(fUser.getUid()).child(\"age\").setValue(age);\n ref.child(\"user\").child(fUser.getUid()).child(\"bio\").setValue(bio);\n //object to convert image to byte array for storage on firebase\n ByteArrayOutputStream imgConverted = new ByteArrayOutputStream();\n\n //save the image as a .jpg file\n img.compress(Bitmap.CompressFormat.JPEG, 100, imgConverted);\n\n String imageEncoded = Base64.encodeToString(imgConverted.toByteArray(), Base64.DEFAULT);\n ref.child(\"user\").child(fUser.getUid()).child(\"image\").setValue(imageEncoded);\n }", "public static String getImageBase64String(BufferedImage image) {\n String result = null;\n try {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n OutputStream b64 = new Base64OutputStream(os);\n ImageIO.write(image, \"png\", b64);\n result = os.toString(\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (IOException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n return result;\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n\r\n ImageView image = (ImageView) findViewById(R.id.editprofile_image);\r\n try {\r\n if (requestCode == requestCode && resultCode == RESULT_OK && null != data) {\r\n Uri selectedImage = data.getData();\r\n Log.d(\"d\", \"Image URI: \" + selectedImage);\r\n\r\n Bitmap bm = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImage);\r\n image.setImageBitmap(bm);\r\n\r\n //Encoding image to base64\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);\r\n byte[] byteArray = byteArrayOutputStream .toByteArray();\r\n to64 = Base64.encodeToString(byteArray, Base64.DEFAULT);\r\n Log.d(\"d\", \"Encoded String: \" + to64);\r\n\r\n }\r\n }catch (IOException e){\r\n Toast.makeText(this, \"An error occurred.\", Toast.LENGTH_LONG).show();\r\n }\r\n\r\n }", "public static String getStringBase64Bitmap(Bitmap bitmap){\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n byte[] bitmapBytes = bos.toByteArray();\n String encodedImage = Base64.encodeToString(bitmapBytes, Base64.DEFAULT);\n Log.i(\"getStringBase64Bitmap\",encodedImage);\n return encodedImage;\n }", "public String getImageBase64(String imagePath) {\n\t\tString base64Image = \"\";\n\t\tFile file = new File(imagePath);\n\t\ttry (FileInputStream imageInFile = new FileInputStream(file)) {\n\t\t\t// Reading a Image file from file system\n\t\t\tbyte imageData[] = new byte[(int) file.length()];\n\t\t\timageInFile.read(imageData);\n\t\t\tbase64Image = Base64.getEncoder().encodeToString(imageData);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image not found\" + e);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"Exception while reading the Image \" + ioe);\n\t\t}\n\t\treturn base64Image;\n\t}", "public String getEncodedImage() {\n String base64String = Base64.getEncoder().encodeToString(profilePictureBytes);\n return base64String;\n }", "public String getBase64EncodedPNG()\n\t{\n\t\tString base64Png = null;\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\ttry\n\t\t{\n\t\t\tif (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))\n\t\t\t{\n\t\t\t\tbyte[] imgData = output.toByteArray();\n\t\t\t\tbase64Png = Base64.encodeToString(imgData, Base64.DEFAULT);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn base64Png;\n\t}", "public String getImageBase64() {\n return this.imageBase64;\n }", "public String getEncoded64ImageStringFromBitmap(Bitmap bitmap) {\n\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] byteFormat = stream.toByteArray();\n // get the base 64 string\n //String imgString = Base64.encodeToString(byteFormat, Base64.NO_WRAP);\n String imgString = Base64.encodeToString(byteFormat, Base64.DEFAULT);\n\n return imgString;\n }", "public static String bitMapToBase64String(Bitmap bitmap){\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteStream);\n byte[] byteArray = byteStream.toByteArray();\n String baseString = Base64.encodeToString(byteArray,Base64.DEFAULT);\n return baseString;\n }", "public static String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressFormat, int quality)\n {\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\n image.compress(compressFormat, quality, byteArrayOS);\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.DEFAULT);\n }", "public static String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressFormat, int quality)\r\n {\r\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\r\n image.compress(compressFormat, quality, byteArrayOS);\r\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.DEFAULT);\r\n }", "public static String getImage(Drawable drawable,String path) {\n File cheakfile = new File( path );\n String base64String = null;\n\n if(drawable!=null) {\n //\n File file = new File(path);\n Bitmap bitmap=((BitmapDrawable)drawable).getBitmap();\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 100 /*ignored for PNG*/, bos);\n byte[] bitmapdata = bos.toByteArray();\n base64String = Base64.encodeToString(bitmapdata, Base64.DEFAULT);\n \n\n //write the bytes in file\n // FileOutputStream fos;\n // try {\n // fos = new FileOutputStream(file);\n // fos.write(bitmapdata);\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }\n // \n }\n\n return base64String;\n }", "public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }", "public void encodeImagetoString() {\n new AsyncTask<Void, Void, String>() {\n\n protected void onPreExecute() {\n\n }\n\n ;\n\n @Override\n protected String doInBackground(Void... params) {\n\n //bitmap = Bitmap.createScaledBitmap(bitmap, original_width, original_height, true);\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Must compress the Image to reduce image size to make upload easy\n bitmap.compress(Bitmap.CompressFormat.PNG, 50, stream);\n byte[] byte_arr = stream.toByteArray();\n // Encode Image to String\n encodedString = Base64.encodeToString(byte_arr, 0);\n return \"\";\n }\n\n @Override\n protected void onPostExecute(String msg) {\n\n // Put converted Image string into Async Http Post param\n params.add(new BasicNameValuePair(\"image\", encodedString));\n // Trigger Image upload\n new upload_image().execute();\n }\n }.execute(null, null, null);\n }", "@Override\n protected String doInBackground(Void... params) {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Must compress the Image to reduce image size to make upload easy\n bitmap.compress(Bitmap.CompressFormat.PNG, 50, stream);\n byte[] byte_arr = stream.toByteArray();\n // Encode Image to String\n encodedString = Base64.encodeToString(byte_arr, 0);\n return \"\";\n }", "public String emitAsImageBase64(int width,int height) {\n BufferedImage img = emitAsBufferedImage(width,height);\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "private String convertUploadedFileToBase64(MultipartFile file) throws IOException {\n return Base64.getEncoder().encodeToString(file.getBytes());\n }", "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "public static void convertBase64StringToImage(String base64ImageString, File file) {\n FileOutputStream os;\n try {\n Base64 d = new Base64();\n byte[] bs = d.decode(base64ImageString);\n os = new FileOutputStream(file.getAbsolutePath());\n os.write(bs);\n os.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (IOException e) {\n throw new RuntimeException(e.getMessage(), e);\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public String base64Encode(String str) throws StoreFactoryException;", "public String getStringImage(Bitmap bmp) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, 70, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n\n }", "private String saveDownloadedImage(Bitmap bmp) {\n if (bmp != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, 90, baos);\n byte[] imgBytes = baos.toByteArray();\n String base64String = Base64.encodeToString(imgBytes,\n Base64.DEFAULT);\n\n //Return the encoded image as String\n return base64String;\n }\n return null;\n }", "private BufferedImage imageFromBase64(final String imageString) {\r\n\t\ttry {\r\n\t\t\tfinal boolean useCache=ImageIO.getUseCache();\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.setUseCache(false); /* Wird benötigt, wenn im Stream nicht gesprungen werden kann, was bei einem ByteArrayInputStream nun definitiv möglich ist. */\r\n\t\t\t\treturn ImageIO.read(new ByteArrayInputStream(Base64.getDecoder().decode(imageString)));\r\n\t\t\t} finally {\r\n\t\t\t\tImageIO.setUseCache(useCache);\r\n\t\t\t}\r\n\t\t} catch (IOException | IllegalArgumentException e) {return null;}\r\n\t}", "private String ConvertImagenTexto(Bitmap imagenpro) {\n ByteArrayOutputStream espacio = new ByteArrayOutputStream();\n imagenpro.compress(Bitmap.CompressFormat.JPEG,100,espacio);\n byte[] imagen = espacio.toByteArray();\n String imagenAstring = Base64.encodeToString(imagen,Base64.DEFAULT);\n return imagenAstring;\n }", "public void encodeImagetoString() {\n new AsyncTask<Void, Void, String>() {\n\n protected void onPreExecute() {\n\n };\n\n @Override\n protected String doInBackground(Void... params) {\n BitmapFactory.Options options = null;\n options = new BitmapFactory.Options();\n options.inSampleSize = 3;\n bitmap = BitmapFactory.decodeFile(imgPath,\n options);\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Must compress the Image to reduce image size to make upload easy\n bitmap.compress(Bitmap.CompressFormat.PNG, 50, stream);\n byte[] byte_arr = stream.toByteArray();\n // Encode Image to String\n encodedString = Base64.encodeToString(byte_arr, 0);\n return \"\";\n }\n\n @Override\n protected void onPostExecute(String msg) {\n prgDialog.setMessage(\"Calling Upload\");\n // Put converted Image string into Async Http Post param\n params.put(\"image\", encodedString);\n params.put(\"groupid\",gr_id[spinner.getSelectedItemPosition()]);\n params.put(\"userid\", 1);//userid will be the user who has logged in from the application\n // Trigger Image upload\n triggerImageUpload();\n }\n }.execute(null, null, null);\n }", "public String saveImage(String name, String base64) {\n\t\tString pathFile = pathFileBase + name;\n\t\ttry {\n\t\t\tFileOutputStream imageOutFile = new FileOutputStream(pathFile);\n\t\t\tbyte[] imageByteArray = Base64.getDecoder().decode(base64);\n\t\t\timageOutFile.write(imageByteArray);\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image not found\" + e);\n\t\t\treturn null;\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"Exception while writing the Image \" + ioe);\n\t\t\treturn null;\n\t\t}\n\t\treturn pathFile;\n\t}", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public String save(){\n this.setDrawingCacheEnabled(true);\n this.buildDrawingCache();\n //mBitmap = Bitmap.createBitmap(this.getWidth(),this.getHeight(),Bitmap.Config.ARGB_8888);\n Bitmap bmp = Bitmap.createBitmap(this.getDrawingCache());\n this.setDrawingCacheEnabled(false);\n\n ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG,100,byteArrayOutputStream);\n byte[] imgBytes=byteArrayOutputStream.toByteArray();\n\n return Base64.encodeToString(imgBytes,Base64.DEFAULT);\n\n }", "static Image forData(String imageType, byte[] data) {\n\t\treturn () -> String.format(\"data:image/%s;base64,%s\", imageType, Base64.encodeBase64String(data));\n\t}", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(msg.getBytes());\n\t\t//System.out.println(\"encoded value is \" + new String(bytesEncoded));\n\n\t\treturn new String(bytesEncoded);\n\t}", "public String getStringFromBitMap(Bitmap bmp){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, 50, baos);\n byte[] imageBytes = baos.toByteArray();\n String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);\n return encodedImage;\n }", "public static String encodeToBase64String(MultipartFile file) throws IOException, SQLException {\n byte[] fileBytes = file.getBytes();\n String base64String = Base64Utils.encodeToString(fileBytes);\n\n return base64String;\n }", "org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();", "public String getSnapImage()\r\n\t\t{\r\n\t\tif(this.snapImage != null && this.fximage != null) {\t\r\n\t\t\treturn this.snapImage;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\tgetFXImage();\r\n \t\t\tBufferedImage bImage = SwingFXUtils.fromFXImage(this.fximage, null);\r\n \t\t\tByteArrayOutputStream s = new ByteArrayOutputStream();\r\n \t\t\ttry {\r\n\t\t\t\t\tImageIO.write(bImage, \"png\", s);\r\n\t\t\t\t\t} \r\n \t\t\tcatch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n \t\t\tthis.snapImage = Base64.encode(s.toByteArray());\r\n\t\t\t}\r\n\t\t\tcatch (NullPointerException n) {\r\n\t\t\t\tSystem.out.println(\"The asset for \" + iconId + \" was not found.\" );\r\n\t\t\t}\r\n\t\t\treturn this.snapImage;\t\r\n\t\t}\r\n\t}", "public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }", "public static Bitmap getBitmapFromStringBase64(String imageString){\n byte[] imageAsBytes = Base64.decode(imageString, Base64.DEFAULT);\n Bitmap bitmap = BitmapFactory.decodeByteArray(imageAsBytes, 0, imageAsBytes.length);\n return bitmap;\n }", "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "byte[] getProfileImage();", "@Override\r\n public String getImage(String path, String ext) {\r\n String imageString = \"\";\r\n try {\r\n BufferedImage originalImage = ImageIO.read(new File(path));\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ImageIO.write(originalImage, ext, bos);\r\n byte[] imageBytes = bos.toByteArray();\r\n BASE64Encoder encoder = new BASE64Encoder();\r\n imageString = encoder.encode(imageBytes);\r\n System.out.println(\"Image \"+path+\" loaded\");\r\n bos.close();\r\n return imageString;\r\n } catch (IOException ex) {\r\n System.err.println(\"\"+ex.getMessage());\r\n return null;\r\n }\r\n }", "private void saveDetails() {\n //get the editted data\n String name = m_ChangeName.getText().toString();\n final String age = m_ChangeAge.getText().toString();\n final String bio = m_ChangeBio.getText().toString();\n\n //get the image from the image view\n final Bitmap img = ((BitmapDrawable) m_ProfilePic.getDrawable()).getBitmap();\n\n //get a reference to firebase database\n final DatabaseReference ref = FirebaseDatabase.getInstance().getReference();\n\n //get the current logged in user\n final FirebaseUser fUser = FirebaseAuth.getInstance().getCurrentUser();\n\n // add the new name of the user\n ref.child(\"user\").child(fUser.getUid()).child(\"name\").setValue(name);\n\n // when the name is updated, update the other relevant info\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // update the age and bio\n ref.child(\"user\").child(fUser.getUid()).child(\"age\").setValue(age);\n ref.child(\"user\").child(fUser.getUid()).child(\"bio\").setValue(bio);\n //object to convert image to byte array for storage on firebase\n ByteArrayOutputStream imgConverted = new ByteArrayOutputStream();\n\n //save the image as a .jpg file\n img.compress(Bitmap.CompressFormat.JPEG, 100, imgConverted);\n\n String imageEncoded = Base64.encodeToString(imgConverted.toByteArray(), Base64.DEFAULT);\n ref.child(\"user\").child(fUser.getUid()).child(\"image\").setValue(imageEncoded);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //display error if any occur\n Toasty.error(m_context, \"Error\" + databaseError, Toast.LENGTH_SHORT).show();\n }\n });\n\n }", "@Schema(example = \"iVBORw0KGgoAAAANSUhEUgAAACIAAAAoCAYAAACb3CikAAAABGdBTUEAALGPC\", description = \"Binary image content, base64 encoded.\")\n public String getImage() {\n return image;\n }", "public static MutableImage fromBase64String(String base64Image)\n throws IOException {\n if (base64Image == null) {\n return null;\n }\n\n var base64 = base64Image.replaceFirst(\"(?is)^.*?base64,(.*)$\", \"$1\");\n var bais = new ByteArrayInputStream(\n Base64.getMimeDecoder().decode(base64));\n return new MutableImage(ImageIO.read(bais));\n }", "public static byte[] getFire(String image) {\n return RequestHandler.getBytes(BASE_URL + \"fire?image=\" + image, token);\n }", "public static String encodeToBase64(Bitmap bitmap, Bitmap.CompressFormat compressFormat, int quality) {\r\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\r\n bitmap.compress(compressFormat, quality, byteArrayOS);\r\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.NO_WRAP);\r\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 }", "public static String toImageString(String path) throws FileNotFoundException, IOException {\n \n String imageString = \"\";\n try {\n File f = new File(path);\n try (FileInputStream fis = new FileInputStream(f)) {\n byte byteArray[] = new byte[(int) f.length()];\n fis.read(byteArray);\n imageString = Base64.encodeBase64String(byteArray);\n fis.close();\n }\n } catch (IOException iOException) {\n \n return \"\";\n }\n \n \n return imageString;\n }", "public String addPhotoToFirebase() {\n\n if (selectedImage != null) {\n\n String path = \"img/rescues/\" + UUID.randomUUID().toString();\n StorageReference reference = MainActivity.storageReference.child(path);\n reference.putFile(selectedImage)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n }\n });\n Log.d(\"test\", reference.toString());\n\n return path;\n }\n return null;\n\n\n }", "public static String decodificarImagen(byte[] imagen){\n\t\tif(imagen!=null && imagen.length>0){\n\t\t\treturn \"data:image/jpeg;base64,\"+DatatypeConverter.printBase64Binary(imagen);\n\t\t}\n\t\treturn null;\n\t}", "public static String BitMapToString(Bitmap bitmap){\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG,100, baos);\n byte [] b=baos.toByteArray();\n String temp= Base64.encodeToString(b, Base64.DEFAULT);\n return temp;\n }", "String avatarImage();", "static Image bityNaObraz(String image) throws IOException\n {\n byte[] rysunek = DatatypeConverter.parseBase64Binary(image); \n BufferedImage img = ImageIO.read(new ByteArrayInputStream(rysunek));\n return img;\n }", "public static String convertAudioToBase64(String path) {\n\n byte[] byteArrayImage = new byte[0];\n\n try {\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n FileInputStream fis = new FileInputStream(new File(path));\n\n byte[] buf = new byte[1024];\n int n;\n while (-1 != (n = fis.read(buf)))\n baos.write(buf, 0, n);\n\n byteArrayImage = baos.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return Base64.encodeToString(byteArrayImage, Base64.DEFAULT);\n }", "private void uploadPhoto() {\n // Get the data from an ImageView as bytes\n ImageView imageView = (ImageView)findViewById(R.id.imgView);\n imageView.setDrawingCacheEnabled(true);\n imageView.buildDrawingCache();\n Bitmap bitmap = imageView.getDrawingCache();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);\n byte[] data = baos.toByteArray();\n\n FirebaseStorage storage = FirebaseStorage.getInstance();\n\n // Create a storage reference from our app\n StorageReference storageRef = storage.getReferenceFromUrl(Config.FIREBASE_STORAGE_URL);\n\n // Create a reference to 'images/profile/userNodeId.jpg'\n StorageReference mountainImagesRef = storageRef.child(\"images/profile/\"+currentUser.getFireUserNodeId()+\".jpg\"); // set image name as userid.jpg which is unique\n\n UploadTask uploadTask = mountainImagesRef.putBytes(data);\n uploadTask.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(Exception exception) {\n // Handle unsuccessful uploads\n Toast.makeText(getApplicationContext(),\"Photo upload failed!\",Toast.LENGTH_SHORT).show();\n }\n }).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n // taskSnapshot.getMetadata() contains file metadata such as size, content-type, and download URL.\n Toast.makeText(getApplicationContext(),\"Photo uploaded successfully!\",Toast.LENGTH_SHORT).show();\n }\n });\n }", "public static String encodeBase64(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn Base64.getEncoder().encodeToString(string.getBytes(UTF_8));\n\t}", "public String getImageString() {\n return getString(POST_IMAGE_STRING);\n }", "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "public ValidationEntity encodeBase64(ValidationEntity validationEntity) {\n String encodedBytes =\n Base64.getEncoder().encodeToString(validationEntity.getInputMessage().getBytes(StandardCharsets.UTF_8));\n log.debug(\"encodeBase64 completed successfully: {}\", encodedBytes);\n validationEntity.setValid(true);\n validationEntity.setInputMessage(encodedBytes);\n validationEntity.setValidationMessage(\"Encode Successful!!!\");\n return validationEntity;\n }", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "public static String base64Encode(String str) {\n sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n byte[] bytes = str.getBytes();\n return encoder.encode(bytes);\n\n }", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "@Override\n\tpublic boolean baseToImg() {\n\t\tList<Image> imgList = imageRepository.findAll();\n\t\tfor (Image img : imgList) {\n\t\t\tString base = img.getSource();\n\t\t\tFiles file = new Files(img.getSaegimId(), \"jpg\");\n\t\t\tfile = fileRepository.save(file);\n\t\t\tLong fileId = file.getId();\n\t\t\t\n\t\t\tBase64ToImgDecoder.decoder(base, dir + fileId + '.' + \"jpg\");\n\t\t}\n\t\treturn true;\n\t}", "public Image createImage(String part, Image image) throws IOException {\n\t\t\t craeteFolder(part);\n\t\t\t File outputFile = new File(part+image.getId()+\".\"+image.getType());\n\t\t\t FileOutputStream outputStream = new FileOutputStream(outputFile);\n\t\t byte[] base64Decoded = DatatypeConverter.parseBase64Binary(image.getByteOrpart());\t\t\t\t\t \t\t\t\t\n\t\t outputStream.write(base64Decoded);\n\t\t image.setByteOrpart(part+image.getId()+\".\"+image.getType());\n\t\t \t\n\t\treturn image;\n\t}", "@Override\n\tpublic String getImagePath64X64() {\n\t\treturn null;\n\t}", "@SuppressLint(\"StaticFieldLeak\")\n public void encodeImagetoString() {\n new AsyncTask<String, Void, String>() {\n\n protected void onPreExecute() {\n\n };\n\n @Override\n protected String doInBackground(String... params) {\n int compressVal = 100;\n\n// BitmapFactory.Options options = null;\n// options = new BitmapFactory.Options();\n// options.inSampleSize = 3;\n\n log(imgPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imgPath, options);\n options.inJustDecodeBounds = false;\n options.inSampleSize = ScalingUtilities.calculateSampleSize(options.outWidth, options.outHeight, 1920,\n 1080, ScalingUtilities.ScalingLogic.FIT);\n bitmap = BitmapFactory.decodeFile(imgPath,options);\n\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Must compress the Image to reduce image size to make upload easy\n\n try {\n bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream);\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n\n// int size = 10000000;\n// while ( size > 150 * 1024) {\n// if(compressVal <= 5)\n// {\n// break;\n// }\n// stream.reset();\n// bitmap.compress(Bitmap.CompressFormat.JPEG, compressVal, stream);\n// byte[] temp_byte_arr = stream.toByteArray();\n// size = temp_byte_arr.length;\n// Log.d(TAG,size+\"\");\n// compressVal-=5;\n// }\n byte[] byte_arr = stream.toByteArray();\n // Encode Image to String\n encodedString = Base64.encodeToString(byte_arr, 0);\n log(\"success\");\n return \"\";\n }\n\n @Override\n protected void onPostExecute(String msg) {\n //added by Tonny @23-Mar-2018\n Picasso.get()\n .load(new File(imgPath))\n .resize(200, 200)\n .centerCrop()\n .into(ivPreview);\n //remarked by Tonny @23-Mar-2018 older version\n// Picasso.with(con)\n// .load(new File(imgPath))\n// .resize(200, 200)\n// .centerCrop()\n// .into(ivPreview);\n //data_flag = ChatMsgContainer.message_data_type_picture;\n setupAttachedFile(ChatMsgContainer.message_data_type_picture);\n }\n }.execute(null, null, null);\n }", "public static String stringToBase64String(String text) {\n if (text == null) return null;\n return new String(Base64.encodeBase64(text.getBytes()));\n }", "public static String getStringFromBitmap(Bitmap bitmapPicture) {\n \t\tfinal int COMPRESSION_QUALITY = 100;\n \t\tString encodedImage;\n \t\tByteArrayOutputStream byteArrayBitmapStream = new ByteArrayOutputStream();\n\t\tbitmapPicture.compress(Bitmap.CompressFormat.PNG, COMPRESSION_QUALITY,\n \t\t\t\tbyteArrayBitmapStream);\n \t\tbyte[] b = byteArrayBitmapStream.toByteArray();\n \t\tencodedImage = Base64.encodeToString(b, Base64.DEFAULT);\n \t\treturn encodedImage;\n \t}", "public static String saveImage(String parentFolderPath, String fileInBase64, String oldImagePath)\n\t\t\tthrows IOException {\n\t\t// Generate assetName with format: yyyyMMdd-HHmm-${randomStr}\n\t\tSecureRandom random = new SecureRandom();\n\t\tString randomStr = new BigInteger(130, random).toString(32).substring(0, 6);\n\t\tString assetName = cvDateToString(new Date(), Constants.DATE_FORMAT_FOR_FILE_NAME) + Constants.COMMON_HYPHEN\n\t\t\t\t+ randomStr;\n\t\t//String rootFolderPath = readProperties(Constants.PROP_ROOT_FOLDER);\n\t\tString rootFolderPath = Constants.PROP_ROOT_FOLDER;\n\t\tString assetPath = parentFolderPath + assetName + Constants.SUFFIX_IMAGE_PNG;\n\t\tString fullAssetPath = rootFolderPath + assetPath;\n\t\t// Decode File From Base64 Encoding To File Image\n\t\tBase64 decoder = new Base64(); \n\t\tbyte[] imgBytes = decoder.decode(fileInBase64);\n\t\t// Create Folder To Save Image\n\t\tFile parentFolder = new File(rootFolderPath + parentFolderPath);\n\t\tif (!parentFolder.exists()) {\n\t\t\tparentFolder.mkdir();\n\t\t}\n\t\tif (StringUtils.isNotEmpty(oldImagePath)) {\n\t\t\t// Remove image if it existed\n\t\t\tFile imageFile = new File(rootFolderPath + oldImagePath);\n\t\t\tif (imageFile.exists() && imageFile.length() > 0) {\n\t\t\t\timageFile.delete();\n\t\t\t}\n\t\t}\n\t\t// Save File To Disk\n\t\tFileCopyUtils.copy(imgBytes, new File(fullAssetPath));\n\t\treturn fullAssetPath;\n\t}", "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onPictureTaken(byte[] data, Camera camera) {\n Log.d(\"Hawk.CameraHandler\",\"onPictureCalled\");\n //\n bmp = BitmapFactory.decodeByteArray(data, 0, data.length); //Convert raw byte array to Bitmap format\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream); //Write the Bitmap to ByteArrayOutputStream\n byte[] byteArray = byteArrayOutputStream .toByteArray(); //Get byte array from ByteArrayOutputStream\n //\n encodedImage=Base64.getEncoder().encodeToString(byteArray); //Convert the byte array to Base64 encoded string\n camera.stopPreview(); //Stop the preview\n Log.d(\"EncodedImage\",\"starthere#\"+encodedImage+\"###ENDED\");\n picReady=true; //Indicates that encoded string is ready\n camera.release();\n }", "java.lang.String getProfileImage();", "private void decodeBase64AndSetImage(String completeImageData, ImageView imageView) {\n String imageDataBytes = completeImageData.substring(completeImageData.indexOf(\",\")+1);\n\n InputStream stream = new ByteArrayInputStream(Base64.decode(imageDataBytes.getBytes(), Base64.DEFAULT));\n\n Bitmap bitmap = BitmapFactory.decodeStream(stream);\n\n imageView.setImageBitmap(bitmap);\n }", "private Base64(){}", "public static String toBase64( byte[] b ) {\n StringBuffer sb = new StringBuffer();\n for ( int ptr = 0; ptr < b.length; ptr += 3 ) {\n sb.append( base64[ ( b[ ptr ] >> 2 ) & 0x3F ] );\n if ( ptr + 1 < b.length ) {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) | ( ( b[ ptr + 1 ] >> 4 ) & 0x0F ) ] );\n if ( ptr + 2 < b.length ) {\n sb.append( base64[ ( ( b[ ptr + 1 ] << 2 ) & 0x3C ) | ( ( b[ ptr + 2 ] >> 6 ) & 0x03 ) ] );\n sb.append( base64[ b[ ptr + 2 ] & 0x3F ] );\n } else {\n sb.append( base64[ ( b[ ptr + 1 ] << 2 ) & 0x3C ] );\n sb.append( pad );\n }\n } else {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) ] );\n sb.append( pad );\n sb.append( pad );\n }\n }\n return sb.toString();\n }", "private void loadImageInGUI(String image_64){\n if (image_64.length() > 10) {\r\n //Log.d(\"ddd\", \"writooo\");\r\n ImageView userImage = header.findViewById(R.id.profile_img);\r\n byte[] decodedString = Base64.decode(image_64, Base64.DEFAULT);\r\n Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\r\n userImage.setImageBitmap(decodedByte);\r\n imageLoaded = true;\r\n }\r\n }", "public byte[] getImageBytes()\n {\n byte[] buff = null;\n \n try\n {\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n ImageIO.write(img, \"jpg\", bos);\n buff = bos.toByteArray();\n bos.flush();\n bos.close();\n }\n catch(Exception ex)\n {\n System.out.println(\"Problem Serializeing PicNode\");\n ex.printStackTrace();\n }\n return buff;\n }", "byte[] getSignatureImage();", "public static void main(String[] args) throws IOException {\n String strImg=\"iVBORw0KGgoAAAANSUhEUgAAADwAAAAeCAYAAABwmH1PAAAAAXNSR0IArs4c6QAAAARnQU1BAACx\\n\" +\n \"jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGMSURBVFhH7ZUxbsIwFIYZK7F17h06darEzsLQ\\n\" +\n \"E1RsXIAdMXIANrgAAzMT4go5kBs7/sOLY+e9tGksWxk+yXJ+XvI923hWFIUampfZh8H3LDaTcO5M\\n\" +\n \"wrkzCfs5q8Nqrg6X5vzn25eBzlX4836E2ctafZe5mt3Zn2MQCN/UaVO9JPRRTXE+/0SYtbLPTNWk\\n\" +\n \"30h3C9/3aqsLWzgBiHN5XFuy2rYpm716kPnHcVH+bqFOd5rlCQtDVnfRjjuFSR7inLCs9ljCFIlw\\n\" +\n \"yfvy1YA8xDW+vEFSO7SlnSZIGFQYQLxuQDkXFJfWtjkcge3x5s8x/Iuwm6fyLXFB7etOS9Ltiz+7\\n\" +\n \"tbo6WY5RhF2ouB531ra12itabeu+Kx1FmELFQSPTOr/ArnLPqymqML2eIN6SH3qF8VLfw5oRhGkW\\n\" +\n \"4npM5U0DTOYPZzimsKEjS8Wre3ceaIAc2ZaODBV36duAJIQBxEPyGq4BSQlTOHHgiicrDKTiIHlh\\n\" +\n \"IBXPRhhw4tkJg5C4WFh0XyfAJJw7k3DeFOoHaIAJVpYI2HsAAAAASUVORK5CYII=\";\n\n\n\n\n String base64Img=null;\n HttpRequester httprequest = new HttpRequester();\n\n CloseableHttpClient httpClient =null;\n String url=\"https://creditcard.ecitic.com/citiccard/cppnew/entry.do?func=entryebank&ebankPage=mainpage\";\n httpClient = HttpClients.createDefault();\n CookieStore cookieStore = new BasicCookieStore();\n HttpContext localContext = new BasicHttpContext();\n localContext.setAttribute(\"http.cookie-store\", cookieStore);\n RequestConfig.custom().setConnectTimeout(20000);\n RequestConfig.custom().setSocketTimeout(20000);\n RequestConfig.custom().setConnectionRequestTimeout(20000);\n RequestConfig requestConfig = RequestConfig.custom().build();\n Map<String, String> requestHeaderMap=new HashMap<String, String>();\n requestHeaderMap.put(\"Accept-Encoding\", \"gzip, deflate\");\n requestHeaderMap.put(\"Host\", \"creditcard.ecitic.com\");\n requestHeaderMap.put(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0\");\n requestHeaderMap.put(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\");\n requestHeaderMap.put(\"Connection\", \"Keep-Alive\");\n requestHeaderMap.put(\"Cache-Control\", \"private\");\n requestHeaderMap.put(\"Accept-Language\", \"zh-CN\");\n// if (!StringUtil.isEmpty(userIp)&&!userIp.equals(\"127.0.0.1\")) {\n// requestHeaderMap.put(\"X-Forwarded-For\", userIp);\n// }\n// logger.info(bean.getCuserId()+\"zhongxin userIp=\"+userIp);\n String content= HpClientUtil.httpGet(url, requestHeaderMap, httpClient, localContext, \"GBK\");\n\n String channel=content.substring(content.indexOf(\"var channel\"), content.indexOf(\"var source\"));\n String source =content.substring(content.indexOf(\"var source\"), content.indexOf(\"var from\"));\n channel=channel.substring(channel.indexOf(\"\\\"\")+1, channel.lastIndexOf(\"\\\"\"));\n source=source.substring(source.indexOf(\"\\\"\") + 1, source.lastIndexOf(\"\\\"\"));\n String vcodeUrl=\"https://creditcard.ecitic.com/citiccard/cppnew/jsp/valicode.jsp?time=\"+System.currentTimeMillis();\n\n\n BufferedImage localBufferedImage=null;\n localBufferedImage=HpClientUtil.getRandomImageOfJPEG(vcodeUrl, requestHeaderMap, httpClient, localContext, requestConfig);\n base64Img= BankHelper.GetImageBase64(localBufferedImage, \"jpeg\");\n System.out.println(base64Img);\n url = \"http://192.168.3.50:8080/captcha/hack?captcha=\";\n\n try {\n // url = java.net.URLDecoder.decode(url, \"utf-8\");\n strImg= java.net.URLEncoder.encode(base64Img, \"utf-8\");\n url = url +strImg + \"&bankid=2&imgtype=1\" ;\n HttpRespons hr = httprequest.sendGet(url);\n //获取招商银行的登录sessionID\n content=hr.getContent();\n System.out.println(content);\n JSONObject json=JSONObject.parseObject(content);\n System.out.println(json.getString(\"text\"));\n\n\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n System.out.println(url);\n GenerateImage(base64Img);\n }", "public String BitMapToString(Bitmap bitmap) {\r\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\tbitmap.compress(Bitmap.CompressFormat.PNG, 100, baos);\r\n\t\tbyte[] b = baos.toByteArray();\r\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT);\r\n\t\treturn temp;\r\n\t}", "public void saveImage(final Bitmap imageBitmap, final SaveImageListener listener) {\n //1. save the image remotly\n firebaseModel.saveImage(imageBitmap, new SaveImageListener() {\n @Override\n public void onComplete(String url) {\n // 2. saving the file localy\n String localName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"cach image: \" + localName);\n saveImageToFile(imageBitmap,localName); // synchronously save image locally\n //listener.oncomplete(url);\n listener.onComplete(url);\n }\n\n @Override\n public void fail() {\n listener.fail();\n }\n });\n }", "private void putImageInStorage() {\n final StorageReference ref = storageReference.child(\"images/\" + java.util.UUID.randomUUID().toString());\n ref.putFile(filePath)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n if (taskSnapshot.getMetadata() != null) {\n if (taskSnapshot.getMetadata().getReference() != null) {\n Task<Uri> result = taskSnapshot.getStorage().getDownloadUrl();\n result.addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n imageUrl = uri.toString();\n ChatMessage Message = new\n ChatMessage(null,\n mUsername,\n imageUrl, dateAndTime);\n mFirebaseDatabaseReference.child(CHATS_PATH + chatCode)\n .push().setValue(Message);\n }\n });\n }\n }\n }\n });\n }", "public void uploadImage(View v) {\n // When Image is selected from Gallery\n if (imgPath != null && !imgPath.isEmpty()) {\n prgDialog.setMessage(\"Converting Image to Binary Data\");\n prgDialog.show();\n // Convert image to String using Base64\n encodeImagetoString();\n // When Image is not selected from Gallery\n } else {\n Toast.makeText(\n getApplicationContext(),\n \"You must select image from gallery before you try to upload\",\n Toast.LENGTH_LONG).show();\n }\n }", "private String storeImage(Bitmap imageData) {\n // get path to external storage (SD card)\n String filePath = null;\n if (imageData != null) {\n\n\n try {\n //boolean s = sdIconStorageDir.mkdirs();\n filePath = Environment.getExternalStorageState()\n + System.currentTimeMillis() + \".jpg\";\n Log.d(\"Donde\", filePath);\n FileOutputStream fileOutputStream = new FileOutputStream(\n filePath);\n\n BufferedOutputStream bos = new BufferedOutputStream(\n fileOutputStream);\n\n // choose another format if PNG doesn't suit you\n imageData.compress(Bitmap.CompressFormat.JPEG, 0, bos);\n\n bos.flush();\n bos.close();\n return filePath;\n } catch (IOException e) {\n return \"fail\";\n }\n } else {\n return \"fail\";\n }\n\n }", "public java.lang.String getImage() {\n java.lang.Object ref = image_;\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 image_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private void saveImageToLocalStore(Bitmap finalBitmap) {\n Calendar cal = Calendar.getInstance();\n //--------------\n File direct = new File(Environment.getExternalStorageDirectory() + \"/NDS images\");\n\n if (!direct.exists()) {\n direct = new File(\"/NDS images\");\n direct.mkdirs();\n }\n final String filename = \"NDS_img_\" + cal.getTimeInMillis() + \".png\";\n\n File file = new File(Environment.getExternalStorageDirectory() + File.separator\n + \"/NDS images/\", filename);\n if (file.exists()) {\n file.delete();\n\n }\n //--\n\n // File file = new File(directory+\"/Boo_images/\", filename);\n if (file.exists()) file.delete();\n try {\n FileOutputStream out = new FileOutputStream(file);\n finalBitmap.compress(Bitmap.CompressFormat.PNG, 100, out);\n out.flush();\n out.close();\n //---\n String path_0 = Environment.getExternalStorageDirectory() + File.separator\n + \"/NDS images/\" + filename;\n String filename_to_up = path_0.substring(path_0.lastIndexOf(\"/\") + 1);\n if (!editText.getText().toString().isEmpty()) {\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"image\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"audio\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n path_000 = path_0;\n filename_000 = filename_to_up;\n myRemoteId_000 = MYRemoteId;\n SuggestionBoxId_000 = (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString();\n //-000000000000000000000000-----Image to send-----------------------------------------\n mediaType_000 = \"image\";\n image_tag.setTag(filename_to_up);\n image_tag.setVisibility(View.VISIBLE);\n video_tag.setVisibility(View.GONE);\n audio_tag.setVisibility(View.GONE);\n textSuggestion.setVisibility(View.GONE);\n File imgFile = new File(path_0);\n if (imgFile.exists()) {\n try {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 2;\n Bitmap bm = BitmapFactory.decodeFile(path_0, options);\n //Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n // Log.w(\"myPath\", path);\n //--Adjust imagte before final display haha!---------\n\n\n //---\n Bitmap srcBmp = bm;\n Bitmap dstBmp = null;\n //---Cropping for small display--\n try {\n if (srcBmp.getWidth() >= srcBmp.getHeight()) {\n try {\n dstBmp = Bitmap.createBitmap(srcBmp, srcBmp.getWidth() - srcBmp.getHeight(), 0, srcBmp.getHeight(), srcBmp.getHeight());\n //Log.w(\"cropped yes\",\"good\");\n } catch (RuntimeException shhh) {\n\n }\n } else {\n try {\n dstBmp = Bitmap.createBitmap(srcBmp, 0, srcBmp.getHeight() - srcBmp.getWidth(), srcBmp.getWidth(), srcBmp.getWidth());\n //Log.w(\"cropped yes\",\"good\");\n } catch (RuntimeException shhh) {\n\n }\n }\n\n\n //-----------------\n Drawable d = new BitmapDrawable(getResources(), dstBmp);\n edixt_image.setImageDrawable(d);\n\n // edixt_image.setImageBitmap(dstBmp);\n edixt_image.setTag(path_0);\n } catch (RuntimeException shhh) {\n\n }\n\n\n } catch (Exception vb) {\n\n }\n\n //-------------\n\n\n //----------------\n }\n\n //---------0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n } else {\n Toast.makeText(Suggestion_box_suggest.this, \"Choose or type in receipient\", Toast.LENGTH_SHORT).show();\n }\n galleryAddPic();\n deleteLatestPicture();\n //-------------------------------------------\n } catch (Exception e) {\n e.printStackTrace();\n\n\n Log.w(\"DirImage\", \"failed!\" + e.toString());\n Toast.makeText(Suggestion_box_suggest.this, \"Image not saved! Not enough space!\" + e.toString(), Toast.LENGTH_SHORT).show();\n }\n }", "public static Bitmap decodeToBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n // Make sure the request was successful\n if (resultCode == RESULT_OK) {\n try {\n\n\n imageView.setImageURI(data.getData()); // 이미지 뷰에 삽입\n photoUri = data.getData(); // 이미지 경로 원본\n\n // photostring = getPath(data.getData());\n\n\n\n\n /* StorageReference reference= storageRef.child(System.currentTimeMillis()+ \".\"+getPath(data.getData()));\n Uri file = Uri.fromFile(new File(getPath(data.getData())));\n UploadTask mUploadTask= reference.putFile(file);\n Task<Uri> urlTask = mUploadTask.continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n\n // Continue with the task to get the download URL\n return storageRef.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n mDatabase.child(\"images\").child(\"imageUrl\").setValue(downloadUri.toString());\n } else {\n // Handle failures\n // ...\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n // progressDialog.dismiss();\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }\n });*/\n\n\n\n /* photo = getPath(data.getData());\n Log.d(TAG, \"getPath(photoUri)\" + photo + \"\");\n\n\n\n\n\n photostring = photoUri.toString(); // myphotouri String - > Uri로 변환 / 프로필 사진 uri); // myphotouri String - > Uri로 변환 / 프로필 사진 uri\n photostr = photostring;\n*/\n\n\n\n /* // 선택한 이미지에서 비트맵 생성\n InputStream in = getContentResolver().openInputStream(data.getData());\n Bitmap img = BitmapFactory.decodeStream(in);\n in.close();\n // 이미지 표시\n imageView.setImageBitmap(img);*/\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void uploadImagetoFirebase(Uri imageUri) {\n StorageReference fileRef = storageReference.child(\"/users/\").child(fAuth.getCurrentUser().getUid()).child(\"/profile.png/\");\n fileRef.putFile(imageUri).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(editAccount.this, \"Image Uploaded\", Toast.LENGTH_SHORT).show();\n fileRef.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n\n String userID = fAuth.getCurrentUser().getUid();\n DatabaseReference currentUser_db = FirebaseDatabase.getInstance().getReference().child(\"/Profile/UserInfo/\").child(userID);\n currentUser_db.child(\"imgURL\").setValue(String.valueOf(uri));\n Picasso.get().load(uri).into(editImage);\n\n }\n });\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull @NotNull Exception e) {\n Toast.makeText(editAccount.this, \"Failed\", Toast.LENGTH_SHORT).show();\n }\n });\n\n }" ]
[ "0.79226005", "0.7718876", "0.76037663", "0.74828374", "0.73985803", "0.7356811", "0.7143289", "0.71245205", "0.7119291", "0.7045458", "0.6981927", "0.6962342", "0.6942583", "0.6942466", "0.69099045", "0.6836727", "0.68181163", "0.6749092", "0.67186075", "0.6699815", "0.6528318", "0.65258396", "0.6523916", "0.64768136", "0.6449343", "0.64376646", "0.64376473", "0.6435404", "0.64278066", "0.64194083", "0.63701063", "0.6350743", "0.6345689", "0.6331351", "0.6275023", "0.62581414", "0.62282073", "0.6227389", "0.61199886", "0.6101121", "0.6073013", "0.6059872", "0.60301256", "0.60285616", "0.59961444", "0.5945483", "0.58732694", "0.58694834", "0.5868024", "0.58655393", "0.5862984", "0.5858045", "0.5851231", "0.58485526", "0.5842412", "0.5820328", "0.5818478", "0.58174723", "0.58116484", "0.58095497", "0.57999384", "0.57911223", "0.5778288", "0.57733977", "0.57691133", "0.57393616", "0.573033", "0.5725024", "0.5719117", "0.57085794", "0.5700856", "0.5679403", "0.5679353", "0.56589854", "0.5654245", "0.56540215", "0.5644163", "0.5635207", "0.56160015", "0.5612187", "0.56079865", "0.56063426", "0.55937856", "0.55918956", "0.55905056", "0.5583358", "0.55743945", "0.55699474", "0.55652535", "0.55438", "0.5543747", "0.5536449", "0.5533266", "0.55319875", "0.55296856", "0.5515795", "0.5514353", "0.5514149", "0.5513271", "0.5512921" ]
0.7403013
4
Created by Patryk on 7/27/2015. AppModule [Application] |AppComponent| < BaseComponent needs that stuff...
@Component(modules = {LocalModule.class, NetworkModule.class}, dependencies = ApplicationComponent.class) public interface BaseComponent { OKHttp getOkHTTP(); Retrofit getRetrofit(); LocalDataCache getLocalDataCache(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Component(modules = {AppModule.class, UtilsModule.class})\n@Singleton\npublic interface AppComponent {\n\n void inject(BaseActivity baseActivity);\n\n}", "@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n void inject(BaseActivity baseActivity);\n\n}", "@Component(modules = MainActivityModule.class, dependencies = BaseComponent.class)\npublic interface MainActivityComponent {\n void inject(MainActivity activity);\n}", "@Singleton\n@Component(\n modules = {\n ApplicationModule.class,\n PresentationModule.class\n }\n)\npublic interface ApplicationComponent {\n void inject(MainActivity baseActivity);\n}", "@Component(modules = {\n AndroidSupportInjectionModule.class,\n AppModule.class,\n ActivityBuilder.class\n})\n@Singleton\npublic interface AppComponent{\n\n /*\n * This builder interface is called from our Application class.\n * This will set our application object to the AppComponent\n * So inside the AppComponent the application instance is available.\n * So this application instance can be accessed by our modules\n * such as ApiModule when needed\n * */\n @Component.Builder\n interface Builder{\n @BindsInstance\n Builder application(Application application);\n\n AppComponent build();\n }\n\n /*\n * This is our Application class\n * */\n void inject(BaseApplication application);\n\n}", "@Singleton\n@Component(\n modules = {\n AppModule.class,\n DataModule.class,\n InfoModule.class,\n FlavorModule.class\n }\n)\npublic interface AppComponent {\n\n void inject(HardwiredApp app);\n void inject(AddComputerDialog dialog);\n void inject(ComputerRecyclerAdapter adapter);\n\n DirectoryComponent plus(DirectoryModule module);\n DetailComponent plus(DetailModule module);\n}", "@Singleton // Constraints this component to one-per-application or unscoped bindings.\n@Component(modules = {\n ApplicationModule.class,\n HomeModule.class\n})\npublic interface ApplicationComponent {\n\n /**\n * Field injections of any dependencies of the app\n *\n * @param mainActivity activity for which dependencies must be satisfied.\n */\n void inject(MainActivity mainActivity);\n\n /**\n * Field injections of any dependencies of the app\n *\n * @param homeView dashboardView for which dependencies must be satisfied.\n */\n void inject(HomeView homeView);\n}", "@Singleton\n@Component(modules = {\n CommonsApplicationModule.class,\n NetworkingModule.class,\n AndroidInjectionModule.class,\n AndroidSupportInjectionModule.class,\n ActivityBuilderModule.class,\n FragmentBuilderModule.class,\n ServiceBuilderModule.class,\n ContentProviderBuilderModule.class,\n UploadModule.class,\n ContributionsModule.class,\n SearchModule.class,\n DepictionModule.class,\n CategoriesModule.class\n})\npublic interface CommonsApplicationComponent extends AndroidInjector<ApplicationlessInjection> {\n void inject(CommonsApplication application);\n\n void inject(UploadWorker worker);\n\n void inject(LoginActivity activity);\n\n void inject(SettingsFragment fragment);\n\n void inject(MoreBottomSheetFragment fragment);\n\n void inject(MoreBottomSheetLoggedOutFragment fragment);\n\n void inject(ReviewController reviewController);\n\n //void inject(NavTabLayout view);\n\n @Override\n void inject(ApplicationlessInjection instance);\n\n void inject(FileProcessor fileProcessor);\n\n void inject(PicOfDayAppWidget picOfDayAppWidget);\n\n Gson gson();\n\n @Component.Builder\n @SuppressWarnings({\"WeakerAccess\", \"unused\"})\n interface Builder {\n\n Builder appModule(CommonsApplicationModule applicationModule);\n\n CommonsApplicationComponent build();\n }\n}", "@Singleton\n@Component(modules = {AppModule.class, ProviderModule.class})\npublic interface AppComponent {\n Retrofit provideRetrofit();\n BaseApplication providesApplication();\n\n}", "@ForApplication\n@Component(modules = {AppModule.class, NetworkModule.class})\npublic interface AppComponent {\n Context appContext();\n Resources resources();\n PreferencesHelper preferencesHelper();\n void inject(NewsPresenter newsPresenter);\n void inject(FeedStorage feedStorage);\n}", "@Component(modules = AppModule.class)\npublic interface AppComponent {\n\n\n EventListComponent plus(EventListModule eventListModule);\n\n EventDetailComponent plus(EventDetailModule eventDetailModule);\n\n}", "public interface AppComponent {\n}", "@Component(modules = {AndroidInjectionModule.class, MyApplicationModule.class})\npublic interface MyApplicationComponent extends AndroidInjector<MyApplication>{\n}", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface AppComponent {\n\n // Exposing to sub-graphs:\n @ApplicationContext\n Context context();\n\n ServiceClient serviceClient();\n\n void inject(BaseActivity baseActivity);\n}", "@Component(modules = BaseTabFPAdapterModule.class)\npublic interface BaseTabFPAdapterComponent {\n void inject(MainActivity activity);\n}", "@Component(modules = AppModule.class)\npublic interface AppComponent\n{\n MemeHomeComponent add(MemeHomeModule memeHomeModule);\n CreateMemeComponent add(CreateMemeModule createMemeModule);\n SmartSearchComponent add(SmartSearchModule smartSearchModule);\n}", "@Singleton @Component(modules = {ApplicationModule.class, ApiModule.class})\npublic interface ApplicationComponent {\n Context getContext();\n Bus getBus();\n TRApi getTRApi();\n\n void inject(ZhihuApplication zhihuApplication);\n\n void inject(BaseNewActivity baseNewActivity);\n}", "@ActivityScope\n@Subcomponent(modules = MainModule.class)\npublic interface MainComponent {\n\n void inject(MainActivity activity);\n\n\n}", "@Singleton\n@Component(modules = {\n ApplicationModule.class,\n AndroidInjectionModule.class,\n ActivityBuilderModule.class\n})\npublic interface AppComponent {\n @Component.Builder\n interface Builder{\n @BindsInstance\n Builder application(Application application);\n AppComponent build();\n\n }\n void inject (NYTimesApp inject);\n}", "@Singleton\n@Component(modules = {\n AndroidSupportInjectionModule.class /* it makes Dagger generates DaggerNannyApplicationComponent */,\n ApplicationBindingModule.class /* it generates AndroidInjector.Builder<MainActivity>, which\n is used to inject requested dependencies by MainActivity */\n})\npublic interface NannyApplicationComponent extends AndroidInjector<NannyApplication> {\n\n @Component.Builder /* Simply tells this Builder is DaggerNannyApplicationComponent’s inner Builder class */\n abstract class Builder extends AndroidInjector.Builder<NannyApplication> {\n }\n}", "@Singleton\n@Component(modules = {MyAppModule.class,TwitterModule.class, ApiModule.class, RxModule.class})\npublic interface MyAppComponent {\n void inject(MainActivity target);\n}", "@Singleton\n@Component(modules = {\n\t\tAndroidSupportInjectionModule.class,\n\t\tAppModule.class,\n\t\tNetworkModule.class,\n\t\tModuleBuilder.class\n})\npublic interface AppComponent{\n\n\[email protected]\n\tinterface Builder {\n\n\t\t@BindsInstance\n\t\tBuilder application(App application);\n\t\tAppComponent build();\n\t}\n\n\tvoid inject(App app);\n}", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface BasicComponent {\n\tvoid inject(AddContactActivity addContactActivity);\n\tvoid inject(MainActivity mainActivity);\n\tvoid inject (MainActivityFragment mainActivityFragment);\n\tvoid inject (HandleClickFromRecyclerContactsModel handleClickFromRecyclerContactsModel);\n}", "@Singleton\n@Component(\n modules = {\n AppModule.class,\n MovieDBApiModule.class\n })\npublic interface AppComponent {\n\n MainActivityComponent plus(MainActivityModule mainActivityModule);\n\n DetailActivityComponent plus(DetailActivityModule detailActivityModule);\n\n}", "@Singleton\n@Component(modules = {\n AndroidInjectionModule.class,\n AppModule.class,\n ActivityBuilder.class,\n NetModule.class, GlideAppModules.class\n})\npublic interface AppComponent {\n\n @Component.Builder\n interface Builder {\n\n @BindsInstance Builder application(Application application);\n AppComponent build();\n Builder net(NetModule netModule);\n Builder glide(GlideAppModules glideAppModules);\n }\n\n void inject(MyApplication application);\n\n}", "private void initAppComponent() {\n mAppComponent = DaggerAppComponent.builder()\n .appModule(new AppModule(this))\n .build();\n }", "@Singleton\n@Component(modules = {AndroidInjectionModule.class, ApplicationModule.class, ActivitiesModule.class, NetworkModule.class, DatabaseModule.class})\npublic interface ApplicationComponent {\n\n void inject(SchoolsApplication schoolsApplication);\n}", "@Component(modules = {ActivityModule.class})\npublic interface ActivityComponent {\n// void inject(MainActivity mainActivity);\n UserModule userModule();\n}", "@ActivityScope\n@Subcomponent(\n modules = MainActivityModule.class\n)\npublic interface MainActivityComponent {\n\n void inject(MainActivity mainActivity);\n\n}", "@SuppressWarnings(\"unused\")\n@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n void inject(DIApplication application);\n\n void inject(BaseActivity activity);\n void inject(BaseFragment fragment);\n\n void inject(DogSyncService service);\n}", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface AppComponent {\n Context getContext();\n CommonUtil getComminUtil();\n}", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n// void inject(BaseActivity baseActivity);\n\n // provide\n Context getContext();\n RxBus getRxBus();\n DaoSession getDaoSession();\n}", "@Singleton\n@Component(modules ={LibsModule.class, MyPhotoGalleryAppModule.class})\npublic interface LibsComponent {\n}", "@Subcomponent()\npublic interface MainComponent {\n\n void inject(final MainActivity mainActivity);\n\n}", "@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n\n void inject(BaseActivity activity);\n void inject(UserListFrag frag);\n void inject(LoginFrag frag);\n void inject(SplashActivity act);\n\n}", "public interface App {\n AppComponent getAppComponent();\n}", "@ApplicationScope\n@Component(modules = {\n ApplicationModule.class,\n NetworkModule.class,\n ApiModule.class,\n PersistenceModule.class\n})\npublic interface ApplicationComponent {\n\n ArchitectureUrl url();\n\n void inject(CatApplication application);\n HomeComponent plus(HomeModule module);\n}", "@Singleton\n@Component(modules={\n AccountServiceModule.class,\n UserServiceModule.class,\n ConnectionModule.class,\n RemoteAccountModule.class,\n DaoModule.class,\n AuthenticationModule.class,\n CSVGeneratorModule.class,\n EmailServiceModule.class\n})\npublic interface ApplicationComponent {\n\n /**\n * The view needs classes defined in the services. The inject method\n * lets us do this.\n * Create an inject method for every different classes (controllers) in the views that would need them\n * @param myMoneyApplication\n */\n void inject(MyMoneyApplication myMoneyApplication);\n\n void inject(LoginController loginController);\n\n void inject(AccountListController accountListController);\n\n void inject(SignUpController signUpController);\n\n void inject(TransactionTableController tableController);\n\n void inject(UpdateUserAccountController updateUserAccountController);\n\n void inject(AllTransactionsController allTransactionsController);\n\n void inject(AccountDetailsController accountDetailsController);\n}", "@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n void inject(App app);\n}", "@Singleton\n@Component(modules = {\n ApplicationModule.class,\n NetworkModule.class,\n StorageModule.class\n})\npublic interface ApplicationComponent {\n ActivityComponent plus(ActivityModule module);\n\n void inject(MyServiceInterceptor myServiceInterceptor);\n\n}", "@Singleton\n@Component(modules = {ViewModule.class, NetworkModule.class, MapModule.class})\npublic interface ErrandComponent {\n void inject(MapsActivity mapsActivity);\n\n}", "@Singleton\n@Component(modules = {AndroidInjectionModule.class,\n AppModule.class,\n MainActivityModule.class})\npublic interface AppComponent {\n\n @Component.Builder\n interface Builder {\n @BindsInstance\n Builder application(Application application);\n AppComponent build();\n }\n\n void inject(GitHubApp gitHubApp);\n}", "@PerActivity\n@Component(dependencies = ApplicationComponent.class,modules = MainModule.class)\npublic interface MainComponent {\n\n void inject(MainActivity activity);\n void inject(SignInFragment fragment);\n void inject(SignOutFragment fragment);\n void inject(AdminFragment fragment);\n void inject(AboutFragment fragment);\n void inject(PicksFragment fragment);\n void inject(TrackFragment fragment);\n}", "@Singleton\n@Component (modules = { AndroidSupportInjectionModule.class,\n ActivityBuilder.class,\n AppModule.class })\npublic interface AppComponent {\n\n @Component.Builder\n interface Builder {\n\n @BindsInstance\n Builder application(DemoApp app);\n\n AppComponent build();\n }\n\n void inject(DemoApp app);\n\n}", "@Singleton\n@Component(\n modules = {\n AppModule.class,\n ObjectBoxModule.class\n })\npublic interface AppComponent {\n void inject(ToDoListActivity activity);\n void inject(TaskEditorActivity activity);\n //void inject(ICommonRepository repository);\n //ICommonRepository repo();\n}", "@PerActivity\n@Component(dependencies = ApplicationComponent.class,modules = {ActivityModule.class, GeneralModule.class})\npublic interface GeneralComponent extends ActivityComponent{\n void inject(GitUsersActivity activity);\n}", "@Singleton // Constraints this component to one-per-application or unscoped bindings.\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n // Field injections of any dependencies of the DemoApplication\n void inject(FeelingApp application);\n\n //Exposed to sub-graphs.\n Application application();\n Context context();\n SessionManager<TwitterSession> sessionManager();\n Retrofit networkManager();\n ThreadExecutor threadExecutor();\n PostExecutionThread postExecutionThread();\n TweetCache tweetCache();\n TweetRepository tweetRepository();\n\n}", "@Component(\n modules = {\n ComputerModule.class,\n AccessoriesModule.class,\n DrinksModule.class\n }\n)\npublic interface DemoComponent {\n\n Programmer programmer();\n void inject(MainActivity activity);\n\n}", "@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n void inject (@NonNull App app);\n}", "@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHuModule.class, RssModule.class})\npublic interface AppComponent {\n Context getContext();\n GankService getGankService();\n ZhiHuService getZhiHuService();\n RssService getRssService();\n EventBus getBus();\n}", "@ActivityScope\n@Component(modules = MainModule.class, dependencies = AppComponent.class)\npublic interface MainComponent {\n\n void inject(MainActivity mainActivity);\n}", "@Singleton\n@Component(modules = {ModelModule.class, PresenterModule.class})\npublic interface AppComponent {\n void inject(ModelImpl dataRepository);\n\n void inject(BasePresenter basePresenter);\n\n void inject(PresenterSearch presenterSearch);\n\n void inject(FavouriteActivity favouriteActivity);\n}", "@ActivityScope\n@Component(modules = MainModule.class, dependencies = ApplicationComponent.class)\npublic interface MainComponent {\n\n void inject(MainActivity mainActivity);\n\n}", "@Component(modules = {ApplicationModule.class,HttpModule.class})\npublic interface ApplicationComponent {\n\n MyApp getApplication();\n\n NewsApi getNetEaseApi();\n\n JanDanApi getJanDanApi();\n\n Context getContext();\n\n}", "@Singleton\n@Component(modules = AppModule.class)\npublic interface ApplicationComponent {\n\n void inject(ContainerActivity containerActivity);\n}", "@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n\n void inject(GoToDream goToDream);\n\n @Named(\"application\")\n Context getContext();\n}", "@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n Context getApplication();\n}", "@Singleton\n@Component(modules = {PracticeModule.class})\npublic interface ApplicationComponent {\n\n /**\n * Inject method for the SplashActivity instance.\n *\n * @param activity is the type SplashActivity\n */\n void inject(SplashActivity activity);\n\n /**\n * Inject method for the HomeActivity instance.\n *\n * @param activity is the type HomeActivity\n */\n void inject(HomeActivity activity);\n\n /**\n * Inject method for the SubscriberListFragment\n *\n * @param fragment is the type SubscriberListFragment\n */\n void inject(SubscriberListFragment fragment);\n\n /**\n * Inject method for the SubscriberDetailsFragment\n *\n * @param fragment is the type SubscriberDetailsFragment\n */\n void inject(SubscriberDetailsFragment fragment);\n\n /**\n * Inject method for the WebClientFragment\n *\n * @param fragment is the type WebClientFragment\n */\n void inject(WebClientFragment fragment);\n}", "@ApplicationScope\n@Component(modules = {ContextModule.class,ServiceModule.class}) // tell which modules to use in order to generate this instance\npublic interface ApplicationComponent {\n\n\n\n SharedPreferencesClass getSharedPrefs();\n\n RequestManager getGlide();\n\n void injectRepo(ProjectRepository repository);\n\n}", "@Component(modules = {ApplicationModule.class, HttpModule.class})\npublic interface ApplicationComponent {\n MyApp getApplication();\n\n ApiService getApiService();\n\n Context getContext();\n\n}", "@Component(modules = {AppModule.class, UtilsModule.class})\n@Singleton\npublic interface AppComponent {\n\n void doInjection(HomeActivity homeActivity);\n\n}", "@Singleton\n@Component( modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n //Exposed to sub-graphs\n Context context();\n\n ThreadExecutor threadExecutor();\n\n PostExecutionThread postExecutionThread();\n\n ObserverController observerController();\n\n Bundle parametersFactory();\n\n void inject(DevxitActivityDelegateImpl<DevxitView, DevxitPresenter<DevxitView>> devxitActivityDelegate);\n}", "@Subcomponent(modules = AModule.class)\npublic interface AComponent {\n void inject(AActivity aActivity);\n}", "@Singleton\n@Component(modules = {NetworkModule.class, EventBusModule.class})\npublic interface AppComponent {\n\n void inject(RootViewModel rootViewModel);\n\n}", "@Singleton\n@Component(modules = {AppModule.class, ConfigModule.class})\npublic interface AppComponent {\n\n Application application();\n\n RepositoryManager repositoryManager();\n\n RxLifecycleManager rxLifecycleManager();\n\n HttpClientHandler httpErrorHandler();\n\n AppManager appManager();\n\n OkHttpClient provideClient();\n\n void inject(AppDelegate delegate);\n\n @Component.Builder\n interface Builder {\n\n @BindsInstance\n Builder application(Application application);\n\n @BindsInstance\n Builder appDelegate(AppDelegate appDelegate);\n\n Builder configModule(ConfigModule configModule);\n\n AppComponent build();\n }\n}", "@Component(modules = WheelsModule.class)\npublic interface CarComponent {\n Car getCar();\n void inject(MainActivity activity); //se necesita declarar especificamente la activity para la forma 2\n}", "@Component(\n modules = {\n AndroidSupportInjectionModule.class,\n NetworkModule.class,\n ViewModelModule.class,\n WeatherContributor.class\n }\n)\n@Singleton\npublic interface WeatherComponent extends AndroidInjector<WeatherApplication> {\n\n @Component.Builder\n interface Builder{\n\n @BindsInstance\n Builder application(Application application);\n\n WeatherComponent build();\n }\n}", "@Subcomponent(modules = GameActivitySubcomponentBuildersModule.class)\npublic interface GameActivityComponent extends AndroidInjector<GameActivity> {\n\n\n @Subcomponent.Builder\n abstract class Builder extends AndroidInjector.Builder<GameActivity> {\n\n }\n\n}", "@ApplicationScope\n@Component(modules = {AppModule.class})\npublic interface AppComponent {\n\n void inject(MyApplication application);\n\n Application application();\n\n Gson gson();\n\n OkHttpClient okHttpClient();\n\n}", "@Singleton\n@Component(modules = {ApplicationModule.class, LoginModule.class})\npublic interface ApplicationComponent {\n\n void inject(LoginActivity target);\n}", "@Singleton\n@Component(modules = {PopularMoviesInjectionModule.class})\npublic interface PopularMoviesApplicationComponent {\n\n Context context();\n\n void inject(MovieDetailsActivity activity);\n\n void inject(MovieGridFragment fragment);\n\n void inject(FavoriteMoviesContentProvider contentProvider);\n}", "@CustomScope\n@Component(modules = ExModule.class)\npublic interface ExComponent {\n\n /**\n * Inject.\n *\n * @param mapActivity the landing screen\n */\n void inject(MainActivity mapActivity);\n}", "@PerActivity\n@Component(dependencies = ApplicationComponent.class, modules = {ActivityModule.class, DataModule.class})\npublic interface MainActivityComponent extends AbstractActivityComponent {\n void inject(MainActivity mainActivity);\n}", "@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n\n /**\n * Inject method for the {@link PostActivity}.\n *\n * @param activity {@link PostActivity} instance.\n */\n void inject(PostActivity activity);\n\n /**\n * Inject method for the {@link PostFragment}.\n *\n * @param fragment {@link PostFragment} instance.\n */\n void inject(PostFragment fragment);\n\n /**\n * Inject method for the {@link FavoritesFragment}.\n *\n * @param fragment {@link FavoritesFragment} instance.\n */\n void inject(FavoritesFragment fragment);\n\n /**\n * Inject method for the {@link PostDetailsActivity}.\n *\n * @param activity {@link PostDetailsActivity} instance.\n */\n void inject(PostDetailsActivity activity);\n\n}", "@Singleton\n@Component(modules = {\n ApplicationModule.class,\n PreferenceModule.class,\n NetworkModule.class,\n ServiceModule.class\n})\npublic interface DiComponent {\n void inject(MainActivity activity);\n}", "@PerModule // Constraints this component to one-per-application or unscoped bindings.\n@Subcomponent(modules = {UserSettingsModule.class})\npublic interface UserSettingsComponent {\n public void inject(UserSettingsFragment userSettingsFragment);\n\n}", "@Singleton\n@Component(modules = ImeiMainModule.class)\npublic interface ImeiMainComponent {\n void inject(ImeiAplication app);\n\n //Exposed to sub-graphs.\n ImeiAplication app();\n}", "@Subcomponent(modules = {MapModule.class})\npublic interface MapComponent {\n\n void inject(MapActivity activity);\n\n}", "@Singleton\n@Component(modules = {AppModule.class, AppClientModule.class})\npublic interface AppComponent {\n Application getApplication();\n MainViewInteraction getWeatherInteractor();\n}", "@Subcomponent(modules = FoodModule.class)\npublic interface SubComponent {\n void inject(ThirdActivity activity);\n}", "@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n ModuleA moduleA();\n}", "@Component(modules = MainActivityModuel.class)\npublic interface MainActivityComponent {\n void inject(MainActivity activity);\n}", "@Provides @PerActivity @SuppressWarnings(\"unused\")\n public BaseActivity provideBaseActivity() {\n return baseActivity.get();\n }", "@PerActivity\n@Component(modules = CakeModule.class, dependencies = ApplicationComponent.class)\npublic interface CakeComponent {\n\n void inject(MainActivity activity);\n\n}", "public abstract void injectComponent();", "@Provides\n @Singleton\n Application providesApplication() {\n return mApplication;\n }", "@Singleton\n@Component(modules={AppModule.class, NetModule.class})\npublic interface NetComponent {\n void inject(App application);\n void inject(MainActivity activity);\n\n SharedPreferenceUtil provideSharedPreferences();\n\n}", "@ActivityScope\n@Subcomponent(modules = {SplashActivityModule.class, AuthModule.class})\npublic interface SplashSubComponent {\n void inject(SplashScreenActivity activity);\n}", "@Component(modules = { ApplicationModule.class, SettingsDataModule.class, UserDataModule.class, RecipeDataModule.class })\n@ApplicationScope\npublic interface ApplicationComponent {\n\n void inject(HoppyApplication application);\n\n @ApplicationContext\n Context applicationContext();\n Navigator navigator();\n\n UserRepository userRepository();\n RecipeRepository recipeRepository();\n SettingsRepository settingsRepository();\n GetCurrentUserInteractor getCurrentUserInteractor();\n}", "@ActivityScope\n@Component(dependencies = AppComponent.class, modules = MainModule.class)\npublic interface MainComponent {\n void inject(MainActivity mainActivity);\n MainPresenter getMainPresenter();\n}", "@Singleton\r\n@Component(modules = {UIModule.class, InteractorModule.class, MockModelModule.class, MockNetworkModule.class})\r\npublic interface MockAnimalFindApplicationComponent extends AnimalFindApplicationComponent {\r\n}", "@OTPScope\n@Component(modules = {OtpVerifyModule.class}, dependencies = BaseAppComponent.class)\npublic interface OtpVerifyComponent {\n public void inject(OtpVerficationActivity activity);\n}", "public interface ApplicationComponent extends CloudApplication {\n}", "@Component(modules = ActivityModule.class)\npublic interface ActivityComponent {\n\n void injectMainActivity(MainActivity activity);\n\n void injectGankActivity(GankActivity activity);\n\n void injectListActivity(ListActivity activity);\n\n void injectMeiziActivity(MeiziActivity activity);\n\n void injectVideoActivity(VideoActivity activity);\n\n void injectWebActivity(WebActivity activity);\n\n}", "public interface DaggerComponetBase {\n\n}", "@PerActivity\n@Component(modules={DynamicStarMapModule.class}, dependencies={ApplicationComponent.class})\npublic interface DynamicStarMapComponent extends EulaDialogFragment.ActivityComponent,\n TimeTravelDialogFragment.ActivityComponent, HelpDialogFragment.ActivityComponent,\n NoSearchResultsDialogFragment.ActivityComponent,\n MultipleSearchResultsDialogFragment.ActivityComponent,\n NoSensorsDialogFragment.ActivityComponent {\n void inject(DynamicStarMapActivity activity);\n}", "@UserScope\n@Subcomponent(\n modules = {\n UserModule.class\n }\n)\npublic interface UserComponent {\n}", "@Subcomponent()\npublic interface AddBookActivitySubcomponent extends AndroidInjector<AddBookActivity> {\n @Subcomponent.Builder\n abstract class Builder extends AndroidInjector.Builder<AddBookActivity> {\n }\n}", "@Singleton\n@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n// @ApplicationContext\n// Context context();\n\n Application application();\n\n SharedPrefencesHelper sharedPrefencesHelper();\n\n DataManager dataManager();\n\n G3anService g3anService();\n}", "@Singleton\n@Component (modules = MainModule.class)\npublic interface MainComponent {\n void inject(MainActivity mainActivity);\n void inject(ForecastFragment forecastFragment);\n void inject(GPSLocationActivity gpsLocationActivity);\n\n}" ]
[ "0.71607673", "0.71187955", "0.7058578", "0.69479764", "0.6878371", "0.6866533", "0.68346316", "0.6807604", "0.67963564", "0.6784885", "0.678462", "0.67264956", "0.67113495", "0.6693784", "0.6689144", "0.6678009", "0.6670376", "0.66639143", "0.6648829", "0.6643357", "0.6628359", "0.6615158", "0.6609534", "0.66013056", "0.656852", "0.65561795", "0.6542116", "0.65212923", "0.6508989", "0.6487446", "0.64740443", "0.6473936", "0.64730614", "0.6469969", "0.6465975", "0.6454228", "0.6440207", "0.6438665", "0.6433426", "0.64333355", "0.64246345", "0.63995403", "0.639131", "0.6385915", "0.63632673", "0.6359071", "0.6357503", "0.63414437", "0.63365215", "0.6325224", "0.6298443", "0.6294932", "0.62936497", "0.6282348", "0.62749517", "0.62736356", "0.6264867", "0.6263021", "0.62612355", "0.6259866", "0.6254178", "0.625374", "0.6252751", "0.6249457", "0.6233716", "0.62296915", "0.6227509", "0.6226141", "0.6225378", "0.6224852", "0.62219703", "0.62188774", "0.6214154", "0.62108785", "0.6207723", "0.62058884", "0.62040246", "0.62013346", "0.6195351", "0.6191469", "0.6188829", "0.61864954", "0.6134988", "0.6126185", "0.60939175", "0.6079998", "0.6074044", "0.607195", "0.6070825", "0.60596734", "0.6058161", "0.605786", "0.6054224", "0.60489994", "0.6048248", "0.6041826", "0.60288787", "0.601282", "0.60047084", "0.6004377" ]
0.6466918
34
Handles the any uncaught exceptions.
private void handleUncaught(Throwable t) { try { Exceptions.handleUncaught(t); RxJavaPlugins.getInstance().getErrorHandler().handleError(t); } catch (Throwable e) { // nowhere to go now } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onUncaughtException(Throwable e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "void handleError(Exception ex);", "private void handleException(java.lang.Throwable exception) {\n\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t// exception.printStackTrace(System.out);\n}", "private void handleException(java.lang.Throwable exception) {\n\t\tSystem.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t\texception.printStackTrace(System.out);\n\t}", "@Override\r\n\tpublic void uncaughtException(Thread thread, Throwable ex) {\n\r\n\t}", "private void handleException(java.lang.Throwable exception) {\r\n\r\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\r\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\r\n\t// exception.printStackTrace(System.out);\r\n}", "protected void handleException(Exception ex) {\n\t\tOCSRuntimeException r = extractRuntimeException(ex);\n\t\tif (r != null) {\n\t\t\tshowNotification(r.getMessage());\n\t\t} else {\n\t\t\tshowNotification(ex.getMessage());\n\t\t}\n\t}", "public void onUnhandledInboundException(Throwable th) {\n try {\n logger.warn(\"An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.\", th);\n } finally {\n ReferenceCountUtil.release(th);\n }\n }", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "protected void handleException(java.lang.Throwable exception) {\n\tsuper.handleException(exception);\n}", "@Override\n public final void uncaughtException(final Thread t, final Throwable e)\n {\n if (null != context) {\n context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE).edit ().putBoolean (SHARED_PREF_KEY_CRASH_DETECTED, true).commit();\n }\n // log it to file:\n Logger logger = Logger.getLogger(this.getClass().getName());\n logger.fatal (\"Uncaught Exception\", e);\n\n MFPAnalyticsActivityLifecycleListener.getInstance().logAppCrash();\n\n // allow it to pass through:\n defaultUEH.uncaughtException(t, e);\n }", "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\n\t\t\t}", "@Override\n\t\t\t\tpublic void uncaughtException(Thread thread, Throwable ex) {\n\t\t\t\t\tLog.d(\"Error\", \"uncaughtException of Thread:\" + thread.getName(), ex);\n\t\t\t\t\t// re-throw critical exception further to the os (important)\n\t\t\t\t\tdefaultUEH.uncaughtException(thread, ex);\n\t\t\t\t}", "@Override\n public void uncaughtException(Thread thread, Throwable ex) {\n if (mDefaultCrashHandler != null) {\n if (ex != null) {\n String logStr = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date()) + \"\\n\" + collectExceptionInfo(ex) + \"\\n\\n\\n#########################\\n\\n\\n\\n\\n\\n\\n\";\n FileManager.getInstance().saveLog(logStr, true);\n }\n\n try {\n mDefaultCrashHandler.uncaughtException(thread, ex);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n Process.killProcess(Process.myPid());\n }\n\n }", "void onException(Exception e);", "public void onException(Exception ex) {\n \t\t\t}", "@Override\n\tpublic void exceptionHandler(Handler<Exception> handler) {\n\t\t\n\t}", "public void handleException(Throwable e) {\r\n handleException(e, mReportingInteractionMode);\r\n }", "@Override\n public void onException(Exception arg0) {\n }", "@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void onException(Exception e) {\n\n\t}", "@Override\n public void uncaughtException(Thread thread, Throwable ex) {\n if (crashHandler != null) {\n try {\n //将crash log写入文件\n FileOutputStream fileOutputStream = new FileOutputStream(MainApplication.SEND_PATH + \"crash_log.txt\", true);\n PrintStream printStream = new PrintStream(fileOutputStream);\n printStream.print(\"log start:\\n\");\n Date date = new Date();\n printStream.print(\"Date:\" + date.toString());\n ex.printStackTrace(printStream);\n printStream.print(\"\\n\\n\\n\");\n printStream.flush();\n printStream.close();\n fileOutputStream.close();\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 }", "protected abstract void onException(final Exception exception);", "public abstract void onException(Exception e);", "public void uncaughtException(java.lang.Thread r11, java.lang.Throwable r12) {\n /*\n r10 = this;\n setJavaThreadCrashed()\n boolean r0 = com.zipow.videobox.mainboard.Mainboard.isNativeCrashed()\n if (r0 == 0) goto L_0x0011\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x0010\n r0.uncaughtException(r11, r12)\n L_0x0010:\n return\n L_0x0011:\n boolean r0 = r12 instanceof java.lang.UnsatisfiedLinkError\n if (r0 != 0) goto L_0x028e\n boolean r0 = r12 instanceof android.database.sqlite.SQLiteDiskIOException\n if (r0 == 0) goto L_0x001b\n goto L_0x028e\n L_0x001b:\n com.zipow.videobox.VideoBoxApplication r0 = com.zipow.videobox.VideoBoxApplication.getInstance()\n boolean r0 = r0.isConfApp()\n if (r0 == 0) goto L_0x0052\n us.zoom.androidlib.app.ZMActivity r0 = p021us.zoom.androidlib.app.ZMActivity.getFrontActivity()\n com.zipow.videobox.confapp.ConfUI r1 = com.zipow.videobox.confapp.ConfUI.getInstance()\n boolean r1 = r1.isLeaveComplete()\n if (r1 != 0) goto L_0x0043\n boolean r1 = r0 instanceof com.zipow.videobox.ConfActivity\n if (r1 == 0) goto L_0x0052\n boolean r1 = r0.isFinishing()\n if (r1 != 0) goto L_0x0043\n boolean r0 = p021us.zoom.androidlib.app.ZMActivity.isActivityDestroyed(r0)\n if (r0 == 0) goto L_0x0052\n L_0x0043:\n java.lang.String r11 = TAG\n java.lang.String r0 = \"\"\n android.util.Log.e(r11, r0, r12)\n com.zipow.videobox.VideoBoxApplication r11 = com.zipow.videobox.VideoBoxApplication.getInstance()\n r11.stopConfService()\n return\n L_0x0052:\n int r0 = android.os.Process.myPid()\n com.zipow.videobox.VideoBoxApplication r1 = com.zipow.videobox.VideoBoxApplication.getInstance()\n boolean r1 = r1.isConfApp()\n if (r1 == 0) goto L_0x0063\n java.lang.String r1 = \"zVideoApp\"\n goto L_0x0065\n L_0x0063:\n java.lang.String r1 = \"zChatApp\"\n L_0x0065:\n com.zipow.videobox.VideoBoxApplication r2 = com.zipow.videobox.VideoBoxApplication.getInstance()\n boolean r2 = com.zipow.videobox.util.ZMUtils.isItuneApp(r2)\n if (r2 == 0) goto L_0x0080\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r2.append(r1)\n java.lang.String r1 = \"-intune\"\n r2.append(r1)\n java.lang.String r1 = r2.toString()\n L_0x0080:\n java.lang.String r2 = \"java-\"\n boolean r3 = r12 instanceof com.zipow.videobox.stabilility.NativeCrashException\n if (r3 == 0) goto L_0x0088\n java.lang.String r2 = \"native-zmdump-\"\n L_0x0088:\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n r4.<init>()\n java.lang.String r5 = \"crash-\"\n r4.append(r5)\n r4.append(r2)\n java.lang.String r4 = r4.toString()\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n java.lang.String r6 = \"-\"\n r5.append(r6)\n r5.append(r1)\n java.lang.String r1 = \"-\"\n r5.append(r1)\n r5.append(r0)\n java.lang.String r0 = \".log\"\n r5.append(r0)\n java.lang.String r0 = r5.toString()\n r1 = 5\n long r5 = java.lang.System.currentTimeMillis()\n java.io.File r0 = com.zipow.videobox.util.LogUtil.getNewLogFile(r4, r0, r1, r5)\n if (r0 != 0) goto L_0x00ca\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x00c9\n r0.uncaughtException(r11, r12)\n L_0x00c9:\n return\n L_0x00ca:\n r1 = 0\n boolean r4 = com.zipow.cmmlib.AppContext.BAASecurity_IsEnabled() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n com.zipow.videobox.VideoBoxApplication r5 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n boolean r5 = r5.isConfApp() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n if (r5 == 0) goto L_0x00de\n com.zipow.videobox.stabilility.JavaCrashHandler$1 r5 = new com.zipow.videobox.stabilility.JavaCrashHandler$1 // Catch:{ Exception -> 0x0192, all -> 0x018e }\n r5.<init>() // Catch:{ Exception -> 0x0192, all -> 0x018e }\n L_0x00de:\n java.io.PrintStream r5 = new java.io.PrintStream // Catch:{ Exception -> 0x0192, all -> 0x018e }\n r5.<init>(r0) // Catch:{ Exception -> 0x0192, all -> 0x018e }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r6.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = \"version: \"\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n com.zipow.videobox.VideoBoxApplication r7 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = r7.getVersionName() // Catch:{ Exception -> 0x0193 }\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r6.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = \"Kernel Version: \"\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n com.zipow.videobox.VideoBoxApplication r7 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = r7.getKernelVersion() // Catch:{ Exception -> 0x0193 }\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r6.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = \"OS: \"\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r7 = com.zipow.videobox.ptapp.SystemInfoHelper.getOSInfo() // Catch:{ Exception -> 0x0193 }\n r6.append(r7) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r6) // Catch:{ Exception -> 0x0193 }\n if (r4 != 0) goto L_0x014d\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r4.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = \"Hardware: \"\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = com.zipow.videobox.ptapp.SystemInfoHelper.getHardwareInfo() // Catch:{ Exception -> 0x0193 }\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r4 = r4.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r4) // Catch:{ Exception -> 0x0193 }\n L_0x014d:\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r4.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = \"IsProcessAtFront: \"\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n com.zipow.videobox.VideoBoxApplication r6 = com.zipow.videobox.VideoBoxApplication.getInstance() // Catch:{ Exception -> 0x0193 }\n boolean r6 = r6.isAtFront() // Catch:{ Exception -> 0x0193 }\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r4 = r4.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r4) // Catch:{ Exception -> 0x0193 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0193 }\n r4.<init>() // Catch:{ Exception -> 0x0193 }\n java.lang.String r6 = \"IsRooted: \"\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n boolean r6 = p021us.zoom.androidlib.util.RootCheckUtils.isRooted() // Catch:{ Exception -> 0x0193 }\n r4.append(r6) // Catch:{ Exception -> 0x0193 }\n java.lang.String r4 = r4.toString() // Catch:{ Exception -> 0x0193 }\n r5.println(r4) // Catch:{ Exception -> 0x0193 }\n r5.println() // Catch:{ Exception -> 0x0193 }\n r12.printStackTrace(r5) // Catch:{ Exception -> 0x0193 }\n r5.flush() // Catch:{ Exception -> 0x019f }\n r5.close() // Catch:{ Exception -> 0x019f }\n goto L_0x019f\n L_0x018e:\n r11 = move-exception\n r5 = r1\n goto L_0x0285\n L_0x0192:\n r5 = r1\n L_0x0193:\n r0.delete() // Catch:{ all -> 0x0284 }\n if (r5 == 0) goto L_0x019e\n r5.flush() // Catch:{ Exception -> 0x019e }\n r5.close() // Catch:{ Exception -> 0x019e }\n L_0x019e:\n r0 = r1\n L_0x019f:\n if (r3 != 0) goto L_0x0227\n us.zoom.androidlib.app.ZMActivity r4 = p021us.zoom.androidlib.app.ZMActivity.getFrontActivity()\n if (r4 == 0) goto L_0x0227\n java.lang.String r5 = \"Fragment\"\n java.lang.String[] r5 = new java.lang.String[]{r5}\n if (r0 == 0) goto L_0x0212\n java.io.FileWriter r6 = new java.io.FileWriter // Catch:{ IOException -> 0x01fe, all -> 0x01e6 }\n r7 = 1\n r6.<init>(r0, r7) // Catch:{ IOException -> 0x01fe, all -> 0x01e6 }\n java.io.BufferedWriter r7 = new java.io.BufferedWriter // Catch:{ IOException -> 0x01e4, all -> 0x01e1 }\n r7.<init>(r6) // Catch:{ IOException -> 0x01e4, all -> 0x01e1 }\n java.io.PrintWriter r8 = new java.io.PrintWriter // Catch:{ IOException -> 0x01df, all -> 0x01dc }\n r8.<init>(r7) // Catch:{ IOException -> 0x01df, all -> 0x01dc }\n r8.println() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n androidx.fragment.app.FragmentManager r1 = r4.getSupportFragmentManager() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n if (r1 == 0) goto L_0x01d6\n androidx.fragment.app.FragmentManager r1 = r4.getSupportFragmentManager() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n java.lang.String r4 = \"\"\n java.io.FileDescriptor r9 = new java.io.FileDescriptor // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n r9.<init>() // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n r1.dump(r4, r9, r8, r5) // Catch:{ IOException -> 0x01da, all -> 0x01d8 }\n L_0x01d6:\n r1 = r6\n goto L_0x0214\n L_0x01d8:\n r11 = move-exception\n goto L_0x01ea\n L_0x01da:\n goto L_0x0201\n L_0x01dc:\n r11 = move-exception\n r8 = r1\n goto L_0x01ea\n L_0x01df:\n r8 = r1\n goto L_0x0201\n L_0x01e1:\n r11 = move-exception\n r7 = r1\n goto L_0x01e9\n L_0x01e4:\n r7 = r1\n goto L_0x0200\n L_0x01e6:\n r11 = move-exception\n r6 = r1\n r7 = r6\n L_0x01e9:\n r8 = r7\n L_0x01ea:\n if (r6 == 0) goto L_0x01f1\n r6.close() // Catch:{ IOException -> 0x01f0 }\n goto L_0x01f1\n L_0x01f0:\n L_0x01f1:\n if (r7 == 0) goto L_0x01f8\n r7.close() // Catch:{ IOException -> 0x01f7 }\n goto L_0x01f8\n L_0x01f7:\n L_0x01f8:\n if (r8 == 0) goto L_0x01fd\n r8.close()\n L_0x01fd:\n throw r11\n L_0x01fe:\n r6 = r1\n r7 = r6\n L_0x0200:\n r8 = r7\n L_0x0201:\n if (r6 == 0) goto L_0x0208\n r6.close() // Catch:{ IOException -> 0x0207 }\n goto L_0x0208\n L_0x0207:\n L_0x0208:\n if (r7 == 0) goto L_0x020f\n r7.close() // Catch:{ IOException -> 0x020e }\n goto L_0x020f\n L_0x020e:\n L_0x020f:\n if (r8 == 0) goto L_0x0227\n goto L_0x0224\n L_0x0212:\n r7 = r1\n r8 = r7\n L_0x0214:\n if (r1 == 0) goto L_0x021b\n r1.close() // Catch:{ IOException -> 0x021a }\n goto L_0x021b\n L_0x021a:\n L_0x021b:\n if (r7 == 0) goto L_0x0222\n r7.close() // Catch:{ IOException -> 0x0221 }\n goto L_0x0222\n L_0x0221:\n L_0x0222:\n if (r8 == 0) goto L_0x0227\n L_0x0224:\n r8.close()\n L_0x0227:\n if (r0 == 0) goto L_0x0272\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r4 = com.zipow.cmmlib.AppUtil.getLogParentPath()\n r1.append(r4)\n java.lang.String r4 = \"/logs\"\n r1.append(r4)\n java.lang.String r1 = r1.toString()\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n r4.<init>()\n java.lang.String r5 = \"crash-\"\n r4.append(r5)\n r4.append(r2)\n java.lang.String r2 = r4.toString()\n boolean r1 = com.zipow.videobox.util.LogUtil.isSameCrashReported(r1, r0, r2)\n if (r1 == 0) goto L_0x0272\n java.io.File r1 = new java.io.File\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r4 = r0.getAbsolutePath()\n r2.append(r4)\n java.lang.String r4 = \".sent\"\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n r1.<init>(r2)\n r0.renameTo(r1)\n L_0x0272:\n if (r3 == 0) goto L_0x027c\n com.zipow.videobox.VideoBoxApplication r11 = com.zipow.videobox.VideoBoxApplication.getInstance()\n r11.killCurrentProcess()\n goto L_0x0283\n L_0x027c:\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x0283\n r0.uncaughtException(r11, r12)\n L_0x0283:\n return\n L_0x0284:\n r11 = move-exception\n L_0x0285:\n if (r5 == 0) goto L_0x028d\n r5.flush() // Catch:{ Exception -> 0x028d }\n r5.close() // Catch:{ Exception -> 0x028d }\n L_0x028d:\n throw r11\n L_0x028e:\n java.lang.Thread$UncaughtExceptionHandler r0 = r10.mNextHandler\n if (r0 == 0) goto L_0x0295\n r0.uncaughtException(r11, r12)\n L_0x0295:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.zipow.videobox.stabilility.JavaCrashHandler.uncaughtException(java.lang.Thread, java.lang.Throwable):void\");\n }", "public void uncaughtException(Thread t, Throwable e) {\n ExcptHandlerTest.incInvokedHandlers();\n throw new RuntimeException(e);\n }", "@ExceptionHandler(Exception.class)\n protected ResponseEntity<Object> handleAllOtherErrors(Exception ex, WebRequest request) {\n AppExceptionBean exceptionBean = new AppExceptionBean(String.format(\"Something unexpected happened! \" +\n \"We'll be looking into it, but if you want to further discuss this specific problem, \" +\n \"please use the following identifier when contacting support: %s.\", UUID.randomUUID()));\n log.error(exceptionBean.getMessage(), ex);\n return handleExceptionInternal(ex, exceptionBean, new HttpHeaders(), HttpStatus.BAD_REQUEST, request);\n }", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "public static void handleException(final Exception ex)\n\t{\n\t\tSystem.out.println(ex.toString());\n\t\tex.printStackTrace();\n\t}", "public void clearEndUserExceptions();", "public void handleException(Exception e) {\r\n \t\te.printStackTrace();\r\n \t\tshowErrorMessage(e.getMessage());\r\n \t}", "void onFatal();", "@Override\r\n public void uncaughtException(Thread thread, Throwable e) {\n if (isUiThread()) {\r\n writeLogToFile(thread, e);\r\n } else {\r\n //handle non UI thread throw uncaught exception\r\n new Handler(Looper.getMainLooper()).post(() ->\r\n writeLogToFile(thread, e));\r\n }\r\n }", "public void setUncaughtException(Thread.UncaughtExceptionHandler uncaughtException) {\n threadPrint.setUncaughtExceptionHandler(uncaughtException);\n }", "public void handleException(int cause) \n\t{\n\t\tProcessor processor = Machine.processor();\n\n\t\tswitch (cause) \n\t\t{\n\t\t\tcase Processor.exceptionPageFault:\n\t\t\t\tVMKernel.m_lock.acquire();\n\t\t\t\thandlePageFault(processor.readRegister(Processor.regBadVAddr));\n\t\t\t\tVMKernel.m_lock.release();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsuper.handleException(cause);\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n public void onException(Exception arg0) {\n\r\n }", "public void handleException(int cause) {\n\t\tProcessor processor = Machine.processor();\n\t\t\n\t\tswitch (cause) {\n\t\tcase Processor.exceptionPageFault:\n\t\t\t//System.out.println(\"exception cause: \" + cause);\n\t\t\tint result = handlePageFault(processor.readRegister(Processor.regBadVAddr));\n\t\t\t//processor.writeRegister(Processor.regV0, result);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t//System.out.println(\"exception cause: \" + cause);\n\t\t\tsuper.handleException(cause);\n\t\t\tbreak;\n\t\t}\n\t}", "private static void handleException(final Throwable t) {\n if (t instanceof MimicException) {\n\n System.err.println(\"Installation of Mimic in the \"\n + \"current applicaiton has failed. Terminating \"\n + \"the JVM\");\n t.printStackTrace();\n System.exit(1);\n } else {\n t.printStackTrace();\n }\n }", "@Override\n public void uncaughtException(Thread t, Throwable e) {\n System.out.println(t.getName() + \": \" + e.getMessage());\n }", "@Override\n\tpublic void uncaughtException(Thread thread, Throwable ex) {\n\t\tif (!handleException(ex) && mDefaultHandler != null) {\n\t\t\t// 如果用户没有处理则让系统默认的异常处理器来处理\n\t\t\tmDefaultHandler.uncaughtException(thread, ex);\n\t\t} else {\n\t\t\t// Sleep一会后结束程序\n//\t\t\tActivityManagerUtils.stopAll();\n//\t\t\ttry {\n//\t\t\t\tLog.e(TAG, \"sleep\");\n//\t\t\t\tThread.sleep(3000);\n//\t\t\t} catch (InterruptedException e) {\n//\t\t\t}\n\t\t\tresetApp();\n\t\t}\n\t}", "public void handle() throws Exception {}", "public void handleException(int cause) {\n\tProcessor processor = Machine.processor();\n\n\tswitch (cause) {\n\tcase Processor.exceptionSyscall:\n\t int result = handleSyscall(processor.readRegister(Processor.regV0),\n\t\t\t\t processor.readRegister(Processor.regA0),\n\t\t\t\t processor.readRegister(Processor.regA1),\n\t\t\t\t processor.readRegister(Processor.regA2),\n\t\t\t\t processor.readRegister(Processor.regA3)\n\t\t\t\t );\n\t processor.writeRegister(Processor.regV0, result);\n\t processor.advancePC();\n\t break;\t\t\t\t \n\t\t\t\t \n\tdefault:\n\t Lib.debug(dbgProcess, \"Unexpected exception: \" +\n\t\t Processor.exceptionNames[cause]);\n\t Lib.assertNotReached(\"Unexpected exception\");\n\t}\n }", "static void m34964c(Throwable th) {\n Thread currentThread = Thread.currentThread();\n currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, th);\n }", "private void handleServiceException(PortletRequest request,\n PortletResponse response, Application application, Throwable e)\n throws IOException, PortletException {\n if (getRequestType(request) == RequestType.UIDL) {\n Application.SystemMessages ci = getSystemMessages();\n criticalNotification(request, (ResourceResponse) response,\n ci.getInternalErrorCaption(), ci.getInternalErrorMessage(),\n null, ci.getInternalErrorURL());\n if (application != null) {\n application.getErrorHandler()\n .terminalError(new RequestError(e));\n } else {\n throw new PortletException(e);\n }\n } else {\n // Re-throw other exceptions\n throw new PortletException(e);\n }\n \n }", "public void onException(Exception ex) \n {\n ex.printStackTrace();\n }", "void exceptionCaught(Throwable cause) throws Exception;", "void exceptionCaught(Throwable cause) throws Exception;", "protected void handleError(ErrorEvent event)\r\n\t{\r\n\t\t// no default behavior\r\n\t}", "public interface OnGlobalExceptionListener {\n boolean handleException(AppException e);\n}", "@Override\n\tpublic void catching(Throwable t) {\n\n\t}", "private void exceptionCaught(Throwable cause) {\n log.debug(\"Caught exception\", cause);\n closeConnection(cause);\n Handler<Throwable> exceptionHandler = this.exceptionHandler;\n if (exceptionHandler != null) {\n exceptionHandler.handle(cause);\n }\n }", "public void clearExceptions();", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "public void handleException(Throwable th) {\n ExceptionController.handleException(th, dialogPane, reportIssueButton,\n textArea, contentLabel.textProperty());\n }", "@ExceptionHandler(Exception.class)\n\tpublic ModelAndView handleAllExceptions(Exception ex) {\n\t\tex.printStackTrace();\n\t\tModelAndView model = new ModelAndView(\"genericError\");\n\t\tmodel.addObject(\"errCode\", \"500\");\n\t\tmodel.addObject(\"errMsg\", \"Internal server error - omlouvame se za nami zpusobene potize.\");\n\t\treturn model;\n\t}", "protected void handleProcessingException(Exception e) throws NbaBaseException {\n unLockItems();\n if (e instanceof NbaBaseException) {\n NbaBaseException eb = (NbaBaseException) e;\n if (eb.isFatal() || eb instanceof NbaLockedException) {\n throw eb;\n }\n }\n if (result == null) {\n setWork(getOrigWorkItem());\n addComment(e.getMessage());\n changeStatus(getHostErrorStatus());\n setResult(new NbaAutomatedProcessResult(NbaAutomatedProcessResult.FAILED, getHostErrorStatus(), getHostErrorStatus()));\n }\n try {\n doUpdateWorkItem();\n } catch (NbaBaseException e1) {\n e1.forceFatalExceptionType();\n throw e1;\n }\n }", "@Override\n\tpublic void processIOException(IOExceptionEvent exceptionEvent) {\n\t}", "public void uncaughtException(Thread thread, Throwable ex) {\n\t\tSystem.out.println(\"\");\n\t}", "private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}", "void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "public boolean handleException(Throwable e);", "protected void handleBizErrors(SVTException ex, BaseWebServiceOut serviceOut)\r\n {\r\n log.error(ex);\r\n log.error(ex.getStackTrace());\r\n serviceOut.setMainErrorMessage(ex.getMessage()); // TODO: incomplete\r\n }", "public void handleError(Throwable t) {\n\t\tlogger.severe(\"An error occurred in an executor service! The server will be halted immediately.\");\n\t\tt.printStackTrace();\n\t\tSystem.exit(1);\n\t}", "void dispatchException(Throwable exception);", "protected void handleListenerException(Throwable ex) {\n\t\tlogger.error(\"Listener execution failed\", ex);\n\t}", "public void handleInvokerException(HttpRequest request, HttpResponse response, Exception e)\n {\n handleException(request, response, e);\n }", "public static void main(String[] args) {\n Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler());\n LOG.info(\"Default Uncaught Exception Handler Set\");\n launch(args);\n }", "@Override\n public void uncaughtException( final Thread t, final Throwable e ) {\n\n LOG.error( LU.msg( \"Thread \\\"{0}\\\" terminated unexpectedly because of this exception:\", t.getName() ), e );\n }", "public interface ExceptionHandler\n{\n //TODO not sure how to handle this\n}", "protected void handleCleanup() {\r\n\t\t// Implement in subclass\r\n\t}", "@ExceptionHandler(Exception.class)\n public String handleAllException(Exception ex) {\n logger.info(\"Error in dashboard.\");\n return \"error\";\n }", "void handleException(Context context, Throwable exc, String description);", "@Override\n public void uncaughtException(@NonNull Thread t, @NonNull Throwable e) {\n StringWriter stackTrace = new StringWriter();// is used to caputre our stack trace as a string\n e.printStackTrace(new PrintWriter(stackTrace));//print the stack trace onto this string\n Intent intent = new Intent(errorContex, SendErrorEmail.class);\n if (!hasInternetConnection(errorContex)) {\n intent.putExtra(\"network\", 1);\n }\n\n\n intent.putExtra(\"error\", stackTrace.toString());\n errorContex.startActivity(intent);//\n android.os.Process.killProcess(android.os.Process.myPid());\n System.exit(2);\n }", "public void handleErrors() {\n // hook method\n }", "public void exceptionEncountered(IOException ioe) {}", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tMException handler = MException.getInstance();\r\n\t\thandler.init(getApplicationContext());\r\n\t\tThread.setDefaultUncaughtExceptionHandler(handler);\r\n\t}", "public Catch[] exceptionHandlers();", "@Override\n public void onError(Throwable ex) {\n com.microblink.util.Log.e(this, ex, \"Error\");\n handleError();\n }", "public void handle(Throwable thrown) {\n \n // log message into writer memory\n printWriter.println(thrown.getMessage());\n thrown.printStackTrace(printWriter);\n printWriter.flush();\n // log message to default logger\n UIGlobal.logger.severe(writer.toString());\n // clear data in writer\n writer.reset();\n \n // close all GUIsaveables\n try {\n runSaveState(); // save all states before \n }\n catch (Exception e) {\n // log any exceptions while saving but don't stop\n LoggerOutputStream.logException(e, UIGlobal.logger);\n }\n\n // terminate application\n if (exitOnException) {\n System.exit(1); // don't throw GUIRuntimeException to avoid loops\n }\n }", "public static void handleException(Exception e) {\n System.err.println(e.toString());\n }", "private void handleException(Throwable e) {\n if (e instanceof ExitException) {\n if (e.getCause() != null) {\n handleException(e.getCause());\n }\n sysexit.accept(((ExitException) e).status);\n } else if (Level.QUIET.compareTo(verbosity) < 0) {\n String prefix = beforeFirst(name(), ' ') + \": \";\n stderr.print(prefix);\n if (Level.DEBUG.compareTo(verbosity) <= 0) {\n e.printStackTrace(stderr);\n } else if (Level.VERBOSE.compareTo(verbosity) <= 0) {\n int depth = 0;\n Throwable failure = e;\n while (failure != null) {\n stderr.print(Strings.repeat(\" \", (depth > 0 ? prefix.length() - 4 : 0) + (4 * depth++)));\n stderr.println(removePrefix(failure.toString(), failure.getClass().getName() + \": \"));\n failure = failure.getCause();\n }\n } else if (Level.DEFAULT.compareTo(verbosity) <= 0) {\n stderr.println(formatException(e));\n }\n }\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "@Override\n\tprotected Respond exceptHandle(Exception e) {\n\t\treturn SqlTool.normalExceptionDeal(new RspSingleRow(), e);\n\t}", "@Override\n public void uncaughtException(Thread t, Throwable e) {\n String message = \"В потоке '\" + t.getName() + \"' произошло что-то неожиданное.\\n\\tА именно: \" + e.getMessage();\n JOptionPane.showMessageDialog(null, message, \"Exception\", JOptionPane.ERROR_MESSAGE);\n }", "static final void initSystemErr() /* hard-coded method signature */\n {\n uncaughtHandler = new UncaughtHandler();\n if (mainVMThread == null) /* hack */\n {\n jniExceptionDescribe0X(new Throwable()); /* hack */\n destroyJavaVM0X(null, 0); /* hack */\n }\n }", "@Override\n\tpublic void exceptionCaught(IoSession arg0, Throwable arg1)\n\t\t\tthrows Exception {\n\n\t}", "public EventEmitter(@NonNull Thread.UncaughtExceptionHandler ueh_) {\n uncaughtExceptionHandler = ueh_;\n }", "public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }", "@Override\n\tpublic void uncaughtException(Thread t, Throwable e) {\n\t\tif(t.isInterrupted()){\n\t\t\tSystem.out.println(t.getName()+\"finished\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "@Override\n\tpublic void handleException(DPFTActionException e) throws DPFTActionException {\n\t\t\n\t}", "private void handleException(final Exception e) throws OsgpException {\n LOGGER.error(\"Exception occurred: \", e);\n if (e instanceof OsgpException) {\n throw (OsgpException) e;\n } else {\n throw new TechnicalException(COMPONENT_WS_PUBLIC_LIGHTING, e);\n }\n }", "@Override\n public void uncaughtException(Thread thread, Throwable ex)\n {\n if (isEnabled())\n {\n /* Get crash identifier */\n EngagementCrashId crashId = EngagementCrashId.from(mContext, ex);\n\n /* Dump stack trace */\n String stackTrace = Log.getStackTraceString(ex);\n\n /* Set parameters and send the intent */\n Intent intent = EngagementAgentUtils.getServiceIntent(mContext);\n intent.putExtra(\"com.microsoft.azure.engagement.intent.extra.CRASH_TYPE\", crashId.getType());\n intent.putExtra(\"com.microsoft.azure.engagement.intent.extra.CRASH_LOCATION\",\n crashId.getLocation());\n intent.putExtra(\"com.microsoft.azure.engagement.intent.extra.CRASH_STACK_TRACE\", stackTrace);\n mContext.startService(intent);\n }\n\n /* Do not prevent android from doing its job (or another crash handler) */\n sAndroidCrashHandler.uncaughtException(thread, ex);\n }", "@Override\n protected void onExceptionSwallowed(RuntimeException exception) {\n throw exception;\n }", "public final void exceptionHandler() throws RecognitionException {\n\t\ttry {\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:327:2: ( ^( 'catch' ARG_ACTION ACTION ) )\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:327:7: ^( 'catch' ARG_ACTION ACTION )\n\t\t\t{\n\t\t\tmatch(input,CATCH,FOLLOW_CATCH_in_exceptionHandler636); if (state.failed) return;\n\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return;\n\t\t\tmatch(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_exceptionHandler638); if (state.failed) return;\n\t\t\tmatch(input,ACTION,FOLLOW_ACTION_in_exceptionHandler640); if (state.failed) return;\n\t\t\tmatch(input, Token.UP, null); if (state.failed) return;\n\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public void uncaughtException(Thread t, Throwable e) {\n\t\t// The simulationAbortError is thrown to force threads\n\t\t// go out thier run method. Other Throwable should\n\t\t// be handled normally.\n\t\tif (!(e instanceof SimulationAbortError)) {\n\t\t\tsuper.uncaughtException(t, e);\n\t\t}\n\t}" ]
[ "0.70712936", "0.68027216", "0.67493063", "0.6595185", "0.6557454", "0.6548199", "0.64923", "0.6447859", "0.64270127", "0.642111", "0.6340801", "0.6337338", "0.63373166", "0.6316359", "0.6292736", "0.62743676", "0.6270486", "0.6233676", "0.6190199", "0.61720735", "0.6165104", "0.6160298", "0.61304235", "0.6129267", "0.61058575", "0.60874933", "0.6086497", "0.6085742", "0.6079655", "0.6076856", "0.60582715", "0.60580486", "0.6025921", "0.60221744", "0.6014154", "0.60095364", "0.5977418", "0.5969337", "0.59604955", "0.59159803", "0.59145534", "0.59088963", "0.5902688", "0.5892868", "0.58580637", "0.58526975", "0.58526975", "0.5844388", "0.5828643", "0.5807917", "0.5800882", "0.5796975", "0.57837147", "0.5766528", "0.57647216", "0.5753998", "0.574798", "0.57455885", "0.5739533", "0.5727546", "0.5727015", "0.5691415", "0.56843245", "0.5680952", "0.56804264", "0.5677968", "0.5674192", "0.5651641", "0.5638578", "0.56366533", "0.56256473", "0.56173706", "0.5614605", "0.5608549", "0.56021196", "0.5600487", "0.5599317", "0.5595145", "0.55899", "0.55665904", "0.555487", "0.554959", "0.554959", "0.554959", "0.554959", "0.554959", "0.55148774", "0.5513618", "0.55086887", "0.5505631", "0.5498429", "0.54950184", "0.5494905", "0.5487999", "0.54757184", "0.54719585", "0.54567456", "0.54565233", "0.5438147", "0.5433322" ]
0.67988926
2
The following functions create the toolbar and sets its functionality.
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the right menu if (friendID == null) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; } else { getMenuInflater().inflate(R.menu.menu_friends, menu); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }", "private void createToolbar() {\r\n // the visible toolbar is actually a toolbar next to a combobox.\r\n // That is why we need this extra composite, layout and numColums = 2.\r\n final Composite parent = new Composite(SHELL, SWT.FILL);\r\n final GridLayout layout = new GridLayout();\r\n layout.numColumns = 2;\r\n parent.setLayout(layout);\r\n\r\n final ToolBar bar = new ToolBar(parent, SWT.NONE);\r\n final GridData data = new GridData();\r\n data.heightHint = 55;\r\n data.grabExcessVerticalSpace = false;\r\n bar.setLayoutData(data);\r\n bar.setLayout(new GridLayout());\r\n\r\n createOpenButton(bar);\r\n\r\n createGenerateButton(bar);\r\n\r\n createSaveButton(bar);\r\n\r\n createSolveButton(bar);\r\n\r\n createAboutButton(bar);\r\n\r\n algorithmCombo = new AlgorithmCombo(parent);\r\n }", "public MainToolbar createToolbar()\r\n {\n WbSwingUtilities.invoke(this::_createToolbar);\r\n return toolbar;\r\n }", "private void setupToolBar() {\n\t\tbOk = ConfirmPanel.createOKButton(false);\n\t\tbOk.addActionListener(this);\n\t\tbSearch = ConfirmPanel.createRefreshButton(true);\n\t\tbSearch.addActionListener(this);\n\t\tbCancel = ConfirmPanel.createCancelButton(false);\n\t\tbCancel.addActionListener(this);\n\t\tbZoom = ConfirmPanel.createZoomButton(true);\n\t\tbZoom.addActionListener(this);\n\t\tbExport = ConfirmPanel.createExportButton(true);\n\t\tbExport.addActionListener(this);\n\t\tbDelete = ConfirmPanel.createDeleteButton(true);\n\t\tbDelete.addActionListener(this);\n\t\tAppsAction selectAllAction = new AppsAction(\"SelectAll\", null, Msg.getMsg(Env.getCtx(),\"SelectAll\"));\n\t\tselectAllAction.setDelegate(this);\n\t\tbSelectAll = (CButton) selectAllAction.getButton();\n\t\ttoolsBar = new javax.swing.JToolBar();\n\t}", "public JMTToolBar createToolbar() {\r\n \t\tJMTToolBar toolbar = new JMTToolBar(JMTImageLoader.getImageLoader());\r\n \t\t// Builds an array with all actions to be put in the toolbar\r\n \t\tAbstractJmodelAction[] actions = new AbstractJmodelAction[] { newModel, openModel, saveModel, null,\r\n \t\t\t\t// editUndo, editRedo, null,\r\n \t\t\t\tactionCut, actionCopy, actionPaste, null, editUserClasses, editMeasures, editSimParams, editPAParams, null, switchToExactSolver,\r\n \t\t\t\tnull, simulate, pauseSimulation, stopSimulation, showResults, null, editDefaults, openHelp };\r\n \t\ttoolbar.populateToolbar(actions);\r\n \t\treturn toolbar;\r\n \t}", "private void createToolbars() {\r\n\t\tJToolBar toolBar = new JToolBar(\"Tool bar\");\r\n\t\ttoolBar.add(createBlankDocument);\r\n\t\ttoolBar.add(openDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAsAction);\r\n\t\ttoolBar.add(closeCurrentTabAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(copyAction);\r\n\t\ttoolBar.add(cutAction);\r\n\t\ttoolBar.add(pasteAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(getStatsAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(exitAction);\r\n\t\t\r\n\t\tgetContentPane().add(toolBar, BorderLayout.PAGE_START);\r\n\t}", "private void createToolbars() {\n\t\tJToolBar toolBar = new JToolBar(\"Tools\");\n\t\ttoolBar.setFloatable(true);\n\n\t\ttoolBar.add(new JButton(new ActionNewDocument(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionOpen(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSave(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSaveAs(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionCut(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionCopy(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionPaste(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionStatistics(flp, this)));\n\n\t\tthis.getContentPane().add(toolBar, BorderLayout.PAGE_START);\n\t}", "private void createToolBar() {\r\n toolbar = new JToolBar();\r\n inbox = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.INBOX_ICON)), \"Maintain Inbox\", \"Maintain Inbox\");\r\n awards = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.AWARDS_ICON)), \"Maintain Awards\", \"Maintain Awards\");\r\n proposal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_ICON)), \"Maintain InstituteProposals\", \"Maintain Institute Proposals\");\r\n proposalDevelopment = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_DEVELOPMENT_ICON)), \"Maintain ProposalDevelopment\", \"Maintain Proposal Development\");\r\n rolodex = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.ROLODEX_ICON)), \"Maintain Rolodex\", \"Maintain Rolodex\");\r\n sponsor = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SPONSOR_ICON)), \"Maintain Sponsor\", \"Maintain Sponsor\");\r\n subContract = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SUBCONTRACT_ICON)), \"Maintain SubContract\", \"Maintain Subcontract\");\r\n negotiations = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.NEGOTIATIONS_ICON)), \"Maintain Negotiations\", \"Maintain Negotiations\");\r\n buisnessRules = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.BUSINESS_RULES_ICON)), \"Maintain BusinessRules\", \"Maintain Business Rules\");\r\n map = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.MAP_ICON)), \"Maintain Map\", \"Maintain Map\");\r\n personnal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PERSONNAL_ICON)), \"Maintain Personal\", \"Maintain Personnel\");\r\n users = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.USERS_ICON)), \"Maintain Users\", \"Maintain Users\");\r\n unitHierarchy = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.UNIT_HIERARCHY_ICON)), \"Maintain UnitHierarchy\", \"Maintain Unit Hierarchy\");\r\n cascade = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.CASCADE_ICON)), \"Cascade\", \"Cascade\");\r\n tileHorizontal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_HORIZONTAL_ICON)), \"Tile Horizontal\", \"Tile Horizontal\");\r\n tileVertical = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_VERTICAL_ICON)), \"Tile Vertical\", \"Tile Vertical\");\r\n layer = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.LAYER_ICON)), \"Layer\", \"Layer\");\r\n \r\n /*Added Icons are Committe,Protocol,Shedule. The Icons are different.Non-availability of standard Icon - Chandrashekar*/\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n /* JM 05-02-2013\r\n irbProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_ICON)), \"Protocol\", \"IRB Protocol\");\r\n \r\n irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n /* JM 05-02-2013\r\n schedule = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SCHEDULE_ICON)), \"Schedule\", \"Schedule\");\r\n committee = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.COMMITTEE_ICON)), \"Committee\", \"Committee\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n //irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n // getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n iacucProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_ICON)), \"Protocol\", \"IACUC Protocol\");\r\n \r\n iacucProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IACUC Protocol Submission\");\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.HELP_ICON)), \"Contact Coeus Help\", \"Contact Coeus Help\");\r\n /* JM END */\r\n \r\n exit = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.EXIT_ICON)), \"Exit\", \"Exit\");\r\n \r\n \r\n toolbar.add(inbox);\r\n toolbar.addSeparator();\r\n toolbar.add(awards);\r\n toolbar.add(proposal);\r\n toolbar.add(proposalDevelopment);\r\n toolbar.add(rolodex);\r\n toolbar.add(sponsor);\r\n toolbar.add(subContract);\r\n toolbar.add(negotiations);\r\n toolbar.add(buisnessRules);\r\n toolbar.add(map);\r\n toolbar.add(personnal);\r\n toolbar.add(users);\r\n toolbar.add(unitHierarchy);\r\n \r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n toolbar.add(irbProtocol);\r\n toolbar.add(irbProtocolSubmission);\r\n \r\n toolbar.add(schedule);\r\n toolbar.add(committee);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n toolbar.add(iacucProtocol);\r\n toolbar.add(iacucProtocolSubmission);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n toolbar.addSeparator();\r\n toolbar.add(cascade);\r\n toolbar.add(tileHorizontal);\r\n toolbar.add(tileVertical);\r\n toolbar.add(layer);\r\n toolbar.addSeparator();\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n toolbar.add(contactCoeusHelp);\r\n toolbar.addSeparator();\r\n /* JM END */\r\n \r\n toolbar.add(exit);\r\n \r\n toolbar.setFloatable(false);\r\n setTextLabels(false);\r\n MouseListener pl = new PopupListener();\r\n cpm = new CoeusPopupMenu();\r\n toolbar.addMouseListener(pl);\r\n \r\n inbox.addActionListener(this);\r\n awards.addActionListener(this);\r\n proposal.addActionListener(this);\r\n proposalDevelopment.addActionListener(this);\r\n rolodex.addActionListener(this);\r\n sponsor.addActionListener(this);\r\n subContract.addActionListener(this);\r\n negotiations.addActionListener(this);\r\n buisnessRules.addActionListener(this);\r\n map.addActionListener(this);\r\n personnal.addActionListener(this);\r\n users.addActionListener(this);\r\n unitHierarchy.addActionListener(this);\r\n cascade.addActionListener(this);\r\n tileHorizontal.addActionListener(this);\r\n tileVertical.addActionListener(this);\r\n layer.addActionListener(this);\r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n irbProtocol.addActionListener(this);\r\n schedule.addActionListener(this);\r\n committee.addActionListener(this);\r\n irbProtocolSubmission.addActionListener(this);\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n iacucProtocol.addActionListener(this);\r\n iacucProtocolSubmission.addActionListener(this); */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp.addActionListener(this);\r\n /* JM END */\r\n \r\n exit.addActionListener(this);\r\n }", "@Override\n\tpublic Toolbar createToolbar() {\n\t\tLightVisualThemeToolbar lightVisualThemeToolbar = new LightVisualThemeToolbar();\n\t\treturn lightVisualThemeToolbar;\n\t}", "private void defineToolBar() {\r\n //ARREGLO CON LOS BOTONES ORDENADOS POR POSICION\r\n tools = new ImageView[]{im_tool1,im_tool2,im_tool3,im_tool4,im_tool5,im_tool6,im_tool7,im_tool8,im_tool9,im_tool10,im_tool11,im_tool12}; \r\n //CARGA DE LA BD LA CONFIGURACION DE USUARIO PARA LA PANTALLA\r\n toolsConfig = Ln.getInstance().loadToolBar();\r\n // arreglo con cada etiqueta, ordenado por boton\r\n tooltips = new String[]{\r\n \"Nueva \" + ScreenName + \" \",\r\n \"Editar \" + ScreenName + \" \",\r\n \"Guardar \" + ScreenName + \" \",\r\n \"Cambiar Status de \" + ScreenName + \" \",\r\n \"Imprimir \" + ScreenName + \" \",\r\n \"Cancelar \",\r\n \"Sin Asignar \",\r\n \"Faltante en \" + ScreenName + \" \",\r\n \"Devolución en \" + ScreenName + \" \",\r\n \"Sin Asignar\",\r\n \"Sin Asignar\",\r\n \"Buscar \" + ScreenName + \" \"\r\n };\r\n //se asigna la etiqueta a su respectivo boton\r\n for (int i = 0; i < tools.length; i++) { \r\n Tooltip tip_tool = new Tooltip(tooltips[i]);\r\n Tooltip.install(tools[i], tip_tool);\r\n }\r\n \r\n im_tool7.setVisible(false);\r\n im_tool8.setVisible(false);\r\n im_tool9.setVisible(false);\r\n im_tool10.setVisible(false);\r\n im_tool11.setVisible(false);\r\n }", "private Component buildToolBar() {\r\n DToolBar toolBar = new DToolBar();\r\n// toolBar.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n toolBar.setFloatable(true);\r\n toolBar.putClientProperty(\"JToolBar.isRollover\", Boolean.TRUE);\r\n // Swing\r\n toolBar.putClientProperty(\r\n Options.HEADER_STYLE_KEY,\r\n settings.getToolBarHeaderStyle());\r\n toolBar.putClientProperty(\r\n PlasticLookAndFeel.BORDER_STYLE_KEY,\r\n settings.getToolBarPlasticBorderStyle());\r\n toolBar.putClientProperty(\r\n WindowsLookAndFeel.BORDER_STYLE_KEY,\r\n settings.getToolBarWindowsBorderStyle());\r\n toolBar.putClientProperty(\r\n PlasticLookAndFeel.IS_3D_KEY,\r\n settings.getToolBar3DHint());\r\n\r\n AbstractButton button;\r\n/*\r\n toolBar.add(createToolBarButton(\"backward.gif\", \"Back\"));\r\n button = createToolBarButton(\"forward.gif\", \"Next\");\r\n button.setEnabled(false);\r\n toolBar.add(button);*/\r\n \r\n button = createToolBarButton(\"home.gif\", ResourceUtil.getString(\"HOME\"));\r\n toolBar.add(button);\r\n button.addActionListener(this);\r\n button.setActionCommand(\"home\");\r\n// toolBar.addSeparator();\r\n \r\n button = createToolBarButton(\"preference16.gif\", ResourceUtil.getString(\"PREFERENCES\"));\r\n toolBar.add(button);\r\n button.setRolloverIcon(readImageIcon(\"preference16_over.gif\"));\r\n button.addActionListener(this);\r\n button.setActionCommand(\"Preferences\");\r\n toolBar.addSeparator();\r\n\r\n button = createToolBarButton(\"new16.gif\", ResourceUtil.getString(\"NEW\"));\r\n button.setActionCommand(\"new\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"save_edit.gif\", ResourceUtil.getString(\"SAVE\"));\r\n button.setActionCommand(\"save\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"delete16.gif\", ResourceUtil.getString(\"DELETE\"));\r\n button.setActionCommand(\"delete\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"print.gif\", ResourceUtil.getString(\"PRINT\"));\r\n button.setActionCommand(\"print\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n/* \r\n toolBar.add(createToolBarButton(\"print.gif\", \"Print\"));\r\n toolBar.add(createToolBarButton(\"refresh.gif\", \"Update\"));\r\n toolBar.addSeparator();\r\n\r\n ButtonGroup group = new ButtonGroup();\r\n button = createToolBarRadioButton(\"pie_mode.png\", \"Pie Chart\");\r\n button.setSelectedIcon(readImageIcon(\"pie_mode_selected.gif\"));\r\n group.add(button);\r\n button.setSelected(true);\r\n toolBar.add(button);\r\n\r\n button = createToolBarRadioButton(\"bar_mode.png\", \"Bar Chart\");\r\n button.setSelectedIcon(readImageIcon(\"bar_mode_selected.gif\"));\r\n group.add(button);\r\n toolBar.add(button);\r\n\r\n button = createToolBarRadioButton(\"table_mode.png\", \"Table\");\r\n button.setSelectedIcon(readImageIcon(\"table_mode_selected.gif\"));\r\n group.add(button);\r\n toolBar.add(button);\r\n toolBar.addSeparator();\r\n\r\n button = createToolBarButton(\"help.gif\", \"Open Help\");\r\n button.addActionListener(createHelpActionListener());\r\n toolBar.add(button);*/\r\n\r\n return toolBar;\r\n }", "private BrowserToolbar() {\n\t\tinitComponents();\n\t}", "private void setupToolBar() {\n\t\tJPanel buttons = new JPanel(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\ttoolBar = new JToolBar(\"Buttons\");\n\t\ttoolBar.setFloatable(false);\n\t\ttoolBar.setOrientation(SwingConstants.VERTICAL);\n\t\tbuttons.add(toolBar, c);\n\t\tadd(buttons, BorderLayout.EAST);\n\t}", "private void createToolbar() {\n\t\ttoolbarPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\n\t\tString iconsDir = \"icons/\";\n\n\t\tfileToolbar = new JToolBar();\n\t\tfileToolbar.setName(\"File\");\n\n\t\t// Componentes da barra de ferramentas de arquivo\n\t\tIcon newFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"new.png\"));\n\t\tnewFileButton = new JButton(newFileIcon);\n\t\tnewFileButton.setToolTipText(\"Novo arquivo\");\n\n\t\tIcon openFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"open.png\"));\n\t\topenFileButton = new JButton(openFileIcon);\n\t\topenFileButton.setToolTipText(\"Abrir arquivo\");\n\t\topenFileButton.addActionListener(new OpenFileHandler());\n\n\t\tIcon saveFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"save.png\"));\n\t\tsaveFileButton = new JButton(saveFileIcon);\n\t\tsaveFileButton.setToolTipText(\"Salvar arquivo\");\n\n\t\t// fileToolbar.add(newFileButton);\n\t\tfileToolbar.add(openFileButton);\n\t\t// fileToolbar.add(saveFileButton);\n\n\t\t// Componentes da barra de ferramentas de rede\n\t\tnetworkComponentsToolbar = new JToolBar();\n\t\tnetworkComponentsToolbar.setName(\"Network components\");\n\n\t\tIcon newPlaceIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"circle_stroked.png\"));\n\t\taddPlaceButton = new JButton(newPlaceIcon);\n\t\taddPlaceButton.setToolTipText(\"Adicionar lugar\");\n\n\t\tIcon newTransitionIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"pipe.png\"));\n\t\taddTransitionButton = new JButton(newTransitionIcon);\n\t\taddTransitionButton.setToolTipText(\"Adicionar transição\");\n\n\t\tIcon newEdgeIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"arrow_alt_right.png\"));\n\t\taddEdgeButton = new JButton(newEdgeIcon);\n\t\taddEdgeButton.setToolTipText(\"Adicionar aresta\");\n\n\t\tnetworkComponentsToolbar.add(addPlaceButton);\n\t\tnetworkComponentsToolbar.add(addTransitionButton);\n\t\tnetworkComponentsToolbar.add(addEdgeButton);\n\n\t\ttoolbarPanel.add(fileToolbar);\n\t\t// toolbarPanel.add(networkComponentsToolbar);\n\n\t\tthis.add(toolbarPanel, BorderLayout.NORTH);\n\t}", "private void create_toolbar() {\n setSupportActionBar(toolbar);\n getSupportActionBar().setTitle(\"Event Planner\");//this will set the title of our application\n\n }", "@Override\n public void setToolbar(MToolBar arg0)\n {\n \n }", "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsToolBar.add(getColorButton());\r\n\t\t\ttoolsToolBar.add(getLinkButton());\r\n\t\t\ttoolsToolBar.add(getIcoButton());\r\n\t\t}\r\n\t\treturn toolsToolBar;\r\n\t}", "private Component createToolBar()\n {\n Component toolbarPanel = null;\n\n mainToolBar = new MainToolBar(this);\n\n boolean chatToolbarVisible\n = ConfigurationUtils.isChatToolbarVisible();\n\n if (OSUtils.IS_MAC)\n {\n UnifiedToolBar macToolbarPanel = new UnifiedToolBar();\n\n MacUtils.makeWindowLeopardStyle(getRootPane());\n\n macToolbarPanel.addComponentToLeft(mainToolBar);\n macToolbarPanel.addComponentToRight(contactPhotoPanel);\n macToolbarPanel.disableBackgroundPainter();\n macToolbarPanel.installWindowDraggerOnWindow(this);\n macToolbarPanel.getComponent()\n .setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\n macToolbarPanel.getComponent().setVisible(chatToolbarVisible);\n\n toolbarPanel = macToolbarPanel.getComponent();\n }\n else\n {\n ToolbarPanel panel = new ToolbarPanel(new BorderLayout());\n\n panel.setBorder(BorderFactory.createEmptyBorder(3, 0, 3, 0));\n panel.add(mainToolBar, BorderLayout.CENTER);\n panel.add(contactPhotoPanel, BorderLayout.EAST);\n panel.setVisible(chatToolbarVisible);\n\n toolbarPanel = panel;\n }\n\n return toolbarPanel;\n }", "private void createToolBarActions() {\r\n\t\t// create the action\r\n\t\tGetMessage<Transport> getMessage = new GetMessage<Transport>(new Transport());\r\n\t\tgetMessage.addParameter(IFilterTypes.TRANSPORT_TODO_FILTER, \"\");\r\n\r\n\t\t// add to the toolbar\r\n\t\tform.getToolBarManager().add(new RefreshViewAction<Transport>(getMessage));\r\n\t\tform.getToolBarManager().update(true);\r\n\t}", "public ToolBarView() {\r\n\t\tbuttonsToolbar = new JButton[14];\r\n\t\tfor (int i = 0; i < imagesToolbar.length; i++) {\r\n\t\t\tif (i == 2 || i == 3 || i == 8 || i == 10 || i == 11 || i == 12 ) {\r\n /* adding separator to the toolbar */\r\n\t\t\t\taddSeparator();\r\n } \r\n /* adding the buttons to toolbar */\r\n\t\t\tadd(buttonsToolbar[i] = new JButton(new ImageIcon(ClassLoader.getSystemResource(imagesToolbar[i]))));\r\n\t\t\t/* setting the ToolTipText to the buttons of toolbar */\r\n\t\t\tbuttonsToolbar[i].setToolTipText(tipText[i]);\r\n\t\t}\r\n\t}", "private JToolBar createToolBar() {\n JToolBar toolbar = new JToolBar();\n Insets margins = new Insets(0, 0, 0, 0);\n\n ButtonGroup group1 = new ButtonGroup();\n\n ToolBarButton edit = new ToolBarButton(\"images/E.gif\");\n edit.setToolTipText(\"Edit motes\");\n edit.setMargin(margins);\n edit.setActionCommand(\"edit\");\n edit.setSelected(true);\n edit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n add.enable();\n remove.enable();\n auto.enable();\n add.setSelected(true);\n }\n });\n group1.add(edit);\n toolbar.add(edit);\n\n ToolBarButton vis = new ToolBarButton(\"images/V.gif\");\n vis.setToolTipText(\"Visualize mote network\");\n vis.setMargin(margins);\n vis.setActionCommand(\"visualize\");\n vis.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n// AKD setMode(VIZ_MODE);\n add.setSelected(false);\n remove.setSelected(false);\n auto.setSelected(false);\n add.disable();\n remove.disable();\n auto.disable();\n }\n });\n group1.add(vis);\n toolbar.add(vis);\n\n toolbar.addSeparator();\n\n ButtonGroup group2 = new ButtonGroup();\n\n ToolBarButton pan = new ToolBarButton(\"images/P.gif\");\n pan.setToolTipText(\"Pan view\");\n pan.setMargin(margins);\n pan.setActionCommand(\"pan\");\n pan.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(PAN_MODE);\n }\n });\n group2.add(pan);\n toolbar.add(pan);\n\n add = new ToolBarButton(\"images/A.gif\");\n add.setToolTipText(\"Add mote\");\n add.setMargin(margins);\n add.setActionCommand(\"add\");\n add.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n }\n });\n group2.add(add);\n toolbar.add(add);\n\n remove = new ToolBarButton(\"images/R.gif\");\n remove.setToolTipText(\"Remove mote\");\n remove.setMargin(margins);\n remove.setActionCommand(\"pan\");\n remove.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(REMOVE_MODE);\n }\n });\n group2.add(remove);\n toolbar.add(remove);\n\n auto = new ToolBarButton(\"images/T.gif\");\n auto.setToolTipText(\"Automatic mode\");\n auto.setMargin(margins);\n auto.setActionCommand(\"auto\");\n auto.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(AUTO_MODE);\n }\n });\n group2.add(auto);\n toolbar.add(auto);\n\n toolbar.setFloatable(true);\n return toolbar;\n }", "private void setupToolBar(){\n Toolbar toolbar = (Toolbar)findViewById(R.id.my_toolbar);\n setSupportActionBar(toolbar);\n\n getSupportActionBar().setHomeButtonEnabled(true);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }", "private void configureToolBar() {\n toolBar = findViewById(R.id.my_first_toolbar);\n setSupportActionBar(toolBar);\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n }", "private void configureToolBar(){\n this.toolbar = (Toolbar) findViewById(R.id.activity_main_toolbar);\n setSupportActionBar(toolbar);\n }", "private void setupToolbars(){\n\t\ttopBar = new TopBar(0, 0, setup.getFrameWidth()+12, Constants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.COLOR_HEADER_1, setup);\n\t\t\n\t\tbottomBar = new BottomBar(0, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT+(Constants.WINDOW_MAP_MARGIN*2)+Constants.WINDOW_MAP_HEIGHT, \n\t\t\t\tsetup.getFrameWidth()+12, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.COLOR_HEADER_1, setup);\n\t\t\n\t\trightBar = new RightBar((Constants.WINDOW_MAP_MARGIN*2)+Constants.WINDOW_MAP_WIDTH, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.WINDOW_RIGHT_BAR_WIDTH, \n\t\t\t\tConstants.WINDOW_RIGHT_BAR_HEIGHT, \n\t\t\t\tConstants.COLOR_MAP_LAND, setup);\n\t}", "private ActionToolbar createActionsToolbar() {\n DefaultActionGroup actions = new DefaultActionGroup();\n\n actions.add(EditorActionsFactory.create(BOLD));\n actions.add(EditorActionsFactory.create(ITALIC));\n actions.add(EditorActionsFactory.create(UNDERLINE));\n actions.addSeparator();\n actions.add(EditorActionsFactory.create(ALIGN_LEFT));\n actions.add(EditorActionsFactory.create(ALIGN_CENTER));\n actions.add(EditorActionsFactory.create(ALIGN_RIGHT));\n\n final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.EDITOR_TAB, actions, true);\n actionToolbar.setMinimumButtonSize(ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);\n return actionToolbar;\n }", "private static JToolBar initToolBar() {\n JToolBar basicMenu = new JToolBar();\n\n JButton cr = initButton(Icons.CREATE, a -> EditorScreen.instance().create());\n JButton op = initButton(Icons.LOAD, a -> EditorScreen.instance().load());\n JButton sv = initButton(Icons.SAVE, a -> EditorScreen.instance().save(false));\n JButton undo = initButton(Icons.UNDO, a -> UndoManager.instance().undo());\n JButton redo = initButton(Icons.REDO, a -> UndoManager.instance().redo());\n undo.setEnabled(false);\n redo.setEnabled(false);\n\n JToggleButton place = new JToggleButton();\n place.setIcon(Icons.PLACEOBJECT);\n requestFocusOnMouseDown(place);\n\n JToggleButton ed = new JToggleButton();\n ed.setIcon(Icons.EDIT);\n ed.setSelected(true);\n requestFocusOnMouseDown(ed);\n\n JToggleButton mv = new JToggleButton();\n mv.setIcon(Icons.MOVE);\n mv.setEnabled(false);\n requestFocusOnMouseDown(mv);\n\n ed.addActionListener(a -> {\n ed.setSelected(true);\n place.setSelected(false);\n mv.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_EDIT);\n isChanging = false;\n\n Game.window().getRenderComponent().setCursor(Cursors.DEFAULT, 0, 0);\n });\n\n place.addActionListener(a -> {\n addPopupMenu.show(place, 0, place.getHeight());\n place.setSelected(true);\n ed.setSelected(false);\n mv.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_CREATE);\n isChanging = false;\n });\n\n mv.addActionListener(a -> {\n mv.setSelected(true);\n ed.setSelected(false);\n place.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_MOVE);\n isChanging = false;\n\n Game.window().getRenderComponent().setCursor(Cursors.MOVE, 0, 0);\n });\n\n EditorScreen.instance().getMapComponent().onEditModeChanged(i -> {\n if (isChanging) {\n return;\n }\n\n if (i == MapComponent.EDITMODE_CREATE) {\n ed.setSelected(false);\n mv.setSelected(false);\n place.setSelected(true);\n place.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.ADD, 0, 0);\n }\n\n if (i == MapComponent.EDITMODE_EDIT) {\n place.setSelected(false);\n mv.setSelected(false);\n ed.setSelected(true);\n ed.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.DEFAULT, 0, 0);\n }\n\n if (i == MapComponent.EDITMODE_MOVE) {\n if (!mv.isEnabled()) {\n return;\n }\n\n ed.setSelected(false);\n place.setSelected(false);\n mv.setSelected(true);\n mv.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.MOVE, 0, 0);\n }\n });\n\n JButton del = new JButton();\n del.setIcon(Icons.DELETE);\n del.setEnabled(false);\n del.addActionListener(a -> EditorScreen.instance().getMapComponent().delete());\n\n // copy\n JButton cop = new JButton();\n cop.setIcon(Icons.COPY);\n cop.setEnabled(false);\n ActionListener copyAction = a -> EditorScreen.instance().getMapComponent().copy();\n cop.addActionListener(copyAction);\n cop.getModel().setMnemonic('C');\n KeyStroke keyStroke = KeyStroke.getKeyStroke('C', Event.CTRL_MASK, false);\n cop.registerKeyboardAction(copyAction, keyStroke, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n // paste\n JButton paste = new JButton();\n paste.setIcon(Icons.PASTE);\n\n ActionListener pasteAction = a -> EditorScreen.instance().getMapComponent().paste();\n paste.addActionListener(pasteAction);\n paste.getModel().setMnemonic('V');\n KeyStroke keyStrokePaste = KeyStroke.getKeyStroke('V', Event.CTRL_MASK, false);\n paste.registerKeyboardAction(pasteAction, keyStrokePaste, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n // cut\n JButton cut = new JButton();\n cut.setIcon(Icons.CUT);\n cut.setEnabled(false);\n ActionListener cutAction = a -> EditorScreen.instance().getMapComponent().cut();\n cut.addActionListener(cutAction);\n cut.getModel().setMnemonic('X');\n KeyStroke keyStrokeCut = KeyStroke.getKeyStroke('X', Event.CTRL_MASK, false);\n cut.registerKeyboardAction(cutAction, keyStrokeCut, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n EditorScreen.instance().getMapComponent().onFocusChanged(mo -> {\n if (mv.isSelected()) {\n mv.setSelected(false);\n ed.setSelected(true);\n }\n\n mv.setEnabled(mo != null);\n del.setEnabled(mo != null);\n cop.setEnabled(mo != null);\n cut.setEnabled(mo != null);\n undo.setEnabled(UndoManager.instance().canUndo());\n redo.setEnabled(UndoManager.instance().canRedo());\n paste.setEnabled(EditorScreen.instance().getMapComponent().getCopiedBlueprint() != null);\n });\n\n EditorScreen.instance().getMapComponent().onEditModeChanged(mode -> paste.setEnabled(EditorScreen.instance().getMapComponent().getCopiedBlueprint() != null));\n\n UndoManager.onUndoStackChanged(manager -> {\n EditorScreen.instance().getMapComponent().updateTransformControls();\n undo.setEnabled(manager.canUndo());\n redo.setEnabled(manager.canRedo());\n });\n\n JButton colorButton = new JButton();\n colorButton.setIcon(Icons.COLOR);\n colorButton.setEnabled(false);\n\n JSpinner spinnerAmbientAlpha = new JSpinner();\n spinnerAmbientAlpha.setToolTipText(\"Adjust ambient alpha.\");\n spinnerAmbientAlpha.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n spinnerAmbientAlpha.setMaximumSize(new Dimension(50, 50));\n spinnerAmbientAlpha.setEnabled(true);\n spinnerAmbientAlpha.addChangeListener(e -> {\n if (Game.world().environment() == null || Game.world().environment().getMap() == null || isChanging) {\n return;\n }\n\n Game.world().environment().getAmbientLight().setAlpha((int) spinnerAmbientAlpha.getValue());\n String hex = ColorHelper.encode(Game.world().environment().getAmbientLight().getColor());\n colorText.setText(hex);\n Game.world().environment().getMap().setValue(MapProperty.AMBIENTCOLOR, hex);\n\n });\n\n colorText = new JTextField();\n colorText.setHorizontalAlignment(SwingConstants.CENTER);\n colorText.setMinimumSize(new Dimension(70, 20));\n colorText.setMaximumSize(new Dimension(70, 50));\n colorText.setEnabled(false);\n\n colorButton.addActionListener(a -> {\n if (Game.world().environment() == null || Game.world().environment().getMap() == null || isChanging) {\n return;\n }\n\n Color color = null;\n if (colorText.getText() != null && !colorText.getText().isEmpty()) {\n Color solid = ColorHelper.decode(colorText.getText());\n color = new Color(solid.getRed(), solid.getGreen(), solid.getBlue(), (int) spinnerAmbientAlpha.getValue());\n }\n Color result = JColorChooser.showDialog(null, Resources.strings().get(\"panel_selectAmbientColor\"), color);\n if (result == null) {\n return;\n }\n\n spinnerAmbientAlpha.setValue(result.getAlpha());\n\n Game.world().environment().getMap().setValue(MapProperty.AMBIENTCOLOR, colorText.getText());\n Game.world().environment().getAmbientLight().setColor(result);\n String hex = ColorHelper.encode(Game.world().environment().getAmbientLight().getColor());\n colorText.setText(hex);\n });\n\n EditorScreen.instance().getMapComponent().onMapLoaded(map -> {\n isChanging = true;\n colorButton.setEnabled(map != null);\n spinnerAmbientAlpha.setEnabled(map != null);\n\n String colorValue = map.getStringValue(MapProperty.AMBIENTCOLOR, \"#00000000\");\n colorText.setText(colorValue);\n Color color = ColorHelper.decode(colorText.getText());\n if (color != null) {\n spinnerAmbientAlpha.setValue(color.getAlpha());\n }\n\n isChanging = false;\n });\n\n basicMenu.add(cr);\n basicMenu.add(op);\n basicMenu.add(sv);\n basicMenu.addSeparator();\n\n basicMenu.add(undo);\n basicMenu.add(redo);\n basicMenu.addSeparator();\n\n basicMenu.add(place);\n basicMenu.add(ed);\n basicMenu.add(mv);\n basicMenu.add(del);\n basicMenu.add(cop);\n basicMenu.add(paste);\n basicMenu.add(cut);\n basicMenu.addSeparator();\n\n basicMenu.add(colorButton);\n basicMenu.add(Box.createHorizontalStrut(5));\n basicMenu.add(colorText);\n basicMenu.add(Box.createHorizontalStrut(5));\n basicMenu.add(spinnerAmbientAlpha);\n\n return basicMenu;\n }", "protected abstract JToolBar getNorthToolbar();", "void setToolbar(int toolbarTemp) {\n\n }", "private void initToolBar(){\n toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n }", "@Override\r\n\tprotected ToolBarManager createToolBarManager(int style) {\r\n\t\tToolBarManager toolBarManager = new ToolBarManager(style);\r\n\t\treturn toolBarManager;\r\n\t}", "public void toolbarImplementacionIsmael() {\n\t\t// ToolBar Fuente\n\t\tbtnFuente = new JButton(\"Fuente\");\n\t\tbtnFuente.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnFuente.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnFuente);\n\n\t\tbtnSeleccionarTodo = new JButton(\"Selec.Todo\");\n\t\tbtnSeleccionarTodo.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnSeleccionarTodo.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnSeleccionarTodo);\n\n\t\tbtnHora = new JButton(\"Hora\");\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnHora.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnHora);\n\t}", "public void initToolbar() {\r\n\r\n ((HomeActivity) getActivity()).setUpToolbar(getString(R.string.help), false, true, false,false);\r\n\r\n\r\n }", "void setupToolBar(String title, View.OnClickListener onClickListener) {\n setupToolBar(title, true, onClickListener);\n showToolbar();\n }", "private void setToolBar() {\r\n toolbar.setTitle(R.string.photo_details);\r\n ActionBar ab = getSupportActionBar();\r\n if (ab != null) {\r\n ab.setDisplayHomeAsUpEnabled(true);\r\n }\r\n toolbar.setNavigationIcon(R.drawable.ic_back);\r\n }", "@Override\n\tprotected ToolBarManager createToolBarManager(int style) {\n\t\treturn null;\n\t}", "void setupToolBar(String title, boolean showNavigationBtn) {\n setupToolBar(title, showNavigationBtn, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n// finish();\n onBackPressed();\n }\n });\n }", "private void configureToolbar(){\n Toolbar toolbar = (Toolbar) findViewById(R.id.mento_toolbar);\n //Set the toolbar\n setSupportActionBar(toolbar);\n // Get a support ActionBar corresponding to this toolbar\n ActionBar ab = getSupportActionBar();\n\n }", "public Toolbar() {\n setBorder(BorderFactory.createEtchedBorder());\n saveButton = new JButton();\n saveButton.setIcon(createIcon(\"/image/save16.gif\"));\n saveButton.setToolTipText(\"Save\");\n \n refreshButton = new JButton();\n refreshButton.setIcon(createIcon(\"/image/refresh16.gif\"));\n refreshButton.setToolTipText(\"Refresh\");\n\n saveButton.addActionListener(this);\n refreshButton.addActionListener(this);\n\n add(saveButton);\n addSeparator();\n add(refreshButton);\n }", "private void initialiseToolbar() {\n getSupportActionBar().setTitle(\"Custom Interval\");\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }", "private void setupToolbar() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.edit_task_toolbar);\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n }", "private void createResponseToolbar ( ExpandableComposite parent ) {\n \t\trawAction = new ShowRawAction();\n \t\trawAction.setChecked(true);\n \t\tbrowserAction = new ShowInBrowserAction();\n \n \t\tToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);\n \t\tToolBar toolbar = toolBarManager.createControl(parent);\n \n \t\ttoolBarManager.add(new FileSaveAction());\n \t\ttoolBarManager.add(new OpenInXMLEditorAction());\n \t\ttoolBarManager.add(rawAction);\n \t\ttoolBarManager.add(browserAction);\n \n \t\ttoolBarManager.update(true);\n \n \t\tparent.setTextClient(toolbar);\n \t}", "private void initToolbar() {\n toolbar = (Toolbar)findViewById(R.id.toolbar);\n\n setSupportActionBar(toolbar);\n getSupportActionBar().setTitle(\"Quick Pay\");\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeButtonEnabled(true);\n }", "public JToolBar getToolBar(){\r\n return toolbar;\r\n }", "public JToolBar gameToolbar() {\n\t\tthis.gameToolbar = new JToolBar();\n\t\t//this.gameToolbar.setPreferredSize(size);\n\t\tFlowLayout tbLayout = new FlowLayout();\n\t\tthis.gameToolbar.setLayout(tbLayout);\n\t\ttbLayout.setAlignment(FlowLayout.CENTER);\n\t\tthis.gameToolbar.setRollover(true);\n\t\tthis.dealButton = new JButton(\"DEAL\");\n\t\tthis.dealButton.addActionListener(this);\n\t\tthis.placeBetButton = new JButton(\"PLACE BET\");\n\t\tthis.placeBetButton.addActionListener(this);\n\t\tthis.resultsButton = new JButton(\"VIEW RESULTS\");\n\t\tthis.resultsButton.addActionListener(this);\n\t\tthis.gameToolbar.add(this.dealButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.placeBetButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.resultsButton);\n\t\treturn this.gameToolbar;\n\t\t\n\t}", "@Override\n protected void initializeToolBars() {\n SharedToolBar sharedToolbar = getSharedToolBar();\n sharedToolbar.addPushButton(new HelpAction(\"org.geocraft.ui.traceviewer.MapPlot\"));\n\n // Create a custom toolbar just for the trace viewer.\n SimpleToolBar toolbar = addCustomToolBar();\n\n // Add a color selector for choosing the background color.\n final ColorSelector colorSelector = toolbar.addColorSelector(getBackgroundViewColor());\n colorSelector.getButton().setToolTipText(\"Select background color\");\n colorSelector.addListener(new IPropertyChangeListener() {\n\n /**\n * Invoked when a color is chosen in the color selector.\n * \n * @param event\n * the property change event.\n */\n public void propertyChange(final PropertyChangeEvent event) {\n RGB newColor = colorSelector.getColorValue();\n setBackgroundViewColor(newColor);\n _plot.getModelSpaceCanvas().setGridLineProperties(LineStyle.NONE, newColor, 0);\n }\n });\n }", "public ToolScreen addToolbars()\n {\n ToolScreen toolbar = super.addToolbars();\n \n ToolScreen toolbar2 = new EmptyToolbar(this.getNextLocation(ScreenConstants.LAST_LOCATION, ScreenConstants.DONT_SET_ANCHOR), this, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null);\n BaseField converter = null;\n ScreenComponent sField = null;\n \n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.GROSS);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.NET);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.PRICING_STATUS_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n \n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.TOUR_PRICING_TYPE_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.NON_TOUR_PRICING_TYPE_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n \n return toolbar;\n }", "public void initToolbar(){\n //check if toolbar is already inflated\n if(mToolbar == null){\n //if null, inflate the toolbar\n mToolbar = (Toolbar)findViewById(mHouseKeeper.getToolbarId());\n //set support for toolbar, onCreateOptionsMenu() will be called\n setSupportActionBar(mToolbar);\n }\n }", "@AutoGenerated\n\tprivate HorizontalLayout buildHlToolbar() {\n\t\thlToolbar = new HorizontalLayout();\n\t\thlToolbar.setImmediate(false);\n\t\thlToolbar.setWidth(\"100.0%\");\n\t\thlToolbar.setHeight(\"100.0%\");\n\t\thlToolbar.setMargin(false);\n\t\t\n\t\t// btnFirstRegister\n\t\tbtnFirstRegister = new Button();\n\t\tbtnFirstRegister.setCaption(\"<<\");\n\t\tbtnFirstRegister.setImmediate(true);\n\t\tbtnFirstRegister.setWidth(\"-1px\");\n\t\tbtnFirstRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnFirstRegister);\n\t\t\n\t\t// btnPreviousRegister\n\t\tbtnPreviousRegister = new Button();\n\t\tbtnPreviousRegister.setCaption(\"<\");\n\t\tbtnPreviousRegister.setImmediate(true);\n\t\tbtnPreviousRegister.setWidth(\"-1px\");\n\t\tbtnPreviousRegister.setHeight(\"-1px\");\n\t\tbtnPreviousRegister.setTabIndex(1);\n\t\thlToolbar.addComponent(btnPreviousRegister);\n\t\t\n\t\t// lblCountRegister\n\t\tlblCountRegister = new Label();\n\t\tlblCountRegister.setStyleName(\"nav-toolbar-separator\");\n\t\tlblCountRegister.setImmediate(false);\n\t\tlblCountRegister.setWidth(\"50px\");\n\t\tlblCountRegister.setHeight(\"-1px\");\n\t\tlblCountRegister.setValue(\"1/1\");\n\t\thlToolbar.addComponent(lblCountRegister);\n\t\thlToolbar.setComponentAlignment(lblCountRegister, new Alignment(48));\n\t\t\n\t\t// btnNextRegister\n\t\tbtnNextRegister = new Button();\n\t\tbtnNextRegister.setCaption(\">\");\n\t\tbtnNextRegister.setImmediate(true);\n\t\tbtnNextRegister.setWidth(\"-1px\");\n\t\tbtnNextRegister.setHeight(\"-1px\");\n\t\tbtnNextRegister.setTabIndex(2);\n\t\thlToolbar.addComponent(btnNextRegister);\n\t\t\n\t\t// btnLastRegister\n\t\tbtnLastRegister = new Button();\n\t\tbtnLastRegister.setCaption(\">>\");\n\t\tbtnLastRegister.setImmediate(true);\n\t\tbtnLastRegister.setWidth(\"-1px\");\n\t\tbtnLastRegister.setHeight(\"-1px\");\n\t\tbtnLastRegister.setTabIndex(3);\n\t\thlToolbar.addComponent(btnLastRegister);\n\t\t\n\t\t// btnDownRegister\n\t\tbtnDownRegister = new Button();\n\t\tbtnDownRegister.setCaption(\"v\");\n\t\tbtnDownRegister.setImmediate(true);\n\t\tbtnDownRegister.setWidth(\"-1px\");\n\t\tbtnDownRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnDownRegister);\n\t\t\n\t\t// btnUpRegister\n\t\tbtnUpRegister = new Button();\n\t\tbtnUpRegister.setCaption(\"^\");\n\t\tbtnUpRegister.setImmediate(true);\n\t\tbtnUpRegister.setWidth(\"-1px\");\n\t\tbtnUpRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnUpRegister);\n\t\t\n\t\t// btnDisplayRegister\n\t\tbtnDisplayRegister = new Button();\n\t\tbtnDisplayRegister.setCaption(\"C\");\n\t\tbtnDisplayRegister.setImmediate(false);\n\t\tbtnDisplayRegister.setWidth(\"-1px\");\n\t\tbtnDisplayRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnDisplayRegister);\n\t\t\n\t\t// imgSeparator\n\t\timgSeparator = new Embedded();\n\t\timgSeparator.setImmediate(false);\n\t\timgSeparator.setWidth(\"-1px\");\n\t\timgSeparator.setHeight(\"-1px\");\n\t\timgSeparator.setSource(new ThemeResource(\n\t\t\t\t\"../konekti/images/separator.png\"));\n\t\timgSeparator.setType(1);\n\t\timgSeparator.setMimeType(\"image/png\");\n\t\thlToolbar.addComponent(imgSeparator);\n\t\t\n\t\t// btnRefreshRegister\n\t\tbtnRefreshRegister = new Button();\n\t\tbtnRefreshRegister.setCaption(\"R\");\n\t\tbtnRefreshRegister.setImmediate(true);\n\t\tbtnRefreshRegister.setWidth(\"-1px\");\n\t\tbtnRefreshRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnRefreshRegister);\n\t\t\n\t\t// btnAddRegister\n\t\tbtnAddRegister = new Button();\n\t\tbtnAddRegister.setCaption(\"A\");\n\t\tbtnAddRegister.setImmediate(true);\n\t\tbtnAddRegister.setWidth(\"-1px\");\n\t\tbtnAddRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnAddRegister);\n\t\t\n\t\t// btnEditRegister\n\t\tbtnEditRegister = new Button();\n\t\tbtnEditRegister.setCaption(\"U\");\n\t\tbtnEditRegister.setImmediate(true);\n\t\tbtnEditRegister.setWidth(\"-1px\");\n\t\tbtnEditRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnEditRegister);\n\t\t\n\t\t// btnDeleteRegister\n\t\tbtnDeleteRegister = new Button();\n\t\tbtnDeleteRegister.setCaption(\"D\");\n\t\tbtnDeleteRegister.setImmediate(true);\n\t\tbtnDeleteRegister.setWidth(\"-1px\");\n\t\tbtnDeleteRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnDeleteRegister);\n\t\t\n\t\t// imgSeparatorGroup\n\t\timgSeparatorGroup = new Embedded();\n\t\timgSeparatorGroup.setImmediate(false);\n\t\timgSeparatorGroup.setWidth(\"-1px\");\n\t\timgSeparatorGroup.setHeight(\"-1px\");\n\t\timgSeparatorGroup.setSource(new ThemeResource(\n\t\t\t\t\"../konekti/images/separator_group.png\"));\n\t\timgSeparatorGroup.setType(1);\n\t\timgSeparatorGroup.setMimeType(\"image/png\");\n\t\thlToolbar.addComponent(imgSeparatorGroup);\n\t\thlToolbar.setComponentAlignment(imgSeparatorGroup, new Alignment(48));\n\t\t\n\t\t// btnConfirmRegister\n\t\tbtnConfirmRegister = new Button();\n\t\tbtnConfirmRegister.setCaption(\"[]\");\n\t\tbtnConfirmRegister.setImmediate(true);\n\t\tbtnConfirmRegister.setWidth(\"-1px\");\n\t\tbtnConfirmRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnConfirmRegister);\n\t\t\n\t\t// btnCancelRegister\n\t\tbtnCancelRegister = new Button();\n\t\tbtnCancelRegister.setCaption(\"X\");\n\t\tbtnCancelRegister.setImmediate(true);\n\t\tbtnCancelRegister.setWidth(\"-1px\");\n\t\tbtnCancelRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnCancelRegister);\n\t\t\n\t\treturn hlToolbar;\n\t}", "@Override\n public Component getToolbarPresenter() {\n \n fxPanel = new JFXPanel();\n \n Platform.setImplicitExit(false); //Ensure JavaFX thread does not close application\n Platform.runLater(()-> { //Create FX scene outside Swing Thread\n createFXScene();\n });\n\n return fxPanel;\n }", "private void setupToolbar() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.activity_menubar_toolbar);\n setSupportActionBar(toolbar);\n final ActionBar actionBar = getSupportActionBar();\n\n TextView mTitle = (TextView) toolbar.findViewById(R.id.actionbar_tvTitle);\n ImageView ivSave = (ImageView) toolbar.findViewById(R.id.activity_base_actionbar_ivNext);\n mTitle.setTypeface(typeface);\n mTitle.setVisibility(View.VISIBLE);\n ivSave.setVisibility(View.VISIBLE);\n ivSave.setImageResource(R.drawable.ic_save);\n ivSave.setOnClickListener(this);\n mTitle.setText(\"Share Pics\");\n\n if (actionBar != null) {\n\n actionBar.setTitle(\"\");\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowTitleEnabled(true);\n }\n\n\n }", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "public interface ToolbarOperation {\n Toolbar getToolbar();\n\n void modifyToolbarTitle(String title);\n\n float getToolbarHeight();\n}", "@Override\r\n\tpublic void ShowToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e( \"ShowToolBar\");\r\n\t}", "protected void fillCoolBar(ICoolBarManager coolBar) {\n\t\tIWorkbenchWindow window = getActionBarConfigurer().getWindowConfigurer().getWindow();\n\t\tIToolBarManager toolbar = new ToolBarManager(SWT.LEFT);\n\t\tcoolBar.add(new ToolBarContributionItem(toolbar, Messages.getString(\"IU.Strings.15\"))); //$NON-NLS-1$\n\t\ttoolbar.add(new GroupMarker(Messages.getString(\"IU.Strings.16\"))); //$NON-NLS-1$\n\n\n\t\t/*IWorkbenchAction open = ActionFactory..create(window);\n\t\topen.setImageDescriptor(Activator.getImageDescriptor(\"icons/charger.png\"));\n\t\ttoolbar.add(open);*/\n\n\t\tIWorkbenchAction save = ActionFactory.SAVE.create(window);\n\t\tsave.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.17\"))); //$NON-NLS-1$\n\t\tsave.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.18\"))); //$NON-NLS-1$\n\t\tsave.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.19\"))); //$NON-NLS-1$\n\t\tsave.setText(Messages.getString(\"IU.Strings.20\")); //$NON-NLS-1$\n\t\tsave.setToolTipText(Messages.getString(\"IU.Strings.21\")); //$NON-NLS-1$\n\t\ttoolbar.add(save);\n\n\t\tIWorkbenchAction print = ActionFactory.PRINT.create(window);\n\t\tprint.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.22\"))); //$NON-NLS-1$\n\t\tprint.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.23\"))); //$NON-NLS-1$\n\t\tprint.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.24\"))); //$NON-NLS-1$\n\t\tprint.setText(Messages.getString(\"IU.Strings.25\")); //$NON-NLS-1$\n\t\tprint.setToolTipText(Messages.getString(\"IU.Strings.26\")); //$NON-NLS-1$\n\t\ttoolbar.add(print);\n\n\n\t\ttoolbar.add(new GroupMarker(Messages.getString(\"IU.Strings.27\"))); //$NON-NLS-1$\n\t\ttoolbar.add(new Separator());\n\t\tIWorkbenchAction find = ActionFactory.FIND.create(window);\n\t\tfind.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.28\"))); //$NON-NLS-1$\n\t\t//find.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.29\"))); //$NON-NLS-1$\n\t\t//find.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.30\"))); //$NON-NLS-1$\n\t\tfind.setText(Messages.getString(\"IU.Strings.31\")); //$NON-NLS-1$\n\t\tfind.setToolTipText(Messages.getString(\"IU.Strings.32\")); //$NON-NLS-1$\n\t\ttoolbar.add(find);\n\n\t\t/*toolbar.add(ActionFactory.COPY.create(window));\n\t\ttoolbar.add(ActionFactory.CUT.create(window));\n\t\ttoolbar.add(ActionFactory.PASTE.create(window));\n\t\ttoolbar.add(new Separator());*/\n\n\t\t//TODO Rrgler le bug d'icon non charger undo / redo entre l'editeur et la console\n\t\t/*IWorkbenchAction undo = ActionFactory.UNDO.create(window);\n\t\tundo.setImageDescriptor(Activator.getImageDescriptor(\"icons/undo.gif\"));\n\t\tundo.setDisabledImageDescriptor(Activator.getImageDescriptor(\"icons/undo.gif\"));\n\t\tundo.setHoverImageDescriptor(Activator.getImageDescriptor(\"icons/undo.gif\"));\n\t\ttoolbar.add(undo);\n\n\t\tIWorkbenchAction redo = ActionFactory.REDO.create(window);\n\t\tredo.setImageDescriptor(Activator.getImageDescriptor(\"icons/redo.gif\"));\n\t\tredo.setDisabledImageDescriptor(Activator.getImageDescriptor(\"icons/redo.gif\"));\n\t\tredo.setHoverImageDescriptor(Activator.getImageDescriptor(\"icons/redo.gif\"));\n\t\ttoolbar.add(redo);*/\n\n\t\t\n\t\t//toolbar.add(ActionFactory.REDO.create(window));*/\n\n\t\t//toolbox2.png\n\t\tToolsBoxAction toolBox = new ToolsBoxAction(window);\n\t\ttoolBox.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.33\"))); //$NON-NLS-1$\n\t\ttoolBox.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.34\"))); //$NON-NLS-1$\n\t\ttoolBox.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.35\"))); //$NON-NLS-1$\n\t\ttoolbar.add(toolBox);\n\t\t\n\t\t\n\t\t//action_toolsBox.setMenuCreator(new IMenuCreator(){});\n\t\n\t\t//coolBar.add(new ToolBarContributionItem(toolbar2, \"main2\"));\n\t\t//toolbar2.add(ActionFactory.SHOW_VIEW_MENU.create(window));\n\n\t\t\n\t\tIToolBarManager toolbar2 = new ToolBarManager(SWT.RIGHT | SWT.FLAT | SWT.HORIZONTAL);\n\t\t\n\t\tcoolBar.add(new ToolBarContributionItem(toolbar2, Messages.getString(\"IU.Strings.36\")));\t //$NON-NLS-1$\n\t\ttoolbar2.add(new GroupMarker(Messages.getString(\"IU.Strings.37\"))); //$NON-NLS-1$\n\t\ttoolbar2.add(new GroupMarker(Messages.getString(\"IU.Strings.38\"))); //$NON-NLS-1$\n\t}", "private void initToolbar() {\n setSupportActionBar(toolbar);\n if(getSupportActionBar() != null) {\n getSupportActionBar().setTitle(\"Timetable App\");\n }\n }", "private void setupToolbar(){\n setSupportActionBar(toolbar);\n if(getSupportActionBar() != null){\n getSupportActionBar().setTitle(R.string.card_details_toolbar_title);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }\n }", "public ToolBar(final List<AbstractAction> theToolActions) {\n super();\n myToolActions = theToolActions;\n\n setupButtons();\n\n }", "@Override\r\n\tpublic void ShowToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e(\"ShowToolBar\");\r\n\t}", "private JToolBar getJToolBar() {\r\n\t\tif (jToolBar == null) {\r\n\t\t\tjToolBar = new JToolBar();\r\n\t\t\tjToolBar.setFloatable(false);\r\n\t\t\tjToolBar.add(getCmdAdd());\r\n\t\t\tjToolBar.add(getCmdDel());\r\n\t\t\tjToolBar.add(getCmdAddT());\r\n\t\t\tjToolBar.add(getCmdUrl());\r\n\t\t\tjToolBar.add(getCmdStart());\r\n\t\t\tjToolBar.add(getCmdPause());\r\n\t\t\tjToolBar.add(getCmdStop());\r\n\t\t\tjToolBar.add(getCmdExport());\r\n\t\t}\r\n\t\treturn jToolBar;\r\n\t}", "void setupToolBar(String title) {\n setupToolBar(title, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n onBackPressed();\n }\n });\n }", "private void initComponents() {\n\n jSeparator1 = new javax.swing.JToolBar.Separator();\n buttonGroup1 = new javax.swing.ButtonGroup();\n btnPin = new javax.swing.JToggleButton();\n toolbar = new javax.swing.JToolBar();\n toolbar2 = new javax.swing.JToolBar();\n\n btnPin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/piraso/ui/api/icons/pin_small.png\"))); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(btnPin, org.openide.util.NbBundle.getMessage(BaseEntryViewTopComponent.class, \"BaseEntryViewTopComponent.btnPin.text\")); // NOI18N\n btnPin.setToolTipText(org.openide.util.NbBundle.getMessage(BaseEntryViewTopComponent.class, \"BaseEntryViewTopComponent.btnPin.toolTipText\")); // NOI18N\n btnPin.setFocusable(false);\n btnPin.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPin.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnPin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPinActionPerformed(evt);\n }\n });\n\n setLayout(new java.awt.BorderLayout());\n\n toolbar.setBackground(new java.awt.Color(226, 226, 226));\n toolbar.setFloatable(false);\n toolbar.setRollover(true);\n add(toolbar, java.awt.BorderLayout.NORTH);\n\n toolbar2.setBackground(new java.awt.Color(226, 226, 226));\n toolbar2.setFloatable(false);\n toolbar2.setOrientation(1);\n toolbar2.setRollover(true);\n toolbar2.setVisible(false);\n add(toolbar2, java.awt.BorderLayout.WEST);\n }", "private void setToolBarInfo() {\n mToolbar = (Toolbar)findViewById(R.id.toolbar);\n mToolbar.setTitle(\"Chatアプリ\");\n mToolbar.setTitleTextColor(-1);\n mToolbar.setNavigationIcon(R.drawable.common_google_signin_btn_icon_light);\n //setActionBar(toolbar);\n mToolbar.inflateMenu(R.menu.main_menu);\n mToolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n // メニューのクリック処理\n switch (item.getItemId()) {\n case R.id.sign_out_menu:\n mFirebaseAuth.signOut();\n Intent intent = new Intent();\n intent.setClassName(D.packageRoot, D.packageRoot + \".MainActivity\");\n startActivity(intent);\n return true;\n }\n return true;\n }\n });\n //setSupportActionBar(toolbar);\n }", "private void initializeToolBarElements() {\n mNavigationView = findViewById(R.id.nav_view);\n mNavigationView.setNavigationItemSelectedListener(this);\n //Remove all tint from Nav Drawer icons\n mNavigationView.setItemIconTintList(null);\n\n mToolBar = findViewById(R.id.toolbar);\n setSupportActionBar(mToolBar);\n\n mDrawerLayout = findViewById(R.id.drawer_layout);\n ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, mDrawerLayout, mToolBar,\n R.string.navigation_drawer_open,\n R.string.navigation_drawer_close);\n mDrawerLayout.addDrawerListener(toggle);\n toggle.syncState();\n }", "protected void addActivePathToolbarButton ()\n {\n\n }", "private void setupToolbar(boolean bringUpSearch, boolean bringUpNav, boolean bringUpBookmarks) {\n \t\t\n \t\t//toolbar openers\n \t\tButton openSearch = (Button) findViewById(R.id.open_search);\n \t\tButton openNav = (Button) findViewById(R.id.open_nav);\n \t\tButton openBookmarks = (Button) findViewById(R.id.open_bookmarks);\n \t\t\n \t\t//toolbar hider\n \t\tButton hide = (Button) findViewById(R.id.hide);\n \t\t\n \t\t//searh toolbar\n \t\tButton prevWord = (Button) findViewById(R.id.prev_word);\n \t\tButton nextWord = (Button) findViewById(R.id.next_word);\n \t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\n \t\t\n \t\t//integrate navigation and bookmarks\n \t\tButton upGuide = (Button) findViewById(R.id.up_guide);\n \t\tButton downGuide = (Button) findViewById(R.id.down_guide);\n \t\t\n \t\tTextView numMarks = (TextView) findViewById(R.id.num_of_marks);\n \t\tButton prevMark = (Button) findViewById(R.id.prev_mark);\n \t\tButton makeMark = (Button) findViewById(R.id.make_mark);\n \t\tButton nextMark = (Button) findViewById(R.id.next_mark);\n \t\t\n \t\t\n \t\t\n \t\t//If first time this is called, initiate setup\n \t\tif(isFirstTime)\n \t\t{\n \t\t\t//open search button\n \t\t\topenSearch.setText(\"Search\");\n \t\t\topenSearch.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(true, false, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//open navigation button\n \t\t\t//TODO: setup navigation functionality (divide the guide into ten parts and go up and down the guide ten percent)\n \t\t\topenNav.setText(\"Navigate\");\n \t\t\topenNav.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(false, true, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//open bookmarks button\n \t\t\t//TODO: setup bookmarks functionality (save the scroll location of a desired bookmark to local memory)\n \t\t\topenBookmarks.setText(\"Bookmarks\");\n \t\t\topenBookmarks.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(false, false, true);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//hide bar button\n \t\t\thide.setText(\"Hide\");\n \t\t\thide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tsetupToolbar(false, false, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The previous button\n \t\t\tprevWord.setText(\"<\");\n \t\t\tprevWord.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t\t//Find the searchBar again\n \t\t\t\t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\t\t\tif(searchBar.getText().equals(\"\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchBar.setText(\"Please enter nonempty query\");\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchGuide(searchBar, false);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The forward button\n \t\t\tnextWord.setText(\">\");\n \t\t\tnextWord.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t\t//Find the searchBar again\n \t\t\t\t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\t\t\tif(searchBar.getText().equals(\"\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchBar.setText(\"Please enter nonempty query\");\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchGuide(searchBar, true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t\n \t\t\t//The up page button\n \t\t\tupGuide.setText(\"Up ^\");\n \t\t\tupGuide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The down page button\n \t\t\tdownGuide.setText(\"Down v\");\n \t\t\tdownGuide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t\n \t\t\t\n \t\t\t//The number of bookmarks page button\n \t\t\tnumMarks.setText(\"Number\");\n \t\t\tnumMarks.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//Go back a bookmark button\n \t\t\tprevMark.setText(\"<\");\n \t\t\tprevMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t\n \t\t\t//set current scrollview scrollTo to this bookmark\n\t\t\tmakeMark.setText(\"Bookmark location\");\n \t\t\tmakeMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t//Go to next boormark button\n \t\t\tnextMark.setText(\"next >\");\n \t\t\tnextMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\tisFirstTime = false;\n \t\t}\n \t\t\n \t\t\n \t\tif(bringUpSearch)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//Bring up the search toolbar\n \t\t\tprevWord.setVisibility(View.VISIBLE);\n \t\t\tnextWord.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//The search bar\n \t\t\tsearchBar.setHint(\"Search guide\");\n \t\t\tsearchBar.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse if(bringUpNav)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//bring up navigation bar\n \t\t\tupGuide.setVisibility(View.VISIBLE);\n \t\t\tdownGuide.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse if(bringUpBookmarks)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\t\n \t\t\t//bring up bookmarks bar\n \t\t\tnumMarks.setVisibility(View.VISIBLE);\n \t\t\tprevMark.setVisibility(View.VISIBLE);\n \t\t\tmakeMark.setVisibility(View.VISIBLE);\n \t\t\tnextMark.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//Bring up the regular toolbar menu\n\t\t\t// Hide non funtional features\n\t\t\topenSearch.setVisibility(View.GONE);\n\t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\thide.setVisibility(View.GONE);\n \t\t\tprevWord.setVisibility(View.GONE);\n \t\t\tnextWord.setVisibility(View.GONE);\n \t\t\tsearchBar.setVisibility(View.GONE);\n \t\t\t\n \t\t\tupGuide.setVisibility(View.GONE);\n \t\t\tdownGuide.setVisibility(View.GONE);\n \t\t\t\n \t\t\tnumMarks.setVisibility(View.GONE);\n \t\t\tprevMark.setVisibility(View.GONE);\n \t\t\tmakeMark.setVisibility(View.GONE);\n \t\t\tnextMark.setVisibility(View.GONE);\n \t\t}\n \t}", "C getRegisteredToolBar(ToolbarPosition position);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jToolBar1 = new javax.swing.JToolBar();\n btnDom = new javax.swing.JButton();\n btnBook = new javax.swing.JButton();\n btnTT = new javax.swing.JButton();\n btnPos = new javax.swing.JButton();\n btnTool = new javax.swing.JButton();\n btnNews = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jToolBar1.setRollover(true);\n\n btnDom.setText(\"DOM\");\n btnDom.setFocusable(false);\n btnDom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnDom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnDom.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDomActionPerformed(evt);\n }\n });\n jToolBar1.add(btnDom);\n\n btnBook.setText(\"Book\");\n btnBook.setFocusable(false);\n btnBook.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBook.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnBook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBookActionPerformed(evt);\n }\n });\n jToolBar1.add(btnBook);\n\n btnTT.setText(\"T&T\");\n btnTT.setFocusable(false);\n btnTT.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTT.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTTActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTT);\n\n btnPos.setText(\"Posição\");\n btnPos.setFocusable(false);\n btnPos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnPos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPosActionPerformed(evt);\n }\n });\n jToolBar1.add(btnPos);\n\n btnTool.setText(\"Ferramentas\");\n btnTool.setFocusable(false);\n btnTool.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTool.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTool.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnToolActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTool);\n\n btnNews.setText(\"Notícias\");\n btnNews.setFocusable(false);\n btnNews.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnNews.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnNews.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNewsActionPerformed(evt);\n }\n });\n jToolBar1.add(btnNews);\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(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 253, Short.MAX_VALUE))\n );\n\n pack();\n }", "protected abstract ToolbarEngine getInstanceOfToolbar();", "void inittoolbar() {\n toolbar = (Toolbar) findViewById(R.id.toolbar);\r\n setSupportActionBar(toolbar);\r\n if (getSupportActionBar() != null) {\r\n getSupportActionBar().setDisplayShowTitleEnabled(false);\r\n }\r\n TextView mTitle = (TextView) toolbar.findViewById(R.id.toolbar_title);\r\n ImageView back = (ImageView) toolbar.findViewById(R.id.back);\r\n mTitle.setText(getResources().getString(R.string.scanQr));\r\n\r\n back.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n onBackPressed();\r\n }\r\n });\r\n }", "private void initFileToolbar() {\n fileToolbarPane = new FlowPane();\n\n // HERE ARE OUR FILE TOOLBAR BUTTONS, NOTE THAT SOME WILL\n // START AS ENABLED (false), WHILE OTHERS DISABLED (true)\n newDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.NEW_DRAFT_ICON, DraftKit_PropertyType.NEW_DRAFT_TOOLTIP, false);\n loadDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.LOAD_DRAFT_ICON, DraftKit_PropertyType.LOAD_DRAFT_TOOLTIP, false);\n saveDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.SAVE_DRAFT_ICON, DraftKit_PropertyType.SAVE_DRAFT_TOOLTIP, true);\n exportDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.EXPORT_DRAFT_ICON, DraftKit_PropertyType.EXPORT_DRAFT_TOOLTIP, true);\n exitButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.EXIT_ICON, DraftKit_PropertyType.EXIT_TOOLTIP, false);\n }", "public Component createNewToolItem() {\r\n Button button = new Button();\r\n gwtToolbarItem.addClasses(button);\r\n button.addStyleName(\"action-bar-tool-item\");\r\n return button;\r\n }", "public JToolBar createJToolBar(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 83 */ JToolBar result = new JToolBar();\n/* 84 */ List buttons = getStringList(name);\n/* */ \n/* 86 */ for (Object button : buttons) {\n/* 87 */ String s = (String)button;\n/* 88 */ if (s.equals(\"-\")) {\n/* 89 */ result.add(new JToolbarSeparator()); continue;\n/* */ } \n/* 91 */ result.add(createJButton(s));\n/* */ } \n/* */ \n/* 94 */ return result;\n/* */ }", "private void setupToolBar(String title, boolean showNavigationBtn, View.OnClickListener onClickListener) {\n Toolbar toolbar = findViewById(R.id.toolbar);\n toolbar.setTitle(\"\");\n setSupportActionBar(toolbar);\n\n toolbarTitleTxtView = findViewById(R.id.toolbar_title);\n ImageView ivBackButton = findViewById(R.id.iv_back_button);\n if (title != null) {\n toolbarTitleTxtView.setText(title);\n toolbarTitleTxtView.setVisibility(View.VISIBLE);\n } else {\n toolbarTitleTxtView.setVisibility(View.GONE);\n }\n ivBackButton.setOnClickListener(onClickListener);\n if (!showNavigationBtn) {\n ivBackButton.setVisibility(View.GONE);\n }\n }", "@Override\n public Component getToolbarPresenter() {\n return new FontPanel();\n }", "public interface SupportsBigDataViewerToolBarButton\n{\n int addToolBarButtons(int verticalPosition);\n}", "private void initToolbar() {\n setSupportActionBar(toolbar);\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n checkUserData();\n initDrawerView();\n }\n }", "protected abstract Toolbar provideSupportActionbar();", "public CreateToolBar(final String theName, final List<ToolAction> theToolActions) {\n myToolBar = new JToolBar(theName);\n final ButtonGroup group = new ButtonGroup();\n \n for (final ToolAction currentTool : theToolActions) {\n final JToggleButton item = new JToggleButton(currentTool);\n group.add(item);\n myToolBar.add(item);\n }\n }", "@Override\n public MToolBar getToolbar()\n {\n return null;\n }", "public interface OnToolBarListener {\n\n public void onToolBarActionStart();\n\n public void onToolBarStateChanged(boolean visible);\n\n public void onToolBarActionEnd();\n}", "void ToolBarFileIOHook() {\n\t\ttoolBar.add(newButton = new JButton(new ImageIcon(this.getClass().getResource(\"images/new.gif\"))));\n\t\ttoolBar.add(openButton = new JButton(new ImageIcon(this.getClass().getResource(\"images/open.gif\"))));\n\t\ttoolBar.add(saveButton = new JButton(new ImageIcon(this.getClass().getResource(\"images/save.gif\"))));\n\t\ttoolBar.add(saveAsButton= new JButton(new ImageIcon(this.getClass().getResource(\"images/saveAs.gif\"))));\n\t\ttoolBar.addSeparator();\n\n\t\t//adding a tool tip text to the button for descriping the image icon.\n\t\tnewButton.setToolTipText(\"New\");\n\t\topenButton.setToolTipText(\"Open\");\n\t\tsaveButton.setToolTipText(\"Save\");\n\t\tsaveAsButton.setToolTipText(\"Save As\");\n}", "public ToolBar(final Map<PaintTool, ToolAction> theMap, \n final List<PaintTool> theTools,\n final JFrame theFrame,\n final DrawingPanel thePanel) { \n\n myToolBar = new JToolBar();\n createToolButtons(theMap, theTools, theFrame);\n createUndoAndRedo(thePanel);\n myBar = theFrame.getJMenuBar();\n myBar.addPropertyChangeListener(this);\n myPcs = new PropertyChangeSupport(this);\n }", "private void initToolbar() {\n\t\tButton nextStep = new Button(\"Next Step\");\n\t\tnextStep.setOnMouseClicked(new EventHandler<Event>() {\n\t\t\t@Override\n\t\t\tpublic void handle(Event event) {\n\t\t\t\tcontrol.performOneStep();\n\t\t\t}\n\t\t});\n\t\tthis.getItems().add(nextStep);\n\n\t\t// Make and set Start Button\n\t\tButton startButton = new Button(\"Start Game\");\n\t\tstartButton.setOnMouseClicked(new EventHandler<Event>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(Event event) {\n\t\t\t\tcontrol.startGame();\n\t\t\t}\n\t\t});\n\t\tthis.getItems().add(startButton);\n\n\t\t// Make and set Pause Button\n\t\tButton pauseButton = new Button(\"Pause Game\");\n\t\tpauseButton.setOnMouseClicked(new EventHandler<Event>() {\n\n\t\t\t@Override\n\t\t\tpublic void handle(Event event) {\n\t\t\t\tcontrol.pauseGame();\n\t\t\t}\n\t\t});\n\t\tthis.getItems().add(pauseButton);\n\n\t\t//Text Field for GameSpeed\n\t\tText gameSpeedText = new Text(\"Delay between steps: \" + initialSpeed +\"ms\");\n\t\tthis.getItems().add(gameSpeedText);\n\t\t\n\t\t//Make and add Slider for GameSpeed control\n\t\tSlider gameSpeedSlider = new Slider(10, 250, initialSpeed);\n\t\tcontrol.setGameSpeed(initialSpeed);\n\t\t\n\t\tgameSpeedSlider.valueProperty().addListener(\n\t\t (observable, oldvalue, newvalue) ->\n\t\t {\n\t\t int i = newvalue.intValue();\n\t\t //This sets the delay in the controller\n\t\t control.setGameSpeed(i);\n\t\t //Text Label that displays delay\n\t\t gameSpeedText.setText(\"Delay between steps: \" + i +\"ms\");\n\t\t } );\n\t\t\n\t\tthis.getItems().add(gameSpeedSlider);\n\t\n\t\t\n\t\t\n\t}", "private void createRequestToolbar ( ExpandableComposite parent ) {\n \t\trawRequestAction = new ShowRawRequestAction();\n \t\trawRequestAction.setChecked(true);\n \t\ttreeAction = new ShowInTreeAction();\n \n \t\tToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);\n \t\tToolBar toolbar = toolBarManager.createControl(parent);\n \n \t\ttoolBarManager.add(rawRequestAction);\n \t\ttoolBarManager.add(treeAction);\n \n \t\ttoolBarManager.update(true);\n \n \t\tparent.setTextClient(toolbar);\n \t}", "private void setToolbar() {\n setSupportActionBar(toolbar);\n getSupportActionBar().setTitle(\"E-Place\");//untuk get title\n getSupportActionBar().setIcon(R.drawable.ic_launcher);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n }", "public NavigationToolBar() {\n\t\tbuildMainLayout();\n\t\tsetCompositionRoot(mainLayout);\n\n\t\t// TODO add user code here\t\n\t\t// set first button listener\n\t\tthis.btnDownRegister.setEnabled(false);\n\t\t\n\t\t// default status for confirmation buttons\n\t\tthis.btnCancelRegister.setEnabled(false);\n\t\tthis.btnConfirmRegister.setEnabled(false);\n\t\t\n\t\tbtnFirstRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t// set status register\n\t\t\t\tregister = bindingSource.firstItem();\t\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\tlblCountRegister.setValue(bindingSource.getIndex() + \"/\" + bindingSource.size());\n\t\t\t\t\n\t\t\t\tbtnFirstRegister.setEnabled(false);\n\t\t\t\tbtnPreviousRegister.setEnabled(false);\t\t\t\t\n\t\t\t\tbtnNextRegister.setEnabled(true);\n\t\t\t\tbtnLastRegister.setEnabled(true);\n\t\t\t\t\n\t\t\t\t// fire event\n\t\t\t\tif (listenerFirstButton != null)\t\t\t\t\t\n\t\t\t\t\tlistenerFirstButton.firstButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\t// set previous button listener\n\t\tbtnPreviousRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t// set status register\n\t\t\t\tregister = bindingSource.prevItem();\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\t\n\t\t\t\tlblCountRegister.setValue(index + \"/\" + bindingSource.size());\n\t\t\t\t\n\t\t\t\tif (index == 1) {\n\t\t\t\t\tbtnFirstRegister.setEnabled(false);\n\t\t\t\t\tbtnPreviousRegister.setEnabled(false);\n\t\t\t\t\tbtnNextRegister.setEnabled(true);\n\t\t\t\t\tbtnLastRegister.setEnabled(true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbtnFirstRegister.setEnabled(true);\n\t\t\t\t\tbtnPreviousRegister.setEnabled(true);\n\t\t\t\t\tbtnNextRegister.setEnabled(true);\n\t\t\t\t\tbtnLastRegister.setEnabled(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// fire event\n\t\t\t\tif (listenerPreviousButton != null)\t\t\t\t\t\n\t\t\t\t\tlistenerPreviousButton.previousButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set next button listener\n\t\tbtnNextRegister.addListener(new Button.ClickListener() {\t\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t// set status register\n\t\t\t\tregister = bindingSource.nextItem();\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\t\n\t\t\t\tlblCountRegister.setValue(index + \"/\" + bindingSource.size());\n\t\t\t\t\n\t\t\t\tif (index == bindingSource.size()) {\n\t\t\t\t\tbtnFirstRegister.setEnabled(true);\n\t\t\t\t\tbtnPreviousRegister.setEnabled(true);\n\t\t\t\t\tbtnNextRegister.setEnabled(false);\n\t\t\t\t\tbtnLastRegister.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse {\t\t\t\t\t\n\t\t\t\t\tbtnFirstRegister.setEnabled(true);\n\t\t\t\t\tbtnPreviousRegister.setEnabled(true);\n\t\t\t\t\tbtnNextRegister.setEnabled(true);\n\t\t\t\t\tbtnLastRegister.setEnabled(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// fire event\n\t\t\t\tif (listenerNextButton != null)\n\t\t\t\t\tlistenerNextButton.nextButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set last button listener\n\t\tbtnLastRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t// set status register\n\t\t\t\tregister = bindingSource.lastItem();\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\t\n\t\t\t\tlblCountRegister.setValue(bindingSource.getIndex() + \"/\" + bindingSource.size());\n\t\t\t\t\n\t\t\t\tbtnFirstRegister.setEnabled(true);\n\t\t\t\tbtnPreviousRegister.setEnabled(true);\n\t\t\t\tbtnNextRegister.setEnabled(false);\n\t\t\t\tbtnLastRegister.setEnabled(false);\n\t\t\t\t\n\t\t\t\t// fire event\n\t\t\t\tif (listenerLastButton != null)\n\t\t\t\t\tlistenerLastButton.lastButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnDownRegister.addListener(new Button.ClickListener() {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\t\n\t\t\t\t// fire the index change\n\t\t\t\tbindingSource.setItemId(this, true, bindingSource.getItemId());\n\t\t\t\t\n\t\t\t\t// fire the app event if it's implemented\n\t\t\t\tif (listenerDownButton != null)\n\t\t\t\t\tlistenerDownButton.downButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnDisplayRegister.addListener(new Button.ClickListener() {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\t\n\t\t\t\tif (displayMode == DisplayMode.GRID) {\n\t\t\t\t\tbtnDisplayRegister.setCaption(\"G\");\t\t\t\n\t\t\t\t\tdisplayMode = DisplayMode.CARD;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbtnDisplayRegister.setCaption(\"C\");\n\t\t\t\t\tdisplayMode = DisplayMode.GRID;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tslider.slideDisplay(displayMode);\n\t\t\t\t\n\t\t\t\t// fire the app event if it's implemented\n\t\t\t\tif (listenerDisplayButton != null)\n\t\t\t\t\tlistenerDisplayButton.displayButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnUpRegister.addListener(new Button.ClickListener() {\t\t\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tif (slider == null)\n\t\t\t\t\treturn;\n\t\t\n\t\t\t\t// go slide up\n\t\t\t\ttry {\n\t\t\t\t\tslider.delSlideBreadCrumb();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// fire the app event if it's implemented\n\t\t\t\tif (listenerUpButton != null)\n\t\t\t\t\tlistenerUpButton.upButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnRefreshRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tif (listenerRefreshButton != null)\n\t\t\t\t\tlistenerRefreshButton.refreshButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set add button listener\n\t\tbtnAddRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t// enable confirmation buttons\n\t\t\t\tbtnConfirmRegister.setEnabled(true);\n\t\t\t\tbtnCancelRegister.setEnabled(true);\n\t\t\t\t\n\t\t\t\tif (listenerAddButton != null)\n\t\t\t\t\tlistenerAddButton.addButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0));\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set edit button listener\n\t\tbtnEditRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t// enable confirmation buttons\n\t\t\t\tbtnConfirmRegister.setEnabled(true);\n\t\t\t\tbtnCancelRegister.setEnabled(true);\n\t\t\t\t\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\tregister = bindingSource.getItemId();\n\t\t\t\t\n\t\t\t\tif (listenerEditButton != null)\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tlistenerEditButton.editButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set delete button listener\n\t\tbtnDeleteRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\tregister = bindingSource.getItemId();\n\t\t\t\t\n\t\t\t\tif (listenerDeleteButton != null)\t\t\t\t\t\n\t\t\t\t\tlistenerDeleteButton.deleteButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set confirm button listener\n\t\tbtnConfirmRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\t\t\t\t\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\tregister = bindingSource.getItemId();\n\t\t\t\t\n\t\t\t\tif (listenerConfirmButton != null)\t\t\t\t\t\n\t\t\t\t\tlistenerConfirmButton.confirmButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\t\t\t\t\n\t\t\t\t\n\t\t\t\t// disable confirmation buttons\n\t\t\t\tbtnConfirmRegister.setEnabled(false);\n\t\t\t\tbtnCancelRegister.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t// set cancel button listener\n\t\tbtnCancelRegister.addListener(new Button.ClickListener() {\t\t\t\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\tint index = bindingSource.getIndex();\n\t\t\t\tregister = bindingSource.getItemId();\n\t\t\t\t\n\t\t\t\tif (listenerCancelButton != null)\t\t\t\t\t\n\t\t\t\t\tlistenerCancelButton.cancelButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index));\t\n\t\t\t\t\n\t\t\t\t// disable confirmation buttons\n\t\t\t\tbtnConfirmRegister.setEnabled(false);\n\t\t\t\tbtnCancelRegister.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "private void setUpToolbar() {\n TextView textView_toolbar = findViewById(R.id.txt_toolbar_title);\n textView_toolbar.setText(\"대화\");\n\n }", "public CoeusToolBarFactory(CoeusAppletMDIForm mdiForm) {\r\n super();\r\n this.mdiForm = mdiForm;\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n createToolBar();\r\n // rdias UCSD - Coeus personalization impl\r\n//\t AbstractController persnref = AbstractController.getPersonalizationControllerRef();\r\n//\t persnref.customize_module(null, getToolBar(),this, \"MAINFRAME\");\r\n\t //rdias UCSD \r\n }", "@AutoGenerated\n\tprivate Panel buildPnToolbar() {\n\t\tpnToolbar = new Panel();\n\t\tpnToolbar.setImmediate(false);\n\t\tpnToolbar.setWidth(\"100.0%\");\n\t\tpnToolbar.setHeight(\"100.0%\");\n\t\t\n\t\t// hlToolbar\n\t\thlToolbar = buildHlToolbar();\n\t\tpnToolbar.setContent(hlToolbar);\n\t\t\n\t\treturn pnToolbar;\n\t}", "private void fillLocalToolBar(IToolBarManager manager) {\n\t\tmanager.add(actionReload);\n\t\tmanager.add(actionSort);\n\t\tmanager.add(new Separator());\n\t\t\n\t\tmanager.add(actionFind);\n//\t\tmanager.add(new Separator());\n//\t\tmanager.add(actionReloadAndValidate);\n\t\tmanager.add(new Separator());\n\t\tmanager.add(actionValidate);\n\t\tmanager.add(actionSimulate);\n\t\tmanager.add(new Separator());\n\t\tmanager.add(actionCollapseAll);\n\t\tmanager.add(actionLinkWithEditor);\n\t\t\n\t\tmanager.add(new Separator());\n\t\tmanager.add(actionShowAboutInfo);\n\t\t\n\t\tmanager.add(new Separator());\n\t\tdrillDownAdapter.addNavigationActions(manager);\n\t}", "public void setToolbar() {\n myToolbar = (Toolbar) findViewById(R.id.toolbar_menu_nav);\n myToolbar.setTitle(R.string.Toolbar_Dashboard);\n setSupportActionBar(myToolbar);\n }", "public JToolBar getToolBar() {\n return myToolBar;\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}", "public void setupToolbar() {\n if (mToolbar != null) {\n setSupportActionBar(mToolbar);\n }\n getSupportActionBar().setDisplayHomeAsUpEnabled(false);\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n }", "private void setupToolbar() {\n Toolbar toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n ActionBarDrawerToggle toggle =\n new ActionBarDrawerToggle(this,\n drawer,\n toolbar,\n R.string.nav_open_navigation_drawer,\n R.string.nav_close_navigation_drawer);\n drawer.addDrawerListener(toggle);\n toggle.syncState();\n }", "private void setUpToolbar() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n getSupportActionBar().setLogo(R.mipmap.ic_launcher);\n getSupportActionBar().setDisplayUseLogoEnabled(true);\n getSupportActionBar().setTitle(\"\");\n }", "protected void setupToolbar(int id) {\n if (toolbar == null) {\n toolbar = findViewById(id);\n toolbar.setTitleTextColor(Color.WHITE);\n }\n\n if (toolbar != null) {\n setSupportActionBar(toolbar);\n }\n\n actionBar = getSupportActionBar();\n\n if (actionBar != null) {\n actionBar.setDisplayShowHomeEnabled(true);\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setHomeAsUpIndicator(R.drawable.ic_arrow_back);\n }\n }", "private void contributeToActionBars() {\n\t\tIActionBars bars = getViewSite().getActionBars();\n\t\tfillLocalPullDown(bars.getMenuManager());\n\t\tfillLocalToolBar(bars.getToolBarManager());\n\t}", "public interface IActivityToolbar {\n\n ToolBarBean getToolBar();\n}", "private void prepareToolbar() {\n Toolbar toolbar = findViewById(R.id.toolbarAmigos);\n toolbar.setTitle(\"Amigos\");\n setSupportActionBar(toolbar);\n\n // Habilitamos el botón de atras en la toolbar\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n toolbar.setNavigationOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n }" ]
[ "0.8151717", "0.8007186", "0.7971486", "0.7961379", "0.7874975", "0.7852652", "0.7773033", "0.7713145", "0.76300496", "0.7606464", "0.75845486", "0.75734425", "0.75358665", "0.7535012", "0.752954", "0.7439361", "0.7426991", "0.7394078", "0.7370785", "0.73422414", "0.73345387", "0.72782636", "0.7272611", "0.7184416", "0.71320087", "0.71202767", "0.70976436", "0.70799047", "0.70737785", "0.7061365", "0.70328796", "0.7014163", "0.6993017", "0.69802535", "0.69739", "0.69285727", "0.6917613", "0.6893213", "0.6878718", "0.68687886", "0.68672985", "0.6860796", "0.6853294", "0.6846996", "0.68441653", "0.68343884", "0.6817196", "0.6815306", "0.68002224", "0.6784947", "0.67625755", "0.67614496", "0.67376035", "0.67263824", "0.6723288", "0.6710861", "0.66935414", "0.6670446", "0.666741", "0.66543925", "0.66476524", "0.6643908", "0.6640567", "0.6635152", "0.66277987", "0.6627293", "0.66159606", "0.6607927", "0.6598876", "0.6587862", "0.6566876", "0.6554636", "0.6543377", "0.6538883", "0.65367186", "0.6529117", "0.6528252", "0.6527747", "0.65233326", "0.652325", "0.6509011", "0.6506222", "0.6500072", "0.6492986", "0.6492564", "0.6486386", "0.6482624", "0.6473968", "0.64726925", "0.6472542", "0.64635164", "0.6457673", "0.6447724", "0.6426494", "0.64217436", "0.64074683", "0.6384352", "0.6382728", "0.6382682", "0.63703406", "0.6364886" ]
0.0
-1
The following register onclick callbacks for the listview and the add button add onclick listeners to the listview items
private void clickcallback() { final ListView listView = findViewById(R.id.listViewCollections); listView.setOnItemClickListener(ClickListener()); if (friendID == null) { listView.setOnItemLongClickListener(LongClickListener()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerListClickCallBack() {\n\t\t\n\t\tListView myList = (ListView)findViewById(R.id.listViewFromDB);\n\t\tmyList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View viewClicked,\n\t\t\t\t\tint position, long idInDB) {\n\t\t\t\t\n\t\t\t\tupdateItemForId(idInDB);\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "void onListClick();", "private void registerListClicks(){\n //Gets list element\n ListView list = findViewById(R.id.transaction_list);\n //Sets onclick listener\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Gets the relevant view\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "private void setupListViewListener() {\n\t\t\n\t\t// OnItemLongClick - show edit options\n\t\tlvItems.setOnItemLongClickListener(new OnItemLongClickListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long rowId) {\n\n\t\t\t\titemsAdapter.setSelectedPosition(position);\n\t\t\t\tif (itemsAdapter.getSelectedPosition() == -1)\n\t\t\t\t\tgetActionBar().hide();\n\t\t\t\telse {\n\t\t\t\t\tgetActionBar().setDisplayShowHomeEnabled(false);\n\t\t\t\t\tgetActionBar().show();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t});\n\t\t// OnItemClick - Open Detail Screen\n\t\tlvItems.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long rowId) {\n\t\t\t\titemsAdapter.unsetSelectedPosition();\n\t\t\t\tgetActionBar().hide();\n\t\t\t\tIntent i = new Intent(TodoActivity.this, EditItemActivity.class);\n\t\t\t\ti.putExtra(\"position\", position);\n\t\t\t\tTodoItem item = (TodoItem) parent.getItemAtPosition(position);\n\t\t\t\ti.putExtra(\"item\", item);\n\t\t\t\tstartActivityForResult(i, REQUEST_CODE);\n\n\t\t\t}\n\n\t\t});\n\n\t}", "public void onListItemClick( ListView l, View v, int position, long id )\n {\n }", "@Override\n public void onListItemClicked(int position) {\n\n }", "public interface OnListClickListener {\r\n /**\r\n * Called when a view has been clicked.\r\n * \r\n * @param v\r\n * The view that was clicked.\r\n */\r\n void onListClick();\r\n }", "protected void setListViewOnClickListener() {\n\n\t\tListView ingredientsLV = (ListView) findViewById(R.id.lv_Ingredients);\n\t\tregisterForContextMenu(ingredientsLV);\n\n\t\tingredientsLV.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// AS: launch editIngredientDialog with the position\n\t\t\t\teditIngredientDialog(position);\n\t\t\t}\n\t\t});\n\n\t}", "private void SetListViewClickListener()\n {\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n String _title = titles.get(position);\n String _author= authors.get(position);\n String _date = publishDates.get(position);\n\n Intent intent = new Intent(MainActivity.this, ArticleDetails.class);\n intent.putExtra(\"KEY_DATE\", _title);\n intent.putExtra(\"KEY_AUTHOR\", _author);\n intent.putExtra(\"KEY_DATE\", _date);\n startActivity(intent);\n\n }\n });\n }", "public interface AddPlaceFirstOnListItemClickListener {\n public void onListItemClick(int position);\n\n}", "private void listner() {\n\t\tdocketList.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t}", "private void registerClick() {\n listView = (ListView) findViewById(R.id.listViewPick);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n private AdapterView parent;\n\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n this.parent = parent;\n TextView textView = (TextView) viewClicked;\n //String message = \"You clicked # \" + position + \", which is list: \" + textView.getText().toString();\n //Toast.makeText(PickExisting.this, message, Toast.LENGTH_SHORT).show();\n\n String name = textView.getText().toString();\n Product product = new Product();\n product = myDB.findProdByName(name);\n\n if (FROM.equals(\"UseList\")) {\n myDB.addListProduct(FORWARD, product);\n }else{\n myDB.addInventoryProduct(FORWARD, product);\n }\n }\n });\n }", "@Override\r\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "@Override\n\tpublic void setUpListener() {\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAdapter.setIndex(position);\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\tif(litener != null){\n\t\t\t\t\tlitener.onItemClick(position, mAdapter.getListItem(position), view);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void addNewItemClicked(View view) {\n// Toast.makeText(CheckboxNoteActivity.this, \"RelativeLayout Clicked Successfully\", Toast.LENGTH_SHORT).show();\n addNewListItem();\n }", "public void listener (){\n //Find the view which shows the ListView\n ListView elements = (ListView) findViewById(R.id.list);\n\n // Set a click listener on that View\n elements.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n // The code in this method will be executed when the numbers View is clicked on.\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n // Create a new intent to open the {@link TracksActivity}\n Intent nowPlayingIntent = new Intent(TracksActivity.this, NowPlayingActivity.class);\n MusicsElement element = (MusicsElement) arg0.getItemAtPosition(position);\n nowPlayingIntent.putExtra(\"element\", element.getmSongName());\n nowPlayingIntent.putExtra(\"musicElement\", element);\n // Start the new activity\n startActivity(nowPlayingIntent);\n }\n });\n }", "public interface ListListener {\n public void OnClick(int itemPosition);\n}", "void onAddClicked();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "void onPrepareListView(ListView listView);", "public void setUpListeners(ListView listView) {\n\n // On a long press; display a confirmation dialog box which calls removeTask on yes\n // and does nothing on no.\n listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n final ToDoTask toRemove = adapter.getItem(position);\n\n new AlertDialog.Builder(List.this)\n .setTitle(getResources().getString(R.string.list_remove_dialog_title))\n .setMessage(String.format(getResources().getString(R.string.list_remove_dialog_message),\n toRemove.getTask()))\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n removeTask(toRemove);\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Do nothing\n }\n }).show();\n\n return true;\n }\n });\n\n // On a normal press; check the task off.\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n database.toggleDone(adapter.getItem(position));\n }\n });\n\n // When the enter is pressed on the keyboard; add the task in the edittext field.\n final EditText field = (EditText) findViewById(R.id.list_edittext);\n field.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_DONE) {\n addTask(findViewById(R.id.list_button));\n return true;\n } else {\n return false;\n }\n }\n });\n }", "private void setupListView() {\n //Main and Description are located in the strings.xml file\n String[] title = getResources().getStringArray(R.array.Main);\n String[] description = getResources().getStringArray(R.array.Description);\n SimpleAdapter simpleAdapter = new SimpleAdapter(this, title, description);\n listview.setAdapter(simpleAdapter);\n\n listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n switch(position){\n case 0: {\n //Intent means action (communication between two components of the app)\n Intent intent = new Intent(MainActivity.this, WeekActivity.class);\n startActivity(intent);\n break;\n }\n case 1: {\n Intent intent = new Intent(MainActivity.this, SubjectActivity.class);\n startActivity(intent);\n break;\n }\n case 2: {\n Intent intent = new Intent(MainActivity.this, FacultyActivity.class);\n startActivity(intent);\n break;\n }\n case 3: {\n break;\n }\n default:{\n break;\n }\n }\n }\n });\n }", "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t \n\t }", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "public interface OnItemClickListenter {\n void onItemClickListener(View view, int position);\n}", "public void onListItemClick(ListView l, \n\t\t\tView v, int position, long id) {\n\t}", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n \t\n \t\n }", "private void initListView() {\n listView = (ListView) findViewById(R.id.lv_pingpai_listview);\r\n pingpaiList = new ArrayList<>();\r\n adapter = new PingpaiAdapter(this, pingpaiList);\r\n listView.setAdapter(adapter);\r\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n Pingpai pingpai = (Pingpai) adapter.getItem(position);\r\n Intent intent = new Intent(PingpaiActivity.this, XinghaoActivity.class);\r\n intent.putExtra(\"pingpai\", pingpai);\r\n startActivity(intent);\r\n finish();\r\n\r\n }\r\n });\r\n// sortListView.setmOnTouchListener(new SortListView.OnTouchListener() {\r\n// @Override\r\n// public void onTouch(String s) {\r\n// Integer index = adapter.getPosition(s);\r\n// if (index != null) {\r\n// listView.setSelection(index);\r\n// }\r\n// }\r\n// });\r\n// listView.setAdapter(adapter);\r\n }", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpulllist();\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "public void setListener(ListView lv) {\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n // Start the CAB using the ActionMode.Callback defined above\n showModal(position);\n view.setSelected(true);\n }\n });\n\n }", "public interface onItemClickListenter {\n void setOnItemClickListener(int position);\n}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\tlist.add(et.getText().toString());\n\t\t\tadd();\n\t\t}", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "private void setListenersOnListView() {\r\n\r\n // On click listener.\r\n searchResultsList.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n @Override\r\n public void onItemClick(AdapterView<?> arg00, View arg11,\r\n int arg22, long position) {\r\n\r\n handleSelectedItem((int) position);\r\n }\r\n\r\n });\r\n\r\n // On scroll listener.\r\n searchResultsList.setOnScrollListener(new OnScrollListener() {\r\n\r\n @Override\r\n public void onScrollStateChanged(AbsListView view, int scrollState) {\r\n\r\n if (scrollState == OnScrollListener.SCROLL_STATE_TOUCH_SCROLL) {\r\n\r\n AppUtils.hideKeyboard(activity);\r\n }\r\n }\r\n\r\n @Override\r\n public void onScroll(AbsListView view, int firstVisibleItem,\r\n int visibleItemCount, int totalItemCount) {\r\n\r\n }\r\n });\r\n }", "public void onList( View view )\n {\n Intent intent = new Intent( this, ThingListActivity.class );\n\n startActivity( intent );\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_my_lists);\n Button ViewList = (Button) findViewById(R.id.button3);\n Button ViewList1 = (Button) findViewById(R.id.button4);\n Log.d(tag, \"The onCreate() event\");\n\n ViewList.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent open = new Intent(MyLists.this, createList.class);\n startActivity(open);\n\n }\n });\n ViewList1.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Intent open2 = new Intent(MyLists.this, createList.class);\n startActivity(open2);\n }\n });\n }", "@Override\n public void onChanged(List<Movie> movies) {\n List<MovieListItem> movieListItems = new ArrayList<>();\n for (Movie movie : movies){\n movieListItems.add(\n new MovieListItem(\n movie,\n glide,\n context\n ).addListener(MovieCategoryListItem.this) // Add listener for click events\n );\n }\n\n\n\n\n }", "@Override\n public void onClick(View v) {\n mListener.onAddButtonClicked();\n }", "private void setupClickEvents() {\n ivAddNewCategory.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addNewCategory();\n }\n });\n }", "protected void setListener(){\r\n main_list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n activityStart(Constants.ACTIVITIES[position]);\r\n }\r\n });\r\n }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\n\t\t\t\t\t Log.i(\"MyListViewBase\", \"你点击了ListView条目\"+arg2);\n\t\t\t\t}", "public void populateListView() {\n\n\n }", "public interface OnRecordsItemClickListeners {\n void onRecordsItemClicked(int position);\n}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n public void onClick(View v) {\n clickListener.onItemClick(getAdapterPosition(), v, st_name.getText().toString(),\n st_phone.getText().toString());\n }", "void onItemClick(View view, int position);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlist = mdb.getselect_all_data(ed.getText().toString());\n\t\t\t\tMy_list_adapter adapter = new My_list_adapter(getApplicationContext(),\n\t\t\t\t\t\tlist);\n\t\t\t\tlv.setAdapter(adapter);\n\t\t\t}", "public interface ItemClickListener {\n void onItemClick(View view, int position, ArrayList<MakalaModel> list);\n }", "public interface OnItemClicklistner {\n\n void onItemClick(View v, int position);\n }", "public void onItemClick(View view, int position);", "private void customSellerItemsListLoadAdapter(){\n CustomItemsListViewAdapter adapter = new CustomItemsListViewAdapter(this, itemName,\n imageURL, originalPrice, discountPrice, expiryDate);\n list = (ListView) findViewById(R.id.seller_items_listview);\n list.setAdapter(adapter);\n\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.d(\"On Item Click\", \"sdcscs\");\n if ( p!= null ){\n showPopup(SellerItemsListActivity.this, p);\n }\n }\n });\n }", "private void registerCliclCallback() {\n\t\t\n\t\tListView list=(ListView)findViewById(R.id.listView1);\n\t\t\n\t\tlist.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tif(arg2==0)\n\t\t\t\t{\n\t\t\t\t\tIntent i=new Intent(setting.this,options.class);\n\t\t\t\t\tstartActivity(i);\t\n\t\t\t\t}\n\t\t\t\tif(arg2==1)\n\t\t\t\t{\n\t\t\t\t\tIntent i=new Intent(setting.this,help.class);\n\t\t\t\t\tstartActivity(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(arg2==2)\n\t\t\t\t{\n\t\t\t\t\tIntent i=new Intent(setting.this,aboutus.class);\n\t\t\t\t\tstartActivity(i);\n\t\t\t\t}\n\t\t\t\tif(arg2==3)\n\t\t\t\t{\n\t\t\t\t\tfinish();\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public interface ListItemClickListener {\n void onListITemClicked(int clickedItemIndex);\n}", "public static void setOnListSimpleItemClick(PersonalEvents.OnListViewItemClick listener)\n {\n ListenerSimple = listener;\n }", "public interface ListItemClickListener {\n void onListItemClick();\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n protected void setListener() {\n left.setOnClickListener(this);\n layout.setOnStartListener(new OnStartListener() {\n @Override\n public void onStartRefresh(XtomRefreshLoadmoreLayout v) {\n currentPage = 0;\n getList(currentPage.toString(), tag);\n }\n\n @Override\n public void onStartLoadmore(XtomRefreshLoadmoreLayout v) {\n currentPage++;\n getList(currentPage.toString(), tag);\n }\n });\n mListView.setOnMenuItemClickListener(new SwipeMenuListView.OnMenuItemClickListener() {\n @Override\n public void onMenuItemClick(int position, SwipeMenu menu, int index) {\n switch (index) {\n case 0:\n getNetWorker().noticeSaveoperate(user.getToken(),\n notices.get(position).getId(), notices.get(position).getKeytype(), notices.get(position).getId(), \"3\");\n break;\n }\n }\n });\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (\"2\".equals(notices.get(position).getLooktype())) {\n if (\"7\".equals(notices.get(position).getKeytype()) || \"8\".equals(notices.get(position).getKeytype())) {\n Intent intent = new Intent(MyXiaoXi.this, NewsToPay.class);\n intent.putExtra(\"keyid\",notices.get(position).getKeyid());\n intent.putExtra(\"keytype\",notices.get(position).getKeytype());\n startActivity(intent);\n }\n } else {\n getNetWorker().noticeSaveoperate(user.getToken(),\n notices.get(position).getId(), notices.get(position).getKeytype(), notices.get(position).getId(), \"1\");\n }\n }\n });\n // set SwipeListener\n mListView.setOnSwipeListener(new SwipeMenuListView.OnSwipeListener() {\n\n @Override\n public void onSwipeStart(int position) {\n // swipe start\n }\n\n @Override\n public void onSwipeEnd(int position) {\n // swipe end\n }\n });\n }", "@Override\n public void onClick(View v) {\n buttonAddClicked();\n }", "private void inicializaListView(){\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlistener.clickDisplaylistMethod(position, item.getCategory()\n\t\t\t\t\t\t.getArrCookMethods());\n\t\t\t}", "private void setUpList() {\n\t\tRoomItemAdapter adapter = new RoomItemAdapter(getApplicationContext(),\n\t\t\t\trName, rRate);\n\t\tlistView.setAdapter(adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\thandleClick(position);\n\t\t\t}\n\t\t});\n\t}", "public interface ListItemCallBack {\r\n\r\n void onItemClick(View view, int position,Object... object);\r\n\r\n}", "public interface OnItemClickCallbackInterface {\n void onClickListItem(int position, int id, String qTitle);\n}", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n //Recipe recipe = recipes.get(position);\n mListener.onListInteraction(position, false);\n }", "private void initView() {\n listView = (ListView)findViewById(R.id.phonesListView);\n listView.setEmptyView(findViewById(R.id.emptyElement));\n adapter = new PhonesCursorAdapter(this,cursor,false);\n listView.setAdapter(adapter);\n listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);\n listView.setMultiChoiceModeListener(new AbsListView.MultiChoiceModeListener() {\n @Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\n }\n\n @Override\n public boolean onCreateActionMode(ActionMode mode, Menu menu) {\n MenuInflater menuInflater = mode.getMenuInflater();\n menuInflater.inflate(R.menu.list_menu,menu);\n return true;\n }\n\n @Override\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n return false;\n }\n\n @Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n switch (item.getItemId()){\n case R.id.deletePhones:\n deletePhones();\n return true;\n }\n return false;\n }\n\n @Override\n public void onDestroyActionMode(ActionMode mode) {\n\n }\n });\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Pobierz dane z bazy na temat wybranego obiektu i przekazuje do\n //kolejnej aktywnosci\n\n //pobieramy dane wybranego telefonu\n Cursor cursor = ResolverHelper.getData((int) id, MainListaActivity.this.getContentResolver());\n Bundle bundle = new Bundle();\n while(cursor.moveToNext()){\n bundle.putString(Constants._ID,cursor.getString(0));\n bundle.putString(Constants.PRODUCENT,cursor.getString(1));\n bundle.putString(Constants.MODEL_NAME,cursor.getString(2));\n bundle.putString(Constants.ANDR_VER,cursor.getString(3));\n bundle.putString(Constants.WWW,cursor.getString(4));\n }\n cursor.close();\n Intent intent = new Intent(MainListaActivity.this,PhoneActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }\n });\n }", "public void onClickListviewEvent() {\r\n OnItemClickListener itemClickListener = new OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View container,\r\n int position, long id) {\r\n LinearLayout LL0 = (LinearLayout) container;\r\n\r\n // Getting the inner Linear Layout\r\n LinearLayout LL1 = (LinearLayout) LL0.getChildAt(0);\r\n RelativeLayout RL0 = (RelativeLayout) LL1.getChildAt(0);\r\n LinearLayout LL2 = (LinearLayout) RL0.getChildAt(0);\r\n RelativeLayout RL1 = (RelativeLayout) LL2.getChildAt(0);\r\n // Getting the Country TextView\r\n TextView busNum = (TextView) RL1.getChildAt(2);\r\n TextView Direction = (TextView) RL1.getChildAt(0);\r\n final String busCode = busNum.getText().toString();\r\n final String busDirection = Direction.getText().toString();\r\n // Log.d(\"LoginStatus\", Boolean.toString(Logined));\r\n Log.d(\"BusNumber\", busCode);\r\n Log.d(\"Direction\", busDirection);\r\n Intent intent1 = new Intent(getApplication(), BusDetail.class);\r\n intent1.putExtra(\"busNum\", busCode);\r\n intent1.putExtra(\"Direction\", busDirection);\r\n startActivity(intent1);\r\n\r\n\t\t\t\t/*\r\n * Intent intent1 = new\r\n\t\t\t\t * Intent(getApplication(),ChatActivity.class);\r\n\t\t\t\t * //intent1.putExtra(\"\", value); startActivity(intent1);\r\n\t\t\t\t */\r\n\r\n }\r\n\r\n };\r\n lv.setOnItemClickListener(itemClickListener);\r\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t}", "public void setUpViews(){\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // ListView Clicked item index\n Intent i = new Intent(getActivity(), MediaDetailActivity.class);\n Media media = lectures.get(position);\n i.putExtra(\"url\", media.getUrl());\n i.putExtra(\"type\", media.type);\n i.putExtra(\"author\", media.author);\n i.putExtra(\"author_image_url\", media.getImageUrl());\n i.putExtra(\"name\", media.getName());\n startActivity(i);\n }\n });\n }", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n public void onClick(View v) {\n\n listener.onItemClick(getAdapterPosition(),v);\n }", "public interface ListItemClickListener {\n void onListItemClick(int clickedIndex);\n }", "@Override\n public void onClick(View v) {\n //getAdapterPosition() get's an Integer based on which the position of the current\n //ViewHolder (this) in the Adapter. This is how we get the correct Data.\n ListItem listItem = listOfData.get(\n this.getAdapterPosition()\n );\n\n controller.onListItemClick(\n listItem,\n v\n );\n\n }", "void onItemClick(int position);", "void addListDataListener(ListDataListener listener);", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "void onItemClickListener(View view, int postion);", "private void initListView() {\n\t\trefreshListItems();\n\n\t\t/* Add Context-Menu listener to the ListView. */\n\t\tlv.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCreateContextMenu(ContextMenu menu, View v,\n\t\t\t\t\tContextMenu.ContextMenuInfo menuInfo) {\n\t\t\t\tmenu.setHeaderTitle(((TextView) ((AdapterView.AdapterContextMenuInfo) menuInfo).targetView)\n\t\t\t\t\t\t.getText());\n\t\t\t\tmenu.add(0, CONTEXTMENU_EDITITEM, 0, \"Edit this VDR!\");\n\t\t\t\tmenu.add(0, CONTEXTMENU_DELETEITEM, 0, \"Delete this VDR!\");\n\t\t\t\t/* Add as many context-menu-options as you want to. */\n\n\t\t\t}\n\t\t});\n\t}", "public interface NotifyItemClicked {\r\n\r\n public void onUsernameCLicked(int position);\r\n public void onNotifyCLicked(int position);\r\n public void onDeleteCLicked(int position);\r\n}", "private void setListeners() {\n btnSearch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n searchAddress();\n }\n });\n\n lvResult.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(MainActivity.this, MapActivity.class);\n intent.putExtra(RESULT_KEY, geocodingResult);\n intent.putExtra(SELECTED_POSITION_KEY, position);\n startActivity(intent);\n }\n });\n }", "void onListFragmentInteraction(String item);", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n Log.i(\"LoaderCustom\", \"Item clicked: \" + id);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onClick(View v) {\n\n final ListModel LM = new ListModel();\n LM.strMainAsset=\"images/custom/custom_main.png\";\n LM.strListName=((EditText)V.findViewById(R.id.edit_list_create_name)).getText().toString();\n LM.strRowThImage=\"images/custom/custom_th.png\";\n LM.strRowImage=null;\n \n// LM.strRowBGImage=\"images/custom/custom_content.png\";\n\n ListItemRowModel LIM=new ListItemRowModel(AppState.getInstance().CurrentProduct.strId);\n\n LM.items.add(LIM);\n\n //add it to my lists\n AppState.getInstance().myList.items.add(LM);\n\n //set the title\n ((TextView)V.findViewById(R.id.text_list_add_create)).setText(\"List Created!\");\n\n\n\n //show the created layout\n LinearLayout layoutCreated=(LinearLayout)V.findViewById(R.id.layout_add_list_created);\n layoutCreated.setVisibility(View.VISIBLE);\n layoutCreated.setAlpha(0f);\n layoutCreated.animate().alpha(1).setDuration(300);\n\n\n //hide the form\n V.findViewById(R.id.layout_create_form).setVisibility(View.GONE);\n\n //set the propper title\n ((TextView)V.findViewById(R.id.text_list_created)).setText(LM.strListName);\n\n //set public or not\n if(!((CheckBox)V.findViewById(R.id.checkbox_add_list_create)).isChecked())\n ((TextView) V.findViewById(R.id.text_list_created_public)).setText(\"This list is public\");\n else\n ((TextView) V.findViewById(R.id.text_list_created_public)).setText(\"This list is private\");\n\n\n V.findViewById(R.id.btn_view_created).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismiss();\n\n AppState.getInstance().CurrentList=LM;\n ListViewFragment listViewFragment= new ListViewFragment();\n\n Bundle args = new Bundle();\n args.putInt(ListFragment.ARG_PARAM1, R.layout.layout_list);\n args.putString(ListFragment.ARG_PARAM2, \"list\");\n listViewFragment.setArguments(args);\n\n ((MainActivity)getActivity()).setFragment(listViewFragment, FragmentTransaction.TRANSIT_FRAGMENT_OPEN,false);\n }\n });\n\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_item_view);\n\n //obtain button and attach press listener to it\n Button addItem = (Button) findViewById(R.id.add_item);\n addItem.setOnClickListener(this);\n }", "private void populateListView() {\n\t\tappList = getPackages();\n\t\tListView lv = (ListView) findViewById(R.id.TheListView);\n\t\tList<String> appNames = new ArrayList<String>();\n\t\tList<Drawable> appIcons = new ArrayList<Drawable>();\n\t\tfor(PInfo pi : appList){\n\t\t\tappNames.add(pi.getAppname());\n\t\t\tappIcons.add(pi.getIcon());\n\t\t}\n\t\tCustomListViewAdapter adapter = new CustomListViewAdapter(this, R.layout.app_name_icon, appNames.toArray(new String[appNames.size()]),appIcons.toArray(new Drawable[appIcons.size()]));\n\t\tlv.setAdapter(adapter);\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\tToast.makeText(GetAppActivity.this, \"You Chose\"+appList.get(position).appname, Toast.LENGTH_SHORT).show();\n\t\t\t\tif(appList.get(position).toOpen!=null){\n\t\t\t\tgridModel.addIntent(appList.get(position).toOpen);\n\t\t\t\tstartActivity(appList.get(position).toOpen);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "public void onClick(View v) {\n\t\tif(listener != null){\r\n\t\t\tlistener.onItemClick(v, mJson);\r\n\t\t}\r\n\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}" ]
[ "0.7266589", "0.7222719", "0.7196306", "0.6848097", "0.6790486", "0.6694531", "0.66474825", "0.66473544", "0.65468", "0.6524921", "0.6502808", "0.6479914", "0.64783436", "0.6463967", "0.6459817", "0.6451286", "0.64496356", "0.64439297", "0.6433884", "0.6379921", "0.63670325", "0.6349155", "0.6348133", "0.63426024", "0.63077945", "0.62977266", "0.62921107", "0.6291996", "0.6291973", "0.62845033", "0.6280212", "0.6275475", "0.6261499", "0.6248658", "0.6246154", "0.623971", "0.62199885", "0.62109065", "0.62098473", "0.62046087", "0.62036693", "0.6199336", "0.6193396", "0.6187086", "0.61843234", "0.6178236", "0.6177654", "0.61767554", "0.6169407", "0.61686796", "0.61602867", "0.6157372", "0.615691", "0.6147553", "0.613875", "0.61382955", "0.611935", "0.61113507", "0.6100543", "0.6099492", "0.6079838", "0.60769856", "0.606359", "0.6051584", "0.6049348", "0.60480344", "0.60427725", "0.604254", "0.6041199", "0.60400915", "0.60388136", "0.60314983", "0.602743", "0.60260075", "0.60260075", "0.60195166", "0.60130155", "0.60113776", "0.60054594", "0.6005438", "0.5990497", "0.59878063", "0.5980644", "0.5979272", "0.59790117", "0.5976412", "0.59694433", "0.5968852", "0.5968852", "0.5968852", "0.5966282", "0.59636325", "0.5960981", "0.59603137", "0.59573776", "0.5954132", "0.59538895", "0.5952889", "0.5951452", "0.5951107" ]
0.6901649
3
set listview click listener
public AdapterView.OnItemClickListener ClickListener() { return new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) { Context context = getBaseContext(); // go to the clicked collection Intent intent = new Intent(context, CollectionViewActivity.class); intent.putExtra("Collection", (String) parent.getItemAtPosition(position)); intent.putExtra("FriendID", friendID); context.startActivity(intent); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onListClick();", "public void onListItemClick( ListView l, View v, int position, long id )\n {\n }", "private void clickcallback() {\n final ListView listView = findViewById(R.id.listViewCollections);\n\n listView.setOnItemClickListener(ClickListener());\n\n if (friendID == null) {\n listView.setOnItemLongClickListener(LongClickListener());\n }\n }", "protected void setListener(){\r\n main_list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n activityStart(Constants.ACTIVITIES[position]);\r\n }\r\n });\r\n }", "private void SetListViewClickListener()\n {\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n String _title = titles.get(position);\n String _author= authors.get(position);\n String _date = publishDates.get(position);\n\n Intent intent = new Intent(MainActivity.this, ArticleDetails.class);\n intent.putExtra(\"KEY_DATE\", _title);\n intent.putExtra(\"KEY_AUTHOR\", _author);\n intent.putExtra(\"KEY_DATE\", _date);\n startActivity(intent);\n\n }\n });\n }", "@Override\r\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t \n\t }", "public void setListener(ListView lv) {\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n // Start the CAB using the ActionMode.Callback defined above\n showModal(position);\n view.setSelected(true);\n }\n });\n\n }", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n public void onListItemClicked(int position) {\n\n }", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n \t\n \t\n }", "public void onListItemClick(ListView l, \n\t\t\tView v, int position, long id) {\n\t}", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\n\t\t\t\t\t Log.i(\"MyListViewBase\", \"你点击了ListView条目\"+arg2);\n\t\t\t\t}", "protected void setListViewOnClickListener() {\n\n\t\tListView ingredientsLV = (ListView) findViewById(R.id.lv_Ingredients);\n\t\tregisterForContextMenu(ingredientsLV);\n\n\t\tingredientsLV.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// AS: launch editIngredientDialog with the position\n\t\t\t\teditIngredientDialog(position);\n\t\t\t}\n\t\t});\n\n\t}", "void onItemClickListener(View view, int postion);", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "public void onItemClick(View view, int position);", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "void onItemClick(int position);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlist = mdb.getselect_all_data(ed.getText().toString());\n\t\t\t\tMy_list_adapter adapter = new My_list_adapter(getApplicationContext(),\n\t\t\t\t\t\tlist);\n\t\t\t\tlv.setAdapter(adapter);\n\t\t\t}", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onItemClick(View view, int position);", "public static void setOnListSimpleItemClick(PersonalEvents.OnListViewItemClick listener)\n {\n ListenerSimple = listener;\n }", "@Override\n\tpublic void setUpListener() {\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAdapter.setIndex(position);\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\tif(litener != null){\n\t\t\t\t\tlitener.onItemClick(position, mAdapter.getListItem(position), view);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t}", "public interface OnListClickListener {\r\n /**\r\n * Called when a view has been clicked.\r\n * \r\n * @param v\r\n * The view that was clicked.\r\n */\r\n void onListClick();\r\n }", "public void listener (){\n //Find the view which shows the ListView\n ListView elements = (ListView) findViewById(R.id.list);\n\n // Set a click listener on that View\n elements.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n // The code in this method will be executed when the numbers View is clicked on.\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n // Create a new intent to open the {@link TracksActivity}\n Intent nowPlayingIntent = new Intent(TracksActivity.this, NowPlayingActivity.class);\n MusicsElement element = (MusicsElement) arg0.getItemAtPosition(position);\n nowPlayingIntent.putExtra(\"element\", element.getmSongName());\n nowPlayingIntent.putExtra(\"musicElement\", element);\n // Start the new activity\n startActivity(nowPlayingIntent);\n }\n });\n }", "public void onItemClick(View view, int position) {\n\n }", "public void onListItemClick(ListView list, View v, int position, long id)\n {\n Intent intent = new Intent(MainActivity.this, EventActivities.class);\n intent.putExtra(\"c\", position);\n startActivity(intent);\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n //Recipe recipe = recipes.get(position);\n mListener.onListInteraction(position, false);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "private void listner() {\n\t\tdocketList.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(int position) {\n }", "private void setupListViewListener() {\n\t\t\n\t\t// OnItemLongClick - show edit options\n\t\tlvItems.setOnItemLongClickListener(new OnItemLongClickListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long rowId) {\n\n\t\t\t\titemsAdapter.setSelectedPosition(position);\n\t\t\t\tif (itemsAdapter.getSelectedPosition() == -1)\n\t\t\t\t\tgetActionBar().hide();\n\t\t\t\telse {\n\t\t\t\t\tgetActionBar().setDisplayShowHomeEnabled(false);\n\t\t\t\t\tgetActionBar().show();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t});\n\t\t// OnItemClick - Open Detail Screen\n\t\tlvItems.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long rowId) {\n\t\t\t\titemsAdapter.unsetSelectedPosition();\n\t\t\t\tgetActionBar().hide();\n\t\t\t\tIntent i = new Intent(TodoActivity.this, EditItemActivity.class);\n\t\t\t\ti.putExtra(\"position\", position);\n\t\t\t\tTodoItem item = (TodoItem) parent.getItemAtPosition(position);\n\t\t\t\ti.putExtra(\"item\", item);\n\t\t\t\tstartActivityForResult(i, REQUEST_CODE);\n\n\t\t\t}\n\n\t\t});\n\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "private void registerListClickCallBack() {\n\t\t\n\t\tListView myList = (ListView)findViewById(R.id.listViewFromDB);\n\t\tmyList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View viewClicked,\n\t\t\t\t\tint position, long idInDB) {\n\t\t\t\t\n\t\t\t\tupdateItemForId(idInDB);\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t\t\tif(position==0)\n\t\t\t{\n\t\t\t\tIntent clickedIntent = new Intent(\"com.myeee.Admins\");\n\t\t\t\tstartActivity(clickedIntent);\n\t\t\t}\n\t\t\telse if(position==1)\n\t\t\t{\n\t\t\t\tIntent clickedIntent = new Intent(\"com.myeee.EventContacts\");\n\t\t\t\tstartActivity(clickedIntent);\n\t\t\t}\n\t\t\telse if(position==2)\n\t\t\t{\n\t\t\tIntent clickedIntent = new Intent(\"com.myeee.Workshops\");\n\t\t\tstartActivity(clickedIntent);\n\t\t\t}\n\t}", "public void onClickListviewEvent() {\r\n OnItemClickListener itemClickListener = new OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View container,\r\n int position, long id) {\r\n LinearLayout LL0 = (LinearLayout) container;\r\n\r\n // Getting the inner Linear Layout\r\n LinearLayout LL1 = (LinearLayout) LL0.getChildAt(0);\r\n RelativeLayout RL0 = (RelativeLayout) LL1.getChildAt(0);\r\n LinearLayout LL2 = (LinearLayout) RL0.getChildAt(0);\r\n RelativeLayout RL1 = (RelativeLayout) LL2.getChildAt(0);\r\n // Getting the Country TextView\r\n TextView busNum = (TextView) RL1.getChildAt(2);\r\n TextView Direction = (TextView) RL1.getChildAt(0);\r\n final String busCode = busNum.getText().toString();\r\n final String busDirection = Direction.getText().toString();\r\n // Log.d(\"LoginStatus\", Boolean.toString(Logined));\r\n Log.d(\"BusNumber\", busCode);\r\n Log.d(\"Direction\", busDirection);\r\n Intent intent1 = new Intent(getApplication(), BusDetail.class);\r\n intent1.putExtra(\"busNum\", busCode);\r\n intent1.putExtra(\"Direction\", busDirection);\r\n startActivity(intent1);\r\n\r\n\t\t\t\t/*\r\n * Intent intent1 = new\r\n\t\t\t\t * Intent(getApplication(),ChatActivity.class);\r\n\t\t\t\t * //intent1.putExtra(\"\", value); startActivity(intent1);\r\n\t\t\t\t */\r\n\r\n }\r\n\r\n };\r\n lv.setOnItemClickListener(itemClickListener);\r\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "private void registerListClicks(){\n //Gets list element\n ListView list = findViewById(R.id.transaction_list);\n //Sets onclick listener\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Gets the relevant view\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n Log.i(\"LoaderCustom\", \"Item clicked: \" + id);\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this,List_view.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\t\t\tpublic void onItemListViewClick(AdapterView<?> adapterView, View v,\n int pos, long resid)\n\t\t\t{\n\t\t\t\tLog.e(\"\", \"\"+pos);\n\t\t\t\t\n\t\t\t\tListEntry listEntry = (ListEntry) adapterView.getAdapter().getItem(pos);\n\t\t\t\tFragmentHelper.showDetailFragment(listEntry, Tab3Fragment.this.getActivity());\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n posicion_click = position;\n Intent intent = new Intent(getActivity(),select.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\n\t\tIntent intent = new Intent(this, demos[position].demoActivityClass);\n\t\tstartActivity(intent);\n\t}", "@Override\n public void onItemClick(View view, int position){\n }", "@Override\n\tprotected void setListener() {\n\t\tsw_lv_searchschedule.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t\tif (BIntentObj.isGetClass == 1) {// 不能查看项目课表查询的数据\n\n\t\t\t\t} else {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif (list.get(arg2 - 1).get(\"TYPE\").equals(\"2\")) {//\n\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\tintent.putExtra(\"projectid\",\n\t\t\t\t\t\t\t\tlist.get(arg2 - 1).get(\"Id\"));\n\t\t\t\t\t\tintent.setClass(SearchScheduleActivity.this,\n\t\t\t\t\t\t\t\tSearchScheduleDetailActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\r\n\t\t\tlong id) {\n\r\n\t}", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, ListViewActivity.class);\n startActivity(intent);\n\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n\n listener.onItemClick(getAdapterPosition(),v);\n }", "@Override\n public void onClick(View v) {\n clickListener.onItemClick(getAdapterPosition(), v, st_name.getText().toString(),\n st_phone.getText().toString());\n }", "@Override\n public void onClick(View v) {\n //getAdapterPosition() get's an Integer based on which the position of the current\n //ViewHolder (this) in the Adapter. This is how we get the correct Data.\n ListItem listItem = listOfData.get(\n this.getAdapterPosition()\n );\n\n controller.onListItemClick(\n listItem,\n v\n );\n\n }", "public void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\r\n\t\t\tindex = position;\r\n\t\t\tsour = paths.get(position);\r\n\t\t finish();\r\n\t\t\r\n\t}", "public interface ListListener {\n public void OnClick(int itemPosition);\n}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n protected void onListItemClick(ListView listView, View view, int position, long id) {\n Intent intent = new Intent(MedicalTestListActivity.this, mSamples[position].getActivityClass());\n intent.putExtra(\"medical_test\", mSamples[position].getTitle());\n intent.putExtra(\"patient_name\", patient.getName());\n startActivity(intent);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position, ArrayList<MakalaModel> list);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmAdapter.setIndex(position);\n\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\tif(litener != null){\n\t\t\t\t\tlitener.onItemClick(position, mAdapter.getListItem(position), view);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\t\n\t}", "private void initListView() {\n listView = (ListView) findViewById(R.id.lv_pingpai_listview);\r\n pingpaiList = new ArrayList<>();\r\n adapter = new PingpaiAdapter(this, pingpaiList);\r\n listView.setAdapter(adapter);\r\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n Pingpai pingpai = (Pingpai) adapter.getItem(position);\r\n Intent intent = new Intent(PingpaiActivity.this, XinghaoActivity.class);\r\n intent.putExtra(\"pingpai\", pingpai);\r\n startActivity(intent);\r\n finish();\r\n\r\n }\r\n });\r\n// sortListView.setmOnTouchListener(new SortListView.OnTouchListener() {\r\n// @Override\r\n// public void onTouch(String s) {\r\n// Integer index = adapter.getPosition(s);\r\n// if (index != null) {\r\n// listView.setSelection(index);\r\n// }\r\n// }\r\n// });\r\n// listView.setAdapter(adapter);\r\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}" ]
[ "0.7761464", "0.77604425", "0.76839465", "0.7554255", "0.7551858", "0.7521025", "0.74836284", "0.7464203", "0.7447137", "0.7444249", "0.74440634", "0.73962414", "0.738254", "0.7339497", "0.73140365", "0.7244767", "0.7244767", "0.72203004", "0.72002834", "0.719134", "0.71892995", "0.7178221", "0.71661043", "0.71601987", "0.7157021", "0.7124206", "0.7112932", "0.71075064", "0.71050304", "0.710334", "0.70988923", "0.7091088", "0.7066861", "0.70324844", "0.70312965", "0.7020519", "0.7020519", "0.7020519", "0.7020519", "0.7020519", "0.7019387", "0.7013879", "0.70127344", "0.70127344", "0.70127344", "0.7008157", "0.69969344", "0.6976613", "0.6976613", "0.69692117", "0.69692117", "0.6967162", "0.69604665", "0.69602895", "0.69602895", "0.69516575", "0.69459707", "0.69360596", "0.69356996", "0.693164", "0.693164", "0.6930107", "0.6930103", "0.69193363", "0.6908661", "0.69048023", "0.69044876", "0.69038564", "0.6895703", "0.68727344", "0.6866037", "0.6866037", "0.6864244", "0.6862275", "0.6862275", "0.6857971", "0.68520796", "0.68476903", "0.6841502", "0.68405557", "0.68338853", "0.6826517", "0.68213314", "0.681569", "0.6813757", "0.67992127", "0.67938185", "0.67935914", "0.6793219", "0.678992", "0.67886734", "0.6785327", "0.67827153", "0.67714083", "0.6770602", "0.67632896", "0.67593384", "0.67484176", "0.6747957", "0.6747935", "0.6747935" ]
0.0
-1
set listview longclick listener
public AdapterView.OnItemLongClickListener LongClickListener() { return new AdapterView.OnItemLongClickListener() { @Override public boolean onItemLongClick(final AdapterView<?> parent, View viewClicked, final int position, long id) { // make an alert dialog AlertDialog.Builder builder = new AlertDialog.Builder(CollectionsActivity.this); builder.setMessage("Delete this collection?"); // delete the collection if the user wants it builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // delete the collection dbManager.deleteCollectionFromDB((String) parent.getItemAtPosition(position)); } }); builder.setNegativeButton("NO!", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { } }); AlertDialog dialog = builder.create(); dialog.show(); return true; } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onItemLongClickListener(View view, int postion);", "@Override\n public void onLongItemClick(View view, int position) {\n }", "void onListInteraction(int index, boolean isLongClicked);", "@Override\r\n\t\t\tpublic boolean onItemLongClick( AdapterView<?> parent, View view, int position, long id ) {\r\n\t\t\t\tListView listView = (ListView) parent;\r\n\t\t\t\tListAdapter listAdapter = listView.getAdapter();\r\n\t\t\t\tObject obj = listAdapter.getItem( position );\r\n\t\t\t\t\r\n\t\t\t\tif( obj != null && obj instanceof View.OnLongClickListener ) {\r\n\t\t\t\t\tView.OnLongClickListener longListener = (View.OnLongClickListener) obj;\r\n\t\t\t\t\treturn longListener.onLongClick( view );\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}", "@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tlstv.setLongClickable(true);\n\t\t\t\tview.setSelected(true);\n\t\t\t\tview.setPressed(true);\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\t\t\t\tpublic void onItemLongClick(View view, int position) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onItemLongClick(View view, int position) {\n }", "public void setOnItemLongClickListener(OnItemLongClickListener listener){\n this.listener = listener;\n }", "@Override\n public void onItemLongClick(int position, View v) {\n }", "@Override\n public void onLongClick(View view, int position) {\n }", "@Override\n public void onItemLongClick(View view, int position) {\n\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> adapterView, View view, int i, long l) {\n return true;\n }", "@Override\n public boolean onLongClick(View v) {\n longClickListener.onItemLongClicked(getAdapterPosition());\n return true;\n }", "public void setOnItemLongClickListener(OnItemLongClickListener listener) {\n this.mItemLongClickListener = listener;\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position,\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong id) {\n\t\t\t\t\t\t\t\t\t\t\tLoger.d(\"test4\", \"baoxiu longclick\");\r\n//\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t}", "private void listOnItemLongclick() {\n\t\tmlvWifi.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinal String ssid = mListWifi.get(arg2).get(\"ssid\").toString();\n\t\t\t\t//final boolean password = mListWifi.get(arg2).get(\"password\");\n\t\t\t\tfinal boolean password = Boolean.valueOf(mListWifi.get(arg2).get(\"password\").toString());\n\t\t\t\tLog.i(\"pss\",\"me click item\");\n\t\t\t\tcreateDialog(ssid,password);\n\t\t\t}\n\t\t});\n\t}", "public void onListItemClick( ListView l, View v, int position, long id )\n {\n }", "@Override\n public boolean onLongClick(View v) {\n longClickListener.onItemLongClicked(getBindingAdapterPosition());\n return true;\n }", "private void clickcallback() {\n final ListView listView = findViewById(R.id.listViewCollections);\n\n listView.setOnItemClickListener(ClickListener());\n\n if (friendID == null) {\n listView.setOnItemLongClickListener(LongClickListener());\n }\n }", "@Override\n\tpublic boolean onLongClick(View v) {\n\t\tif (mOnItemLongClickListener != null) {\n\t\t\t// 注意这里使用getTag方法获取数据\n\t\t\tmOnItemLongClickListener.onItemLongClick(v, (Integer) v.getTag());\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n mActionMode = MainActivity.this.startActionMode(MainActivity.this);\r\n toggleViewSelection(view, id, position);\r\n return true;\r\n }", "@Override\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t String message = \"Long Click Performed\";\n\t\t Toast.makeText(AddExpense.this, message,\n\t\t Toast.LENGTH_LONG).show();\n\n\t\t\t\t\treturn true;\n\t\t\t\t}", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view,\n final int datposition, long arg3) {\n listfeed.setEnabled(false);\n\n //on long click we create a new alert dialog\n AlertDialogWrapper.Builder alert = new AlertDialogWrapper.Builder(\n ListActivity.this);\n\n alert.setTitle(R.string.deletedialogtitle);\n alert.setMessage(getResources().getString(R.string.deletedialogquestion) + \" '\" + mFeeds.get(datposition) + \"' ?\");\n alert.setPositiveButton(R.string.deleteok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n //on positive click we delete the feed from selected position\n\n //we're gonna delete them from the db calling this method:\n removedatFeed(datposition);\n\n //enable ListView clicks\n listfeed.setEnabled(true);\n\n }\n });\n\n //when You select by long clicking a feed the ListView becomes disabled to avoid unwanted clicks\n alert.setOnCancelListener(\n new DialogInterface.OnCancelListener() {\n\n @Override\n public void onCancel(DialogInterface dialog) {\n\n //enable ListView clicks\n listfeed.setEnabled(true);\n\n }\n }\n\n );\n\n //on negative button we dismiss the dialog\n alert.setNegativeButton(R.string.deleteno, new DialogInterface.OnClickListener()\n\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n //dismiss the dialog\n dialog.dismiss();\n\n //enable ListView clicks\n listfeed.setEnabled(true);\n\n }\n });\n\n alert.show();\n return false;\n }", "@Override\n\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\tint arg2, long arg3) {\n\t\t\treturn false;\n\t\t}", "@Override\n public void onRowLongClicked(int position) {\n }", "@Override\r\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemLongClick(CardItemView view, int position) {\n\t\t\t\t\n\t\t\t}", "public interface OnItemLongClickListener{\n void onItemLongClick(SegundaRevision_Docente segundaRevision_docente);\n }", "@Override\n\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\treturn true;\n\t}", "public abstract void executeLongPressListView(PokemonApp app, Activity context, int pos);", "public void onListItemClick(ListView l, \n\t\t\tView v, int position, long id) {\n\t}", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n \t\n \t\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n //Recipe recipe = recipes.get(position);\n mListener.onListInteraction(position, false);\n }", "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t \n\t }", "public boolean onLongClick(View v) {\n isMulChoice = true;\n selectid.clear();\n layout.setVisibility(View.VISIBLE);\n for(int i=0;i<list.size();i++)\n {\n linelayout.setVisibility(View.INVISIBLE);\n adapter.visiblecheck.put(i, CheckBox.VISIBLE);\n }\n adapter = new AdapterRecord(context,list);\n listview.setAdapter(adapter);\n return true;\n }", "@Override\n public boolean onLongClick(View view) {\n return true;\n }", "@Override\n public boolean onLongClick(View view) {\n return true;\n }", "@Override\n public boolean onLongClick(View v) {\n return this.itemClickListener != null && this.itemClickListener.OnItemLongClick(v, index, this);\n }", "@Override\r\n\tpublic boolean onItemLongClick(AdapterView<?> parent, View view,\r\n\t\t\tint position, long id) {\n\t\treturn false;\r\n\t}", "@Override\n protected void handleLongClick() {\n }", "void onListClick();", "@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\treturn false;\n\t\t\t}", "private void setupListViewListener() {\n\t\t\n\t\t// OnItemLongClick - show edit options\n\t\tlvItems.setOnItemLongClickListener(new OnItemLongClickListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long rowId) {\n\n\t\t\t\titemsAdapter.setSelectedPosition(position);\n\t\t\t\tif (itemsAdapter.getSelectedPosition() == -1)\n\t\t\t\t\tgetActionBar().hide();\n\t\t\t\telse {\n\t\t\t\t\tgetActionBar().setDisplayShowHomeEnabled(false);\n\t\t\t\t\tgetActionBar().show();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t});\n\t\t// OnItemClick - Open Detail Screen\n\t\tlvItems.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long rowId) {\n\t\t\t\titemsAdapter.unsetSelectedPosition();\n\t\t\t\tgetActionBar().hide();\n\t\t\t\tIntent i = new Intent(TodoActivity.this, EditItemActivity.class);\n\t\t\t\ti.putExtra(\"position\", position);\n\t\t\t\tTodoItem item = (TodoItem) parent.getItemAtPosition(position);\n\t\t\t\ti.putExtra(\"item\", item);\n\t\t\t\tstartActivityForResult(i, REQUEST_CODE);\n\n\t\t\t}\n\n\t\t});\n\n\t}", "@Override\n public void onLongClick(String date, String time) {\n }", "@Override\n public void onLongClick(String date, String time) {\n\n }", "public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\tlong arg3) {\n\t\tclickFlag=1;\r\n\t\tToast.makeText(getApplicationContext(), \"Adding to read list\"+titleList.get(arg2), 2).show();\r\n\t\tReadListDatabase rldb=new ReadListDatabase(this);\r\n\t\trldb.open();\r\n\t\trldb.Insert(titleList.get(arg2), urlList.get(arg2));\r\n\t\trldb.close();\r\n\t\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean onLongClick(View view) {\n view.setOnTouchListener(new AppTouchListener());\n return false;\n }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\n\t\t\t\t\t Log.i(\"MyListViewBase\", \"你点击了ListView条目\"+arg2);\n\t\t\t\t}", "@Override\n\t\tpublic boolean OnLongClick(View view, int time) {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean OnLongClick(View view, int time) {\n\t\t\treturn false;\n\t\t}", "@Override\n public void onItemClickListener(View view, int posiotn, boolean isLongClick) {\n Intent detailsIntent = new Intent(FoodActivity.this, FoodDetailsActivity.class);\n detailsIntent.putExtra(\"foodId\", mFoodAdapter.getRef(posiotn).getKey());\n startActivity(detailsIntent);\n }", "public boolean onItemLongClick(final AdapterView<?> parent, final View view,\n final int position, final long id)\n {\n logEnter(LOG_TAG, \"onItemLongClick\", parent, view, position, id);\n\n final TextView item = (TextView) view;\n final SearchResultEntry e = entryMap.get(item.getText().toString());\n if (e != null)\n {\n final Intent i = new Intent(this, ListSearchResultsOptions.class);\n i.putExtra(ListSearchResultsOptions.BUNDLE_FIELD_ENTRY, e);\n startActivity(i);\n }\n\n return logReturn(LOG_TAG, \"onItemLongClick\", true);\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> arg0, View view,\n int pos, long id) {\n\n showPopupMenu(view, pos, id);\n\n return true;\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t}", "@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tonQuickLauncherLongClick(v);\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onLongSkillClick(int skill_id, int position) {\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n Cursor cursor = (Cursor) eventListview.getItemAtPosition(position);\n String EventoDelete = cursor.getString(cursor.getColumnIndexOrThrow(\"nomEvent\"));\n dbHelper.deleteEvent(EventoDelete);\n Toast.makeText(EventListActivity.this, \"Deleted \"+parent.getItemAtPosition(position).toString(), Toast.LENGTH_SHORT).show();\n DisplayEventListView();\n dataAdapter2.notifyDataSetChanged();\n return false;\n }", "protected boolean onLongListItemClick(View v, int pos, long id) {\n \tLog.i(\"onLongListItem\", \"id is:\" + id);\n \tIntent i = new Intent(getApplicationContext(), org.smap.smapTask.android.activities.TaskAddressActivity.class);\n i.putExtra(\"id\", id);\n if(userLocation != null) {\n \ti.putExtra(\"lon\", String.valueOf(userLocation.getLon()));\n \ti.putExtra(\"lat\", String.valueOf(userLocation.getLat()));\n }\n \tstartActivity(i);\n return true;\n }", "@Override\n public void onItemClickListener(View view, int posiotn, boolean isLongClick) {\n Intent detailsIntent = new Intent(FoodActivity.this, FoodDetailsActivity.class);\n detailsIntent.putExtra(\"foodId\", mSearchFoodAdapter.getRef(posiotn).getKey());\n startActivity(detailsIntent);\n }", "void onItemClickListener(View view, int postion);", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n Log.i(\"LoaderCustom\", \"Item clicked: \" + id);\n }", "public void setListener(ListView lv) {\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n // Start the CAB using the ActionMode.Callback defined above\n showModal(position);\n view.setSelected(true);\n }\n });\n\n }", "public void onLongClick(View v, Photo photo);", "@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Selected Text Is...\"+names[arg2]+\":\"+phones[arg2], 5000).show();\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n public boolean onLongClick(View view) {\n PopupMenu popup = new PopupMenu(view.getContext(), ((ToDoHolder) holder).mToDo);\n //inflating menu from xml resource\n popup.inflate(R.menu.popupmenu);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_delete:\n mToDoProviderFromDB.deleteToDoFromDB(mToDos.get(position).getToDoID());\n break;\n }\n return false;\n }\n });\n popup.show();\n return true;\n }", "public void addLongListSelectionListener(LongListSelectionListener x) {\n return;\r\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n storageGridViewAdapter.showCheckBox(true);\n onListItemSelect(position);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "private void longClickChild(final int index) {\n final View itemView = getChildAt(index);\n final int position = mFirstItemPosition + index;\n final long id = mAdapter.getItemId(position);\n final OnItemLongClickListener listener = getOnItemLongClickListener();\n if (listener != null) {\n listener.onItemLongClick(this, itemView, position, id);\n }\n }", "@Override\n public void onLongPress(MotionEvent e) {}", "@Override\n\t\tpublic void onLongPress(MotionEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\t public void onItemClick(AdapterView parent, View view,int position, long id) {\n\t\t\t\t\t \n\t\t\t\t\t ImageView iv = (ImageView) view.findViewById(R.id.iv_indicator);\n\t\t\t\t\t ImageView iv_off = (ImageView) view.findViewById(R.id.iv_indicator_unselected);\n\t\t\t\t\t \n\t\t\t\t\t if(!isLongClick){\n\t\t\t\t\t\t int mId = itemList.get(position).id;\n\t\t\t\t\t\t \n\t\t\t\t\t\t mCursor.moveToPosition(mId);\n\t\t\t\t\t\t Cursor c = mCursor;\n\t\t\t\t\t\t Intent intent = new Intent(activity, NewMemo.class);\n\t\t\t\t\t\t intent.putExtra(MemoDbAdapter.ROWID, mId);\n\t\t\t\t\t\t intent.putExtra(MemoDbAdapter.BODY, \n\t\t\t\t\t\t\t\t\tc.getString(c.getColumnIndexOrThrow(MemoDbAdapter.BODY)));\n\t\t\t\t\t\t intent.putExtra(MemoDbAdapter.CREATED, \n\t\t\t\t\t\t\t\t\tc.getString(c.getColumnIndexOrThrow(MemoDbAdapter.CREATED)));\n\t\t\t\t\t\t intent.putExtra(MemoDbAdapter.TIME, \n\t\t\t\t\t\t\t\t\tc.getString(c.getColumnIndexOrThrow(MemoDbAdapter.TIME)));\n\t\t\t\t\t\t intent.putExtra(MemoDbAdapter.ROWID, itemList.get(position).id);\n\t\t\t\t\t\t startActivityForResult(intent, GridList.ACTIVITY_EDIT);\n\t\t\t\t\t }else if(false){//longClickReleased){\n\t\t\t\t\t\t iv.setVisibility(View.GONE);\n\t\t\t\t\t\t iv_off.setVisibility(View.VISIBLE);\n\t\t\t\t\t }\n\t\t\t\t \t/*\n\t\t\t\t\n\t\t\t}else if(longClickReleased){\n\t\t\t\tif(selected.contains(row_id)){ \n\t\t\t\t\tselected.remove(row_id);\n\t\t\t\t\tiv.setVisibility(View.GONE);\n\t\t\t\t\tiv_off.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tselected.add(row_id);\n\t\t\t\t\tiv.setVisibility(View.VISIBLE);\n\t\t\t\t\tiv_off.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\t\t\t\t \t * \n\t\t\t\t \t */\n\t\t\t\t }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n getListView().setSelection(position);\n ((AlarmsListActivity) getActivity()).showTimePicker(mAdapter.getItem(position));\n }", "public interface ItemClickListener {\n void onClick (View view, int position, boolean isLongClick);\n}", "@Override\n public void onLongPress(MotionEvent e) {\n\n }", "@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tString number = listdata.get(position).getCallnumber();\n\t\t\t\tIntent detailsActInt = new Intent(MainActivity.this, ContactDetailsActivity.class);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_name\", contactname);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_number\", callnumber);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_call_id\", contact_call_id);\n\t\t\t\tstartActivity(detailsActInt);\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n\t\t\t\tpublic void onLongPress(MotionEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onLongPress(MotionEvent e) {\n\n }", "@Override\r\n public boolean onLongClick(int x, int y, int pointer, int button) {\r\n return true;\r\n }", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\n\t}", "@Override\n public void onLongPress(MotionEvent e) {\n }", "@Override\n public void onLongClick() {\n showAgendaView();\n }", "@Override\r\n public void onLongPress(MotionEvent e)\r\n {\n }", "public interface ItemClickListener {\n void onClick(View view, int position, boolean isLongClick);\n}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onLongPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onLongPress(MotionEvent arg0)\n\t\t\t{\n\t\t\t\t\n\t\t\t}", "public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n// **TELLS ARRAYLIST WHERE TO PASS DATA, ASSIGNING VARIABLES TO CLASSES(?)**\n arrayListMaster = new ArrayList<>();\n arrayAdapterMaster = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, arrayListMaster);\n listView = (ListView) findViewById(R.id.listView); //**LINKS LISTVIEW VARIABLE TO LISTVIEW IN LAYOUT\n listView.setAdapter(arrayAdapterMaster); //**INFORMS LISTVIEW VARIABLE WHICH ADAPTER TO PULL DATA FROM\n\n\n listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { //**SETS LONG CLICK LISTENER ON LIST\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n String pos = arrayAdapterMaster.getItem(position);\n arrayAdapterMaster.remove(pos); //**REMOVES ITEM FROM LONGCLICKED POSITION\n return true;\n }\n });\n\n// **CLICK TO MOVE TO ITEM LIST FOR LISTITEM CLICKED ON**\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView <?> parent, View view, int position, long id) {\n Intent intent = new Intent(MainActivity.this, todolistitem.class);\n intent.putExtra(\"position\", position);\n String listHeader = arrayListMaster.get(position);\n intent.putExtra(\"skeletonKey\", listHeader);\n startActivity(intent);\n }\n\n\n });\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n paciente = (Paciente) parent.getItemAtPosition(position);\n return false;\n }", "@Override\n public void onLongPress(MotionEvent e) {\n Log.d(TAG, \"onLongPress\");\n }", "@Override\n public void onItemLongClick(View view, int position) {\n SingleNewsPopupWindow singleNewsPopupWindow = new SingleNewsPopupWindow(getActivity(), Integer.parseInt(idList.get(position).toString()), mDatas);\n singleNewsPopupWindow.showPopupWindow(none);\n }", "@Override\r\n\tpublic void onLongPress(MotionEvent e) {\n\t\t\r\n\t}" ]
[ "0.81385106", "0.7795844", "0.7735406", "0.7721863", "0.77194935", "0.7609495", "0.75995123", "0.75757265", "0.7573722", "0.75244474", "0.74868405", "0.73840505", "0.7377323", "0.7340955", "0.7282415", "0.723373", "0.7214167", "0.7151711", "0.714973", "0.71437836", "0.7129473", "0.70747644", "0.70362025", "0.6999264", "0.69956976", "0.69612885", "0.6958535", "0.6931837", "0.6920629", "0.6904886", "0.68921626", "0.68657786", "0.6856187", "0.6850804", "0.6845749", "0.6845525", "0.6845525", "0.6785699", "0.6765753", "0.6758368", "0.6746992", "0.6744586", "0.6737728", "0.6736566", "0.6730034", "0.67230916", "0.6709968", "0.66970414", "0.6695712", "0.6695712", "0.66622794", "0.6658686", "0.665138", "0.66475165", "0.6641427", "0.66093063", "0.6607228", "0.65792906", "0.65725106", "0.6565198", "0.6564914", "0.6564839", "0.655456", "0.65367764", "0.65301955", "0.652824", "0.652795", "0.65238464", "0.6522702", "0.6522702", "0.6508474", "0.65057695", "0.65036625", "0.6501166", "0.64773375", "0.647188", "0.64639753", "0.645801", "0.6436989", "0.6434937", "0.6432161", "0.6425563", "0.6425563", "0.6425563", "0.6425563", "0.6425563", "0.6423645", "0.64188105", "0.6411313", "0.6399224", "0.639828", "0.639828", "0.639828", "0.639828", "0.639828", "0.6394129", "0.6392514", "0.63925123", "0.6390061", "0.63900346", "0.6389114" ]
0.0
-1
make an alert dialog
@Override public boolean onItemLongClick(final AdapterView<?> parent, View viewClicked, final int position, long id) { AlertDialog.Builder builder = new AlertDialog.Builder(CollectionsActivity.this); builder.setMessage("Delete this collection?"); // delete the collection if the user wants it builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // delete the collection dbManager.deleteCollectionFromDB((String) parent.getItemAtPosition(position)); } }); builder.setNegativeButton("NO!", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { } }); AlertDialog dialog = builder.create(); dialog.show(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }", "private void alert(String title, String msj){\n android.app.AlertDialog.Builder alertDialog = new android.app.AlertDialog.Builder(getActivity());\n alertDialog.setTitle(title);\n alertDialog.setMessage(msj);\n alertDialog.setPositiveButton(getString(R.string.alert_accept), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n alertDialog.show();\n }", "private void showAlert() {\n AlertDialog.Builder alert = new AlertDialog.Builder(this);\n alert.setMessage(\"Error al autenticar usuario\");\n alert.setPositiveButton(\"Aceptar\", null);\n AlertDialog pop = alert.create();\n alert.show();\n }", "void showAlert(String message);", "public void msgErreur(){\n \n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Entrée invalide\");\n alert.setHeaderText(\"Corriger les entrées invalides.\");\n alert.setContentText(\"Les informations entrées sont erronnées\");\n\n alert.showAndWait();\n \n\n}", "private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "public static void showAlert(String message, Activity context) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(message).setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n\n }\n });\n try {\n builder.show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private void showCheckDialog() {\n AlertDialog.Builder showAuditAlert = new AlertDialog.Builder(this); // Create Alert dialog\n showAuditAlert.setTitle(\"Total prize\"); // Set title\n showAuditAlert.setMessage(\"= \"+mydb.getResultDayAudit(year,month,day).intValue()+\"\"); // Set message\n\n showAuditAlert.setPositiveButton(\"Done\",\n new DialogInterface.OnClickListener()\n { // Can hear \"CLICK\"\n @Override\n public void onClick(DialogInterface dialog,int which)\n {\n \tdialog.dismiss(); // CLICK then disappear\n }\n }\n );\n showAuditAlert.show(); // Show dialog that created upper this line\n }", "@Override\n public void onClick(View v) {\n builder.setMessage(R.string.alertMessage)\n .setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //buClick();\n //finish();\n dialog.cancel();\n calculat();\n\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'NO' Button\n dialog.cancel();\n\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n //Setting the title manually\n alert.setTitle(R.string.alertTitle);\n alert.show();\n }", "private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void createAlertDialog(String msg) {\n\t\tAlertDialog.Builder alertbox = new AlertDialog.Builder(\n\t\t\t\tMainActivity.this);\n\t\talertbox.setTitle(\"Response Message\");\n\t\talertbox.setMessage(msg);\n\t\talertbox.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t// do something when the button is clicked\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t}\n\t\t});\n\t\talertbox.show();\n\t}", "@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}", "public AlertDialog createAlert(String title,String message) {\n Builder builder = new Builder(currentContext);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setCancelable(true);\n builder.setPositiveButton(ok, this.new OkOnClickListener());\n alertDialog = builder.create();\n alertDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n alertDialog.setCanceledOnTouchOutside(true);\n alertDialog.setCancelable(true);\n if (null != activity && !activity.isFinishing()) {\n alertDialog.show();\n }\n return alertDialog;\n }", "private Alert alert(String AlertText) {\n Alert alert = new Alert(ERROR, AlertText, OK);\n DialogPane dialogPane = alert.getDialogPane();\n dialogPane.getStylesheets().add(getClass().getResource(\"login.css\").toExternalForm());\n dialogPane.getStyleClass().add(\"myDialog\");\n alert.show();\n return alert;\n }", "public void alert(String message);", "public void CustomAlertSave2(String msg) {\n\t\tfinal Dialog dialog = new Dialog(context);\r\n\t\t// hide to default title for Dialog\r\n\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\t// inflate the layout dialog_layout.xml and set it as contentView\r\n\t\tLayoutInflater inflater = (LayoutInflater) context\r\n\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n\t\tView view = inflater.inflate(R.layout.dialog_layout, null, false);\r\n\t\tdialog.setCanceledOnTouchOutside(true);\r\n\t\tdialog.setContentView(view);\r\n\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\r\n\t\tTextView txtTitle = (TextView) dialog\r\n\t\t\t\t.findViewById(R.id.txt_alert_message);\r\n\t\ttxtTitle.setText(msg);\r\n\r\n\t\tButton btn_ok = (Button) dialog.findViewById(R.id.btn_ok);\r\n\t\tbtn_ok.setOnClickListener(new android.view.View.OnClickListener() {\r\n\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tdialog.dismiss();\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tdialog.show();\r\n\t}", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}", "private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }", "public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }", "private void alert(String title, String message) {\n UIAlertView alertView = new UIAlertView(title, message, null, \"OK\");\n alertView.show();\n }", "public void Report_User_alert(){\n final AlertDialog.Builder alert=new AlertDialog.Builder(context,R.style.DialogStyle);\n alert.setTitle(\"Report\")\n .setMessage(\"Are you sure to Report this user?\")\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n })\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Send_report();\n }\n });\n\n alert.setCancelable(true);\n alert.show();\n }", "void AlertaValidacion(String title, String message){\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(title);\n builder.setMessage(message).setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void alert(String txtMsg, final String action, final View btn_view)\n {\n LayoutInflater inflator = LayoutInflater.from(BookingDetailsActivity.this);\n final View yourCustomView = inflator.inflate(R.layout.custom_dialog, null);\n //endregion\n\n //region (2) init dialogue\n final AlertDialog dialog = new AlertDialog.Builder(BookingDetailsActivity.this)\n .setTitle(\"Do you want to proceed ?\")//replace w \"txtMsg\"\n .setView(yourCustomView)\n .create();\n //endregion\n\n //region (3) set onClicks for custom dialog btns\n yourCustomView.findViewById(R.id.btn_yes).setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n switch (action)\n {\n case \"save\":\n SaveAppoint(btn_view);\n break;\n case \"cancel\":\n CancelAppoint(btn_view);\n break;\n }\n }\n });\n yourCustomView.findViewById(R.id.btn_no).setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n dialog.dismiss();\n }\n });\n //endregion\n\n //region (4) Display dialogue\n dialog.show();\n //endregion\n }", "AlertDialog getAlertDialog();", "static void showAlert(final Context con, final String title, final String msg){\n \tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(con);\n \n\t\t\t// set title\n\t\talertDialogBuilder.setTitle(title);\n\t\talertDialogBuilder.setMessage(msg).setCancelable(true)\n\t\t\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\t\t @Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t // TODO Auto-generated method stub\n\t\t // Do something\n\t\t dialog.dismiss();\n\t\t }\n\t\t });\n\t\t\n\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\talertDialog.show();\n }", "DialogResult show();", "public void showAlert(String cadena, Context ctx){\n AlertDialog.Builder alertbox = new AlertDialog.Builder(ctx);\n //seleccionamos la cadena a mostrar\n alertbox.setMessage(cadena);\n alertbox.show();\n\n }", "private void showAlert(String msg) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(msg).setCancelable(false).setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }", "private void alertBox(String title, String message) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"GPS Anda tampaknya dinonaktifkan, apakah Anda ingin mengaktifkannya?\")\n .setCancelable(false)\n .setTitle(\"STATUS GPS\")\n .setPositiveButton(\n \"YA\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n /* this gonna call class of settings then dialog interface disappeared */\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n dialog.cancel();\n }\n }\n )\n .setNegativeButton(\"TIDAK\", new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n dialog.cancel();\n }\n }\n );\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public static void alert(String message) {\r\n\t Stage window = new Stage();\r\n\r\n\t // Blokira klikanje na druge povrsine sem pop-up\r\n\t window.initModality(Modality.APPLICATION_MODAL);\r\n\t window.setTitle(\"Alert\");\r\n\t window.setMinWidth(250);\r\n\t window.setMinHeight(100);\r\n\t \r\n\t // Label\r\n\t Label label = new Label();\r\n\t label.setText(message);\r\n\t Button closeButton = new Button(\"Close\");\r\n\t closeButton.setOnAction(e -> window.close());\r\n\r\n\t // Layout\r\n\t VBox layout = new VBox(10);\r\n\t layout.getChildren().addAll(label, closeButton);\r\n\t layout.setAlignment(Pos.CENTER);\r\n\r\n\t // Pop-up ostaje aktivan\r\n\t Scene scene = new Scene(layout);\r\n\t window.setScene(scene);\r\n\t window.showAndWait();\r\n\t }", "public void onClickShowAlert(View view) {\n AlertDialog.Builder myAlertBuilder = new\n AlertDialog.Builder(MainActivity.this);\n // Set the dialog title and message.\n myAlertBuilder.setTitle(\"Alert\");\n myAlertBuilder.setMessage(\"Click OK to continue, or Cancel to stop:\");\n // Add the dialog buttons.\n myAlertBuilder.setPositiveButton(\"OK\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User clicked OK button.\n Toast.makeText(getApplicationContext(), \"Pressed OK\",\n Toast.LENGTH_SHORT).show();\n }\n });\n myAlertBuilder.setNegativeButton(\"Cancel\", new\n DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // User cancelled the dialog.\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }\n });\n // Create and show the AlertDialog.\n myAlertBuilder.show();\n }", "private void showAlert(String status, String msg){\n android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(HostelRequestActivity.this)\n .setTitle(status)\n .setMessage(msg);\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n onBackPressed();\n }\n\n });\n //call api for insertion\n builder.setCancelable(false);\n android.app.AlertDialog alert = builder.create();\n alert.show();\n }", "public static void alert(String title, String message, AlertType a) {\r\n Alert alert = new Alert(a);\r\n alert.setTitle(title);\r\n alert.setHeaderText(null);\r\n alert.setContentText(message);\r\n //Optional<ButtonType> result = alert.showAndWait();\r\n alert.showAndWait();\r\n }", "public static void crearAlerta(String titulo,String mensaje){\n Alert alert=new Alert(Alert.AlertType.WARNING);\n alert.setHeaderText(null);\n alert.setTitle(titulo);\n alert.setContentText(mensaje);\n alert.showAndWait();\n }", "public void alert(View view){\n\n show(AppDialog.TAG_ALERT);\n }", "private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n //call qr scan intent\n Intent prefScreen = new Intent(TempMeasure.this, Preferences.class);\n startActivityForResult(prefScreen, 0);\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n return alert;\n }", "private void alert(String title, String msg) {\n if (title.isEmpty() || msg.isEmpty()) {\n return;\n }\n if (isFinishing()) {\n return;\n }\n new AlertDialog.Builder(this).setTitle(title).setMessage(msg)\n .setIcon(android.R.drawable.ic_dialog_info)\n .setNeutralButton(R.string.ok, null).show();\n }", "private void alertDialogBuilder(String message) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(message)\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\"Yes\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tdbHelper.clearResults();\n\t\t\t\t\t\t\t\tfillData();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "public static void alert(Alert alert) {\n alerter.alert(alert);\n }", "private void showAlert(String message) {\n //Builds an AlertDialog with message, title, if cancellable, and what the positive button does\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(message).setTitle(\"Response from Servers\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // do nothing\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n// String errorMessage = null;\n// try {\n// JSONObject arr = new JSONObject(message);\n// errorMessage = arr.getString(\"error\");\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n// Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_LONG).show();\n\n }", "private void showAlert(String message) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(message);\n builder.show();\n }", "public void alertForOuitMessage() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(context);\n final AlertDialog alert = builder.create();\n alert.getWindow().getAttributes().windowAnimations = R.style.alertAnimation;\n View view = alert.getLayoutInflater().inflate(R.layout.quiz_quit_alert, null);\n TextView title1 = (TextView) view.findViewById(R.id.title1);\n title1.setText(context.getString(R.string.quiz_quit_are));\n title1.setTypeface(VodafoneRg);\n TextView title2 = (TextView) view.findViewById(R.id.title2);\n title2.setText(context.getString(R.string.quiz_quit_progress));\n title2.setTypeface(VodafoneRg);\n TextView quiz_text = (TextView) view.findViewById(R.id.quit_text);\n quiz_text.setTypeface(VodafoneRg);\n LinearLayout quit_layout = (LinearLayout) view.findViewById(R.id.quit_layout);\n alert.setCustomTitle(view);\n TextView quit_icon = (TextView) view.findViewById(R.id.quit_icon);\n quit_icon.setTypeface(materialdesignicons_font);\n quit_icon.setText(Html.fromHtml(\"&#xf425;\"));\n quit_layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alert.dismiss();\n finish();\n }\n });\n alert.show();\n }", "private void showAlert(String message) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(message).setTitle(\"Response from Yourcare\")\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(),CapturePrescriptionActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }", "@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(GameInitializerActivity.this).create();\n\t\t\t\tLayoutInflater factory = LayoutInflater.from(GameInitializerActivity.this);\n\t\t\t\tfinal View view = factory.inflate(R.layout.activity_about_popupwindow, null);\n\t\t\t\talertDialog.setView(view);\n\t\t\t\talertDialog.setButton3(\"OK. I Got this !!\", dialogClickListener);\n\t\t\t\talertDialog.show();\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static native void alert(String texto)/*-{\n\t\t\t\n\t\t\t$wnd.bootbox.alert(texto);\t\n\t\n\t\n\t}-*/;", "private void showAlertDialog() {\n new AlertDialog.Builder(getActivity())\n .setMessage(R.string.feedback_sharing_data_alert)\n .setCancelable(false)\n .setPositiveButton(R.string.ok, (dialog, which) -> {\n sendFeedback();\n })\n .show();\n }", "private void showAlertDialog(String message) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(\"QR Scanner\")\n .setMessage(message)\n .setPositiveButton(\"OKAY\", (dialog, which) -> {\n dialog.dismiss();\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void alertBox_service(String title, String msg) {\r\n\t\tAlertDialog.Builder service_alert = new AlertDialog.Builder(this.mContext);\r\n\t\tservice_alert.setTitle(title);\r\n\t\tservice_alert.setMessage(msg);\r\n\t\tservice_alert.setNeutralButton(\"OK\",new DialogInterface.OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\tdialog.dismiss();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tservice_alert.show();\r\n\t}", "private void showAlert(){\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(\"Your further details please:\")\n .setView(view);\n builder.setPositiveButton(\"Proceed\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent it = new Intent(getActivity(), StudentFurtherDetails.class);\n getActivity().startActivity(it);\n }\n\n });\n //call api for insertion\n builder.setNegativeButton(\"Later\", null)\n .setCancelable(false);\n AlertDialog alert = builder.create();\n alert.show();\n }", "public void alert(String msg) {\n new Alert(msg, \"alertDone\");\n }", "private void showAlert(String message) {\n\n if (message.equals(\"Uploaded Successfully...\")) {\n // this.dismiss();\n commmunicator.onDialogMessage(new MessageDetails());\n this.dismiss();\n\n } else {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(form.getContext());\n builder.setMessage(message).setTitle(\"Response from Servers\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // do nothing\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n }", "@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }", "private void showDialog(){\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = this.getLayoutInflater();\n View dialogView= inflater.inflate(R.layout.dialog_after_share, null);\n dialogBuilder.setView(dialogView);\n\n //Show the dialog\n final AlertDialog alert = dialogBuilder.show();\n alert.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n alert.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n alert.setCancelable(false);\n TextView okTV = dialogView.findViewById(R.id.ok1);\n\n okTV.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n alert.hide();\n }\n });\n }", "private void alert(String message) {\n\t\tAlertDialog alert = new AlertDialog.Builder(this).setTitle(getString(R.string.warning)).setMessage(message)\n\t\t\t\t.setNeutralButton(getString(R.string.ok), new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t// TODO maybe implement ? controller.connect();\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}\n\t\t\t\t}).create();\n\t\talert.show();\n\t}", "public S<T> alert(String text){\n\t\t\n\t\tAlertDialog alertDialog = new AlertDialog.Builder(activity).create();\n\t\talertDialog.setTitle(\"Alert\");\n\t\talertDialog.setMessage(text);\n\t\talertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n\t\t new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }\n\t\t });\n\t\talertDialog.show();\n\t\treturn this;\n\t}", "public static void alert(String title, String header, String message, AlertType a) {\r\n Alert alert = new Alert(a);\r\n alert.setTitle(title);\r\n alert.setHeaderText(header);\r\n alert.setContentText(message);\r\n //Optional<ButtonType> result = alert.showAndWait();\r\n alert.showAndWait();\r\n }", "private void SuccessfulBox(View v){\n \t//create an alert box with specified properties\n \tnew AlertDialog.Builder(this)\n \t.setTitle(\"Submit Successfully!\")\n \t.setMessage(\"New prescription information has been added to\" + \" \" +item)\n \t.setNeutralButton(\"ok\", null)\n \t.show();\n }", "public void showMessage(){\n final AlertDialog.Builder alert = new AlertDialog.Builder(context);\n alert.setMessage(message);\n alert.setTitle(title);\n alert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n alert.create().dismiss();\n }\n });\n alert.create().show();\n }", "@Override\n public void onClick(View v)\n {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(new ContextThemeWrapper(activity, R.style.AppTheme));\n dialogBuilder.setView(viewConfirmDialog);\n AlertDialog alertDialog= dialogBuilder.create();\n Window windowAlert = alertDialog.getWindow();\n WindowManager.LayoutParams layoutConfirmDialog = new WindowManager.LayoutParams();\n layoutConfirmDialog.copyFrom(windowAlert.getAttributes());\n layoutConfirmDialog.width = 320;\n layoutConfirmDialog.height = 320;\n alertDialog.getWindow().setAttributes(layoutConfirmDialog);\n dismissAlertDialog();\n components.alertDialog = alertDialog;\n alertDialog.show();\n\n }", "public void showAlertDialog(View v){\n AlertDialog.Builder alert = new AlertDialog.Builder(this);\n alert.setTitle(\"Update Details\");\n alert.setMessage(\"Do you really want to update details?\");\n\n //if customer click yes\n alert.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Toast.makeText(MEditProfile.this, \"Update Successfully\", Toast.LENGTH_SHORT).show();\n }\n });\n //if customer click no\n alert.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Toast.makeText(MEditProfile.this,\"\",Toast.LENGTH_SHORT).show();\n }\n });\n alert.create().show();\n }", "public S<T> alert(String title,String text){\n\t\t\n\t\tAlertDialog alertDialog = new AlertDialog.Builder(activity).create();\n\t\talertDialog.setTitle(title);\n\t\talertDialog.setMessage(text);\n\t\talertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n\t\t new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }\n\t\t });\n\t\talertDialog.show();\n\t\treturn this;\n\t}", "protected void alert(String message) {\n\t\talertWindow.setContentText(message);\n\t\talertWindow.show();\n\t}", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "public void showAlertDialog(String title, String message) {\n\n\t\t// Create an object of alert class for an activity\n\t\tAlertDialog alertDialog = new AlertDialog.Builder(objContext).create();\n\n\t\t// Setting Dialog Title\n\t\talertDialog.setTitle(title);\n\n\t\t// Setting Dialog Message\n\t\talertDialog.setMessage(message);\n\n\t\t// Setting Icon to Dialog\n\t\talertDialog.setIcon(R.drawable.ic_launcher);\n\n\t\talertDialog.setButton(DialogInterface.BUTTON_POSITIVE, \"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\talertDialog.show();\n\t}", "private void alert(String string) {\n\r\n\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}", "private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }", "private void showHelp(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this,R.style.MyDialogTheme);\n alertDialogBuilder.setMessage(\"Welcome to NBA Manager 2019\\n\\n\" +\n \"The purpose of the application is to simulate a basketball manager game and draft a team.\\n\\n\" +\n \"You can view your current roster by pressing the right arrow in the top right corner.\\n\\n\" +\n \"*Not all players will have a height or a weight.\");\n alertDialogBuilder.setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "private void showbadgedialog() {\n final LayoutInflater li = LayoutInflater.from(mContext);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dialog_badges, null);\n // number=session.getMobileNumber();\n //Initizliaing confirm button fo dialog box and edittext of dialog box\n final Button buttonconfirm = (Button) confirmDialog.findViewById(R.id.buttonConfirm);\n\n\n AlertDialog.Builder alert = new AlertDialog.Builder(mContext);\n\n alert.setView(confirmDialog);\n\n final AlertDialog alertDialog = alert.create();\n alertDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n alertDialog.show();\n\n //On the click of the confirm button from alert dialog\n buttonconfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n }\n });\n\n }", "public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }", "public static void aboutApp(){\n\t\tAlert alertDialog = new Alert(Alert.AlertType.INFORMATION);\n\t\talertDialog.setTitle(\"My first java Desktop App\");\n\t\talertDialog.setHeaderText(\"Learning JavaFX\");\n\t\talertDialog.setContentText(\"I'm a beginner and soon i'll be a pro\");\n\n\t\t//to make custom buttons\n\t\tButtonType yesBtn = new ButtonType(\"yes\");\n\t\tButtonType noBtn = new ButtonType(\"No\");\n\t\talertDialog.getButtonTypes().setAll(yesBtn,noBtn);\n\n\t\t//to perform click event on buttons of the dilague box that opens and make buttons\n\t\tOptional<ButtonType> clickBtn=alertDialog.showAndWait();\n\t\tif(clickBtn.isPresent()&&clickBtn.get()==yesBtn){\n\t\t\t// code .......\n\t\t}\n\t\tif(clickBtn.get()==noBtn){\n\t\t\t//code..........\n\t\t}\n\n\t\talertDialog.show();\n\t}", "private void createAlertDialog(String title, String message, final boolean shouldExit) {\n Collect.getInstance().getActivityLogger().logAction(this, \"createAlertDialog\", \"show\");\n mAlertDialog = new AlertDialog.Builder(this).create();\n mAlertDialog.setTitle(title);\n mAlertDialog.setMessage(message);\n DialogInterface.OnClickListener quitListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int i) {\n switch (i) {\n case DialogInterface.BUTTON1: // ok\n Collect.getInstance().getActivityLogger().logAction(this, \"createAlertDialog\", \"OK\");\n // successful download, so quit\n if (shouldExit) {\n finish();\n }\n break;\n }\n }\n };\n mAlertDialog.setCancelable(false);\n mAlertDialog.setButton(getString(R.string.ok), quitListener);\n mAlertDialog.setIcon(android.R.drawable.ic_dialog_info);\n mAlertDialog.show();\n }", "public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Limite mensal excedido! Na versão gratuita, o limite máximo de publicação de caronas mensais é 4 (quatro), atualize para a versão Pro e tenha publicações ilimitadas...\")\n .setPositiveButton(\"Ir\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n String url = \"https://play.google.com/store/apps/details?id=com.xetelas.nova\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getContext().startActivity(i);\n }\n })\n .setNegativeButton(\"Voltar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private Alert createWarningAlert() {\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Are you sure, you wan't to Restart The Game?\", new ButtonType(\"Confirm\", ButtonBar.ButtonData.YES), new ButtonType(\"Cancel\", ButtonBar.ButtonData.NO));\n alert.setTitle(\"Confirm Deletion\");\n alert.setHeaderText(null);\n return alert;\n }", "private void showLoserDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"You Have Been Defeated \" + player1.getName() + \",Computer Wins!!\", new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Try Again?\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/bronze.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Computer Wins\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }", "protected void alertbox(String title, String mymessage) {\n \t\t// add scrollview to alertbox\n \t\tnew AlertDialog.Builder(this)\n \t\t\t\t.setMessage(mymessage)\n \t\t\t\t.setTitle(title)\n \t\t\t\t.setView(LayoutInflater.from(this).inflate(R.layout.scroll_result,null))\n \t\t\t\t.setCancelable(true)\n \t\t\t\t.setNeutralButton(\"Done\",\n \t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n \t\t\t\t\t\t\t\t\tint whichButton) {\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}).show();\n \t}", "public void showAlertMessage(String message) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n alertDialogBuilder.setMessage(message).setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n AlertDialog alertdialog = alertDialogBuilder.create();\n alertdialog.show();\n }", "public void openAlert(View view) {\n try {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n alertDialogBuilder.setTitle(\"Create New Project\");\n\n// set positive button: Yes message\n alertDialogBuilder.setPositiveButton(\"Create Project\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n// go to a new activity of the app\n/*Intent positveActivity = new Intent(getContext(), PositiveActivity.class);\nstartActivity(positveActivity);*/\n }\n });\n\n // set neutral button: Exit the app message\n alertDialogBuilder.setNeutralButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // exit the app and go to the HOME\n //AlertDialogActivity.this.finish();\n }\n });\n\n final EditText input = new EditText(getActivity());\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input.setHint(\"Project Name\");\n input.setLayoutParams(lp);\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.setView(input);\n alertDialog.show();\n\n\n } catch (Exception e) {\n Log.d(\"BaseManager\", \"openAlert(): \" + e);\n }\n }", "private void showErrorDialog(){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.booking_not_created));\n builder.setMessage(getString(R.string.customer_already_has_active_booking_error));\n builder.setIcon(R.drawable.ic_error_black_24dp);\n builder.setCancelable(false);\n // When users confirms dialog, close the activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n // Close the Activity..\n finish();\n });\n\n AlertDialog dialog = builder.create();\n dialog.setCanceledOnTouchOutside(false);\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n }", "public static AlertDialog showAlert(Context context, String title, String message, String buttonText) {\n AlertDialog alertDialog = new AlertDialog.Builder(new ContextThemeWrapper(context,\n R.style.AboutDialog)).create();\n\n alertDialog.setTitle(title);\n alertDialog.setMessage(message);\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, buttonText, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.getWindow()\n .setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n alertDialog.show();\n\n return alertDialog;\n }", "private void mDialogShow() {\n alertDialog = new AlertDialog.Builder(this).create();\n alertDialog.setTitle(\"CyanMobile Warning!\");\n alertDialog.setMessage(\"Enable Pie Menu App Toggle to use this!\");\n alertDialog.setButton(DialogInterface.BUTTON_POSITIVE,\n getResources().getString(com.android.internal.R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n updateValues();\n return;\n }\n });\n \n alertDialog.show();\n }", "private void showTip() {\n if (alertDialog == null) {\n alertDialog = new AlertDialog.Builder(this)\n .create();\n }\n alertDialog.show();\n View tipView = View.inflate(this, R.layout.edit_alert_layout, null);\n View tv_yes = (TextView) tipView.findViewById(R.id.tv_yes);\n tv_yes.setOnClickListener(this);\n tipView.findViewById(R.id.tv_no).setOnClickListener(this);\n alertDialog.setContentView(tipView);\n\n }", "private void showErroAlert(String errorMessage) {\n LOGGER.log(Level.INFO, \"Showing Alert window with error message...\");\n Alert errorAlert = new Alert(Alert.AlertType.ERROR, errorMessage, ButtonType.OK);\n errorAlert.show();\n }", "private void showDialog(int msgId, int buttonId) {\n AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);\n\n builder\n .setMessage(msgId)\n .setTitle(R.string.backup_dialog_title)\n .setPositiveButton(buttonId, this)\n .setNegativeButton(R.string.button_cancel, this);\n\n mDialog = builder.create();\n mDialog.show();\n }", "void showDialog() {\n DialogFragment newFragment = MyAlertDialogFragment.newInstance(R.string.alert_dialog_two_buttons_title);\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "protected void showAlertbox() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"위치서비스 비활성화\");\n builder.setMessage(\"현위치를 탐색하기 위해서 위치서비스가 필요합니다. 위치 설정을 켜시고 다시 현위치를 탐색해주세요.\");\n builder.setCancelable(true);\n builder.setPositiveButton(\"설정\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n }\n });\n builder.setNegativeButton(\"취소\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n builder.create().show();\n }", "public void AlertBox(String title, String message, int width, int height) {\n //Creating the stage and modifying its settings for the alertBox\n Stage window = new Stage();\n window.initModality((Modality.APPLICATION_MODAL));\n window.setTitle(title);\n window.centerOnScreen();\n\n //Creating the layout for the box\n VBox layout = new VBox();\n layout.setAlignment(Pos.CENTER);\n layout.setSpacing(5);\n Label messageToDisplay = new Label(message);\n //Event handling\n Button okButton = new Button(\"Ok\");\n okButton.setOnAction(e -> window.close());\n layout.getChildren().addAll(messageToDisplay, okButton);\n\n\n Scene scene = new Scene(layout, width, height);\n window.setScene(scene);\n window.setResizable(false);\n window.showAndWait();\n\n }", "public AlertMessage(Context context, String msg) {\r\n\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(context);\r\n\t\tdialog.setMessage(msg);\r\n\t\tdialog.setCancelable(false);\r\n\t\tdialog.setNeutralButton(\"OK\", null);\r\n \tdialog.create().show();\r\n\t}", "public void showAlert2(){\n ImportingOCR.this.runOnUiThread(new Runnable() {\n public void run() {\n AlertDialog.Builder builder = new AlertDialog.Builder(ImportingOCR.this);\n builder.setTitle(\"Validating faild\");\n\n builder.setMessage(\"This check already exists in database please try another one.\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(ImportingOCR.this, ImportingOCR.class);\n intent.putExtra(\"personid\", personid);\n intent.putExtra(\"amount\", amount);\n intent.putExtra(\"date\", date);\n intent.putExtra(\"username\", uploader);\n startActivity(intent);\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n dialog.dismiss();\n return;\n }\n });\n }", "private void popupCalibratingDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.motion_calibrating);\n builder.setCancelable(false);\n builder.setMessage(R.string.motion_calibrating_message);\n\n calibratingDialog = builder.create();\n calibratingDialog.show();\n }", "private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }", "AlertDialog.Builder alertDialogBuilder(Context context) {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Verification Account Message\");\n builder.setMessage(R.string.resend_ver_email_message_req);\n builder.setIcon(R.drawable.ic_action_info);\n builder.setPositiveButton(\"Confirm\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n resendVerificationEmail();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.show();\n\n return builder;\n }", "private void MessageDialog(String message, String pTitulo, String pLabelBoton){ // mostrar mensaje emergente\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()).setMessage(message).setTitle(pTitulo).setPositiveButton(pLabelBoton, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n return;\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "AlertDialog.Builder alertDialogBuilderSentSuccessMessage(Context context) {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Verification Account Message\");\n builder.setMessage(R.string.resend_ver_email_message_success);\n builder.setIcon(R.drawable.ic_action_info);\n builder.setPositiveButton(\"ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.show();\n\n return builder;\n }", "private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }" ]
[ "0.7491727", "0.7387697", "0.73660797", "0.7353314", "0.73514754", "0.7343189", "0.7340251", "0.7337116", "0.731302", "0.7274003", "0.7241119", "0.72328115", "0.72195756", "0.7217766", "0.72110534", "0.71403915", "0.7133964", "0.7132806", "0.7128782", "0.7089977", "0.70439714", "0.7031076", "0.699659", "0.69921505", "0.6979941", "0.69679534", "0.6960949", "0.69504744", "0.69376117", "0.6936608", "0.69327736", "0.6922989", "0.6914302", "0.6904586", "0.68907696", "0.6888751", "0.68839324", "0.6879649", "0.6857465", "0.6843922", "0.68162745", "0.68064725", "0.67807263", "0.6774977", "0.6771254", "0.67656493", "0.6763452", "0.6762061", "0.6754005", "0.6750535", "0.6744321", "0.67441463", "0.67440104", "0.6737221", "0.67341024", "0.67146605", "0.6713058", "0.671133", "0.6709639", "0.66934294", "0.6690971", "0.66644204", "0.66488147", "0.66409624", "0.66381586", "0.66334224", "0.6630107", "0.6621374", "0.6620805", "0.66112554", "0.6610071", "0.65870494", "0.65846634", "0.6580287", "0.65756965", "0.6565646", "0.65425414", "0.65396625", "0.6534804", "0.653398", "0.6530775", "0.6525858", "0.651392", "0.650256", "0.6500912", "0.647482", "0.647089", "0.64638907", "0.6462528", "0.6461196", "0.64558625", "0.6452464", "0.64518654", "0.6450229", "0.644549", "0.64449805", "0.6432852", "0.64323443", "0.6429366", "0.64146286", "0.6413748" ]
0.0
-1
onclick listener for the add collection button
public void AddCollection(View view) { Intent intent = new Intent(this, AddCollectionActivity.class); this.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onAddClicked();", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "void setNewCollectionPanel();", "@Override\n public void onClick(View v) {\n buttonAddClicked();\n }", "public void actionPerformed(ActionEvent e){\n\t\t\topenAdd();\n\t\t}", "@Override\n public void onClick(View v) {\n mListener.onAddButtonClicked();\n }", "@FXML\n void addButton(ActionEvent event) {\n\n Part selectedPart = partTableView.getSelectionModel().getSelectedItem();\n\n if (selectedPart == null) {\n AlartMessage.displayAlertAdd(6);\n } else {\n assocParts.add(selectedPart);\n assocPartTableView.setItems(assocParts);\n }\n }", "@Override\r\n \t\t\tpublic void onClick(ClickEvent event) {\n \t\t\t\tmovieProvider.getList().add(new Movie(\"\", 0, Language.English, \"\", \"\"));\r\n \t\t\t\tmovieTable.redraw();\r\n \t\t\t\t//movieProvider.refresh();\r\n \t\t\t\tWindow.alert(\"Added\");\r\n \t\t }", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }", "public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }", "public void clickAddButton() {\n\t\tfilePicker.fileManButton(locAddButton);\n\t}", "public void onAddByWebSitePressed( ) {\n Router.Instance().changeView(Router.Views.AddFromWebSite);\n }", "private void onAddClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\t\r\n\t\t\tif(!chart.addStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"There are no seats available.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t\t\r\n\t}", "private void setupClickEvents() {\n ivAddNewCategory.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addNewCategory();\n }\n });\n }", "@FXML\n\tvoid AddVisitor_Button_Clicked(ActionEvent event) { // could the visitor be for different parks? time? date ?\n\t\tString ordererId = PopUp.getUserInput(\"Private Group Order\", \"Enter ID of the visitor\", \"ID or Subscriber ID\");\n\n\t\tif (!CheckID(ordererId)) {\n\t\t\tPopUp.showInformation(\"Please enter appropriate ID\", \"Please enter appropriate ID\",\n\t\t\t\t\t\"Please enter appropriate ID\");\n\t\t} else if (visitorsIDArray.contains(ordererId) || visitorsIDArray.contains(\"S\" + ordererId)\n\t\t\t\t|| visitorsIDArray.contains(ordererId.substring(1, ordererId.length()))) {\n\t\t\tPopUp.showInformation(\"This ID already is added\", \"This ID already is added\", \"This ID already is added\");\n\t\t} else {\n\t\t\tvisitorsIDArray.add(ordererId);\n\t\t\tPopUp.showInformation(\"Visitor Added\", \"Visitor Added\", \"Visitor Added\");\n\t\t\tvisitorsCounter++;\n\t\t\tlistViewVisitors.getItems().add(\"visitor #\" + visitorsCounter + \" \" + \"(\" + ordererId + \")\");\n\t\t\tPlaceOrder_Button.setDisable(false);\n\t\t\tRemoveVisitor_Button.setDisable(false);\n\t\t}\n\t}", "public void clickOnAddVehiclesButton() {\r\n\t\tsafeClick(groupListSideBar.replace(\"Group List\", \"Add Vehicle\"), SHORTWAIT);\r\n\t}", "private void setUpAddBookButton()\n {\n setComponentAlignment(addBookButton, Alignment.BOTTOM_LEFT);\n addBookButton.setCaption(\"Add\");\n addBookButton.addClickListener(new Button.ClickListener() {\n public void buttonClick(Button.ClickEvent event)\n {\n Object id = bookTable.getValue();\n int book_id = (int)bookTable.getContainerProperty(id,\"id\").getValue();\n basket.add(allBooksBean.getIdByIndex(book_id-1));\n //basket.add(allBooks.get(book_id-1));\n errorLabel.setCaption(\"Successfully added book to Basket\");\n }\n });\n }", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "@FXML\n public void buttonAddItem(ActionEvent actionEvent) {\n //adds a list item to the table\n }", "@FXML\n\tprivate void addButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart addPartToProduct = partSearchProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (addPartToProduct != null) {\n\t\t\t\n\t\t\tif(dummyList.contains(addPartToProduct) == false) {\n\t\t\t\t\n\t\t\t\tdummyList.add(addPartToProduct);\n\t\t\t}\n\t\t}\n\t}", "private void addNewCoursesOnClick(){\n dataSource.open();\n dataSource.createCourses(editTextCourses.getText().toString(),editTextTeacher.getText().toString(),editTextWhen.getText().toString(),editTextWhere.getText().toString(),editTextGrading.getText().toString(),editTextOther.getText().toString());\n dataSource.close();\n CoursesListElement courses = new CoursesListElement(editTextCourses.getText().toString(),editTextTeacher.getText().toString(),editTextWhen.getText().toString(),editTextWhere.getText().toString(),editTextGrading.getText().toString(),editTextOther.getText().toString(),0);\n listElements.add(courses);\n // setting list adapter\n listView.setAdapter(new ActionListAdapter(getActivity(),R.id.list_courses, listElements));\n newCourses.setVisibility(View.GONE);\n editTextCourses.setText(\"\");\n editTextTeacher.setText(\"\");\n editTextWhen.setText(\"\");\n editTextWhere.setText(\"\");\n editTextGrading.setText(\"\");\n editTextOther.setText(\"\");\n }", "private void gAddActionPerformed(ActionEvent e) {\n }", "public void addButton()\n\t{\n\t\tdriver.findElement(By.xpath(\"//input[@name='Insert']\")).click();\n\t}", "public void handleAdd(ActionEvent actionEvent) {\n }", "@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\r\n\t\t\t\t\t\tvenObjectsByPack.init(\"NEW\");\r\n\t\t\t\t\t\tUI.getCurrent().addWindow(venObjectsByPack);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tvenEditarPacks.init(\"NEW\",null);\r\n\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\t\t\t\t\r\n\t\t\t}", "@FXML\r\n private void onBtnAddReview(ActionEvent event) {\n reviewRecordsList.add(new ReviewRecords(reviewRecordsList.size()));\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}", "@Override\r\n\tpublic void clickAdd(int count) {\n\t\t\r\n\t}", "public void buttonSaveList(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}", "public static void add(Collection collection) {\n\t\t\n\t}", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerformed(actionEvent);\n }\n });\n addButton(addButton);\n }", "public void onAddCategoryButtonClicked(View v){\n //starts addcategory activity\n Intent addCategoryIntent = new Intent(this, AddCategoryActivity.class);\n startActivity(addCategoryIntent);\n }", "public void addSubject(final View v) {\n //final ArrayList<String> dummySubjectList = new ArrayList<String>();\n\n //Creates the alert dialogue\n final AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n final EditText input = new EditText(this);\n alertDialog.setView(input);\n\n //Setting Dialog Title\n alertDialog.setTitle(\"Add subject\");\n\n //Setting Icon to Dialog\n alertDialog.setIcon(R.drawable.ic_tutorme);\n\n //Add skills visually, and pass to the server\n alertDialog.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String skill = input.getText().toString();\n Button newSkill = new Button(findViewById(R.id.subjectList).getContext());\n dummySubjectList.add(skill);\n newSkill.setText(skill);\n //newSkill.setBackgroundColor(getResources().getColor(R.color.gray));\n\n\n //Add functionality to button\n newSkill.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n removeSkill(view);\n }\n });\n subjectButtons.add(newSkill);\n\n LinearLayout layout = (LinearLayout) findViewById(R.id.subjectList);\n layout.removeView(v);\n layout.addView(newSkill);\n layout.addView(v);\n\n //TODO: Push arraylist to server\n\n }\n });\n\n alertDialog.setNeutralButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n\n alertDialog.show();\n }", "private JButton createAddResourceButton() {\n\n JButton addBtn = new JButton(\"Add\");\n addBtn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n\n List<Resource> resourcesList = controller.getResoucesList();\n\n for (Resource resource : controller.getDemonstration().getResourcesList()) {\n resourcesList.remove(resource);\n }\n\n if (resourcesList.isEmpty()) {\n throw new IllegalArgumentException();\n }\n\n DialogSelectable dialogoNewResource = new DialogSelectable(CreateDemonstrationUI.this, resourcesList, \"Select Resource from list:\");\n Resource selectedResource = (Resource) dialogoNewResource.getSelectedItem();\n if (selectedResource == null) {\n throw new NullPointerException();\n }\n\n if (controller.addResource(selectedResource)) {\n updateResourcesList();\n String successMessage = \"Resource added successfully!\";\n String successTitle = \"Resource added.\";\n\n JOptionPane.showMessageDialog(rootPane, successMessage, successTitle, JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (NullPointerException ex) {\n\n } catch (IllegalArgumentException ex) {\n\n String warningMessage = \"There is no more resources to add\";\n String warningTitle = \"No more resources in system\";\n\n JOptionPane.showMessageDialog(rootPane, warningMessage, warningTitle, JOptionPane.WARNING_MESSAGE);\n\n } catch (Exception ex) {\n\n String warningMessage = \"Something wen't wrong please try again.\";\n String warningTitle = \"ERROR 404\";\n\n JOptionPane.showMessageDialog(rootPane, warningMessage, warningTitle, JOptionPane.WARNING_MESSAGE);\n }\n\n }\n });\n return addBtn;\n }", "public void onclick_add(MouseEvent mouseEvent) {\n\t\tUifEditCmd cmd = new UifEditCmd(\"ssoView\",DialogConstant.DEFAULT_WIDTH, DialogConstant.SIX_ELE_HEIGHT);\n\t\tAppLifeCycleContext.current().getWindowContext().addAppAttribute(\"operate\", \"add\");\n\t\tcmd.execute();\n//\t\tRow row = ds.getEmptyRow();\n//\t\tds.addRow(row);\n//\t\tds.setRowSelectIndex(ds.getRowIndex(row));\n//\t\tds.setEnabled(true);\n//\t\tnew UifUpdateOperatorState(ds, AppLifeCycleContext.current().getViewContext().getView()).execute();\n\t}", "public void onAdd() {\n String bookTitle = details[0];\n String author = details[1];\n boolean addedCorrectly = ControllerBook.addBook(this.ISBN, author, bookTitle, \"\");\n if (addedCorrectly) {\n dispose();\n } else {\n\n pack();\n }\n\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\tfor(int i=0;i<favorites.size();i++){\r\n\t\t\t\t\t\tif(e.getSource().equals(deleteButtons.get(i))){\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tClient client=new Client();\r\n\t\t\t\t\t\t\t\tclient.deleteCollection(favorites.get(i).getFoodName());\r\n\t\t\t\t\t\t\t\tnew MYCollection(customer).setVisible(true);\r\n\t\t\t\t\t\t\t\tclose();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void adding() {\n\t\t By cr=By.xpath(\"//a[@href=\\\"/cart?add&itemId=EST-2\\\"]\"); \r\n\t\tWebElement we_cr=wt.ElementToBeClickable(cr, 20);\r\n\t\twe_cr.click();\r\n\t}", "public void onAddByMapPressed( ) {\n Router.Instance().changeView(Router.Views.AddWithMap);\n }", "public void createCollections() {\n \n\t\t//Creating columns for the collection\n collectionToolName = new VBox();\n collectionPurchaseDate = new VBox();\n collectionReturnButtons = new VBox();\n \n //Creating columns for the owned tools section\n ownedToolName = new VBox();\n ownedPurchaseDate = new VBox();\n ownedLendable = new VBox();\n \n collectionList.getChildren().add(collectionToolName);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionPurchaseDate);\n collectionList.getChildren().add(new Separator());\n collectionList.getChildren().add(collectionReturnButtons);\n \n \n ownedList.getChildren().add(ownedToolName);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedPurchaseDate);\n ownedList.getChildren().add(new Separator());\n ownedList.getChildren().add(ownedLendable);\n \n\t}", "public AddRandomList() {\n setTitleText(\"Add new random List\");\n\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n addButton(addButton);\n }", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "@Override\n public void onClick(View v) {\n FavouriteDatabase fd = new FavouriteDatabase();\n fd.addToFavouritesList(catID);\n Toast.makeText(getContext(), \"Added to your Favourites\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tOperation.addMovie(movies,name.getText(),Integer.parseInt(priceField.getText()),(Integer)length.getValue(),(String)kind.getSelectedItem());\n\t\t\t\t\t\t\tlistModel.removeAllElements();\n\t\t\t\t\t\t\tfor (int i = 0; i < movies.size(); i++) {\n\t\t\t\t\t\t\t\tlistModel.addElement(movies.get(i).name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}", "void addCollectionName(Object newCollectionName);", "public void clickAddButton(View view){\n CaseDialog caseDialog = new CaseDialog(this);\n caseDialog.show();\n caseDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n casesAdapter.notifyDataSetChanged();\n }\n });\n }", "public void actionPerformed(ActionEvent e){\n \t\t \tstudentsController.addStudent();\n \t\t }", "private void onClickBtAdd() {\n\t\tDbAdapter db = new DbAdapter(this);\n\t\tdb.open();\n\n\t\tfloat amount = 0;\n\n\t\ttry {\n\t\t\tamount = Float.parseFloat(etAmount.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\tamount = 0;\n\t\t}\n\n\t\t// create a medicine event\n\t\tdb.createMedicineEvent(amount,\n\t\t\t\tnew Functions().getDateAsStringFromCalendar(mCalendar),\n\t\t\t\tspMedicine.getSelectedItemId());\n\n\t\tdb.close();\n\n\t\tActivityGroupTracking.group.restartThisActivity();\n\n\t\t// clear the edittext\n\t\tetAmount.setText(\"\");\n\n\t\t// Go to tracking tab when clicked on add\n\t\tShowHomeTab parentActivity;\n\t\tparentActivity = (ShowHomeTab) this.getParent().getParent();\n\t\tparentActivity.goToTab(DataParser.activityIDTracking);\n\t}", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\tli.add(auto.getText().toString());\r\n\t\t\tauto.setText(null);\r\n\t\t\t\r\n\t\t\tadd();\r\n\t\t\t\r\n\t\t\tToast.makeText(getBaseContext(), \"Item Added\",\r\n\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t}", "public VBox addButton(ObservableList<Song> searchResults, ObservableList<Song> playlist) {\r\n\t \t\tVBox vbox = new VBox();\r\n\t \t\tsearchResults = searchResults;\r\n\t \t\tplaylist = playlist;\r\n\t \t\tvbox.setPadding(new Insets(350, 100, 350, 10));\r\n\t \t\tButton addSongBtn = new Button();\r\n\t \t\taddSongBtn.setText(\"Add Song\");\r\n\t \t\taddSongBtn.setPrefSize(25.0, 15);\r\n\t \t\taddSongBtn.setAlignment(Pos.CENTER_LEFT);\r\n\t \t\t\r\n\t \t\tvbox.getChildren().addAll(addSongBtn);\r\n\t \t\t\r\n\t \t\treturn vbox;\r\n\t \t}", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAssociations();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tmCurriculumVitaeInterface.onAddAssociations();\n\t\t\t\t\t}", "@Override\n public void buttonClick(ClickEvent event) {\n \n \ttry {\n\t\t\t\t\tUI.getCurrent().getNavigator().addView(_nombreSeccion + \"Adm/\" + _titulo.getCaption(), new AdministradorClase(new Lista_Mensaje_V_Administrador(it.getIdTema())));\n\t\t\t\t} catch (PersistentException 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\tUI.getCurrent().getNavigator().navigateTo(_nombreSeccion+ \"Adm/\" + _titulo.getCaption());\n \t\n \t\n }", "protected void addButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\t\t\n\t\t// Get selected supply type\n\t\tSupplyType supply = null;\n\t\ttry {\n\t\t\tsupply = ftms.getSupplyType(selectedSupply);\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Get given quantity\n\t\tdouble qty = -1;\n\t\ttry {\n\t\t\tqty = Double.parseDouble(qtyTextField.getText());\n\t\t} catch (NumberFormatException | NullPointerException e) {\n\t\t}\n\t\t\n\t\t// Add supply to item\n\t\ttry {\n\t\t\tmc.addIngredientToItem(item, supply, qty);\n\t\t} catch (InvalidInputException | DuplicateTypeException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "@Override\n public void onClick(View view) {\n DialogAddEvent();\n }", "public void add() {\n\n }", "@FXML\n void addTaskClicked(ActionEvent event)\n {\n createTask();\n }", "private void addAppointmentButtonAction (ActionEvent event) {\r\n\t\t\tif (customersTable.getItems().isEmpty()) {\r\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\talert.setHeaderText(\"No customer selected\");\r\n\t\t\t\talert.setContentText(\"You must select a customer to schedule an appointment\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tselectedItem = customersTable.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t//Go to add appointment screen\r\n\t\t\t\t\tParent root;\r\n\t\t\t\t\tStage stage = (Stage) appointmentsButton.getScene().getWindow();\r\n\t\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"/views/AddAppointmentScreen.fxml\"));\r\n\t\t\t\t\tScene scene = new Scene(root);\r\n\t\t\t\t\tstage.setScene(scene);\r\n\t\t\t\t\tstage.show();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "CollectionItem createCollectionItem();", "public void addButton(ActionEvent event) {\n\t\tString daysOfWeek = \"\";\n\t\tif (sundayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Sunday\";\n\t\t\telse daysOfWeek += \", Sunday\";\n\t\t}\n\t\tif (mondayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Monday\";\n\t\t\telse daysOfWeek += \", Monday\";\n\t\t}\n\t\tif (tuesdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Tuesday\";\n\t\t\telse daysOfWeek += \", Tuesday\";\n\t\t}\n\t\tif (wednesdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Wednesday\";\n\t\t\telse daysOfWeek += \", Wednesday\";\n\t\t}\n\t\tif (thursdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Thursday\";\n\t\t\telse daysOfWeek += \", Thursday\";\n\t\t}\n\t\tif (fridayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Friday\";\n\t\t\telse daysOfWeek += \", Friday\";\n\t\t}\n\t\tif (saturdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Saturday\";\n\t\t\telse daysOfWeek += \", Saturday\";\n\t\t}\n\t\t\n\t\t// Make the proper string for the medication and then add it to the medList\n\t\tString tempFullDay = daysOfWeek + \" - \" + hourDropDown.getValue() + \":\" + minuteDropDown.getValue() + \":00\";\n\t\tmedList.add(new Medication(nameField.getText(), tempFullDay, descriptionField.getText()));\n\t\t//upcomingMedsLabel.setText(upcomingMedsLabel.getText() + \"\\n\\n\" + medList.get(medList.size() - 1).toString());\n\t\t//calls the save method to save the new medication to the txt file\n\t\tsave(tempFullDay);\n\t\tload();\n\t}", "public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvasCT);\r\n\t \tSC.say(\"Clicou\");\r\n\t }", "public void addTagButton(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttagNameLabel.setVisible(true);\n \ttagValueLabel.setVisible(true);\n \tsubmitNewTagButton.setVisible(true);\n \tcancelNewTagButton.setVisible(true);\n \tnewTagName.setVisible(true);\n \tnewTagValue.setVisible(true);\n\t}", "private void addBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n addBtnActionPerformed();\n }", "private JButton getAddQuantityCardButton() {\n\t\tif (addQuantityCardButton == null) {\n\t\t\taddQuantityCardButton = new JButton();\n\t\t\taddQuantityCardButton.setText(\"Добавить\");\n\t\t\taddQuantityCardButton.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tDefaultListModel model = (DefaultListModel) functionList.getModel();\n\t\t\t\t\tParseElement el = new ParseElement((ListElement) cardType.getSelectedItem(), (String)condition.getSelectedItem(), (String)value.getSelectedItem());\n\n\t\t\t\t\t((DefaultListModel) functionList.getModel()).add(model.getSize(), el);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn addQuantityCardButton;\n\t}", "public void addNewItemClicked(View view) {\n// Toast.makeText(CheckboxNoteActivity.this, \"RelativeLayout Clicked Successfully\", Toast.LENGTH_SHORT).show();\n addNewListItem();\n }", "private void setupAddToReviewButton() {\n\t\tImageIcon addreview_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"addtoreview.png\");\n\t\tJButton add_to_review = new JButton(\"\", addreview_button_image);\n\t\tadd_to_review.setBounds(374, 598, 177, 100);\n\t\tadd_to_review.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\twords_to_add_to_review.add(words_to_spell.get(current_word_number));\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tadd_to_review.addMouseListener(new VoxMouseAdapter(add_to_review,null));\n\t\tadd(add_to_review);\n\t}", "public void addToList() {\n addToCurrentListButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //getting the variables from the user input\n String address = enterAddress.getText();\n String issue = enterAddress.getText();\n String model = enterModel.getText();\n //date method\n Date date = new Date();\n //creating a quick CentralAC list\n CentralAC acEntry = new CentralAC(address, issue, date, model);\n //adding items to the Arraylist\n HVACGUI.newCentralAC.add(acEntry);\n //adding items to the default list model\n HVACGUI.openService.addElement(acEntry);\n //disposing the form\n CentralAC_GUI.this.dispose();\n\n\n }\n });\n }", "public void clickCreateNewPostBtn() {\n createPostBtn.get(0).click();\n }", "private void add() {\n\n\t}", "public void clickCreateButton() {\n this.action.click(this.createButton);\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\r\n\t\t\t\t\t\t\t\tObject data = event.getButton().getData();\r\n\t\t\t\t\t\t\t\ttablePacks.select(data);\r\n\t\t\t\t\t\t\t\tItem itemClickEvent = tablePacks.getItem(data);\r\n\t\t\t\t\t\t\t\tvenEditarPacks.init(\"UPDATE\",itemClickEvent );\r\n\t\t\t\t\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(ClickEvent event) {\n onRemoveAction();\n }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tdropdown.clear();\r\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tSpielplanErstellenForm erstellen = new SpielplanErstellenForm();\r\n\r\n\t\t\tRootPanel.get(\"details\").add(erstellen);\r\n\t\t}", "@Override\n public void onClick(View view) {\n if (mAddDialog == null) {\n mAddDialog = new XPopup.Builder(MainActivity.this)\n .asInputConfirm(getString(R.string.add_random_title)\n , getString(R.string.add_random_content)\n , new OnInputConfirmListener() {\n @Override\n public void onConfirm(String text) {\n if (mAdapter != null) {\n mAdapter.addData(new BaseModel(text, 1));\n }\n }\n }).show();\n } else {\n mAddDialog.show();\n }\n }", "public void add() {\n\t\t\n\t}", "public void add() {\n }", "public AdapterView.OnItemClickListener ClickListener() {\n return new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n Context context = getBaseContext();\n\n // go to the clicked collection\n Intent intent = new Intent(context, CollectionViewActivity.class);\n intent.putExtra(\"Collection\", (String) parent.getItemAtPosition(position));\n intent.putExtra(\"FriendID\", friendID);\n\n context.startActivity(intent);\n }\n };\n }", "@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tnew AddInDatabase().execute();\n\t\t\t\t\t}", "@Then(\"^click on add to basket$\")\r\n\tpublic void click_on_add_to_basket() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.addbasket());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}", "public void buttonAdd(ActionEvent event) {\n\t\tPlayer player = new Player(textfieldName.getText(), textfieldDate.getText(), Integer.parseInt(textfieldLevel.getText()));\n\t\ttableview.getItems().add(player);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_item_view);\n\n //obtain button and attach press listener to it\n Button addItem = (Button) findViewById(R.id.add_item);\n addItem.setOnClickListener(this);\n }", "@Override\n public void onClick(View v) {\n AddingToCartList();\n }", "CollectionResource createCollectionResource();", "public void manageInputPointCreation(){\n Button addInputButton = new Button();\n addInputButton.setId(\"addInputListButton\");\n\n addInputButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n try {\n Map<String, IYamlDomain> newMap = new HashMap<String, IYamlDomain>();\n newMap.put(Integer.toString(_addCounter), _class.newInstance());\n _abstractUiNode.getChilds().get(0).addInputData(newMap);\n _addCounter ++;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n _abstractUiNode.getChildren().add(addInputButton);\n addInputButton.setVisible(true);\n StackPane.setAlignment(addInputButton, Pos.BOTTOM_LEFT);\n\n }", "private void addButtonActionPerformed() {//GEN-FIRST:event_addButtonActionPerformed\r\n this.controller.OnAddPhoto();\r\n }", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\n\t\t\t\t\tshowwindow(presentadd_group);\n\t\t\t\t}", "public void add(ActionEvent e) {\r\n Customer newCustomer = new Customer();\r\n newCustomer.setContactfirstname(tempcontactfirstname);\r\n newCustomer.setContactlastname(tempcontactlastname);\r\n save(newCustomer);\r\n addRecord = !addRecord;\r\n }", "@Override\r\n\tpublic void insertObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "private void onAddGoalsClicked() {\n Intent intent = new Intent(this, GoalCreationActivity.class);\n startActivity(intent);\n }", "@FXML\r\n\t\tpublic void addButton(ActionEvent event) {\r\n\t\t\t// get name, notes, and due date from fields\r\n\t\t\tString taskName = name.getText();\r\n\t\t\tString taskNotes = notes.getText();\r\n\t\t\tLocalDate taskDate = date.getValue();\r\n\t\t\t\r\n\t\t\tif (taskName.isEmpty()) {\r\n\t\t\t\t// validate that taskName is not empty\r\n\t\t\t\tnameLabel.setText(\"Must have a name!\");\r\n\t\t\t\tname.setStyle(warningStyle);\r\n\t\t\t} else {\r\n\t\t\t\tnameLabel.setText(\"\");\r\n\t\t\t\tname.setStyle(defaultStyle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (taskDate == null) {\r\n\t\t\t\t// validate that taskDate is not empty \r\n\t\t\t\tdateLabel.setText(\"Must provide a due date!\");\r\n\t\t\t\tdate.setStyle(warningStyle);\r\n\t\t\t} else {\r\n\t\t\t\tdateLabel.setText(\"\");\r\n\t\t\t\tdate.setStyle(defaultStyle);\r\n\t\t\t}\r\n\t\t\t\n\t\t\tif (taskDate != null && !taskName.isEmpty()) {\r\n\t\t\t\t// if everything is good, make a task\r\n\t\t\t\tGuiBasedApp.addTask(taskName, taskNotes, taskDate);\r\n\t\t\t\t\r\n\t\t\t\t// launch the Home Screen Scene\r\n\t\t\t\tGuiBasedApp.launchHomeScreenScene();\r\n\t\t\t}\r\n\t\t}", "@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }", "public void add();", "public void onClickAdd(View v) {\n Intent intent = new Intent(this, ItemFormActivity.class);\n startActivity(intent);\n }", "public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvas4);\r\n\t \tSC.say(\"Clicou\");\r\n\t \t\r\n\t }", "@FXML\n\tpublic void add(ActionEvent event) {\n\t\tBrand brand = new Brand();\n\t\tbrand.setLabel(nameTF.getText());\n\t\t\n\n\t\t\n\t\tBrandDelegate.addBrand(brand);\n\t\tJOptionPane.showMessageDialog(null, \"Ajout effectué avec succés\");\n\t}" ]
[ "0.710039", "0.68487924", "0.6614054", "0.65786785", "0.6524664", "0.6364321", "0.6347344", "0.62962294", "0.6288232", "0.6248971", "0.62274045", "0.61981714", "0.6138528", "0.6127813", "0.6113521", "0.6113276", "0.6079556", "0.6077793", "0.60318047", "0.6019412", "0.6017727", "0.59936", "0.59315777", "0.59273124", "0.5916914", "0.59045005", "0.59025335", "0.5889955", "0.5877619", "0.5872938", "0.5854333", "0.58317083", "0.58224106", "0.5803144", "0.57824725", "0.5772818", "0.5759295", "0.5758481", "0.5750405", "0.57381886", "0.57301825", "0.57238084", "0.5718386", "0.5710369", "0.5700861", "0.5695183", "0.5684087", "0.56779826", "0.56759435", "0.5675631", "0.5662559", "0.56621", "0.5660484", "0.56473243", "0.56445414", "0.56429607", "0.56429607", "0.5630509", "0.5626243", "0.56093776", "0.5601601", "0.55997324", "0.5595091", "0.55923945", "0.5583731", "0.5582364", "0.55808777", "0.5578869", "0.55760443", "0.5572487", "0.55715096", "0.5560239", "0.555737", "0.55562407", "0.5547453", "0.55439216", "0.5517879", "0.55059236", "0.5504084", "0.5502775", "0.5500456", "0.5485121", "0.54839814", "0.5464541", "0.54635656", "0.54631543", "0.5462154", "0.5461292", "0.54608834", "0.54519725", "0.54481196", "0.54469883", "0.54446036", "0.5444121", "0.5438991", "0.54368097", "0.5435904", "0.5430544", "0.54237366", "0.5421742" ]
0.68358326
2
~ Methods DOCUMENT ME!
public boolean isStopped() { return FLD$Stopped; }
{ "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\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "public void mo38117a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void getExras() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void furyo ()\t{\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void method_4270() {}", "public void mo21793R() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void getStatus() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\n protected void prot() {\n }", "public void mo21779D() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo97908d() {\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "private void m50366E() {\n }", "public void mo6081a() {\n }", "private void strin() {\n\n\t}", "public void mo21785J() {\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}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void mo9848a() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "protected void mo6255a() {\n }", "public void mo115190b() {\n }", "public void mo21794S() {\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo12930a() {\n }", "public void m23075a() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void mo3376r() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "private void poetries() {\n\n\t}", "public abstract void mo70713b();", "public void mo21795T() {\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void stg() {\n\n\t}", "public void mo21792Q() {\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "void mo57277b();", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public abstract void mo56925d();", "public void identify() {\n\n\t}", "public void skystonePos4() {\n }" ]
[ "0.6692903", "0.65987754", "0.6545932", "0.64571804", "0.64571804", "0.63906264", "0.6385954", "0.6385954", "0.6379347", "0.6378512", "0.6368745", "0.6349985", "0.63294756", "0.63076603", "0.6278317", "0.62771356", "0.6270411", "0.6253214", "0.6183789", "0.6173654", "0.6142753", "0.61358285", "0.61323375", "0.6100764", "0.6100485", "0.60865724", "0.60865724", "0.60865724", "0.60865724", "0.60865724", "0.60865724", "0.60865724", "0.60791594", "0.6069286", "0.606141", "0.60345083", "0.60211515", "0.60111517", "0.6000786", "0.5999469", "0.5997811", "0.5993045", "0.5989259", "0.598343", "0.5981021", "0.5968921", "0.596746", "0.5967315", "0.59633255", "0.59616214", "0.5947777", "0.5946255", "0.59454644", "0.5932886", "0.59244674", "0.59230876", "0.59099174", "0.5901811", "0.5887611", "0.5880565", "0.58797306", "0.587816", "0.5876503", "0.5868654", "0.586095", "0.5860562", "0.5857735", "0.58554816", "0.58542055", "0.58514464", "0.58514464", "0.5842243", "0.58410007", "0.58389896", "0.58291614", "0.58242816", "0.58240366", "0.5819837", "0.5817074", "0.5816552", "0.5811571", "0.58081025", "0.58037007", "0.58024514", "0.5791187", "0.5787211", "0.5775399", "0.577082", "0.576373", "0.57538337", "0.5744199", "0.57432663", "0.5740812", "0.5735431", "0.5729287", "0.57226825", "0.57225746", "0.5720868", "0.57154995", "0.57150805", "0.57120186" ]
0.0
-1
91. Decode Ways Medium 1139 1343 Favorite Share A message containing letters from AZ is being encoded to numbers using the following mapping: 'A' > 1 'B' > 2 ... 'Z' > 26 Given a nonempty string containing only digits, determine the total number of ways to decode it. Example 1: Input: "12" Output: 2 Explanation: It could be decoded as "AB" (1 2) or "L" (12). Example 2: Input: "226" Output: 3 Explanation: It could be decoded as "BZ" (2 26), "VF" (22 6), or "BBF" (2 2 6). Runtime: 2 ms, faster than 68.15% of Java online submissions for Decode Ways. Memory Usage: 34.4 MB, less than 3.09% of Java online submissions for Decode Ways.
public int numDecodings(String s) { if ((s==null)||(s.length()<1)||(s.charAt(0)=='0')){ return 0; } int index = 0; Map<Integer,Integer> c = new HashMap<Integer,Integer>(); c.put(index, 1); index++; while(index <s.length()) { int value = 0; char pre = s.charAt(index-1); char cur = s.charAt(index); int preprevalue = 0; if(index==1) { preprevalue = 1; }else { preprevalue = c.get(index- 2); } if (cur=='0') { if((pre!='1')&&(pre!='2')) { return 0; }else { value = preprevalue; } }else { if(((pre!='1')&&(pre!='2')) || ((cur-'0')>6)&& (pre!='1') ) { value = c.get(index-1); }else { value = c.get(index-1) + preprevalue; } } c.put(index, value); index++; } return c.get(s.length()-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numDecodings(String s) {\r\n\t\tif(s == null || s.length() == 0)\r\n\t\t\treturn 0;\r\n\t\tint len = s.length();\r\n\t\tint[] ways = new int[len + 1];\r\n\t\tways[0] = 1;\r\n\t\tways[1] = s.charAt(0) == '0' ? 0 : 1;\r\n\t\t\r\n\t\tfor(int i = 2; i <= len; i++) {\r\n\t\t\tint code1 = Integer.valueOf(s.substring(i - 1, i)); // 1 digit\r\n\t\t\t//System.out.println(\"c1: \" + code1);\r\n\t\t\tint code2 = Integer.valueOf(s.substring(i - 2, i)); // 2 digit\r\n\t\t\t//System.out.println(\"c2: \" + code2);\r\n\t\t\t\r\n\t\t\t//ways[i] = (code1 != 0 ? ways[i - 1] : 0) + (code2 <= 26 && code2 > 9 ? ways[i - 2] : 0);\r\n\t\t\tif(code1 >= 1 && code1 <= 9)\r\n\t\t\t\tways[i] = ways[i - 1];\r\n\t\t\tif(code2 >= 10 && code2 <= 26)\r\n\t\t\t\tways[i] += ways[i - 2];\r\n\t\t\t//System.out.println(\"ways[\" + i + \"]: \" + ways[i]);\r\n\t\t}\r\n\t\t\r\n\t\treturn ways[len];\r\n\t}", "public int numDecodings(String s) {\n if(s==null||s.length()==0){\n return 0;\n }\n\n int n=s.length();\n int[] mem=new int[n+1];\n\n mem[n]=1;\n if(Integer.parseInt(s.substring(n-1))!=0){\n mem[n-1]=1;\n }\n\n for(int i=n-2;i>=0;i--){\n if(Integer.parseInt(s.substring(i,i+1))==0){\n continue;\n }\n if(Integer.parseInt(s.substring(i,i+2))<26){\n mem[i]=mem[i+1]+mem[i+2];\n }else{\n mem[i]=mem[i+1];\n }\n }\n\n return mem[0];\n }", "public int numDecodingsDP(String s) {\n int n=s.length();\n int[] dp = new int[n+1];\n\n dp[0]=1;\n //since we have guaranteed first char will never be\n dp[1]=s.charAt(0)=='0'? 0:1;\n //start with 2 and go 2 characters behind\n for(int i=2;i<=n;i++){\n //if single digit decode is possible\n //i'th character of dp is i-1th of string\n\n if(s.charAt(i-1)!='0')\n dp[i]=dp[i-1];\n\n String twoDigit=s.substring(i-2,i);\n if(Integer.parseInt(twoDigit)>=10 && Integer.parseInt(twoDigit) <=26)\n dp[i]+=dp[i-2];\n\n }\n\n return dp[n];\n }", "public static int numDecodings_orig(String s) {\n\n if (s == null || s.length() == 0) {\n return 0;\n }\n\n char[] nums = s.toCharArray();\n int[] memos = new int[nums.length];\n memos[nums.length-1] = nums[nums.length-1] != '0' ? 1 : 0;\n for (int i = nums.length-2; i >= 0; i--) {\n int numAtI = nums[i+0]-'0';\n int numAtI_1 = nums[i+1]-'0';\n\n if (numAtI > 2 || (numAtI == 2 && numAtI_1 > 6)) {\n memos[i] = memos[i+1];\n } else if (numAtI == 1 || (numAtI == 2 && numAtI_1 <= 6)) {\n if (i < nums.length-2) {\n memos[i] = memos[i+1] + memos[i+2];\n } else {\n memos[i] = memos[i+1] + 1;\n }\n }\n }\n\n return memos[0];\n }", "public static int numDecodings2(String s) {\r\n\t\tif(s == null || s.length() == 0)\r\n\t\t\treturn 0;\r\n\t\tint len = s.length();\r\n\t\tint prev1 = 1;\r\n\t\tint prev2 = s.charAt(0) == '0' ? 0 : 1;\r\n\t\t\r\n\t\tfor(int i = 2; i <= len; i++) {\r\n\t\t\tint code1 = Integer.valueOf(s.substring(i - 1, i)); // 1 digit\r\n\t\t\tint code2 = Integer.valueOf(s.substring(i - 2, i)); // 2 digit\r\n\t\t\tint temp = prev2;\r\n\t\t\tprev2 = (code1 != 0 ? prev2 : 0) + (code2 <= 26 && code2 > 9 ? prev1 : 0);\r\n\t\t\tprev1 = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn prev2;\r\n\t}", "public static void main(String[] args) {\n String input = \"1234232425\";\n int result = decodeWays(input);\n System.out.println(\"Decode ways \" + result);\n }", "public static void main(String[] args) {\n String s = \"**********1111111111\";\n Solution solution = new Solution();\n System.out.println(solution.numDecodings(s));\n }", "@Test\n\tvoid testDecodeWays() {\n\t\tassertEquals(2, new DecodeWays().numDecodings(\"12\"));\n\t\tassertEquals(3, new DecodeWays().numDecodings(\"226\"));\n\t\tassertEquals(0, new DecodeWays().numDecodings(\"00\"));\n\t\tassertEquals(0, new DecodeWays().numDecodings(\"01\"));\n\t}", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString input1=sc.nextLine();\r\ninput1=input1.toLowerCase();\r\nint l=input1.length();\r\nchar a[]=input1.toCharArray();\r\nint d[]=new int[1000];\r\nString str=\"\";\r\nint i=0,k1=0,k2=0,m=0,c1=0,c2=0,c3=0,l1=0,u=0,u1=0;\r\nchar b[]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\r\nfor(i=0;i<l;i++)\r\n{ c3=0;\r\n\tif(a[i]==' ')\r\n\t{u=i;c3=0;\r\n\t\tfor(k1=u1,k2=i-1;k1<k2 && k2>k1;k1++,k2--)\r\n\t\t{ c1=0;c2=0;\r\n\t\t\tfor(m=0;m<26;m++)\r\n\t\t\t{\r\n\t\t\t\tif(b[m]==a[k1]) {\r\n\t\t\t\tc1=m+1;}\t\r\n\t\t\t\tif(b[m]==a[k2]) {\r\n\t\t\t\t\tc2=m+1;}\t\r\n\t\t\t}\r\n\t\t\tc3=c3+Math.abs(c1-c2);\r\n\t\t}\r\n\t\tif(k1==k2) {\r\n\t\t\tfor(m=0;m<26;m++) {\r\n\t\t\t\tif(b[m]==a[k1])\r\n\t\t\t\t\tc3=c3+(m+1);\r\n\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\td[l1]=c3;\r\n\t\tl1++;\r\n\t\tu1=i+1;\r\n\t\tc3=0;\r\n\t}\r\n\tif(i==l-1)\r\n\t{\r\n\t\tfor(k1=u+1,k2=i;k1<k2 && k2>k1;k1++,k2--)\r\n\t\t{ c1=0;c2=0;\r\n\t\t\tfor(m=0;m<26;m++)\r\n\t\t\t{\r\n\t\t\t\tif(b[m]==a[k1]) {\r\n\t\t\t\tc1=m+1;}\t\r\n\t\t\t\tif(b[m]==a[k2]) {\r\n\t\t\t\t\tc2=m+1;}\t\r\n\t\t\t}\r\n\t\t\tc3=c3+Math.abs(c1-c2);\r\n\t\t}\r\n\t\tif(k1==k2) {\r\n\t\t\tfor(m=0;m<26;m++) {\r\n\t\t\t\tif(b[m]==a[k1])\r\n\t\t\t\t\tc3=c3+(m+1);\r\n\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\td[l1]=c3;\r\n\t\tl1++;\r\n\t\tk1=i+1;\r\n\t}\r\n}\r\n\r\n for(i=0;i<l1;i++)\r\n {\r\n\t str=str+Integer.toString(d[i]);\r\n }\r\n int ans=Integer.parseInt(str);\r\n System.out.print(ans);\r\n}", "public int count_decoding_improved(char[] digits, int n){\n// if(n==0 || n==1)\n// return 1;\n\n int[] count = new int[n+1];\n\n count[0] = 1;\n count[1] = 1;\n //int count = 0;\n\n for(int i = 2; i <= n; i++){\n if(digits[i-1] > '0')\n count[i] = count[i-1];\n\n if(digits[i-2]=='1' || digits[i-2] == '2' && digits[i-1] < '7')\n count[i] += count[i-2];\n }\n\n\n\n return count[n];\n }", "public int numDecodings(String s) {\n if (s == null || s.length() == 0)\n return 0;\n \n int arr[] = new int[s.length()];\n \n for(int i = 0; i < arr.length; i++)\n arr[i] = -1;\n \n return recur(s, 0, arr);\n }", "public static void decode () {\n // read the input\n int firstThing = BinaryStdIn.readInt();\n s = BinaryStdIn.readString();\n char[] t = s.toCharArray();\n char[] firstColumn = new char[t.length];\n int [] next = new int[t.length];\n \n // copy array and sort\n for (int i = 0; i < t.length; i++) {\n firstColumn[i] = t[i];\n }\n Arrays.sort(firstColumn);\n \n // decode\n int N = t.length;\n int [] count = new int[256];\n \n // counts frequency of each letter\n for (int i = 0; i < N; i++) {\n count[t[i]]++;\n }\n \n int m = 0, j = 0;\n \n // fills the next[] array with appropriate values\n while (m < N) {\n int _count = count[firstColumn[m]];\n while (_count > 0) {\n if (t[j] == firstColumn[m]) {\n next[m++] = j;\n _count--;\n }\n j++;\n }\n j = 0;\n }\n \n // decode the String\n int _next = next.length;\n int _i = firstThing;\n for (int i = 0; i < _next; i++) {\n _i = next[_i];\n System.out.print(t[_i]);\n } \n System.out.println();\n }", "public String decode(String input) {\n String decoded = \"\";\n char[] message = input.toCharArray();\n for (int j = 0; j < message.length; j++) { //takes input into a array of chars\n decodingQueue.enqueue(message[j]);\n }\n char lastvalue =0;\n boolean islastvaluenum= false;\n for (int i = 0; i < input.length(); i++) {\n char character = decodingQueue.dequeue();\n if(character != ' ') { //if not a space\n String alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n if (islastvaluenum==false) { //if last value was not a num, then proceed normally with first set of numbers\n char decodedvalue = denumerate(character, 1);\n if (decodedvalue != 0) {\n islastvaluenum = true;\n decoded = decoded + decodedvalue;\n }\n else {\n islastvaluenum = false;\n int shiftvalue = -(5+(2*i));\n boolean charfound = false;\n char[] chararray = (alphabet.toUpperCase()).toCharArray();\n char output = 'n';\n for (int j=0;j<chararray.length;j++) {// look through the alphabet and see if character matches, then shift accordingly to shiftby\n if (charfound==false) {\n if (character == chararray[j]) {\n output = chararray[(j+chararray.length+shiftvalue)% chararray.length];\n charfound = true;\n }\n }\n }\n character = output;\n decoded = decoded + character;\n }\n }\n else {\n char decodedvalue = denumerate(character, 2); //if last value was a num, then proceed with second set of numbers\n if (decodedvalue != 0) {\n islastvaluenum = true;\n decoded = decoded+ decodedvalue;\n }\n else {\n islastvaluenum = false;\n int shiftvalue1 = -5;\n boolean charfound = false;\n char[] chararray = (alphabet.toUpperCase()).toCharArray();\n char output = 'n';\n for (int j=0;j<chararray.length;j++) {// look through the alphabet and see if character matches, then shift accordingly to shiftby\n if (charfound==false) {\n if (character == chararray[j]) {\n output = chararray[(j+chararray.length+shiftvalue1)% chararray.length];\n charfound = true;\n }\n }\n }\n character = output;\n int shiftvalue2 = (2 * (lastvalue - '0'))-(i * 2);\n charfound = false;\n chararray = (alphabet.toUpperCase()).toCharArray();\n output = 'n';\n for (int j=0;j<chararray.length;j++) {// look through the alphabet and see if character matches, then shift accordingly to shiftby\n if (charfound==false) {\n if (character == chararray[j]) {\n output = chararray[(j+chararray.length+shiftvalue2)% chararray.length];\n charfound = true;\n }\n }\n }\n character = output;\n\n decoded = decoded + character;\n }\n }\n lastvalue = character;\n }\n else{\n decoded = decoded + ' ';\n }\n }\n return decoded;\n }", "private int m127619a(String str) {\n if (TextUtils.isEmpty(str)) {\n return 0;\n }\n int i = 0;\n for (char a : str.toCharArray()) {\n if (m127620a(a)) {\n i++;\n }\n }\n return i;\n }", "private static int solution4(String s) {\r\n int n = s.length(), ans = 0;\r\n Map<Character, Integer> map = new HashMap<>();\r\n for (int j = 0, i = 0; j < n; j++) {\r\n if (map.containsKey(s.charAt(j)))\r\n i = Math.max(map.get(s.charAt(j)), i);\r\n ans = Math.max(ans, j - i + 1);\r\n map.put(s.charAt(j), j + 1);\r\n }\r\n return ans;\r\n }", "static int alternate(String s) {\n\n \n char[] charArr = s.toCharArray();\n\n int[] arrCount=new int[((byte)'z')+1];\n\n for(char ch:s.toCharArray()){ \n arrCount[(byte)ch]+=1;\n }\n \n int maxLen=0;\n for(int i1=0;i1<charArr.length;++i1)\n {\n char ch1= charArr[i1];\n for(int i2=i1+1;i2<charArr.length;++i2)\n {\n char ch2 = charArr[i2];\n if(ch1 == ch2)\n break;\n\n //validate possible result\n boolean ok=true;\n {\n char prev = ' ';\n for(char x:charArr){\n if(x == ch1 || x == ch2){\n if(prev == x){\n ok=false;\n break;\n }\n prev = x;\n }\n }\n\n }\n if(ok)\n maxLen = Math.max(maxLen,arrCount[(byte)ch1]+arrCount[(byte)ch2]);\n }\n }\n\n return maxLen;\n\n }", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "public static void decode() {\n int first = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int n = t.length();\n int[] count = new int[256 + 1];\n int[] next = new int[n];\n int i = 0;\n while (i < n) {\n count[t.charAt(i) + 1]++;\n i++;\n }\n i = 1;\n while (i < 256 + 1) {\n count[i] += count[i - 1];\n i++;\n }\n i = 0;\n while (i < n) {\n next[count[t.charAt(i)]++] = i;\n i++;\n }\n i = next[first];\n int c = 0;\n while (c < n){\n BinaryStdOut.write(t.charAt(i));\n i = next[i];\n c++;\n }\n BinaryStdOut.close();\n }", "public static int convert26to10(String s) {\n if (null != s && !\"\".equals(s)) {\n int n = 0;\n char[] tmp = s.toCharArray();\n for (int i = tmp.length - 1, j = 1; i >= 0; i--, j *= 26) {\n char c = Character.toUpperCase(tmp[i]);\n if (c < 'A' || c > 'Z') return 0;\n n += ((int) c - 64) * j;\n }\n return n;\n }\n return 0;\n }", "public static String decode(String inString) throws Exception{\r\n\t\tStringBuilder decodedString = new StringBuilder();\r\n\t\tString[] splitString = inString.split(\"\\\\s\");\r\n\t\tString type = splitString[3].substring(5, splitString[3].length());\r\n\t\tString Key = splitString[4].substring(4, splitString[4].length()-1);\r\n\t\tStringBuilder temp = new StringBuilder();\r\n\t\tfor(int j=0;j<5;j++){\r\n\t\t\tdecodedString.append(splitString[j]);\r\n\t\t\tdecodedString.append(\" \");\r\n\t\t}\r\n\t\tif(type.equals(\"Caesar\")){\r\n\t\t\tString encodedString = unHex(splitString[5]);\r\n\t\t\tinString = encodedString;\r\n\t\t\tchar[] alphabet ={'a','b','c','d','e','f','g','h','i','j','k','l','m',\r\n\t\t\t\t\t'n','o','p','q','r','s','t','u','v','w','x','y','z','å','ä','ö','A','B',\r\n\t\t\t\t\t'C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W',\r\n\t\t\t\t\t'X','Y','Z','Å','Ä','Ö','0','1','2','3',\r\n\t\t\t\t\t'4','5','6','7','8','9','!','?',')','(','=','>','<','/','&','%','#','@','$','[',']'};\r\n\t\t\tint Keyint = (int) (Long.parseLong(Key,16)%alphabet.length);\r\n\t\t\tSystem.out.println(\"Here is \"+ Keyint);\r\n\t\t\tfor(int i = 0; i < inString.length(); i++){\r\n\t\t\t\tchar a = inString.charAt(i);\r\n\t\t\t\tint used = 0;\r\n\t\t\t\tfor(char b: alphabet){\r\n\t\t\t\t\tif(b==a){\r\n\t\t\t\t\t\tif(indexOf(alphabet,b)<Keyint){\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tdecodedString.append(\r\n\t\t\t\t\t\t\t\t\t\talphabet[(alphabet.length-\r\n\t\t\t\t\t\t\t\t\t\t\t\tKeyint+indexOf(alphabet,b))]);\r\n\t\t\t\t\t\t\t\tused = 1;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}catch(Exception c){\r\n\t\t\t\t\t\t\t\tSystem.out.print(c.getMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tdecodedString.append(alphabet[(indexOf(alphabet,b)\r\n\t\t\t\t\t\t\t\t\t\t-Keyint)]);\r\n\t\t\t\t\t\t\t\tused = 1;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}catch(Exception c){\r\n\t\t\t\t\t\t\t\tSystem.out.print(c.getMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(used==0){\r\n\t\t\t\t\tdecodedString.append(a);\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse if(type.equals(\"AES\")){\r\n\t\t\tString neuKey = unHex(Key);\r\n\t\t\tbyte[] keyContent = Base64.getDecoder().decode(neuKey);\r\n\t\t\tString encodedString = unHex(splitString[5]);\r\n\t\t\tbyte[] encoded = hexStringToByteArray(splitString[5]);\r\n\t\t\tSystem.out.println(\"This is: \"+ new String(encoded,\"UTF8\"));\r\n\t\t\tinString = encodedString;\r\n\t\t\tSecretKeySpec decodeKey = new SecretKeySpec(keyContent, \"AES\");\r\n\t\t\tCipher AEScipher = Cipher.getInstance(\"AES\");\r\n\t\t\tAEScipher.init(Cipher.DECRYPT_MODE, decodeKey);\r\n\t\t\tbyte[] decryptedData;\r\n\t\t\tdecryptedData = AEScipher.doFinal(encoded);\r\n\t\t decodedString.append(new String(decryptedData,\"UTF8\"));\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new Exception(\"Not a valid encryption\");\r\n\t\t}\r\n\t\tdecodedString.append(splitString[splitString.length-2]);\r\n\t\tdecodedString.append(\" \");\r\n\t\tdecodedString.append(splitString[splitString.length-1]);\r\n\t\treturn decodedString.toString();\r\n\t\t\r\n\t}", "public int mo29670a(String str) {\n int length = str.length();\n int i = this.f19526c;\n for (int i2 = 0; i2 < length; i2++) {\n i = (i * 33) + str.charAt(i2);\n }\n if (i == 0) {\n return 1;\n }\n return i;\n }", "public static String compute(String input) {\n if (input == null || input.length() == 0) {\n return \"\";\n }\n String x = input.toLowerCase();\n int[] memo = new int[256];\n for (int i = 0; i < x.length(); i++) {\n if ('a' <= x.charAt(i) && x.charAt(i) <= 'z') {\n memo[x.charAt(i)]++;\n }\n }\n List<Integer> list = new ArrayList<>();\n for (int i = 0; i < 256; i++) {\n if (memo[i] != 0) {\n list.add(memo[i]);\n }\n }\n Collections.sort(list, (a, b) -> b - a);\n long res = 0;\n int count = 26;\n for (int i : list) {\n res += i * count--;\n }\n return String.valueOf(res);\n }", "public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }", "public int solve(String A) {\n int c=0;\n int n=A.length();\n for(int i=0;i<n;i++){\n if(A.charAt(i)=='A'||A.charAt(i)=='E'||A.charAt(i)=='I'||A.charAt(i)=='O'||A.charAt(i)=='U'||A.charAt(i)=='a'||A.charAt(i)=='e'||A.charAt(i)=='i'||A.charAt(i)=='o'||A.charAt(i)=='u'){\n c+= (n-i);\n }\n }\n \n return (c%10003);\n }", "public static void main(String[] args) {\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"012345678\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456789\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567890\"));\r\n\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UCYF\\nALXLAT\\nSAZUF\\nCYFALT\\nXLASAU\\nYCXH\"));\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UHTL\\nYTHCFC\\nJJZUU\\nHTLYTX\\nHCFJJT\\nAFTY\"));\r\n\t}", "static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "public static void main(String args[] ) throws Exception {\n Scanner in = new Scanner(System.in);\n \n String original = in.next();\n int n = original.length();\n long moda = 1000000007;\n long ones = 1;\n long sum=0; \n for (int s=original.length()-1; s>=0; s--) {\n sum = (sum + (s+1) * (original.charAt(s) - '0') * ones) %moda; \n ones = (ones * 10 + 1) % moda;\n \n }\n \n System.out.println(sum);\n \n }", "public String countAndSay(int n) {\n Map<Integer, String> ans = new HashMap<>();\n\n ans.put(1, \"1\");\n ans.put(2, \"11\");\n ans.put(3, \"21\");\n ans.put(4, \"1211\");\n ans.put(5, \"111221\");\n ans.put(6, \"312211\");\n ans.put(7, \"13112221\");\n ans.put(8, \"1113213211\");\n ans.put(9, \"31131211131221\");\n ans.put(10, \"13211311123113112211\");\n ans.put(11, \"11131221133112132113212221\");\n ans.put(12, \"3113112221232112111312211312113211\");\n ans.put(13, \"1321132132111213122112311311222113111221131221\");\n ans.put(14, \"11131221131211131231121113112221121321132132211331222113112211\");\n ans.put(15, \"311311222113111231131112132112311321322112111312211312111322212311322113212221\");\n ans.put(16, \"132113213221133112132113311211131221121321131211132221123113112221131112311332111213211322211312113211\");\n ans.put(17, \"11131221131211132221232112111312212321123113112221121113122113111231133221121321132132211331121321231231121113122113322113111221131221\");\n ans.put(18, \"31131122211311123113321112131221123113112211121312211213211321322112311311222113311213212322211211131221131211132221232112111312111213111213211231131122212322211331222113112211\");\n ans.put(19, \"1321132132211331121321231231121113112221121321132122311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213122112311311123112111331121113122112132113213211121332212311322113212221\");\n ans.put(20, \"11131221131211132221232112111312111213111213211231132132211211131221131211221321123113213221123113112221131112311332211211131221131211132211121312211231131112311211232221121321132132211331121321231231121113112221121321133112132112312321123113112221121113122113121113123112112322111213211322211312113211\");\n ans.put(21, \"311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122211311122122111312211213211312111322211213211321322113311213212322211231131122211311123113223112111311222112132113311213211221121332211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221131112311311121321122112132231121113122113322113111221131221\");\n ans.put(22, \"132113213221133112132123123112111311222112132113311213211231232112311311222112111312211311123113322112132113213221133122112231131122211211131221131112311332211211131221131211132221232112111312111213322112132113213221133112132113221321123113213221121113122123211211131221222112112322211231131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122211211133112111311222112111312211312111322211213211321322113311213211331121113122122211211132213211231131122212322211331222113112211\");\n ans.put(23, \"111312211312111322212321121113121112131112132112311321322112111312212321121113122112131112131221121321132132211231131122211331121321232221121113122113121113222123112221221321132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322212321121113122123211231131122113221123113221113122112132113213211121332212311322113212221\");\n ans.put(24, \"3113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213213211221113122113121113222112132113213221232112111312111213322112132113213221133112132123123112111311222112132113311213211221121332211231131122211311123113321112131221123113112221132231131122211211131221131112311332211213211321223112111311222112132113212221132221222112112322211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211132221121311121312211213211312111322211213211321322113311213212322211231131122211311123113321112131221123113112211121312211213211321222113222112132113223113112221121113122113121113123112112322111213211322211312113211\");\n ans.put(25, \"132113213221133112132123123112111311222112132113311213211231232112311311222112111312211311123113322112132113212231121113112221121321132132211231232112311321322112311311222113111231133221121113122113121113221112131221123113111231121123222112132113213221133112132123123112111312111312212231131122211311123113322112111312211312111322111213122112311311123112112322211211131221131211132221232112111312111213111213211231132132211211131221232112111312212221121123222112132113213221133112132123123112111311222112132113213221132213211321322112311311222113311213212322211211131221131211221321123113213221121113122113121132211332113221122112133221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112212211131221121321131211132221123113112221131112311332211211133112111311222112111312211311123113322112111312211312111322212321121113121112133221121321132132211331121321231231121113112221121321132122311211131122211211131221131211322113322112111312211322132113213221123113112221131112311311121321122112132231121113122113322113111221131221\");\n ans.put(26, \"1113122113121113222123211211131211121311121321123113213221121113122123211211131221121311121312211213211321322112311311222113311213212322211211131221131211221321123113213221121113122113121113222112131112131221121321131211132221121321132132211331121321232221123113112221131112311322311211131122211213211331121321122112133221121113122113121113222123211211131211121311121321123113111231131122112213211321322113311213212322211231131122211311123113223112111311222112132113311213211221121332211231131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122113221122112133221121113122113121113222123211211131211121311121321123113213221121113122113121113222113221113122113121113222112132113213221232112111312111213322112311311222113111221221113122112132113121113222112311311222113111221132221231221132221222112112322211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331121321232221123123211231132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312111213111213211231132132211211131221131211221321123113213221123113112221131112211322212322211231131122211322111312211312111322211213211321322113311213211331121113122122211211132213211231131122212322211331222113112211\");\n ans.put(27, \"31131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122211211133112111311222112111312211312111322211213211321322123211211131211121332211231131122211311122122111312211213211312111322211231131122211311123113322112111331121113112221121113122113111231133221121113122113121113222123211211131211121332211213211321322113311213211322132112311321322112111312212321121113122122211211232221123113112221131112311332111213122112311311123112111331121113122112132113311213211321222122111312211312111322212321121113121112133221121321132132211331121321132213211231132132211211131221232112111312212221121123222112132113213221133112132123123112111311222112132113311213211231232112311311222112111312211311123113322112132113212231121113112221121321132122211322212221121123222112311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122211311123113322113223113112221131112311332211211131221131211132211121312211231131112311211232221121321132132211331221122311311222112111312211311123113322112132113213221133122211332111213112221133211322112211213322112111312211312111322212321121113121112131112132112311321322112111312212321121113122112131112131221121321132132211231131122211331121321232221121113122113121122132112311321322112111312211312111322211213111213122112132113121113222112132113213221133112132123222112311311222113111231132231121113112221121321133112132112211213322112111312211312111322212311222122132113213221123113112221133112132123222112111312211312111322212321121113121112133221121311121312211213211312111322211213211321322123211211131211121332211213211321322113311213212312311211131122211213211331121321122112133221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311222113111221221113122112132113121113222112132113213221133122211332111213322112132113213221132231131122211311123113322112111312211312111322212321121113122123211231131122113221123113221113122112132113213211121332212311322113212221\");\n ans.put(28, \"13211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331121321232221123123211231132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221232112111312211312113211223113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211322113321132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321322113311213212322211322132113213221133112132123222112311311222113111231132231121113112221121321133112132112211213322112111312211312111322212311222122132113213221123113112221133112132123222112111312211312111322212311322123123112111321322123122113222122211211232221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112212211131221121321131211132221123113112221131112311332211211133112111311222112111312211311123113322112111312211312111322212321121113121112133221121321132132211331121321132213211231132132211211131221232112111312212221121123222112311311222113111231133211121321321122111312211312111322211213211321322123211211131211121332211231131122211311123113321112131221123113111231121123222112111331121113112221121113122113111231133221121113122113121113221112131221123113111231121123222112111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321133112132112312321123113112221121113122113111231133221121321132132211331221122311311222112111312211311123113322112111312211312111322212311322123123112112322211211131221131211132221132213211321322113311213212322211231131122211311123113321112131221123113112211121312211213211321222113222112132113223113112221121113122113121113123112112322111213211322211312113211\");\n ans.put(29, \"11131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211132221121311121312211213211312111322211213211321322113311213212322211231131122211311123113223112111311222112132113311213211221121332211211131221131211132221231122212213211321322112311311222113311213212322211211131221131211132221232112111312111213322112131112131221121321131211132221121321132132212321121113121112133221121321132132211331121321231231121113112221121321133112132112211213322112311311222113111231133211121312211231131122211322311311222112111312211311123113322112132113212231121113112221121321132122211322212221121123222112111312211312111322212321121113121112131112132112311321322112111312212321121113122112131112131221121321132132211231131122111213122112311311222113111221131221221321132132211331121321231231121113112221121321133112132112211213322112311311222113111231133211121312211231131122211322311311222112111312211311123113322112132113212231121113112221121321132122211322212221121123222112311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122111213122112311311222112111331121113112221121113122113121113222112132113213221232112111312111213322112311311222113111221221113122112132113121113222112311311222113111221132221231221132221222112112322211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312111322212321121113121112133221132211131221131211132221232112111312111213322112132113213221133112132113221321123113213221121113122123211211131221222112112322211231131122211311123113321112132132112211131221131211132221121321132132212321121113121112133221123113112221131112311332111213211322111213111213211231131211132211121311222113321132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331121321232221123123211231132132211231131122211331121321232221123113112221131112311332111213122112311311123112112322211211131221131211132221232112111312211322111312211213211312111322211231131122111213122112311311221132211221121332211213211321322113311213212312311211131211131221223113112221131112311332211211131221131211132211121312211231131112311211232221121321132132211331121321231231121113112221121321133112132112211213322112312321123113213221123113112221133112132123222112311311222113111231132231121113112221121321133112132112211213322112311311222113111231133211121312211231131112311211133112111312211213211312111322211231131122111213122112311311221132211221121332211211131221131211132221232112111312111213111213211231132132211211131221232112111312211213111213122112132113213221123113112221133112132123222112111312211312111322212311222122132113213221123113112221133112132123222112311311222113111231133211121321132211121311121321122112133221123113112221131112311332211322111312211312111322212321121113121112133221121321132132211331121321231231121113112221121321132122311211131122211211131221131211322113322112111312211322132113213221123113112221131112311311121321122112132231121113122113322113111221131221\");\n ans.put(30, \"3113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112212211131221121321131211132221123113112221131112311332211211133112111311222112111312211311123113322112111312211312111322212321121113121112133221121321132132211331121321132213211231132132211211131221232112111312212221121123222112311311222113111231133211121321321122111312211312111322211213211321322123211211131211121332211231131122211311123113321112131221123113111231121123222112111331121113112221121113122113111231133221121113122113121113221112131221123113111231121123222112111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321132132211322132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211322113321132211221121332211231131122211311123113321112131221123113111231121113311211131221121321131211132221123113112211121312211231131122211211133112111311222112111312211312111322211213211321223112111311222112132113213221133122211311221122111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321132132211322132113213221123113112221133112132123222112111312211312112213211231132132211211131221131211322113321132211221121332211213211321322113311213212312311211131122211213211331121321123123211231131122211211131221131112311332211213211321223112111311222112132113213221123123211231132132211231131122211311123113322112111312211312111322111213122112311311123112112322211213211321322113312211223113112221121113122113111231133221121321132132211331222113321112131122211332113221122112133221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213122112311311123112112322211322311311222113111231133211121312211231131112311211232221121113122113121113222123211211131221132211131221121321131211132221123113112211121312211231131122113221122112133221121321132132211331121321231231121113121113122122311311222113111231133221121113122113121113221112131221123113111231121123222112132113213221133112132123123112111312211322311211133112111312211213211311123113223112111321322123122113222122211211232221121113122113121113222123211211131211121311121321123113213221121113122123211211131221121311121312211213211321322112311311222113311213212322211211131221131211221321123113213221121113122113121113222112131112131221121321131211132221121321132132211331121321232221123113112221131112311322311211131122211213211331121321122112133221121113122113121113222123112221221321132132211231131122211331121321232221121113122113121113222123211211131211121332211213111213122112132113121113222112132113213221232112111312111213322112132113213221133112132123123112111311222112132113311213211221121332211231131122211311123113321112131221123113112221132231131122211211131221131112311332211213211321223112111311222112132113212221132221222112112322211211131221131211132221232112111312111213111213211231131112311311221122132113213221133112132123222112311311222113111231132231121113112221121321133112132112211213322112111312211312111322212321121113121112131112132112311321322112111312212321121113122122211211232221121311121312211213211312111322211213211321322123211211131211121332211213211321322113311213211322132112311321322112111312212321121113122122211211232221121321132132211331121321231231121113112221121321133112132112312321123113112221121113122113111231133221121321132122311211131122211213211321222113222122211211232221123113112221131112311332111213122112311311123112111331121113122112132113121113222112311311221112131221123113112221121113311211131122211211131221131211132221121321132132212321121113121112133221123113112221131112311332111213213211221113122113121113222112132113213221232112111312111213322112132113213221133112132123123112111312211322311211133112111312212221121123222112132113213221133112132123222113223113112221131112311332111213122112311311123112112322211211131221131211132221232112111312111213111213211231132132211211131221131211221321123113213221123113112221131112211322212322211231131122211322111312211312111322211213211321322113311213211331121113122122211211132213211231131122212322211331222113112211\");\n \n return ans.get(n);\n }", "private static int m615a(String str, int i) {\n int length = str.length() - 1;\n int i2 = 1;\n int i3 = 0;\n while (length >= 0) {\n int indexOf = (f337z[0].indexOf(str.charAt(length)) * i2) + i3;\n i3 = i2 + 1;\n if (i3 > i) {\n i3 = 1;\n }\n length--;\n i2 = i3;\n i3 = indexOf;\n }\n return i3 % 47;\n }", "public static int countCompression(String str) {\n if (str == null || str.isEmpty()) return 0;\n char last = str.charAt(0);\n int size = 0;\n int count = 1;\n\n for (int i = 1; i < str.length(); i++) {\n if (str.charAt(i) == last) count++;\n else {\n last = str.charAt(i);\n size += 1 + String.valueOf(count).length(); //digit count\n count = 1;\n }\n }\n size += 1 + String.valueOf(count).length();\n return size;\n }", "private int hashFunc(String input) {\n\t\tBigInteger value = BigInteger.valueOf(0);\n\t\tBigInteger k2 = new BigInteger(\"27\");\n\t\tchar c = input.charAt(0);\n\t\tlong i1 = (int) c - 96;\n\t\tBigInteger k1 = new BigInteger(\"0\");\n\t\tk1 = k1.add(BigInteger.valueOf(i1));\n\t\tvalue = k1;\n\n\t\tfor (int i = 1; i < input.length(); i++) {\n\n\t\t\tchar c2 = input.charAt(i);\n\n\t\t\tvalue = value.multiply(k2);\n\n\t\t\tlong i2 = (int) c2 - 96;\n\t\t\tBigInteger k3 = new BigInteger(\"0\");\n\t\t\tk3 = k3.add(BigInteger.valueOf(i2));\n\n\t\t\tvalue = value.add(k3);\n\n\t\t}\n\t\tBigInteger size = new BigInteger(\"0\");\n\t\tsize = size.add(BigInteger.valueOf(this.size));\n\t\tvalue = value.mod(size);\n\n\t\treturn value.intValue();\n\t}", "public String decodeString(String s) {\n Deque<String> stack = new ArrayDeque<String>();\n Deque<Integer> counts = new ArrayDeque<Integer>();\n stack.push(\"\");\n\n char[] str = s.toCharArray();\n\n int i=0;\n while(i<str.length){\n char step = str[i];\n if(!isDigit(step) && step != '[' && step != ']'){\n stack.push(stack.pop()+step);\n i++;\n }else if(isDigit(step)){\n StringBuilder sb = new StringBuilder();\n sb.append(step);\n i++;\n while(i<str.length){\n if(isDigit(str[i])){\n sb.append(str[i]); i++;\n }else{ break; }\n }\n counts.push(Integer.valueOf(sb.toString()));\n }else if(step == '['){\n stack.push(\"[\"); stack.push(\"\"); i++;\n }else{\n int repeatTimes = counts.pop();\n String toBeRepeated = stack.pop(); stack.pop();\n StringBuilder sb = new StringBuilder();\n for(int j=0;j<repeatTimes;j++){\n sb.append(toBeRepeated);\n }\n stack.push(stack.pop()+sb.toString());\n i++;\n }\n }\n\n return stack.pop();\n\n }", "protected abstract int decodeLength ();", "public int characterReplacement4(String s, int k) {\n int max = 0;\n int[] map = new int[26];\n int maxf = 0;\n for(int i=0,j=0;j<s.length();j++){\n map[s.charAt(j)-'A']++;\n maxf = Math.max(maxf,map[s.charAt(j)-'A']);\n if(j-i+1>maxf+k)\n map[s.charAt(i++)-'A']--;\n max = Math.max(max,j-i+1);\n }\n return max;\n }", "public static int m8636a(String str) {\n int i;\n try {\n i = C3700r1.m8884a((CharSequence) str);\n } catch (C3703c unused) {\n i = str.getBytes(C3594b0.f8972a).length;\n }\n return m8656e(i);\n }", "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < s.length(); i++) {\n for (int k = i + 1; k <= s.length(); k++) {\n String sub = s.substring(i, k);\n System.out.println(sub);\n sub = new String(sort(sub.toCharArray()));\n int value = map.getOrDefault(sub, 0);\n if(value > 0) {\n anagramCount = anagramCount + value;\n }\n map.put(sub, value+1);\n\n }\n }\n return anagramCount;\n }", "static\nint\ncountPairs(String str) \n\n{ \n\nint\nresult = \n0\n; \n\nint\nn = str.length(); \n\n\nfor\n(\nint\ni = \n0\n; i < n; i++) \n\n\n// This loop runs at most 26 times \n\nfor\n(\nint\nj = \n1\n; (i + j) < n && j <= MAX_CHAR; j++) \n\nif\n((Math.abs(str.charAt(i + j) - str.charAt(i)) == j)) \n\nresult++; \n\n\nreturn\nresult; \n\n}", "public int titleToNumber(String s) {\n\t int sum = 0;\n\t // for (int i= s.length()-1; i >= 0; i--) {\n\t // sum = sum + (int) Math.pow(26, s.length()-1-i)*(s.charAt(i) - 'A' + 1);\n\t // }\n\t for (int i=0; i<s.length(); i++) {\n\t sum = sum*26 + (s.charAt(i) - 'A' + 1);\n\t }\n\t return sum;\n\t }", "private static int letterToNumber(String str) {\n return (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".indexOf(str))%26+1;\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "@Test\n public void decodeStringDelta()\n {\n {\n final BinaryEncoder encoder = new BinaryEncoder(0, 16, 1.0);\n assertEquals(3.0, encoder.decode(\"0011\"), 0.0);\n }\n\n {\n final BinaryEncoder encoder = new BinaryEncoder(0, 16, 2.0);\n assertEquals(0.0, encoder.decode(\"0001\"), 2.0);\n }\n\n {\n final BinaryEncoder encoder = new BinaryEncoder(0, 16, 0.5);\n assertEquals(3.0, encoder.decode(\"00110\"), 0.0);\n }\n }", "public String decodeString(String s) {\n String res = \"\";\n Stack<Integer> countStack = new Stack<>();\n Stack<String> resStack = new Stack<>();\n int idx = 0;\n while (idx < s.length()) {\n if (Character.isDigit(s.charAt(idx))) {\n int count = 0;\n while (Character.isDigit(s.charAt(idx))) {\n count = 10 * count + (s.charAt(idx) - '0');\n idx++;\n }\n countStack.push(count);\n }\n else if (s.charAt(idx) == '[') {\n resStack.push(res);\n res = \"\";\n idx++;\n }\n else if (s.charAt(idx) == ']') {\n StringBuilder temp = new StringBuilder (resStack.pop());\n int repeatTimes = countStack.pop();\n for (int i = 0; i < repeatTimes; i++) {\n temp.append(res);\n }\n res = temp.toString();\n idx++;\n }\n else {\n res += s.charAt(idx++);\n }\n }\n return res;\n }", "static String GetCheckDigitAndCheckCode(String input) {\n int sum = 0;\n for(int i = 0; i < input.length(); i++) {\n if(i%2 == 0 || i == 0) {\n\n sum += 3 * Character.getNumericValue(input.charAt(i));\n }else {\n sum += Character.getNumericValue(input.charAt(i));\n }\n }\n int subDigit = ((sum/10) + 1 ) * 10;\n int checkDigit = subDigit - sum;\n\n input = input + checkDigit;\n\n\n int digit1 = get9Digits(input.substring(0, 8));\n int digit2 = get9Digits(input.substring(9));\n\n // NOTE - Not able to understand what means by index of 2\n // digit numbers so here am just adding instead of multiplying the 2 9 digits.\n int result = digit1 + digit2 + 207;\n int remainder = result % 103;\n\n StringBuilder sb = new StringBuilder();\n sb.append(checkDigit);\n sb.append(',');\n sb.append(remainder);\n return sb.toString();\n }", "public static int titleToNumber(String s) {\n char [] charArray = s.toCharArray();\n int num = 0;\n int j = 0;\n for(int i = charArray.length-1; i >=0; i--) {\n num += (int) ((charArray[i] - 'A' + 1) * Math.pow(26, j++)); \n }\n \n return num;\n }", "public int countPossibleDecodings(int n, int[] digitSequence) {\n // n denotes the length of the digit array that's already been used\n // if n is (digit.length - 1) then all the digits are already used\n // if n is (digit.length - 2) then all the digits except the last one are already used\n // in both cases only one valid decoded sequence is possible\n if (n == digitSequence.length - 1 || n == digitSequence.length - 2) {\n return 1;\n }\n\n int count = 0;\n // count number of decodings by using digit at index 'n+1'\n if (digitSequence[n+1] > 0) {\n count = countPossibleDecodings(n+1, digitSequence);\n }\n\n // count number of decodings by using next two digits at once\n if (validDecoding(digitSequence[n+1], digitSequence[n+2])) {\n count += countPossibleDecodings(n+2, digitSequence);\n }\n return count;\n }", "static int sherlockAndAnagrams(String s) {\n HashTable hashTable = new HashTable(s.length() * s.length() * 4);\n substrings(s).map(Solution::ordered).forEach(hashTable::insert);\n return substrings(s).map(Solution::ordered).mapToInt(s1 -> {\n hashTable.remove(s1);\n return hashTable.count(s1);\n }).sum();\n }", "public static int Main()\n\t{\n\t\ts = (String)malloc(100000 * (Character.SIZE / Byte.SIZE));\n\t\tint[] count = new int[26];\n\t\tint[] p = new int[26];\n\t\tint n;\n\t\tchar cc;\n\t\tchar key = '-';\n\t\tint min = 100001;\n\t\tint i;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tn = Integer.parseInt(tempVar);\n\t\t}\n\t\tString tempVar2 = ConsoleInput.scanfRead(null, 1);\n\t\tif (tempVar2 != null)\n\t\t{\n\t\t\tcc = tempVar2.charAt(0);\n\t\t}\n\n\t\twhile (n-- != 0)\n\t\t{\n\t\t\ts = new Scanner(System.in).nextLine();\n\t\t\tfor (i = 0;i < 26;i++)\n\t\t\t{\n\t\t\t\tcount[i] = 0;\n\t\t\t\tp[i] = 100001;\n\t\t\t}\n\t\t\tfor (i = 0;i < s.length();i++)\n\t\t\t{\n\t\t\t\tcount[*(s.Substring(i)) - 'a']++;\n\t\t\t\tif (p[*(s.Substring(i)) - 'a'] > i)\n\t\t\t\t{\n\t\t\t\t\tp[*(s.Substring(i)) - 'a'] = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tkey = '-';\n\t\t\tmin = 100001;\n\t\t\tfor (i = 0;i < 26;i++)\n\t\t\t{\n\t\t\t\tif (count[i] == 1 && p[i] < min)\n\t\t\t\t{\n\t\t\t\t\tkey = 'a' + i;\n\t\t\t\t\tmin = p[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (key == '-')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"no\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.printf(\"%c\\n\",key);\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "private static String bigIntDecode(String in){\n\n\t BigInteger largeNum = new BigInteger(in); // declare and initialize the largenum\n\t\t//\n\t BigInteger smallNum = largeNum.divide(key); // reverse math done in encryption\n\tSystem.out.println(\"--------------------------------------------------------------------------------------------------------------------------\");\n\tSystem.out.println( \"Char Value *Must subtract shift now*: \" + smallNum.toString());\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------------------------------------\\n\\n\");\n\t in = smallNum.toString(); //updates in to the small original big int\n\n\n\t String r = \"\"; // empty result string\n\n\t for(int i = 0; i < in.length();i += 3){ // for loop to extract each 3 nums and get ascii value\n\n\t char add; // declars the char to be added\n\n\t if(in.length() < 2){ //if to determine and handle short encryption\n\t add = (char)(Integer.parseInt(in.substring(i, i + 3)) - shift);\n\n\t }else{ // else, countine as normal, substring each 2 numbers and convert to ascii letter\n\t add = (char)(Integer.parseInt(in.substring(i, i + 3)) - shift );\n\n\t }\n\n\t r+= add; // updates result string\n\t }\n\t\t\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------------------------------------\");\n\t\t\t\t\tSystem.out.println(\" Decrypted Message Found: \" + r);\n\t\t\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------------------------------------\\n\\n\");\n\t return r; // returns result string\n\t }", "public int countPossibleDecodings(int n, int[] digitSequence, int[] decodings) {\n // n denotes the length of the digit array that's already been used\n // if n is (digit.length - 1) then all the digits are already used\n // if n is (digit.length - 2) then all the digits except the last one are already used\n // in both cases only one valid decoded sequence is possible\n if (n == digitSequence.length - 1 || n == digitSequence.length - 2) {\n // store the computed value to avoid re-computations\n // need to consider special case when we have sequence of length 0 or length 1\n if (n != -1) {\n decodings[n] = 1;\n }\n return 1;\n }\n int count = 0;\n // count number of decodings by using digit at index 'n+1'\n if (digitSequence[n+1] > 0) {\n count = (decodings[n+1] != 0) ? decodings[n+1] :\n countPossibleDecodings(n+1, digitSequence, decodings);\n }\n\n // count number of decodings by using next two digits at once\n if (validDecoding(digitSequence[n+1], digitSequence[n+2])) {\n count += (decodings[n+2] != 0) ? decodings[n+2] :\n countPossibleDecodings(n+2, digitSequence, decodings);\n }\n\n // store the computed value to avoid re-computations\n // need to consider special case with n = -1 for the initial call\n if (n != -1) {\n decodings[n] = count;\n }\n return count;\n }", "private static final int m40100b(String str) {\n int length = str.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n i = -1;\n break;\n } else if (!C12798a.m40012a(str.charAt(i))) {\n break;\n } else {\n i++;\n }\n }\n return i == -1 ? str.length() : i;\n }", "protected void int2alphaCount(long val, CharArrayWrapper aTable,\n FastStringBuffer stringBuf)\n {\n\n int radix = aTable.getLength();\n char[] table = new char[radix];\n\n // start table at 1, add last char at index 0. Reason explained above and below.\n int i;\n\n for (i = 0; i < radix - 1; i++)\n {\n table[i + 1] = aTable.getChar(i);\n }\n\n table[0] = aTable.getChar(i);\n\n // Create a buffer to hold the result\n // TODO: size of the table can be detereined by computing\n // logs of the radix. For now, we fake it.\n char buf[] = new char[100];\n\n //some languages go left to right(ie. english), right to left (ie. Hebrew),\n //top to bottom (ie.Japanese), etc... Handle them differently\n //String orientation = thisBundle.getString(org.apache.xml.utils.res.XResourceBundle.LANG_ORIENTATION);\n // next character to set in the buffer\n int charPos;\n\n charPos = buf.length - 1; // work backward through buf[] \n\n // index in table of the last character that we stored\n int lookupIndex = 1; // start off with anything other than zero to make correction work\n\n // Correction number\n //\n // Correction can take on exactly two values:\n //\n // 0 if the next character is to be emitted is usual\n //\n // radix - 1\n // if the next char to be emitted should be one less than\n // you would expect\n // \n // For example, consider radix 10, where 1=\"A\" and 10=\"J\"\n //\n // In this scheme, we count: A, B, C ... H, I, J (not A0 and certainly\n // not AJ), A1\n //\n // So, how do we keep from emitting AJ for 10? After correctly emitting the\n // J, lookupIndex is zero. We now compute a correction number of 9 (radix-1).\n // In the following line, we'll compute (val+correction) % radix, which is,\n // (val+9)/10. By this time, val is 1, so we compute (1+9) % 10, which\n // is 10 % 10 or zero. So, we'll prepare to emit \"JJ\", but then we'll\n // later suppress the leading J as representing zero (in the mod system,\n // it can represent either 10 or zero). In summary, the correction value of\n // \"radix-1\" acts like \"-1\" when run through the mod operator, but with the\n // desireable characteristic that it never produces a negative number.\n long correction = 0;\n\n // TODO: throw error on out of range input\n do\n {\n\n // most of the correction calculation is explained above, the reason for the\n // term after the \"|| \" is that it correctly propagates carries across\n // multiple columns.\n correction =\n ((lookupIndex == 0) || (correction != 0 && lookupIndex == radix - 1))\n ? (radix - 1) : 0;\n\n // index in \"table\" of the next char to emit\n lookupIndex = (int)(val + correction) % radix;\n\n // shift input by one \"column\"\n val = (val / radix);\n\n // if the next value we'd put out would be a leading zero, we're done.\n if (lookupIndex == 0 && val == 0)\n break;\n\n // put out the next character of output\n buf[charPos--] = table[lookupIndex]; // left to right or top to bottom \n }\n while (val > 0);\n\n stringBuf.append(buf, charPos + 1, (buf.length - charPos - 1));\n }", "@Test\n public void longerNumberSerializerTest(){\n int[] input3 = {0,1,2,3,4,5,6};\n \n // Want to map 0 -> \"z\", 1 -> \"e\", 2 -> \"d\", 3 -> \"r\",\n // 4 -> \"o\", 5 -> \"a\", 6 -> \"t\"\n char[] alphabet3 = {'z', 'e', 'd', 'r','o','a','t'};\n \n String expectedOutput3 = \"zedroat\";\n assertEquals(expectedOutput3,\n DigitsToStringConverter.convertDigitsToString(\n input3, 7, alphabet3));\n }", "private static long m26007a(String str, long j) {\n if (str == null || str.isEmpty()) {\n return C10442z4.m26659a(ByteBuffer.allocate(8).putLong(j).array());\n }\n byte[] bytes = str.getBytes(f26939b);\n ByteBuffer allocate = ByteBuffer.allocate(bytes.length + 8);\n allocate.put(bytes);\n allocate.putLong(j);\n return C10442z4.m26659a(allocate.array());\n }", "static HashMap runLengthEncoding(List<Character> list){\r\n\t\t\r\n\t\tHashMap<Character,Integer> map=new HashMap<>();\r\n\t\t\r\n\t\tfor(char a:list)\r\n\t\t{\r\n\t\tif(map.get(a)==null)\r\n\t\t{\r\n\t\t\tmap.put(a, 1);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmap.put(a, map.get(a)+1);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\treturn map;\r\n\t\r\n\t}", "static void largestPalindrome(String s)\n{\n // String length\n int l = s.length();\n \n // map that marks the occurrence\n // of a number\n HashMap<Integer,\n Integer> m = new HashMap<>();\n \n for (int i = 0; i < l; i++)\n if(m.containsKey(s.charAt(i) - '0'))\n m.put(s.charAt(i) - '0',\n m.get(s.charAt(i) - '0') + 1);\n else\n m.put(s.charAt(i) - '0', 1);\n \n // check the possibility of a\n // palindromic number\n if (possibility(m, l, s) == false)\n {\n System.out.print(\"Palindrome cannot be formed\");\n return;\n }\n \n // String array that stores\n // the largest permuted\n // palindromic number\n char []largest = new char[l];\n \n // pointer of front\n int front = 0;\n \n // greedily start from 9 to 0\n // and place the greater number\n // in front and odd in the middle\n for (int i = 9; i >= 0; i--)\n {\n // if the occurrence of\n // number is odd\n if (m.containsKey(i) &&\n m.get(i)%2==1)\n {\n // place one odd occurring\n // number in the middle\n largest[l / 2] = (char)(i + 48);\n \n // decrease the count\n m.put(i, m.get(i)-1);\n \n // place the rest of\n // numbers greedily\n while (m.get(i) > 0)\n {\n largest[front] = (char)(i + 48);\n largest[l - front - 1] =\n (char)(i + 48);\n m.put(i, m.get(i) - 2);\n front++;\n }\n }\n else\n {\n // if all numbers occur even\n // times, then place greedily\n while (m.containsKey(i) &&\n m.get(i) > 0)\n {\n // place greedily at front\n largest[front] = (char)(i + 48);\n largest[l - front - 1] =\n (char)(i + 48);\n \n // 2 numbers are placed,\n // so decrease the count\n m.put(i, m.get(i) - 2);\n \n // increase placing position\n front++;\n }\n }\n }\n \n // print the largest String\n // thus formed\n for (int i = 0; i < l; i++)\n System.out.print(largest[i]);\n}", "public static long m3983tj(String str) {\n AppMethodBeat.m2504i(93203);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n if (lastIndexOf > 0) {\n long anl = C5046bo.anl(str.substring(lastIndexOf + 6));\n AppMethodBeat.m2505o(93203);\n return anl;\n }\n AppMethodBeat.m2505o(93203);\n return 0;\n }", "private static void cryptanalysis() {\n\t for (char cipherChar : cipherText.toCharArray()) {\n\t if (Character.isLetter(cipherChar)) { // only letters are encrypted, punctuation marks and whitespace are not\n\t // following line converts letters to numbers between 0 and 25\n\t int cipher = (int) cipherChar - alphaIndex;\n\t // following line increments the value at frequency[cipher] to count frequency of letters used\n\t frequency[cipher] = frequency[cipher] + 1;\n\t }\n\t } \n\t char currChar = 'A';\n \t for (int i = 0; i < 26; i++) {\n \t\t System.out.println(currChar++ + \" \" + frequency[i]);\n \t }\n }", "public String decodeAtIndex(String S, int K) {\n long[] f = new long[S.length()];\n f[0] = 1;\n for (int i = 1; i < S.length(); i++) {\n char ch = S.charAt(i);\n if (Character.isDigit(ch)) {\n f[i] = f[i - 1] * (ch - '0');\n } else {\n f[i] = f[i - 1] + 1;\n }\n }\n\n for (int i = S.length() - 1; i >= 0; i--) {\n char ch = S.charAt(i);\n if (Character.isDigit(ch)) {\n K = (int) ((K - 1) % f[i - 1] + 1);\n } else {\n if (K == f[i]) {\n return \"\" + S.charAt(i);\n }\n }\n }\n throw new RuntimeException();\n }", "private String decode(String puzzle) {\n\t\tString solution = \"\";\n\t\tfor (int i = 0; i < puzzle.length(); i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tif (puzzle.charAt(i) == 'Z') {\n\t\t\t\t\tsolution += 'A';\n\t\t\t\t} else {\n\t\t\t\t\tsolution += (char) ((int) puzzle.charAt(i) + 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (puzzle.charAt(i) == 'A') {\n\t\t\t\t\tsolution += 'Z';\n\t\t\t\t} else {\n\t\t\t\t\tsolution += (char) ((int) puzzle.charAt(i) - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn solution;\n\t}", "public int convert(String str) {\n if(str == null || str.length() == 0)\n return 0;\n// Integer pre = null;\n int i = str.length() - 1;\n int res = 0; // assume there will not be overflow\n while(i >= 0) {\n Character cur = str.charAt(i);\n Character pre = i - 1 > 0 ? str.charAt(i-1) : null;\n if(pre != null && pre <= cur) {\n res += map.get(cur) - map.get(pre);\n i--;\n }\n else {\n res += map.get(cur);\n }\n i--;\n }\n return res;\n }", "public static void main(String [] args) {\n\t\tString str = \"ccacacabccacabaaaabbcbccbabcbbcaccabaababcbcacabcabacbbbccccabcbcabbaaaaabacbcbbbcababaabcbbaa\"\n\t\t\t\t+ \"ababababbabcaabcaacacbbaccbbabbcbbcbacbacabaaaaccacbaabccabbacabaabaaaabbccbaaaab\"\n\t\t\t\t+ \"acabcacbbabbacbcbccbbbaaabaaacaabacccaacbcccaacbbcaabcbbccbccacbbcbcaaabbaababacccbaca\"\n\t\t\t\t+ \"cbcbcbbccaacbbacbcbaaaacaccbcaaacbbcbbabaaacbaccaccbbabbcccbcbcbcbcabbccbacccbacabcaacbcac\"\n\t\t\t\t+ \"cabbacbbccccaabbacccaacbbbacbccbcaaaaaabaacaaabccbbcccaacbacbccaaacaacaaaacbbaaccacbcbaaaccaab\"\n\t\t\t\t+ \"cbccacaaccccacaacbcacccbcababcabacaabbcacccbacbbaaaccabbabaaccabbcbbcaabbcabaacabacbcabbaaabccab\"\n\t\t\t\t+ \"cacbcbabcbccbabcabbbcbacaaacaabb\"\n\t\t\t\t+ \"babbaacbbacaccccabbabcbcabababbcbaaacbaacbacacbabbcacccbccbbbcbcabcabbbcaabbaccccabaa\"\n\t\t\t\t+ \"bbcbcccabaacccccaaacbbbcbcacacbabaccccbcbabacaaaabcccaaccacbcbbcccaacccbbcaaaccccaabacabc\"\n\t\t\t\t+ \"abbccaababbcabccbcaccccbaaabbbcbabaccacaabcabcbacaccbaccbbaabccbbbccaccabccbabbbccbaabcaab\"\n\t\t\t\t+ \"cabcbbabccbaaccabaacbbaaaabcbcabaacacbcaabbaaabaaccacbaacababcbacbaacacccacaacbacbbaacbcbbbabc\"\n\t\t\t\t+ \"cbababcbcccbccbcacccbababbcacaaaaacbabcabcacaccabaabcaaaacacbccccaaccbcbccaccacbcaaaba\";\n\t\tSystem.out.println(substrCount2(1017, str));\n\t}", "private static String decode(final String extractedStr, Integer[] uncode) {\n if (null == extractedStr || extractedStr.isEmpty())\n return \"\";\n String decodedStr = extractedStr;\n for (Integer codeInt : uncode) {\n switch (codeInt) {\n case 0:\n break;\n case 1:\n decodedStr = changeUnicode(decodedStr);// unicode\n break;\n case 2:\n decodedStr = changeUrlcode(decodedStr, \"utf-8\");// urlcode\n break;\n case 3:\n decodedStr = changeMac(decodedStr);// Mac\n break;\n case 4:\n decodedStr = chageIdfa(decodedStr);\n break;\n case 5:\n decodedStr = chageMacTypeTwo(decodedStr);\n break;\n case 6:\n decodedStr = changeUrlcode(decodedStr, \"gb2312\");// urlcode\n break;\n case 7:\n\n break;\n case 8:\n decodedStr = changeBase64(decodedStr.toString());// base64\n break;\n case 9:\n decodedStr = decodedStr.toLowerCase();\n break;\n case 10:\n decodedStr = decodedStr.toUpperCase();\n break;\n case 11:\n Pattern p = Pattern.compile(\"\\\"scenicId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"scenicId\\\":\".length(), m.group().length() - 1);\n }\n break;\n case 12:\n p = Pattern.compile(\"\\\"productId\\\":.*?,\", Pattern.CASE_INSENSITIVE);\n m = p.matcher(decodedStr);\n while (m.find()) {\n decodedStr = m.group().substring(\"\\\"productId\\\":\".length(), m.group().length() - 1);\n }\n break;\n\n }\n }\n return decodedStr;\n }", "static int makeAnagram(String a, String b) {\n \n \tchar arr[] = a.toCharArray();\n char brr[] = b.toCharArray();\n Arrays.sort(arr);\n Arrays.sort(brr);\n Map<Character, Integer> aMap = new HashMap<>();\n Map<Character, Integer> bMap = new HashMap<>();\n for(int i =0 ;i <arr.length;i++){\n \tif(!aMap.containsKey(arr[i])){\n \t\taMap.put(arr[i], 1);\n \t}else{\n \t\taMap.put(arr[i], aMap.get(arr[i])+1);\n \t}\n }\n for(int i =0 ;i <brr.length;i++){\n \tif(!bMap.containsKey(brr[i])){\n \t\tbMap.put(brr[i], 1);\n \t}else{\n \t\tbMap.put(brr[i], bMap.get(brr[i])+1);\n \t}\n }\n int removeCharCount = 0;\n \n for(char ch = 'a'; ch<='z';ch++){\n \tif(aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tif(aMap.get(ch) > bMap.get(ch)){\n \t\t\tint count = aMap.get(ch) - bMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, aMap.get(ch) - count);\n \t\t}else if(aMap.get(ch) < bMap.get(ch)){\n \t\t\tint count = bMap.get(ch) - aMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, bMap.get(ch) - count);\n \t\t}\n \t}else if(aMap.containsKey(ch) && !bMap.containsKey(ch)){\n \t\tint count = aMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\taMap.remove(ch);\n \t}else if(!aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tint count = bMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\tbMap.remove(ch);\n \t}\n }\n /* if(removeCharCount == Math.min(arr.length, brr.length)){\n \treturn 0;\n }*/\n return removeCharCount;\n }", "public int titleToNumber(String s) {\n int val = 0;\n //go thru string\n for (int i = 0; i < s.length(); i++){\n \t//26 letts of alph add the int val of that character \n val = val * 26 + (int) s.charAt(i) - (int) 'A' + 1;\n }\n return val;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"abccbc\";\n\t\t\n\t\tlong[][] dp = new long[str.length()][str.length()];\t\n\t\t\n\t\tfor (int g=0 ; g<str.length() ; g++) {\n\t\t\t\n\t\t\tfor (int i=0 , j=g ; j<str.length() ; i++ , j++) {\n\t\t\t\tif (g == 0) dp[i][j] = 1;\n\t\t\t\t\n\t\t\t\telse if (g == 1) dp[i][j] = (str.charAt(i) == str.charAt(j)) ? 3 : 2;\n\t\t\t\t\n\t\t\t\telse dp[i][j] = (str.charAt(i) == str.charAt(j)) ? (dp[i][j-1] + dp[i+1][j] + 1) : (dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1]);\n\t\t\t\t\n\t\t\t\t//if (dp[i][j] && str.substring(i, j+1).length() > result.length()) result = str.substring(i, j+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[0][str.length()-1]);\n\t}", "public static int m84097AS(String str) {\n AppMethodBeat.m2504i(3207);\n if (\"fingerPrint\".equals(str)) {\n AppMethodBeat.m2505o(3207);\n return 1;\n } else if (\"facial\".equals(str)) {\n AppMethodBeat.m2505o(3207);\n return 8;\n } else if (\"speech\".equals(str)) {\n AppMethodBeat.m2505o(3207);\n return 2;\n } else {\n C4990ab.m7412e(\"MicroMsg.AppBrandSoterTranslateUtil\", \"hy: invalid item\");\n AppMethodBeat.m2505o(3207);\n return 0;\n }\n }", "public int a(String paramString)\r\n/* 454: */ {\r\n/* 455:451 */ if (paramString == null) {\r\n/* 456:452 */ return 0;\r\n/* 457: */ }\r\n/* 458:454 */ int i1 = 0;\r\n/* 459:455 */ int i2 = 0;\r\n/* 460:457 */ for (int i3 = 0; i3 < paramString.length(); i3++)\r\n/* 461: */ {\r\n/* 462:458 */ char c1 = paramString.charAt(i3);\r\n/* 463: */ \r\n/* 464:460 */ int i4 = a(c1);\r\n/* 465:461 */ if ((i4 < 0) && (i3 < paramString.length() - 1))\r\n/* 466: */ {\r\n/* 467:462 */ c1 = paramString.charAt(++i3);\r\n/* 468:464 */ if ((c1 == 'l') || (c1 == 'L')) {\r\n/* 469:465 */ i2 = 1;\r\n/* 470:466 */ } else if ((c1 == 'r') || (c1 == 'R')) {\r\n/* 471:467 */ i2 = 0;\r\n/* 472: */ }\r\n/* 473:469 */ i4 = 0;\r\n/* 474: */ }\r\n/* 475:471 */ i1 += i4;\r\n/* 476:472 */ if ((i2 != 0) && (i4 > 0)) {\r\n/* 477:473 */ i1++;\r\n/* 478: */ }\r\n/* 479: */ }\r\n/* 480:477 */ return i1;\r\n/* 481: */ }", "static long m5599a(String str) {\n String[] split = str.split(\"\\\\:\");\n byte[] bArr = new byte[6];\n int i = 0;\n while (i < 6) {\n try {\n bArr[i] = (byte) Integer.parseInt(split[i], 16);\n i++;\n } catch (NumberFormatException unused) {\n return 0;\n }\n }\n return ((((long) bArr[0]) & 255) << 40) | ((((long) bArr[3]) & 255) << 16) | (((long) bArr[5]) & 255) | ((((long) bArr[4]) & 255) << 8) | ((((long) bArr[2]) & 255) << 24) | ((((long) bArr[1]) & 255) << 32);\n }", "public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader=new BufferedReader(new FileReader(\"beads.in\"));\n\t\tString num=bufferedReader.readLine();\n\t\tint n=Integer.parseInt(num);\n\t\tString beadsString=\tbufferedReader.readLine();\n\t\t//System.out.println(beadsString.length());\n\t\tint count=0;\n\t\tstringCheck(bufferedReader, n, beadsString, count);\n\n\t\tStringBuilder builder=new StringBuilder();\n\t\tfor(int i=beadsString.length()-1;i>=0;i--)\n\t\t{\n\t\t\tbuilder.append(beadsString.charAt(i));\n\t\t}\n\t\tString reverseBeadsString=\tbuilder.toString();\n\t\tint fwdCount[]=new int[beadsString.length()];\n\t\tint bwdCount[]=new int[beadsString.length()];\n\t\tfor(int i=0;i<beadsString.length();i++){\n\t\t\tchar fStart=beadsString.charAt(i);\n\t\t\tint j=i;\n\t\t\tint counter=0;\n\t\t\tcounter = forwardCount(beadsString, fStart, j, counter);\n\t\t\tfwdCount[i]=counter;\n\t\t\tj=i;\n\t\t\tif(i==0){\n\t\t\t\tfStart=reverseBeadsString.charAt(i);\n\t\t\t\tj=i;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfStart=reverseBeadsString.charAt(reverseBeadsString.length()-i);\n\t\t\t\tj=reverseBeadsString.length()-i;\n\t\t\t}\n\t\t\tcounter=0;\n\t\t\tcounter = backwardCount(reverseBeadsString, fStart, j, counter);\n\t\t\tbwdCount[i]=counter;\n\t\t}\n\t\tint temp[]=new int[beadsString.length()];\n\t\tfor (int i = 0; i < fwdCount.length; i++) {\n\t\t\ttemp[i]=fwdCount[i]+bwdCount[i];\n\t\t}\n\n\t\tint max=0;\n\t\tfor (int i = 0; i < temp.length; i++) {\n\t\t\tif(temp[i]>max){\n\t\t\t\tmax=temp[i];\n\t\t\t}\n\t\t}\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"beads.out\")));\n\t\tout.println(max);\n\t\tout.close();\n\t\tSystem.exit(0);\n\n\n\t}", "public static void main(String[] args) throws IOException {\n Map<String, Integer> map = new HashMap<>();\n map.put(\"A\", 9);\n map.put(\"B\", 4);\n map.put(\"C\", 8);\n map.put(\"D\", 6);\n map.put(\"E\", 5);\n map.put(\"F\", 3);\n map.put(\"G\", 7);\n map.put(\"H\", 2);\n map.put(\"I\", 1);\n map.put(\"J\", 0);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] eng = new int[count];\n for (int i = 0; i < count; i++) {\n String s = br.readLine();\n StringBuilder temp = new StringBuilder();\n for (int j = 0; j < s.length(); j++) {\n temp.append(map.get(String.valueOf(s.charAt(j))));\n }\n eng[i] = Integer.parseInt(temp.toString());\n }\n\n int result = 0;\n for (int element : eng) {\n result += element;\n }\n System.out.println(result);\n }", "public int mo35659a(String str, OutputStream outputStream) throws IOException {\n int length = str.length();\n while (length > 0 && m44512a(str.charAt(length - 1))) {\n length--;\n }\n int i = 0;\n int i2 = 0;\n while (i < length) {\n while (i < length && m44512a(str.charAt(i))) {\n i++;\n }\n int i3 = i + 1;\n byte b = this.f31120b[str.charAt(i)];\n while (i3 < length && m44512a(str.charAt(i3))) {\n i3++;\n }\n int i4 = i3 + 1;\n byte b2 = this.f31120b[str.charAt(i3)];\n if ((b | b2) >= 0) {\n outputStream.write((b << 4) | b2);\n i2++;\n i = i4;\n } else {\n throw new IOException(\"invalid characters encountered in Hex string\");\n }\n }\n return i2;\n }", "public int titleToNumber(String s) {\n if(s == null || s.length() == 0){\n return 0;\n }\n \n int result = 0;\n for(int i = 0; i < s.length(); i++){\n result = result * 26 + s.charAt(i) - 'A' + 1;\n }\n return result;\n }", "private String decode(String filtered) {\n // buffer for the decoded number\n char decoded[] = new char[filtered.length()];\n // iterate through characters\n for (int i = 0; i < filtered.length(); i++) {\n // decode char-by-char\n decoded[i] = encoding.get(filtered.charAt(i));\n }\n return new String(decoded);\n }", "static int findBinaryStringUsingHMap(int[] arr){\n Map<Integer, Integer> map = new HashMap<>();\n int count =0, maxLength =0;\n //need a default value in map (0,-1) i.e count is zero at index -1 because when we start travelling\n // (after +- counter and encounter zero at very first time (means 0==1) means from index 0 --> current 0=1\n // to calculate the length we need 0,-1\n //e.g 0 1 --> count will be like -1 --> 0 at 1 = 1 ( how to calculate i-(-1) => 2\n map.put(0, -1);\n for(int i=0; i<arr.length; i++){\n count = count + (arr[i]==1 ? 1 : -1);\n if(map.containsKey(count)){\n maxLength = Math.max(maxLength, i - map.get(count));\n }else{\n map.put(count, i);\n }\n }\n return maxLength;\n }", "private void convertToNum(String s)\n\t{\n\t\tchar charArray[] = s.toCharArray();\n\t\tmyMessage = new BigInteger[(int)Math.ceil(s.length()/(double)BLOCK_SIZE)];\n\t\tfor(int i = 0; i < myMessage.length; i++)\n\t\t{\n\t\t\tString chars = \"\";\n\t\t\tfor(int j = 0; j < BLOCK_SIZE; j++)\n\t\t\t{\n\t\t\t\tif(charArray.length > j+(i*BLOCK_SIZE))\n\t\t\t\t{\n\t\t\t\t\tchars += (int)charArray[j+(i*BLOCK_SIZE)];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tchars += \"256\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyMessage[i] = new BigInteger(chars);\n\t\t}\n\t}", "public static int approach4(String str) {\n\t\tint index = 256;\n\t\tint strLength = str.length();\n\t\tint result = Integer.MAX_VALUE;\n\t\tint[] indexArray = new int[index];\n\t\tfor(int i = 0; i < index; i++) {\n\t\t\tindexArray[i] = -1;\n\t\t}\n\t\t\n\t\tfor(int i = strLength - 1; i >= 0; i--) {\n\t\t\tif(indexArray[str.charAt(i)] == -1) {\n\t\t\t\tindexArray[str.charAt(i)] = i;\n\t\t\t} else {\n\t\t\t\tresult = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result == Integer.MAX_VALUE ? -1 : result;\n\t}", "static int asciiCalc(String s) {\n\n\t\tint val = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) % 2 == 0) {\n\t\t\t\t// if ascii value is even, mutiply by 1003\n\t\t\t\tval += s.charAt(i) * 1003;\n\t\t\t} else {\n\t\t\t\t// if ascii value is odd, multiply by 803\n\t\t\t\tval += s.charAt(i) * 803;\n\t\t\t}\n\n\t\t}\n\t\treturn val;\n\t}", "public static ArrayList<Integer> findAnagrams(String s, String p) {\r\n\t \t \r\n\t \t //write your code here\r\n\t\t if(s.length()<p.length()) {\r\n\t\t\t ArrayList<Integer> arr = new ArrayList<>();\r\n\t\t\t return arr;\r\n\t\t }\r\n\t\t ArrayList<Integer> result = new ArrayList<>();\r\n\t\t HashMap<Character,Integer> P = new HashMap<>();\r\n\t\t HashMap<Character,Integer> H = new HashMap<>();\r\n\t\t \r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = p.charAt(i);\r\n\t\t\t if(!P.containsKey(ch)) {\r\n\t\t\t\t P.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t P.put(ch,P.get(ch)+1);\r\n\t\t\t }\r\n\t\t }\r\n\t\t int start =0;\r\n\t\t int end=0;\r\n\t\t int mcount=0;\r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = s.charAt(i);\r\n\t\t\t if(!H.containsKey(ch)) {\r\n\t\t\t\t H.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t H.put(ch,H.get(ch)+1);\r\n\t\t\t }\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t if(P.get(ch)>=H.get(ch)) {\r\n\t\t\t\t\t mcount++;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t end=i;\r\n\t\t }\r\n\t\t if(mcount==p.length()) {\r\n\t\t\t result.add(start);\r\n\t\t }\r\n\t\t while(end<s.length()-1) {\r\n\t\t\t char ch=s.charAt(start);\r\n\t\t\t int hfreq = H.get(ch)-1;\r\n\t\t\t H.put(ch,hfreq);\r\n\t\t\t if(H.get(ch)==0) {\r\n\t\t\t\t H.remove(ch);\r\n\t\t\t }\r\n\t\t\t int pfreq=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreq=P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreq<pfreq) {\r\n\t\t\t\t mcount--;\r\n\t\t\t }\r\n\t\t\t ch=s.charAt(end+1);\r\n\t\t\t int hfreqend=0;\r\n\t\t\t if(H.containsKey(ch)) {\r\n\t\t\t\t hfreqend = H.get(ch);\r\n\t\t\t }\r\n\t\t\t hfreqend++;\r\n\t\t\t H.put(ch, hfreqend);\r\n\t\t\t int pfreqend=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreqend = P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreqend<=pfreqend) {\r\n\t\t\t\t mcount++;\r\n\t\t\t }\r\n\t\t\t start++;\r\n\t\t\t end++;\r\n\t\t\t if(mcount==p.length()) {\r\n\t\t\t\t result.add(start);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\t return result;\r\n\t\t \r\n\t \t \r\n\t }", "public int lengthOfLSS(String s){\n HashMap<Character, Integer> m = new HashMap<>();\n int ans = 0;\n \n for(int i=0, j=0; j<s.length(); j++){\n if(m.containsKey(s.charAt(j))){\n i = Math.max(m.get(s.charAt(j)),i);\n }\n ans = Math.max(j-i+1,ans);\n m.put(s.charAt(j),j+1);\n }\n\n return ans;\n }", "public String encode(String input) {\n String encoded = \"\";\n char[] message = input.toCharArray();\n for (int j = 0; j < message.length; j++) { //takes input into a array of chars\n encodingQueue.enqueue(message[j]);\n }\n char lastvalue =0;\n boolean islastvaluenum= false;\n for(int i=0; i<message.length;i++) {\n char character = encodingQueue.dequeue();\n if(character != ' ') { //if not a space\n String alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n if(islastvaluenum ==false) { //if last value was not a num, then proceed normally with first set of numbers\n char encodedvalue=enumerate(character,1);\n if(encodedvalue !=0) {\n islastvaluenum = true;\n lastvalue = encodedvalue;\n encoded = encoded +encodedvalue;\n }\n else {\n islastvaluenum = false;\n int shiftvalue = 5+(2*i);\n boolean charfound = false;\n char[] chararray = (alphabet.toUpperCase()).toCharArray();\n char output = 'n';\n for (int j=0;j<chararray.length;j++) { // look through the alphabet and see if character matches, then shift accordingly to shiftby\n if (charfound==false) {\n if (character == chararray[j]) {\n output = chararray[(j+chararray.length+shiftvalue)% chararray.length];\n charfound = true;\n }\n }\n }\n character = output;\n lastvalue = character;\n encoded = encoded+ character;\n }\n }\n else {\n char encodedvalue=enumerate(character,2);//if last value was a num, then proceed with second set of numbers\n if(encodedvalue !=0) {\n islastvaluenum = true;\n lastvalue = encodedvalue;\n encoded = encoded +encodedvalue;\n }\n else {\n islastvaluenum = false;\n int shiftvalue = (5+(2*i))+((lastvalue-'0')*(-2));\n boolean charfound = false;\n char[] chararray = (alphabet.toUpperCase()).toCharArray();\n char output = 'n';\n for (int j=0;j<chararray.length;j++) {// look through the alphabet and see if character matches, then shift accordingly to shiftby\n if (charfound==false) {\n if (character == chararray[j]) {\n output = chararray[(j+chararray.length+shiftvalue)% chararray.length];\n charfound = true;\n }\n }\n }\n character = output;\n lastvalue = character;\n encoded = encoded+ character;\n }\n }\n\n }\n else{\n encoded = encoded + ' ';\n }\n }\n return encoded;\n }", "@Test\n public void decodeString()\n {\n final BinaryEncoder encoder = new BinaryEncoder(16);\n assertThat(encoder.decode(\"0011\"), is(3.0));\n }", "public static int[] findNumsOfRepsv2(String s, char[] c) {\n int[] sums = new int[c.length];\n HashMap<Character, Integer> map = new HashMap<>();\n for (int i = 0; i < s.length(); i++){\n if (!map.containsKey(s.charAt(i))){\n map.put(s.charAt(i), 1);\n } else {\n int sum = map.get(s.charAt(i));\n map.put(s.charAt(i), sum + 1);\n }\n }\n for (int j = 0; j < c.length; j++){\n int sum;\n if (!map.containsKey(c[j])) {\n sums[j] = 0;\n } else {\n sums[j] = map.get(c[j]);\n }\n }\n return sums;\n }", "private static void decodeString(String in){\n\t\t//reverse anything done in encoded string\n\t\tString demess = decrypt(in);\n\t\tString decodeMessage = bigIntDecode(demess);\n\n\t\tSystem.out.println(\"Decoded message: \" + decodeMessage + \"***make function to actually decode!\");\n\t}", "public int countPalindromicSubsequences(String s) {\n \n Integer[][][] memo = new Integer[s.length()][s.length()][4];\n \n int ans = 0;\n for (int i = 0; i < 4; i++) {\n ans = (ans + distinct(s, memo, 0, s.length() - 1, i)) % MOD;\n }\n \n return ans;\n }", "static void method_9231() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¯W!BÔK)Ý/HG\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8734 = (new String((char[])var4)).intern();\r\n String var2 = field_8734;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 179;\r\n break;\r\n case 1:\r\n var10009 = 68;\r\n break;\r\n case 2:\r\n var10009 = 33;\r\n break;\r\n case 3:\r\n var10009 = 45;\r\n break;\r\n case 4:\r\n var10009 = 187;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 70;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "int decodeInt();", "public void testLong() throws Exception {\n String string = reverse(\"The quick brown fox jumps over the lazy dog.\");\n CharIndex idx = CharIndex.getInstance(string);\n\n long[] map = PatternBitmap.map(string, idx, new long[idx.size()]);\n\n /* Spot check some */\n long e = Long.parseLong(\"00100000000000000000000000001000010000000000\", 2);\n /* ............ The quick brown fox jumps over the lazy dog. */\n\n assertEquals(e, map[idx.lookup('e')]);\n\n long o = Long.parseLong(\"00000000000010000100000000100000000000000100\", 2);\n /* ............ The quick brown fox jumps over the lazy dog. */\n assertEquals(o, map[idx.lookup('o')]);\n\n /* Check all others for zero/non-zero */\n for (int i = 0; i < 0xffff; i++) {\n char c = (char)i;\n int where = string.indexOf(c);\n if (where >= 0) {\n assertTrue(\"Map for pattern character '\" + c + \"' should be non-zero\",\n (map[idx.lookup(c)] & (1L << where)) != 0);\n } else {\n assertEquals(\"Map for unused character '\" + c + \"' should be zero\",\n 0, map[idx.lookup(c)]);\n }\n }\n }", "String algorithm();", "public static void main(String[] args) {\n\t\tSolution s = new Solution();\r\n\t\tSolution2 s2 = new Solution2();\r\n\t\t\r\n\t\tString str = \"1\";\r\n\t\tSystem.out.println(s.numDecodings(str));\r\n\t\tSystem.out.println(s2.numDecodings(str));\r\n\r\n\t}", "static void d() {\n\t\t\t\tint B[] = new int[12];\n\t\t\t\tint tam = 0, tam1 = 0;\n\t\t\t\tB[0] = 12;\n\t\t\t\tB[1] = 21;\n\t\t\t\tB[2] = 47;\n\t\t\t\tB[3] = 9;\n\t\t\t\tB[4] = 56;\n\t\t\t\tB[5] = 43;\n\t\t\t\tB[6] = 50;\n\t\t\t\tB[7] = 54;\n\t\t\t\tB[8] = 51;\n\t\t\t\tB[9] = 41;\n\t\t\t\tB[10] = 97;\n\t\t\t\tB[11] = 12;\n\t\t\t\tint max = B[0];\n\t\t\t\tfor (int i = 1; i < B.length; i++) {\n\t\t\t\t\tif (B[i] > max) {\n\t\t\t\t\t\tmax = B[i];\n\t\t\t\t\t\ttam = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (int i = tam; i > 0; i--) {\n\t\t\t\t\tB[i] = B[i - 1];\n\t\t\t\t}\n\t\t\t\tB[0] = max;\n\n\t\t\t\tinMang(B);\n\n\t\t\t\tmax = B[1];\n\t\t\t\ttam = 0;\n\t\t\t\tfor (int i = 2; i < B.length; i++) {\n\t\t\t\t\tif (B[i] > max) {\n\t\t\t\t\t\tmax = B[i];\n\t\t\t\t\t\ttam = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = tam; i > 1; i--) {\n\t\t\t\t\tB[i] = B[i - 1];\n\t\t\t\t}\n\t\t\t\tB[1] = max;\n\t\t\t\tinMang(B);\n\n\t\t\t\tmax = B[2];\n\t\t\t\ttam = 0;\n\t\t\t\tfor (int i = 3; i < B.length; i++) {\n\t\t\t\t\tif (B[i] > max) {\n\t\t\t\t\t\tmax = B[i];\n\t\t\t\t\t\ttam = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = tam; i > 2; i--) {\n\t\t\t\t\tB[i] = B[i - 1];\n\t\t\t\t}\n\t\t\t\tB[2] = max;\n\t\t\t\tinMang(B);\n\t}", "private Map<Character, Long> map(final String text) {\n Map<Character, Long> result = new HashMap<>();\n for (char c : text\n .replaceAll(validCharsRegex, \"\")\n .toLowerCase()\n .toCharArray()) {\n result.put(c, result.getOrDefault(c, 0L) + 1);\n }\n return result;\n }", "public int decodeBytes(byte[] bytes) {\n if (bytes.length < 200)\n return 0;\n\n List<Code> createdCodes = null;\n // Size of symbol is 10 bytes, so we need to shift\n for (int i = 0; i < 10; i++) {\n byte[] tempBytes = new byte[bytes.length - i];\n System.arraycopy(bytes, i, tempBytes, 0, bytes.length - i);\n\n createdCodes = Code.createCodes(tempBytes);\n\n // Counter for incorrect symbols\n int bad = 0;\n\n // Check on errors\n for (Code sign : createdCodes)\n if (sign.equals(ERROR_CODE))\n bad++;\n\n if (!(tempBytes.length / 10 - bad < 10))\n break;\n }\n\n // Message ready for further decoding?\n int headPosition = findHeadPosition(createdCodes);\n // if we've found beginning then continue decoding\n // else remove 21 bytes\n if (headPosition < 0)\n return 21;\n\n // Do we need to put back into buffer and save?\n int endPosition = findEndingPosition(createdCodes);\n // if we've found end of sequence then continue decoding\n // else remove bytes\n if (endPosition < 0) {\n if (bytes.length > 2000)\n return 50;\n\n return 0;\n }\n\n // Is DSC with expanded sequence?\n int expandPosition = findExpandPosition(\n createdCodes, endPosition + endingPattern.size()\n );\n if (expandPosition < 0 && bytes.length < 2000) {\n return 0;\n }\n\n // To the end position adds two for decoding ECC symbol\n List<Code> message = processMessage(\n createdCodes, headPosition,\n expandPosition < 0 ? endPosition + 3 : expandPosition + 3,\n expandPosition > 0\n );\n\n String decodedSymbols = message.stream().map(\n (c) -> c.getSymbol() + \"\" + \" \"\n ).reduce(\n (s1, s2) -> s1 + s2\n ).orElse(\"\");\n\n logger.info(\"Decoded symbols: \" + decodedSymbols);\n\n codeDecoder.decodeCodes(message);\n\n return (endPosition * 10 + endingPattern.size() * 10);\n }", "static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n HashMap<String, Integer> map = new HashMap<>();\n\n int length = s.length();\n int wordSize = 1;\n while (wordSize != length) {\n for(int i = 0; i <= length-wordSize; i++) {\n char[] charArray = s.substring(i, i+wordSize).toCharArray();\n Arrays.sort(charArray);\n String sortedWord = new String(charArray);\n Integer num = map.get(sortedWord);\n if(num == null)\n map.put(sortedWord, 1);\n else {\n map.put(sortedWord, num+1);\n anagramCount += num;\n }\n }\n wordSize++;\n }\n\n return anagramCount;\n }", "public int solution(int N) {\n String n = Integer.toBinaryString(N);\n char[] cn = n.toCharArray();\n int cnt = 0;\n int ans = 0;\n for(char c: cn) {\n if(c == '0') {\n cnt++;\n } else {\n if(ans < cnt) {\n ans = cnt;\n } \n cnt = 0;\n }\n }\n return ans;\n }", "public static long getCharsAsNumber(String chars) {\n\t\tchars = chars.replaceAll(\"'\", \"\");\n\t\tlong result = 0;\n\t\tfor (int i = 0; i < chars.length(); i++) {\n\t\t\tresult |= ((chars.charAt(i)) << (8 * i));\n\t\t}\n\t\treturn result;\n\t}", "public static int approach2(String str) {\n\t\tMap<Character, Integer> charToCountMap = new HashMap<Character, Integer>();\n\t\tint strLength = str.length();\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.containsKey(str.charAt(i))) {\n\t\t\t\tcharToCountMap.put(str.charAt(i), charToCountMap.get(str.charAt(i)) + 1);\n\t\t\t} else {\n\t\t\t\tcharToCountMap.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < strLength; i++) {\n\t\t\tif(charToCountMap.get(str.charAt(i)) > 1) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}" ]
[ "0.76955324", "0.738719", "0.7119109", "0.71072614", "0.71036935", "0.68399674", "0.66620433", "0.66233164", "0.65327305", "0.6519269", "0.65176076", "0.63914883", "0.6360349", "0.631447", "0.61232346", "0.6050101", "0.60440075", "0.598201", "0.59751505", "0.59136707", "0.5909138", "0.5888872", "0.587622", "0.58741814", "0.5872192", "0.5861477", "0.5856164", "0.58446985", "0.58187896", "0.58046854", "0.5798571", "0.57694125", "0.5755265", "0.5747825", "0.57308143", "0.5720342", "0.57134354", "0.5712537", "0.57073796", "0.56608766", "0.56590444", "0.5651709", "0.56342876", "0.56327355", "0.5630821", "0.5625148", "0.5609708", "0.56043583", "0.56033504", "0.5600581", "0.5598485", "0.5591899", "0.5588183", "0.5582093", "0.55663776", "0.5553121", "0.5552802", "0.5543149", "0.55382276", "0.55186254", "0.5505357", "0.5502239", "0.54774684", "0.54759043", "0.54730904", "0.54547495", "0.54492956", "0.5447914", "0.54474646", "0.54435927", "0.54394376", "0.54379636", "0.5424094", "0.54169333", "0.5415474", "0.5413687", "0.5412447", "0.54102063", "0.5407219", "0.5400457", "0.5396704", "0.5394681", "0.5390248", "0.5385297", "0.5385017", "0.5366543", "0.5364354", "0.536383", "0.5360564", "0.5358157", "0.5354343", "0.5345068", "0.53434", "0.5332093", "0.53304535", "0.5325061", "0.532362", "0.5317706", "0.5311863", "0.53118527" ]
0.6939909
5
BigDecimal bigDecimal = new BigDecimal(0.95); int a = bigDecimal.intValue(); System.out.println(a); double a = 32.44 / 35.24; System.out.println(a); double a = 7; double b = 6; String str = "" + a b + ""; System.out.println("aaaa" + (a b) + "bbbb"); List stringList = Lists.newArrayList(); stringList.add("aaa"); stringList.add("bbb"); stringList.add("ccc"); stringList.add("ddd"); System.out.println(stringList.toString());
public static void main(String[] args) { Set<Student> set = Sets.newTreeSet(); Student s3 = new Student(3); Student s4 = new Student(4); Student s5 = new Student(5); Student s1 = new Student(1); Student s2 = new Student(2); List<Student> list = Lists.newArrayList(); list.add(s4); list.add(s3); list.add(s5); list.add(s1); list.add(s2); list.sort(new Comparator<Student>() { @Override public int compare(Student o1, Student o2) { return o1.getAge() - o2.getAge() < 0 ? 1 : -1; } }); System.out.println(list); // s1.toString(); // set.add(s3); // set.add(s4); // set.add(s5); // set.add(s1); // set.add(s2); // System.out.println(set); // for (Student s : set) { // System.out.println(s); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\r\n\tdouble b=100.1-50;\r\n\tSystem.err.println(b);\r\n\t\r\n\tSystem.err.println(\"----------------------------------\");\r\n\t BigDecimal b1 = new BigDecimal(100.1); \r\n BigDecimal b2 = new BigDecimal(50); \r\n System.err.println(b1.subtract(b2).doubleValue()); \r\n \r\n BigDecimal b3 = new BigDecimal(Double.toString(100.1)); \r\n BigDecimal b4 = new BigDecimal(Double.toString(50));\r\n System.err.println(b1.subtract(b2).doubleValue()); \r\n}", "public static void main(String[] args) {\ndouble anInt=1234;\nbyte aByte=12;\nshort aShort=12;\nlong aLong=1234567890987654321L;\ndouble anotherInt= (anInt * 10000000);\nSystem.out.println(\"The int is \" + anInt);\nSystem.out.println(\"The byte is \" + aByte);\nSystem.out.println(\"The short is \" + aShort);\nSystem.out.println(\"The long is \" + aLong);\nSystem.out.println(\"Another int is \" + anotherInt); \n\t}", "public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b);\n System.out.println(a * b);\n System.out.println(a / b);\n System.out.println(a / (double)b);\n\n System.out.println(a % b);\n\n }", "public static void main(String[]args) {\n\t\tdouble d=10;\n\t\tint num=10;\n\t\t\n\t\tSystem.out.println(d);\n\t\tint i=(int) 12.99;\n\t\tSystem.out.println(i);\n\t\tbyte b=(byte)130;\n\t\tSystem.out.println(b);\n\t\t\n\t double number =12;\n\t\tdouble result = number/5;\n\t\tSystem.out.println(result);\n\t\t\n\t\tdouble newNum=10;\n\t\tnewNum=newNum/3;\n\t\tSystem.out.println(newNum);\n\t\t\n\t\tdouble num1=10+10.5;\n\t\t\n\t\tSystem.out.println(num1);\n\t\t\n\t\n\t\t\n\t}", "static String double2String (Double a){\n String s = \"\"+a;\n String[] arr = s.split(\"\\\\.\");\n if (arr[1].length()==1) s+=\"0\";\n return s;\n }", "public static void main(String[] args) {\n byte b1=10;\r\n byte b2=20;\r\n int b3=b1+b2; // byte+byte=int\r\n \r\n int a=10;\r\n long b=20L;\r\n double d=10.5;\r\n // a+b+d \r\n // a=10.0 b=20.0 d=10.5\r\n String s=\"\";\r\n // double r=a+b+d+s; \r\n // String \r\n\t}", "public String getModifiedNumber(BigDecimal bd) {\r\n String str = \"\";\r\n String temp = \"\";\r\n str = bd.toString();\r\n double num = Double.parseDouble(str);\r\n double doubleVal;\r\n\r\n NumberFormat nFormat = NumberFormat.getInstance(Locale.US);\r\n nFormat.setMaximumFractionDigits(1);\r\n nFormat.setMinimumFractionDigits(1);\r\n\r\n /*\r\n * if ((num / getPowerOfTen(12)) > 0.99) // check for Trillion {\r\n * doubleVal = (num / getPowerOfTen(12)); temp =\r\n * String.valueOf(truncate(doubleVal)) + \"Tn\"; } else if ((num /\r\n * getPowerOfTen(9)) > 0.99) // check for Billion { doubleVal = (num /\r\n * getPowerOfTen(9)); temp = String.valueOf(truncate(doubleVal)) + \"Bn\";\r\n * } else\r\n */\r\n if ((num / getPowerOfTen(6)) > 0.99) // check for Million\r\n {\r\n doubleVal = (num / getPowerOfTen(6));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"M\";\r\n temp= nFormat.format(doubleVal) + \"M\";\r\n } else if ((num / getPowerOfTen(3)) > 0.99) // check for K\r\n {\r\n doubleVal = (num / getPowerOfTen(3));\r\n //temp = String.valueOf(truncate(doubleVal)) + \"K\";\r\n temp =nFormat.format(doubleVal) + \"K\";\r\n } else {\r\n //temp = String.valueOf(num);\r\n temp = nFormat.format(num);\r\n }\r\n return temp;\r\n }", "public String addDecimal();", "public static void main(String[] args) {\n\t\tdouble a = 2.0;\n\t\tdouble b = 1.1;\n\t\tSystem.out.println(a + b); // 결과값 3.1\n\t\tSystem.out.println(a - b); // 결과값 0.899999999\n\t\t\n\t\tSystem.out.println();\n\t\tBigDecimal d1 = new BigDecimal(\"2.0\"); // 정확한 실수 정수 사칙연산 계산. 원래 실수로 하면 정확한 값이 나오지 않음. 그래서 bigdecimal을 사용 하는 것.\n\t\tBigDecimal d2 = new BigDecimal(\"1.1\");\n\t\tSystem.out.println(d1.subtract(d2));\n\t\t\n\t\tSystem.out.println();\n\t\tBigDecimal no1 = new BigDecimal(\"123456789123456789123456789\");\n\t\tBigDecimal no2 = new BigDecimal(\"123456789123456789123456789\");\n\t\tSystem.out.println(no1.add(no2)); // add : 더하기\n\t\tSystem.out.println(no1.subtract(no2)); // subtract : 빼기\n\t\tSystem.out.println(no1.multiply(no2)); // multiply : 곱하기\n\t\tSystem.out.println(no1.divide(no2, 2, BigDecimal.ROUND_UP)); // Round_UP : 자릿수 올림\n\t\t\n\t\t\n\t}", "String bigDecimalToString(BigDecimal bd) {\n BigDecimal cur = bd.stripTrailingZeros();\n StringBuilder sb = new StringBuilder();\n\n for (int numConverted = 0; numConverted < MAX_CHARS; numConverted++) {\n cur = cur.multiply(ONE_PLACE);\n int curCodePoint = cur.intValue();\n if (0 == curCodePoint) {\n break;\n }\n\n cur = cur.subtract(new BigDecimal(curCodePoint));\n sb.append(Character.toChars(curCodePoint));\n }\n\n return sb.toString();\n }", "public static void bigDecimal() {\n\n\t\tSystem.out.println(\"BigDecimalExample.bigDecimal()\");\n\t\tBigDecimal n1 = new BigDecimal(123.456);\n\t\tBigDecimal n2 = new BigDecimal(789.012);\n\t\tBigDecimal n3 = new BigDecimal(-2.0);\n\n\t\tSystem.out.println(\"n1: \" + n1);\n\t\tSystem.out.println(\"n2: \" + n2);\n\t\tSystem.out.println(\"n3: \" + n3);\n\t\t// System.out.println(\"n2.toEngineeringString(): \" + n2.toEngineeringString());\n\t\t// System.out.println(\"n2.toPlainString(): \" + n2.toPlainString());\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n1.add(n2): \" + n1.add(n2));\n\t\tSystem.out.println(\"n1: \" + n1); // n1.add(n2) returns a new BigDecimal, it does not modify n1 itself\n\t\tSystem.out.println(\"n1.subtract(n2): \" + n1.subtract(n2));\n\t\tSystem.out.println(\"n2.divide(n1): \" + n1.divide(n3));\n\t\tSystem.out.println(\"n2.multiply(n1): \" + n1.multiply(n1));\n\t\tSystem.out.println(\"n3.pow(4): \" + n3.pow(4));\n\t\tSystem.out.println(\"n2.remainder(n1): \" + n2.remainder(n1));\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n3.abs(): \" + n3.abs());\n\t\tSystem.out.println(\"n2.negate(): \" + n2.negate());\n\t\tSystem.out.println(\"n3.negate(): \" + n3.negate());\n\t\tSystem.out.println(\"n2.plus(): \" + n2.plus());\n\t\tSystem.out.println(\"n3.plus(): \" + n3.plus());\n\t\tSystem.out.println();\n\n\t\t// Since there are no relational operators available, you need to use compareTo\n\t\tSystem.out.println(\"n1.compareTo(n1): \" + n1.compareTo(n1)); // equal\n\t\tSystem.out.println(\"n1.compareTo(n2): \" + n1.compareTo(n2)); // less than\n\t\tSystem.out.println(\"n1.compareTo(n3): \" + n1.compareTo(n3)); // greater than\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n2: \" + n2);\n\t\tSystem.out.println(\"n2.scale(): \" + n2.scale()); // scale = number of digits after the decimal point\n\t\tSystem.out.println(\"n2.precision(): \" + n2.precision()); // precision = number of digits in unscaled value\n\t\tSystem.out.println(\"n2.movePointRight(3): \" + n2.movePointRight(3));\n\t\tSystem.out.println(\"n2.movePointLeft(3) : \" + n2.movePointLeft(3));\n\t\tSystem.out.println(\"n2.movePointRight(3): \" + n2.movePointRight(3));\n\t\tSystem.out.println(\"n2.scaleByPowerOfTen(3): \" + n2.scaleByPowerOfTen(3));\n\t\tSystem.out.println(\"n2.scaleByPowerOfTen(-3): \" + n2.scaleByPowerOfTen(-3));\n\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"n2.min(n1): \" + n2.min(n1));\n\t\tSystem.out.println(\"n2.max(n1): \" + n2.max(n1));\n\n\t}", "public static void main(String[] args) {\n\t\tdouble a = 2.0;\n\t\tdouble b = 1.1;\n\t\tSystem.out.println(a + b);\n\t\tSystem.out.println(a - b);\n\t\t\n\t\tSystem.out.println();\n\t\tBigDecimal d1 = new BigDecimal(\"2.0\");\n\t\tBigDecimal d2 = new BigDecimal(\"1.1\");\n\t\t\n\t\tSystem.out.println(d1.subtract(d2));\n\t\t\n\t\tSystem.out.println();\n\t\tBigDecimal no1 = new BigDecimal(\"1231231219\");\n\t\tBigDecimal no2 = new BigDecimal(\"1231231210\");\n\t\tSystem.out.println(no1.add(no2));\n\t\tSystem.out.println(no1.subtract(no2));\n\t\tSystem.out.println(no1.multiply(no2));\n\t\tSystem.out.println(no1.divide(no2, 2, BigDecimal.ROUND_UP));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void ex04(){\n int number;\n number = 1;\n\n double number2;\n number2 = 1.5;\n\n String number3;\n number3 = \"3\";\n\n boolean bool = (number == 1);\n\n myWindow.clearOut();\n myWindow.writeOutLine(number);\n myWindow.writeOutLine(new String(String.valueOf(number))); //int to string\n myWindow.writeOutLine((double) number); //int to double\n myWindow.writeOutLine(bool); //int to boolean\n\n /*\n Java can perform number -> string\n method 1: numberType.toString\n method 2: String.valueOf(int/double/float) //used above in the code\n Java can also perform string -> number\n dataType.parseDatatype() // e.g.: Integer.parseInt()\n\n Java allows this only when the conversion is widening (small -> larger)\n alternatively reports a compile error if the conversion is narrowing\n */\n\n //YOUR CODE ABOVE HERE\n }", "public static void main(String[] args) {\n Float f1 = 74.02f;\r\n System.out.println(\"float f1=\" + f1);\r\n Float f2 = f1 * 100;\r\n System.out.println(\"float f1 * 100 =\" + f2 + \", longvalue=\" + f2.longValue());\r\n System.out.println(\"float f1 * 100 =\" + f2 + \", rounded=\" + Math.round(f2));\r\n BigDecimal b1 = new BigDecimal(f1);\r\n System.out.println(\"BigDecimal b1=\" + b1);\r\n System.out.println(\"scale =\" + b1.scale());\r\n BigDecimal b2 = b1.setScale(2,BigDecimal.ROUND_HALF_UP);\r\n System.out.println(\"BigDecimal b2=\" + b2);\r\n System.out.println(\"scale =\" + b2.scale());\r\n System.out.println(\"b2.multiply(new BigDecimal(100) =\" + b2.multiply(new BigDecimal(100)));\r\n long l = b2.multiply(new BigDecimal(100)).longValue();\r\n System.out.println(\"long l =\" + l);\r\n System.out.println(\"b2.scaleByPowerOfTen(2) =\" + b2.scaleByPowerOfTen(2));\r\n System.out.println(\" using convertToPence(b1)=\" + convertToPence(b1));\r\n\r\n for (long l1 = 0; l1 <= 10000; l1++) {\r\n float f3 = l1;\r\n f3 = f3 / 100;\r\n float f4 = f3 * 100;\r\n if (f4 != l1) {\r\n //System.out.println(\"rounding error l1=\" + l1 + \", f3=\" + f3 + \", f4=\" + f4);\r\n BigDecimal b3 = convertFromPence(l1);\r\n long l2 = convertToPence(b3);\r\n if (l1 != l2) {\r\n System.out.println(\"rounding error l1=\" + l1 + \", l2=\" + l2);\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }", "public static void main(String[] args) {\n int iValue=256;//\n //强制把一个int类型的值转换为byte类型的值\n byte bValue=(byte)iValue;//-128--0-127\n System.out.println(bValue);//将输出多少?为什么\n short s3=100;\n s3=(short)(s3+2);\n\n byte b=25;//25.0\n char c='a';//97.0\n int i=23;\n double d=.3;\n //右边表达式中在最高等级操作数为duble类型,\n //则右边表达式的类型为double型,故付给一个double型变量\n float result=(float)(b+c+i*d);\n System.out.println(result);\n System.out.println('a'+\"\"+1);\n System.out.println('a'+1+\"\");\n\n System.out.println(1+\"\"+'a'+'b');\n System.out.println('a'+\"\"+'b');\n System.out.println('d'+1*'a'+'c');\n\n\n }", "public static void main(String[] args) {\n\t\tint ivar = 111;\n\t\tString str = String.valueOf(ivar); /*****/\n\t\tSystem.out.println(\"String1 is: \"+str); \n\t\t\n\t\t\n\t\t/*\n\t\t * Integer.toString(int i) method works same as String.valueOf(int i) method. \n\t\t * It belongs to the Integer class and converts the specified integer value to String. \n\t\t * */\n\t\t\n\t\tint ivar1 = 111;\n\t\tString str1 = Integer.toString(ivar1); /*****/\n\t\tSystem.out.println(\"String2 is: \"+str1); \n\t\t\n\t\t/*\n\t\t * Using Format\n\t\t * */\n\t\tint num = 99; \n\t\tString str2 = String.format(\"%d\",num); \n\t\tSystem.out.println(\"hello\"+str2); \n\t\t\n\t\t\n\t\t/*\n\t\t * Note : \n\t\t * long lvar = 123;\n String str = String.valueOf(lvar);\n String str2 =Long.toString(lvar)\n\t\t * */\n\t\t\n\t\t/*\n\n1. Java – Convert double to string using String.valueOf(double) method.\n2. Convert double to string in Java using toString() method of Double wrapper class.\n3. Java – double to string conversion using String.format() method\n4. Convert double to string using DecimalFormat.format()\n5. Java Convert double to string using StringBuffer and StringBuilder.\n double dnum = 99.9999; \nA. \tString str = String.valueOf(dnum); \nB.\tString str = Double.toString(dnum); \nC. String str = String.format(\"%f\", dnum); // format\nD. DecimalFormat df = new DecimalFormat(\"#.000\"); // DecimalFormat.format\n\tString str = df.format(dnum);\n\t\nE.\tString buffer : \n\tStringBuffer sb = new StringBuffer();\n\tsb.append(dnum);\n\tString str = sb.toString();\n\nF. StringBuilder sb = new StringBuilder();\n\tsb.append(dnum);\n\tString str = sb.toString();\n\t\t * \n\t\t * */\n\t}", "public static void main(String[] args) {\n\t\t int a;\r\n\t double l = 456.78;\r\n\t \r\n\t a = (int)l;\r\n\t \r\n\t //we are storing the value of double into int therefore we have to perform explicit type casting as done above.\r\n\t System.out.println(a);\r\n\t \r\n\t byte b;\r\n\t\t int i = 56;\r\n\t\t b = (byte)i;\r\n\t\t System.out.println(b);\r\n\t\t \r\n\t\t char c;\r\n\t\t int ii = 78;\r\n\t\t c = (char)ii;\r\n\t\t System.out.println(c);/*When we try to convert int to char, the point to noted is it stores the \r\n\t\t char associated with that integer with respect to ASCII value.*/\r\n\t}", "@Test\n void toDouble ()\n {\n class FractionTestCase {\n FractionPrecise fraction;\n double expectedResult;\n \n public FractionTestCase (FractionPrecise fraction, double expectedResult)\n {\n this.fraction = fraction;\n this.expectedResult = expectedResult;\n }\n }\n \n List<FractionTestCase> testCases = new ArrayList<>();\n \n // Trivial case\n testCases.add(new FractionTestCase(\n new FractionPrecise(1, 1),\n 1.0\n ));\n \n // Numerator is the biggest number\n testCases.add(new FractionTestCase(\n new FractionPrecise(50, 2),\n 25.0\n ));\n \n // Denominator is the biggest number\n testCases.add(new FractionTestCase(\n new FractionPrecise(2, 50),\n 2.0/50\n ));\n \n \n // Very large numbers\n testCases.add(new FractionTestCase(\n new FractionPrecise(new BigInteger(\"1000111222333444555666777888999000111222333444555666777888999\") , new BigInteger(\"1000111222333444555666777888999000111222333444555666777888999\")),\n 1.0\n ));\n \n // Numerator is negative\n testCases.add(new FractionTestCase(\n new FractionPrecise(-20, 10),\n -20.0/10\n ));\n \n // Denominator is negative\n testCases.add(new FractionTestCase(\n new FractionPrecise(20, -10),\n 20.0/-10\n ));\n \n // Both are negative\n testCases.add(new FractionTestCase(\n new FractionPrecise(-20, -10),\n -20.0/-10\n ));\n \n for (FractionTestCase testcase : testCases) {\n // Act\n double actualResult = testcase.fraction.toDouble();\n // Assert\n assertTrue(Math.abs(actualResult - testcase.expectedResult) <= 0.001);\n }\n }", "BigDecimal getEBigDecimal();", "public static void main(String[] args) {\n int myInt = 5;\n float myFloatValue = 5f / 3f;\n double myDoubleValue = 5d / 3f;\n System.out.println(\"my Int \" + myInt);\n System.out.println(\"my Int \" + myFloatValue);\n System.out.println(\"my Int \" + myDoubleValue);\n\n\n double numPounds = 200d;\n double converKil0 = numPounds * 0.45359237d;\n System.out.println(converKil0);\n\n double pi =3.14;\n }", "@Test\n public void test_conversion_of_big_decimal_value() {\n String className = \"ClipboardPageWithBigDecimal\";\n\n ClipboardPage page = api.createPage(className, \"\");\n BigDecimal expected = new BigDecimal(\"223355771111.1313\");\n page.getProperty(\"bigDecimalField\").setValue(expected);\n\n Schema pageSchema = SchemaBuilder\n .record(className)\n .fields()\n .name(\"bigDecimalField\").type().stringType().noDefault()\n .endRecord();\n\n // When\n GenericRecord record = converter.convertClipboardPageToGenericRecord(page, pageSchema);\n\n // Then\n assertEquals(\"223355771111.1313\", record.get(\"bigDecimalField\"));\n }", "public static void main(String[] args) {\n double x, y;\r\n byte b;\r\n int i;\r\n char ch;\r\n x = 10.0;\r\n y = 3.0;\r\n i = (int) (x / y); //truncation will occur when casting double to int\r\n System.out.println(\"Integer outcome of x / y: \" + i);\r\n\r\n i = 100;\r\n b = (byte) i;\r\n System.out.println(\"Value of b: \" + b); // no loss of info as a byte can hole the value 100\r\n\r\n i = 257;\r\n b = (byte) i;\r\n System.out.println(\"Value of b: \" + b); // loss of info as a byte can hole the value 257\r\n\r\n b = 88; //ASCII code fo X\r\n ch = (char) b;\r\n System.out.println(\"ch: \" + ch); // cast between incompatible types\r\n\r\n }", "public static String formatG(BigDecimal b) {\n\t\tString s = format(b);\n\t\tchar[] charArray = s.toCharArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tint cnt = -1;\n\t\tif (!s.contains(\".\")) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tfor (int i = charArray.length - 1; i > -1; i--) {\n\t\t\tchar c = charArray[i];\n\t\t\tsb.append(c);\n\t\t\tif ('.' == c) {\n\t\t\t\tcnt = 0;\n\t\t\t} else if (cnt >= 0) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tif (cnt == 3 && i != 0) {\n\t\t\t\tsb.append(\",\");\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\t\treturn sb.reverse().toString();\n\t}", "public static void main(String[] args){\n String myString = \"This is a String\";\n System.out.println(\"My String: \" + myString);\n myString = myString + \", and this is more!\";\n System.out.println(\"My String: \" + myString);\n\n //When there is a String and other data type being operated,\n //all other datatypes are casted to String;\n String myLastString = \"10\";\n int myInt = 50;\n myLastString = myLastString + myInt;\n System.out.println(\"My Last String: \" + myLastString);\n double myDouble = 102.52d;\n myLastString = myLastString + myDouble;\n System.out.println(\"My Last String: \" + myLastString);\n\n\n }", "@Test\n public void test01() {\n\n float a = 0.1f;\n float b = 0.2f;\n float c = 0.4f;\n float d = 0.6f;\n\n\n System.out.println(a+b);\n System.out.println(c+d);\n\n System.out.println(a+b == 0.3d);\n System.out.println(c+d == 1.0d);\n }", "public static void main(String[] args) {\n\t\tint a = 1+9;\n\t\tSystem.out.println(\"a = \" + a);\n\t\tint e = 12 - 7;\n\t\tSystem.out.println(\"e = \" + e);\n\t\tint i = 2 * 5;\n\t\tSystem.out.println(\"i = \" + i);\n\t\tint m = 12 / 6;\n\t\tSystem.out.println(\"m = \" + m);\n\t\t\n\t\t//Adding two decimal numbers and storing in an int type variable\n\t\t// int b = 5.5 + 7.5; //Adding two decimal numbers i.e. 5.5 and 3.2 and storing the result in the int type variable 'b'\n\t\t//We cant assign decimal values to the int type variables.\n\t\t//by adding type cast to the decimal values, the program will not throw the error, digits after the decimal points will be ignored while adding.\n\t\t\n\t\tint b = (int)5.5 + (int)7.5; //Type casting the flote values to int\n\t\tSystem.out.println(\"b = \" + b);\n\t\tint f = (int)9.5 - (int)7.5;\n\t\tSystem.out.println(\"f = \" + f);\n\t\tint j = (int)9.5 * (int)7.5;\n\t\tSystem.out.println(\"j = \" + j);\n\t\tint n = (int)5.5 / (int)3.2;\n\t\tSystem.out.println(\"n = \" + n);\n\t\t\n\t\tdouble c = 5 + 4;//Adding two integers i.e. 5 and 3 and storing the result in the double type variable 'a'\n\t\tSystem.out.println(\"c = \" + c);\n\t\tdouble g = 9 - 7;\n\t\tSystem.out.println(\"g = \" + g);\n\t\tdouble k = 9 * 7;\n\t\tSystem.out.println(\"k = \" + k);\n\t\tdouble o = 5 / 3;\n\t\tSystem.out.println(\"o = \" + o);\n\t\t\n\t\tdouble d = 4.5 + 5.3;\n\t\tSystem.out.println(\"d = \" + d);\n\t\tdouble h = 8.5 - 5.3;\n\t\tSystem.out.println(\"h = \" + h);\n\t\tdouble l = 8.5 * 5.3;\n\t\tSystem.out.println(\"l = \" + l);\n\t\tdouble p = 5.0 / 3;\n\t\tSystem.out.println(\"p = \" + p);\n\t\t\n\t\t//The Modulus operator '%' returns the reminder of a division operator.\n\t\tint q = 8%3;\n\t\tSystem.out.println(\"q = \" + q);\n\t\tdouble r = 8.568%3;\n\t\tSystem.out.println(\"r = \" + r);\n\t\t\n\t\t//Java provides special operators called Compound Assignment operators which combine an arithmetic operation with an assignment '='\n\t\tint s = 4;\n\t\ts+= 3;//you need to write s+= no space between + and = for compound assignment otherwise it will throw an error\n\t\t//Using Compound assignment operator to increment the variable 's' value by 3 i.e. 4+3\n\t\tSystem.out.println(\"s = \" + s);\n\t\tint t = 4;\n\t\tt-= 3;\n\t\tSystem.out.println(\"t = \" + t);\n\t\tint u = 4;\n\t\tu*= 3;\n\t\tSystem.out.println(\"u = \" + u);\n\t\tint v = 4;\n\t\tv/= 2;\n\t\tSystem.out.println(\"v = \" + v);\n\t\tint w = 5;\n\t\tw%= 3;\n\t\tSystem.out.println(\"w = \" + w);\n\t\t\n\t\tint x = 4;\n\t\tx++;\n\t\tSystem.out.println(\"x = \" + x);\n\t\tint y = 4;\n\t\t++y;\n\t\tSystem.out.println(\"y = \" + y);\n\t\t\n\t\tint pre = 4;\n\t\tSystem.out.println(\"The value of variable 'pre' before incremental using prefix operator = \" + pre);\n\t\tSystem.out.print(\"The value of variable 'pre' while incremental using prefix operator = \" );\n\t\tSystem.out.println(++pre); //(Incremented and printed)\n\t\tSystem.out.println(\"The value of variable 'pre' after incremental using prefix operator = \" + pre);\n\t\t\n\t\tint post = 4;\n\t\tSystem.out.println(\"The value of variable 'post' before incremental using prefix operator = \" + post);\n\t\tSystem.out.print(\"The value of variable 'post' while incremental using prefix operator = \" );\n\t\tSystem.out.println(post++); //(Printed without increment)\n\t\tSystem.out.println(\"The value of variable 'post' after incremental using prefix operator = \" + post); //(Incremented here)\n\t\t\n\t\tint a1 = 1;\n\t\tint b1 = 1;\n\t\tint c1 = ++b1;\n\t\tint d1 = a1++;\n\t\t\n\t\tSystem.out.println(\"a1 = \" + a1);\n\t\tSystem.out.println(\"b1 = \" + b1);\n\t\tSystem.out.println(\"c1 = \" + c1);// Here the value of variable 'b1' will get incremented first and then the incremented value gets assinged to vartiable 'c1'\n\t\tSystem.out.println(\"d1 = \" + d1); // Here the value of variable 'a1' will get assigned to variable 'd' and later the value of variable 'a1' gets incremented\n\t\t\n\t\tint pren = 4;\n\t\tSystem.out.println(\"The value of variable 'pren' before incremental using prefix operator = \" + pren);\n\t\tSystem.out.print(\"The value of variable 'pren' while incremental using prefix operator = \" );\n\t\tSystem.out.println(--pren); //decremented and printed)\n\t\tSystem.out.println(\"The value of variable 'pren' after incremental using prefix operator = \" + pren);\n\t\t\n\t\tint postn = 4;\n\t\tSystem.out.println(\"The value of variable 'postn' before incremental using prefix operator = \" + postn);\n\t\tSystem.out.print(\"The value of variable 'postn' while incremental using prefix operator = \" );\n\t\tSystem.out.println(postn--); //(Printed without decremented)\n\t\tSystem.out.println(\"The value of variable 'postn' after incremental using prefix operator = \" + postn); //(decremented here)\n\t\t\n\t\tint a2 = 1;\n\t\tint b2 = 2;\n\t\tint c2 = --b2;\n\t\tint d2 = a2--;\n\t\t\n\t\tSystem.out.println(\"a2 = \" + a2);\n\t\tSystem.out.println(\"b2 = \" + b2);\n\t\tSystem.out.println(\"c2 = \" + c2);// Here the value of variable 'b1' will get incremented first and then the incremented value gets assinged to vartiable 'c1'\n\t\tSystem.out.println(\"d2 = \" + d2); // Here the value of variable 'a1' will get assigned to variable 'd' and later the value of variable 'a1' gets incremented\n\n\t}", "BigDecimal getValue();", "public static void anotherMethod()\n {\n Integer g = 55;\n Integer l = Integer.valueOf(\"1000\");\n if (g.compareTo(l) > 0){\n int e = g/2;\n System.out.println(g + \" is a Big Value\");\n System.out.println(e + \" is half a Big Value\");\n }else{\n int e = g/2;\n System.out.println(e + \" is definitely small\");\n System.out.println( g + \" is not a big value\");\n }\n }", "private static BigInteger divideAndRound(BigInteger a, BigInteger b) {\r\n BigInteger result = a.divide(b);\r\n //Case 1: Integer part of the quotient is positive, a%b*2>=b, then the float part of the quotient>=.5, therefore add 1 to quotient\r\n if(result.signum()>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = result.add(BigInteger.ONE);\r\n //Case 2: Integer part of the quotient is negative, a%b*2<=b but a%b<>0 , \r\n //then the float part of the quotient<=-0.5, therefore subtract 1 from quotient\r\n else if(result.signum()<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0 && !a.mod(b).equals(BigInteger.ZERO))\r\n result = result.subtract(BigInteger.ONE);\r\n //Case 3: Integer part of the quotient is zero then two cases arise: a>0 or a<0\r\n else if(result.signum()==0)\r\n { \r\n //Case 1.1: a>0.5 then result=1\r\n if(a.compareTo(BigInteger.ZERO)>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = BigInteger.ONE;\r\n //Case 1.1: a<-0.5 then result=-1\r\n else if(a.compareTo(BigInteger.ZERO)<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0)\r\n result = BigInteger.ZERO.subtract(BigInteger.ONE); //-1 :)\r\n }\r\n return result;\r\n }", "public static void main(String[] args) {\n int x = 5;\n double y = 10.55;\n\n// System.out.println(\"x + y = \" + x + y );\n// double result = x + y;\n System.out.println(\"x + y = \" + (x + y));\n\n byte b = 10;\n int c = 5;\n double d = 4.5;\n\n double result = b + c + d;\n\n System.out.println(\"result= \" + result);\n\n // casting is converting \"bigger\" type to \"smaller\" type\n\n double myDouble = 5.55;\n int myInt = 4 + (int)myDouble;\n System.out.println(\"result= \" + myInt);\n\n int anotherInt = 125;\n byte myByte = 15;\n\n int intResult = anotherInt + myByte;\n byte byteResult = (byte)(anotherInt + myByte);\n\n System.out.println(\"intResult= \" + intResult);\n System.out.println(\"byteResult= \" + byteResult); // overflow\n }", "public static void main(String args[]) {\nint a;\nint b;\na=100;\nSystem.out.println(\"variable a =\"+a);\nSystem.out.println(a);\nb=a/2;\nSystem.out.println(\"variable b=a/2=\" + b);\nSystem.out.println(\"Java drives the Web.\");\n}", "double test(double a){\n System.out.println(\"double a: \"+a);\n return a*a;\n }", "public void main(int number)\n {\n Double f = 100.00/0.0;\n System.out.println(1 + 2 + \"3\");\n System.out.println(\"1\" + 2 + 3);\n char ch = 'd';\n if (ch > 3.00) {\n System.out.println(\"ch > 3.00\");\n System.out.println((int)ch);\n }\n byte b = 10;\n // bytes are promoted to int before being added.\n // since the JVM has no instructions for arithmetic on\n // char byte or short. \n // b = (byte)(b + a); \n b += 10;\n System.out.println(\"b = \" + b);\n \n float ff = 7/2;\n System.out.println(ff);\n \n final int a = 10;\n final int x = a;\n byte bb = x;\n System.out.println(\"bb = \" + bb);\n }", "public String AToDa(double a) {\n // da = 10*a\n double da = a*10;\n return check_after_decimal_point(da);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(Math.random());//大于等于 0.0 且小于 1.0。\n\t\tSystem.out.println(Math.round(1.5));\n\t\tSystem.out.println(Math.round(-1.5));\n\t\tSystem.out.println(Math.abs(-1.1));\n\t\tSystem.out.println(MyMath.round(10.234, 2));\n\t\t\n\t\tchar[] s = new char[]{'a','b','c','d','e'};\n\t\tRandom r= new Random();\n\t\tfor(int x=0;x<3;x++){\n\t\t\tSystem.out.print(s[r.nextInt(s.length)]);\n\t\t}\n\t\tdouble dd = 2323432412323233.23;\n\t\tBigDecimal bd = new BigDecimal(dd).pow(12);//占用资源\n\t\tSystem.out.println(bd);\n\t}", "public String toString(){\n return numerator + \"/\" + denominator;\n }", "BigDecimal bigD(Number n)\r\n\t{\n\t\tBigDecimal b = new BigDecimal(n.doubleValue());\r\n\t\treturn b;\r\n\t}", "public static void main(String[] args){\n byte b1=34;\n // -128, 127\n System.out.println(b1);\n\n\n // short example\n short s1=28;\n // stores whole numbers -32,768 to 32,767\n short s2=1000;\n short s3=35;\n\n //range of int 4 bytes stores -2,147,483,648 to 2,147,483,647\n int number=23456677;\n System.out.println(44); //as default it consider as \"int\"\n long l1= 200;\n long l2=9999999999L;/* when you move out of int range computer needs to know what is the number\n that is why you need to tell it is long by adding L at the end */\n System.out.println(999999999999L);\n\n //stores decimal numbers\n double d1= 5.5;\n System.out.println(d1);\n // as a default java picks double for decimal number\n System.out.println(3.5);\n float f1= 4.5f;\n System.out.println(f1);\n System.out.println(f1+d1);\n\n\n\n\n\n\n }", "@Test\n public void roundOffDecimalPoints() throws IOException {\n BigDecimal actual = Utils.roundOffDecimalPoints(new BigDecimal(1), 2, 2);\n Assert.assertEquals(\"100.00\", actual.toString());\n }", "public static void main(String[] args) {\n\t\tString str = \"1.382700047E10\";\n\t\tBigDecimal d = new BigDecimal(str);\n\n\t\t// double num = 1.382700047E10; //或 long num;\n\t\tSystem.out.println(d.toBigInteger().toString());\n\n\t}", "public static int decimalToAnyBase(int n, int b){\n int val = 0;\n\n int p = 1;\n while(n > 0){\n int d = n % b;\n n = n / b;\n val += p * d;\n p = p * 10;\n }\n\n return val;\n}", "public static void main(String[] args) {\n int a=10;\n byte b=(byte)a; //explicit casting\n System.out.println(b);\n\n double DecimalNumber=10.5;\n float FloatNumber=(float) DecimalNumber;\n System.out.println(FloatNumber);\n\n double DecimalNumber2=10.5;\n float FloatNumber2=(int) DecimalNumber;//double>float\n System.out.println(FloatNumber2);\n\n long LongNum=300L;\n int IntNum=(short)LongNum;\n System.out.println(IntNum);\n\n //implicit casting: small size data to larger size of data...\n byte ByteNum=100;\n int IntNum2=ByteNum;\n System.out.println(IntNum2);\n\n\n short ShortNum=100;\n long LongNum2=ShortNum;\n\n\n \n }", "public int getDecimalDigits() { return 1; }", "public int getDecimalDigits() { return 1; }", "public static void main( String[] args ) {\n System.out.println(NumUtil.format4DecimalPoint(1));\n System.out.println(NumUtil.format4DecimalPoint(1.1));\n System.out.println(NumUtil.format4DecimalPoint(1.12));\n System.out.println(NumUtil.format4DecimalPoint(1.123));\n System.out.println(NumUtil.format4DecimalPoint(1.1234));\n System.out.println(NumUtil.format4DecimalPoint(1.12345));\n System.out.println(NumUtil.format4DecimalPoint(1.123456));\n System.out.println(NumUtil.format4DecimalPoint(12.123456));\n \n double a = 0.09d;\n double b = 0.01d;\n double c = 0.1d;\n \n System.out.println( ( a + b ) );\n System.out.println( c - ( a + b ) == 0 );\n \n //Currency Testing\n Locale canadianEnglish = new Locale( \"en\",\"CA\" );\n NumberFormat currencyFormat = NumberFormat.getCurrencyInstance( Locale.CANADA_FRENCH );\n currencyFormat.setCurrency( Currency.getInstance( Locale.CANADA ) );\n currencyFormat.setMinimumFractionDigits( 2 );\n currencyFormat.setMaximumFractionDigits( 4 );\n double amt = -1.21234;\n System.out.println(amt + \" formats as \" + currencyFormat.format( amt ));\n System.out.println( formatPercent( 2.34d ));\n System.out.println( formatPercent( 0.54d ));\n System.out.println( formatPercent( 99.99999d ));\n System.out.println( formatPercent( 99d ));\n System.out.println( formatPercent( 100d ));\n System.out.println( formatPercent( 150d ));\n System.out.println( formatPercent( 150.1d ));\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\");\n \n System.out.println(\"formatNoDecimalPoint\");\n \n System.out.println(\"0.000 -> \"+NumUtil.formatNoDecimalPoint(0.000));\n System.out.println(\"0.0005 -> \"+NumUtil.formatNoDecimalPoint(0.0005));\n\tSystem.out.println(\"0.05 -> \"+NumUtil.formatNoDecimalPoint(0.05));\n\tSystem.out.println(\"0.5 -> \"+NumUtil.formatNoDecimalPoint(0.5));\n\tSystem.out.println(\"1 -> \"+NumUtil.formatNoDecimalPoint(1));\n\tSystem.out.println(\"1.1 -> \"+NumUtil.formatNoDecimalPoint(1.1));\n\tSystem.out.println(\"1.12 -> \"+NumUtil.formatNoDecimalPoint(1.12));\n\tSystem.out.println(\"1.123 -> \"+NumUtil.formatNoDecimalPoint(1.123));\n\tSystem.out.println(\"1.1234 -> \"+NumUtil.formatNoDecimalPoint(1.1234));\n\tSystem.out.println(\"1.12345 -> \"+NumUtil.formatNoDecimalPoint(1.12345));\n\tSystem.out.println(\"1.123456 -> \"+NumUtil.formatNoDecimalPoint(1.123456));\n\tSystem.out.println(\"12.12345699999999999999999999999999999999 -> \"+NumUtil.formatNoDecimalPoint(12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"566762.42 -> \"+formatNoDecimalPoint(566762.42));\n\tSystem.out.println(\"56676242.00 -> \"+formatNoDecimalPoint(56676242.00));\n\tSystem.out.println(\"2342342342.00 -> \"+formatNoDecimalPoint(2342342342.00));\n\tSystem.out.println(\"12345678901234.12345678901234567890 -> \"+formatNoDecimalPoint(12345678901234.12345678901234567890));\n \n\t\n\tSystem.out.println(\"NumUtil.format2DecimalPoint\");\n \n\tSystem.out.println(\"0.0005 -> \"+NumUtil.format2DecimalPoint(0.0005));\n\tSystem.out.println(\"0.05 -> \"+NumUtil.format2DecimalPoint(0.05));\n\tSystem.out.println(\"0.5 -> \"+NumUtil.format2DecimalPoint(0.5));\n\tSystem.out.println(\"1 -> \"+NumUtil.format2DecimalPoint(1));\n\tSystem.out.println(\"1.1 -> \"+NumUtil.format2DecimalPoint(1.1));\n\tSystem.out.println(\"1.12 -> \"+NumUtil.format2DecimalPoint(1.12));\n\tSystem.out.println(\"1.123 -> \"+NumUtil.format2DecimalPoint(1.123));\n\tSystem.out.println(\"1.1234 -> \"+NumUtil.format2DecimalPoint(1.1234));\n\tSystem.out.println(\"1.12345 -> \"+NumUtil.format2DecimalPoint(1.12345));\n\tSystem.out.println(\"1.123456 -> \"+NumUtil.format2DecimalPoint(1.123456));\n\tSystem.out.println(\"12.12345699999999999999999999999999999999 -> \"+NumUtil.format2DecimalPoint(12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"566762.42 -> \"+format2DecimalPoint(566762.42));\n\tSystem.out.println(\"56676242.00 -> \"+format2DecimalPoint(56676242.00));\n\tSystem.out.println(\"2342342342.00 -> \"+format2DecimalPoint(2342342342.00));\n\tSystem.out.println(\"12345678901234.12345678901234567890 -> \"+format2DecimalPoint(12345678901234.12345678901234567890));\n\t\n\t\n \n////////////\n\t\nSystem.out.println(\"formatNoDecimalPoint\");\n \n System.out.println(\"0.000 -> \"+NumUtil.formatNoDecimalPoint(0.00));\n System.out.println(\"-0.0005 -> \"+NumUtil.formatNoDecimalPoint(-0.0005));\n\tSystem.out.println(\"-0.05 -> \"+NumUtil.formatNoDecimalPoint(-0.05));\n\tSystem.out.println(\"-0.5 -> \"+NumUtil.formatNoDecimalPoint(-0.5));\n\tSystem.out.println(\"-1 -> \"+NumUtil.formatNoDecimalPoint(-1));\n\tSystem.out.println(\"-1.1 -> \"+NumUtil.formatNoDecimalPoint(-1.1));\n\tSystem.out.println(\"-1.12 -> \"+NumUtil.formatNoDecimalPoint(-1.12));\n\tSystem.out.println(\"-1.123 -> \"+NumUtil.formatNoDecimalPoint(-1.123));\n\tSystem.out.println(\"-1.1234 -> \"+NumUtil.formatNoDecimalPoint(-1.1234));\n\tSystem.out.println(\"-1.12345 -> \"+NumUtil.formatNoDecimalPoint(-1.12345));\n\tSystem.out.println(\"-1.123456 -> \"+NumUtil.formatNoDecimalPoint(-1.123456));\n\tSystem.out.println(\"-12.12345699999999999999999999999999999999 -> \"+NumUtil.formatNoDecimalPoint(-12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"-566762.42 -> \"+formatNoDecimalPoint(-566762.42));\n\tSystem.out.println(\"-56676242.00 -> \"+formatNoDecimalPoint(-56676242.00));\n\tSystem.out.println(\"-2342342342.00 -> \"+formatNoDecimalPoint(-2342342342.00));\n\tSystem.out.println(\"-12345678901234.12345678901234567890 -> \"+formatNoDecimalPoint(-12345678901234.12345678901234567890));\n \n\t\n\tSystem.out.println(\"NumUtil.format2DecimalPoint\");\n \n\tSystem.out.println(\"0.000 -> \"+NumUtil.format2DecimalPoint(0.00));\n\tSystem.out.println(\"-0.0005 -> \"+NumUtil.format2DecimalPoint(-0.0005));\n\tSystem.out.println(\"-0.05 -> \"+NumUtil.format2DecimalPoint(-0.05));\n\tSystem.out.println(\"-0.5 -> \"+NumUtil.format2DecimalPoint(-0.5));\n\tSystem.out.println(\"-1 -> \"+NumUtil.format2DecimalPoint(-1));\n\tSystem.out.println(\"-1.1 -> \"+NumUtil.format2DecimalPoint(-1.1));\n\tSystem.out.println(\"-1.12 -> \"+NumUtil.format2DecimalPoint(-1.12));\n\tSystem.out.println(\"-1.123 -> \"+NumUtil.format2DecimalPoint(-1.123));\n\tSystem.out.println(\"-1.1234 -> \"+NumUtil.format2DecimalPoint(-1.1234));\n\tSystem.out.println(\"-1.12345 -> \"+NumUtil.format2DecimalPoint(-1.12345));\n\tSystem.out.println(\"-1.123456 -> \"+NumUtil.format2DecimalPoint(-1.123456));\n\tSystem.out.println(\"-12.12345699999999999999999999999999999999 -> \"+NumUtil.format2DecimalPoint(-12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"-566762.42 -> \"+format2DecimalPoint(-566762.42));\n\tSystem.out.println(\"-56676242.00 -> \"+format2DecimalPoint(-56676242.00));\n\tSystem.out.println(\"-2342342342.00 -> \"+format2DecimalPoint(-2342342342.00));\n\tSystem.out.println(\"-12345678901234.12345678901234567890 -> \"+format2DecimalPoint(-12345678901234.12345678901234567890));\n\t\n\t\n\t\n\tSystem.out.println(\"8865450.54 -> \"+NumUtil.format2DecimalPoint(8865450.54));\n\t\n\t\n\t\n\tSystem.out.println( ratio( 7, 14 ) );\n\t\n System.out.println( ratio( 10293, 1234 ) );\n\t\n System.out.println( ratio( 50 * 23, 20 * 23 ) );\n }", "@Test\n\tpublic void testDFnumber(){\n\t\tdouble d1 = 0.05;\n\t\tdouble d2 = 0.01;\n\t\tSystem.out.println(d1+d2);\n System.out.println(1.0-0.42);\n System.out.println(4.015*100);\n System.out.println(123.3/100);\n\t}", "public String AToHa(double a) {\n // ha = a/100\n double ha = a/100;\n return check_after_decimal_point(ha);\n }", "public static void main(String[] args){\n long money = 500000; //not equal datatype, so implicit type casting\n long money1 = 500000L; //Recommendation\n\n System.out.println(money);\n System.out.println(money1);\n\n //JVM default float is double(8byte)\n //float pi = 3.141592; //compile error, incompatible types\n float PI = 3.141592f; // f or F\n double dd = 152.12331;\n System.out.println(PI);\n System.out.println(dd);\n }", "public static void main(String[] args){\n short num=100;\n int inum=num;\n long lnum=num;\n float fnum=num;\n double dnum=num;\n //When you assign value of one data type to another,\n // the two types might not be compatible with each other.\n // If the data types are compatible,\n // then Java will perform the conversion automatically known as Automatic Type Conversion and\n // if not then they need to be casted or converted explicitly.\n //this happens only when\n //The two data types are compatible.\n //When we assign value of a smaller data type to a bigger data type.(byte<short<int<long<float<double)\n //For Example, in java the numeric data types are compatible with each other\n // but no automatic conversion is supported from numeric type to char or boolean.\n // Also, char and boolean are not compatible with each other.\n System.out.println(\"num is \"+num);\n System.out.println(\"inum is \"+inum);\n System.out.println(\"lnum is \"+lnum);\n System.out.println(\"fnum is \"+fnum);\n System.out.println(\"dnum is \"+dnum);\n\n //Narrowing or Explicit conversion\n dnum=323.142;\n byte bnum=(byte)dnum;//converting bigger data type o smaller data type\n //so explicit conversion is needed\n System.out.println(\"dnum converted to bnum(byte) is \"+bnum);\n\n }", "private double roundToOneDecimal(double num) {\n\t\treturn (int)((10 * num) + 0.5) / 10.0;\n\t}", "public static void main(String[] args) {\n int num = 10;\n System.out.println(\"The integer value is: \" + num);\n\n // converts int to string type\n String data = Integer.toString (num);//  we can also use String.format() String.valueOf()\n System.out.println(\"The string value is: \" + data);//////\n //str to int\n // create string type variable\n String data1 = \"10\";\n System.out.println(\"The string value is: \" + data1);\n // convert string variable to int\n int num1 = Integer.parseInt(data1);// we can also use Integer.valueOf() \n System.out.println(\"The integer value is: \" + num1);//////\n //str to long\n //creating str type variable\n String data2 = \"10\";\n System.out.println(\"The string value is: \" + data2);\n long l2 = Long.parseLong(data2);\n System.out.println(\"The long value is: \" + l2);//////\n //long to str\n //creating long type variable\n long data3 = 9225;\n System.out.println(\"The long value is: \" + data3);\n String str3 =String.valueOf(data3);///we can also use  Long.toString()\n System.out.println(\"The string is: \" + str3);//////\n //str to float\n //creating str type variable\n String data4 = \"555555\";\n System.out.println(\"The string value is: \" + data4);\n float f4 = Float.parseFloat(data4);\n System.out.println(\"The float value is: \" + f4);//////\n //float to str\n //creating float type variable\n float data5 = 5555555;\n System.out.println(\"The float value is: \" + data5);\n String str5 =String.valueOf(data5);///we can also use  Float.toString() \n System.out.println(\"The string is: \" + str5);//////\n //str to double\n //creating str type variable\n String data6 = \"555555.55\";\n System.out.println(\"The string value is: \" + data6);\n double d6 = Double.parseDouble(data6);\n System.out.println(\"The double value is: \" + d6);//////\n //double to str\n //creating float type variable\n double data7 = 55555.55;\n System.out.println(\"The double value is: \" + data7);\n String str7 =String.valueOf(data7);///we can also use  double.toString() \n System.out.println(\"The string is: \" + str7);//////\n \n \n\n }", "public String fractionToDecimal(int numerator, int denominator) {\n if(numerator == 0) return \"0\";\n \n StringBuilder sb = new StringBuilder();\n //key is remainder, value is len of curr sb, which is starting index of this remainder \n HashMap<Long, Integer> hs = new HashMap<Long, Integer>();\n \n //convert to long to prevent overflow\n long n = (long) numerator;\n long d = (long) denominator;\n \n //catch negative sign\n if( (n < 0) ^ (d < 0) ){\n sb.append(\"-\");\n n = Math.abs(n);\n d = Math.abs(d);\n }\n \n sb.append(n/d);\n long remainder = n%d;\n \n if(remainder == 0) return sb.toString();\n \n sb.append(\".\");\n \n //we will process inputs until we face a visited remainder again\n //in case inputs are dividable, we will return result inside the loop\n while( !hs.containsKey(remainder) ){\n \t//each loop we will start with a new remainder from last loop\n \t\n //record curr remainder and its starting index\n hs.put( remainder, sb.length() );\n \n //update remainder like what we did in math division\n remainder *= 10;\n \n sb.append( remainder/d );\n \n //update remainder to get next remainder\n remainder %= d;\n \n //inputs are dividable\n if(remainder == 0) return sb.toString();\n }\n \n //we get here only when we have Recurring Decimal, add \"(\" based on hashMap value \n sb.insert( hs.get(remainder), \"(\" ).append(\")\");\n \n return sb.toString();\n }", "public static void main(String[] args) {\n\t int myIntValue=5/2;\r\n\t //width of float = 32 (4 bytes)\r\n\t float myFloatValue=(float) 5/3; // lub 5.2f;\r\n //width of double = 64 (8 bytes)\r\n\t double myDoubleValue=5d/3d;\r\n System.out.println(\"myIntValue =\" + myIntValue);\r\n System.out.println(\"myFLoatValue =\" + myFloatValue);\r\n System.out.println(\"myDoubleValue =\" + myDoubleValue);\r\n\r\n double pounds = 200d;\r\n double kilograms = pounds*0.45359237d;\r\n System.out.println(pounds + \" pounds equals \" + kilograms);\r\n }", "public static void main(String[] args) {\n int a=5;\r\n System.out.println(\"value of a is:\"+a);\r\n float b= 12;\r\n System.out.println(\"value of b is:\"+b);\r\n \r\n \r\n\t}", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public static void main(String[] args) {\r\n\tBigDecimal bd1 = new BigDecimal(0.2);\r\n\t\tBigDecimal bd2 = new BigDecimal(0.4);\r\n\t\tBigDecimal add = bd1.add(bd2);\r\n\t\tSystem.out.println(add.setScale(2, BigDecimal.ROUND_DOWN));\r\n\t}", "public static BigDecimal jia(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"加法参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tBigDecimal add = a.add(b);\n\t\tBigDecimal result = add.setScale(SCALE, RoundingMode.HALF_EVEN);\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tString str;\n\t\t\tint scale = add.scale();\n\t\t\tif (scale > SCALE) {\n\t\t\t\tstr = \"[\" + a + \" + \" + b + \" = \" + add + \" ≈ \" + result + \"]\";\n\t\t\t} else if(scale == SCALE) {\n\t\t\t\tstr = \"[\" + a + \" + \" + b + \" = \" + add + \"]\";\n\t\t\t} else {\n\t\t\t\tstr = \"[\" + a + \" + \" + b + \" = \" + add + \" = \" + result + \"]\";\n\t\t\t}\n\t\t\tLOG.debug(str);\n\t\t}\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tdouble d=10;\n\t\tSystem.out.println(d);\n\t\t\n\t\tint i=(int)10.99;\n\t\tSystem.out.println(i);\n\t\tbyte b=(byte)1243;\n\t\tSystem.out.println(b);\n\t\t\n\n\t}", "public static void main(String[] args) {\n\n\t\tBigDecimal bigDec=new BigDecimal(0.01119);\n\t\tfloat ff=bigDec.setScale(2 , BigDecimal.ROUND_UP).floatValue();\n\t\tint myInt = (int) (ff * 100);\n\t\tSystem.out.println(\"ff is \" + ff + \" int myInt is: \" + myInt);\n\t\t\n\t\tBigDecimal amount = new BigDecimal(0.01119);\n\t\tBigDecimal refund_amount = new BigDecimal(0.01119);\t\t\n\t\tBigDecimal tmpBig = new BigDecimal(amount.doubleValue());\n\t\tfloat tmpFloat = tmpBig.setScale(2 , BigDecimal.ROUND_UP).floatValue();\n\t\tString total_fee = \"\" + (int) (tmpFloat * 100);\n\n\t\ttmpBig = new BigDecimal(refund_amount.doubleValue());\n\t\ttmpFloat = tmpBig.setScale(2 , BigDecimal.ROUND_DOWN).floatValue();\n\t\tString refunds_fee = \"\" + (int) (tmpFloat * 100);\n\t\tSystem.out.println(\"total_fee is \" + total_fee + \" refunds_fee is: \" + refunds_fee);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n BigDecimal test = BigDecimal.valueOf(12051);\n BigDecimal result = test.divide(BigDecimal.valueOf(100),2, BigDecimal.ROUND_UP);\n BigDecimal result1 = test.divide(BigDecimal.valueOf(100),2, BigDecimal.ROUND_CEILING);\n System.out.println(result);\n System.out.println(result1);\n }", "public static BigDecimal cheng(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"乘法参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tBigDecimal multiply = a.multiply(b);\n\t\tBigDecimal result = multiply.setScale(SCALE, RoundingMode.HALF_EVEN);\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tString str;\n\t\t\tint scale = multiply.scale();\n\t\t\tif (scale > SCALE) {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \" ≈ \" + result + \"]\";\n\t\t\t} else if(scale == SCALE) {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \"]\";\n\t\t\t} else {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \" = \" + result + \"]\";\n\t\t\t}\n\t\t\tLOG.debug(str);\n\t\t}\n\t\treturn result;\n\t}", "private String formatNumber(BigDecimal num) {\n return num.toPlainString();\n }", "public static void main(String[] args) {\n\t\tdouble dnum = 99.9999; \r\n\t\t\r\n\t\t//convert double to string using valueOf() method\r\n\t\tString str = String.valueOf(dnum); \r\n\t\t\t\r\n\t\t//displaying output string after conversion\r\n\t\tSystem.out.println(\"My String is: \"+str);\r\n\r\n\t}", "public String AToCa(double a) {\n // ca = 100*a\n double ca = a*100;\n return check_after_decimal_point(ca);\n }", "public static BigDecimal chu(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null || BigDecimal.ZERO.equals(b)) {\n\t\t\tthrow new RuntimeException(\"除法参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tboolean near = false;\n\t\tBigDecimal divide;\n\t\ttry {\n\t\t\tdivide = a.divide(b);\n\t\t} catch (ArithmeticException e) {\n\t\t\tdivide = a.divide(b, SCALE, RoundingMode.HALF_EVEN);\n\t\t\tnear = true;\n\t\t}\n\t\tBigDecimal result = divide.setScale(SCALE, RoundingMode.HALF_EVEN);\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tString str;\n\t\t\tint scale = divide.scale();\n\t\t\tif (scale > SCALE) {\n\t\t\t\tstr = \"[\" + a + \" / \" + b + \" = \" + divide + \" ≈ \" + result + \"]\";\n\t\t\t} else if(scale == SCALE && near) {\n\t\t\t\tstr = \"[\" + a + \" / \" + b + \" ≈ \" + divide + \"]\";\n\t\t\t} else if(scale == SCALE && !near) {\n\t\t\t\tstr = \"[\" + a + \" / \" + b + \" = \" + divide + \"]\";\n\t\t\t} else {\n\t\t\t\tstr = \"[\" + a + \" / \" + b + \" = \" + divide + \" = \" + result + \"]\";\n\t\t\t}\n\t\t\tLOG.debug(str);\n\t\t}\n\t\treturn result;\n\t}", "@Test\r\n public void testToString() {\r\n String expected = \"3.0 + 4.0i\";\r\n Complex c = new Complex(3,4);\r\n String actual = c.toString();\r\n assertEquals(expected, actual);\r\n }", "static double formatNumber(double d) {\n\tDecimalFormat df= new DecimalFormat(COMMA_SEPERATED);\n\tSystem.out.println(\"number \"+df.format(d));\n\treturn d;\n\t\n\t\n\t}", "public BigDecimal getDecimalValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a big decimal.\");\n }", "public static void main(String[] args) {\n\n Integer num1 = 100;\n double num2 = num1;\n System.out.println(num2);\n\n float f = 0.5f;\n Float fl = f;\n System.out.println(fl);\n\n System.out.println(Byte.MAX_VALUE);\n\n // parse method --> converting String value to primitives, returne primitive\n // valueOf --> converting String to Wrapper class, return Wrapper class\n\n String str1 = \"123\";\n int result = Integer.parseInt(str1);\n System.out.println(result+1);\n\n String str2 = \"true\";\n boolean r1 = Boolean.parseBoolean(str2);\n System.out.println(r1);\n\n // parse method not case sencetive\n String str3 = \"FaLse\"; // it is work\n boolean r2 = Boolean.parseBoolean(str3);\n System.out.println(r2);\n\n String s1 = \"100.5\";\n Double c1 = Double.parseDouble(s1);\n System.out.println(c1 + 1); // it is call auto boxing\n Double c2 = Double.valueOf(s1); // this in not auto and not unboxing\n\n System.out.println(c1);\n System.out.println(c2);\n\n String s2 = \"TrUe\";\n Boolean b1 = Boolean.valueOf(s2);\n System.out.println(b1); // no sensetive\n\n Double [] arr = new Double[3];\n System.out.println(Arrays.toString(arr));\n // default value of wrapper class always --> null, null, null\n\n String name = \"string\";\n String name1 = new String(\"string\");\n\n Integer I1 = new Integer(\"123\");\n\n System.out.println(addNum(12,13));\n System.out.println(addNum(15.3,7.4));\n \n }", "public static void main(String[] args) {\n byte myByteVar = 10;\r\n short myShortVar = 20;\r\n int myIntVar = 50;\r\n long myLongVar = 50000L + 10L * (myByteVar + myShortVar + myIntVar);\r\n System.out.println(\"myLong = \" + myLongVar);\r\n float myFloatVal = 5f;\r\n double myDoubleVal = 5d;\r\n System.out.println(\"flt \" + myFloatVal );\r\n System.out.println(\"dou \" + myDoubleVal);\r\n\r\n double pndVal = 200d;\r\n double kiloVal = pndVal * .45359237d;\r\n System.out.println(\"3 pnd be kilo \" + kiloVal);\r\n char myChar = '\\u00AE';\r\n System.out.println(\"char \" + myChar);\r\n boolean isAnAlien = false;\r\n if (isAnAlien)\r\n System.out.println(\"is an alien\");\r\n double firstVal = 20;\r\n double secondVal = 40;\r\n double sumVal =( firstVal + secondVal) * 25 ;\r\n double remVal = sumVal % 25;\r\n if (remVal <= 20)\r\n System.out.println(\"it is 20 or less \" + remVal);\r\n\r\n\r\n }", "public static void main(String[] args) {\n // example of type casting\n // it will store the double and store it as an int.\n //by default, java will round down\n\n int a = (int) 0.5;\n System.out.println(a);\n //results will be 0\n\n\n //some primitive data types - byte, short, char, int, long, float, double\n\n // byte a;\n // short b;\n // char c;\n // int d;\n // long e;\n // float f;\n // double g;\n\n //if you were to use int and then store it to double, it will cast to double by default.\n\n //it will work its way down this primitive types data\n\n \n }", "@Test\n public void testGetWordsAsDouble() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(2523.04);\n String expResult = \"Two thousand five hundred twenty-three and 04/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result); \n }", "private double convertToDbl(Object a) {\n double result = 0;\n\n //If the object is a Character...\n if(a instanceof Character){\n char x = (Character)a;\n result = (double)(x - '0'); // -'0' as it will convert the ascii number (e.g 4 is 52 in ascii) to the standard number\n }\n\n //If it is a Double...\n else if(a instanceof Double){\n result = (Double)a;\n }\n\n return result;\n }", "String floatWrite();", "public String HaToA(double ha) {\n // a = 100*ha\n double a = ha*100;\n return check_after_decimal_point(a);\n }", "public double redondear(double decimal, int escala) {\n\n BigDecimal bd = new BigDecimal(decimal).setScale(escala, RoundingMode.HALF_UP);\n\n return Double.parseDouble(bd.toString());\n }", "public static String formatDouble(double a)\n {\n DecimalFormat f = new DecimalFormat(\"0.00\");\n\n return f.format(a, new StringBuffer(\"\"), new FieldPosition(0)).toString();\n }", "public String fractionToDecimal(int numerator, int denominator) {\n \n if (numerator == 0) return \"0\";\n\n StringBuilder fraction = new StringBuilder();\n // the use of ^\n if (numerator < 0 ^ denominator < 0) {\n fraction.append(\"-\");\n }\n\n // avoid over follow \n long dividend = Math.abs(Long.valueOf(numerator));\n long divisor = Math.abs(Long.valueOf(denominator));\n\n fraction.append(String.valueOf(dividend / divisor));\n long remainder = dividend % divisor;\n if (remainder == 0) {\n return fraction.toString();\n }\n\n fraction.append(\".\");\n Map<Long, Integer> map = new HashMap<>();\n while (remainder != 0) {\n\n // check if current remainder has repeat, if so, include () and stop\n if (map.containsKey(remainder)) {\n fraction.insert(map.get(remainder), \"(\");\n fraction.append(\")\");\n break;\n }\n\n map.put(remainder, fraction.length());\n remainder *= 10;\n fraction.append(String.valueOf(remainder / divisor));\n remainder %= divisor;\n }\n\n return fraction.toString();\n }", "public void print(double someDouble) {\r\n print(someDouble + \"\");\r\n }", "@Test\n public void testGetWordsJustDecimal() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\".\");\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }", "public double doubleValue()\n\t\t{\n\t\t\t// Converts BigIntegers to doubles and then divides \n\t\t\treturn (numerator.doubleValue()*1)/denominator.doubleValue();\n\t\t}", "@Test\r\n public void testProduct() {\r\n Complex expected = new Complex(-9,38);\r\n Complex c1 = new Complex(3,4);\r\n Complex c2 = new Complex(5,6);\r\n Complex actual = c1.product(c2);\r\n String expectedString = expected.real + \" + \" + expected.imaginary + \"i\";\r\n \r\n String a = String.valueOf(actual.real); \r\n \r\n String actualString = String.valueOf(actual.real) + \" + \" + String.valueOf(actual.imaginary) + \"i\";\r\n \r\n assertEquals(expectedString, actualString);\r\n }", "public static String DoubleToString(double DoubleValue){\n Double doublee = new Double(DoubleValue);\n return doublee.toString(); \n }", "@Override\r\n public String toString() {\r\n BigDecimal bd = new BigDecimal(real);\r\n bd = bd.round(new MathContext(2));\r\n real = bd.doubleValue();\r\n bd = new BigDecimal(imaginary);\r\n bd = bd.round(new MathContext(2));\r\n imaginary = bd.doubleValue();\r\n if (imaginary == 0) {\r\n return real + \"\";\r\n }\r\n if (real == 0) {\r\n return imaginary + \"i\";\r\n }\r\n if (imaginary < 0) {\r\n return real + \" - \" + (-imaginary) + \"i\";\r\n }\r\n return real + \" + \" + imaginary + \"i\";\r\n }", "@Override\n public BigDecimal operation(String number) {\n BigDecimal ln = new BigDecimal(number);\n BigDecimal rn = new BigDecimal(\"0.01\");\n BigDecimal result = ln.multiply(rn);\n return result;\n }", "public static void main(String[] args) {\n\n\t\tdouble d=12/7;\n\t\tSystem.out.println(d);\n\t\t\n\t\tdouble e=9;//widening\n\t\tSystem.out.println(e);\n\t\t\n\t\tint i=(int)9.99;// narrowing\n\t\tSystem.out.println(i);\n\t\t\n\t\tbyte b=(byte)130;// narrowing\n\t\tSystem.out.println(b);\n\t\t\n\t\t\n\t\t\n\t}", "public String toString() {\n\t\treturn numerator + \"/\" + denominator;\n\t}", "public String toString() {\n String myFraction = \"\" + this.numerator + \"/\" + this.denominator;\n return myFraction;\n }", "public static void main(String[] args) {\n\r\n String myString = \"This is my string\";\r\n System.out.println(\"My String: \" + myString);\r\n myString = myString + \", and this is an addition to the string.\";\r\n System.out.println(\"Updated String: \" + myString);\r\n double doubleNum = 120d;\r\n String newString = \"Adding non-string types to strings\";\r\n newString = newString + doubleNum;\r\n System.out.println(newString);\r\n }", "public static void main(String[] args) {\n\t Product a = new Product(123, \"Shiseido Face Cream\", 85.00 , 2);\r\n\t Product b = new Product(111, \"Chanel Perfume\", 65.00, 5);\r\n\t \r\n\t System.out.println(a.toString());\r\n\t System.out.println(b.toString());\r\n\t \r\n}", "public static void convert(double number)\n {\n\nlong bits = Double.doubleToLongBits(number);\n\nlong sign = bits >>> 63;\nlong exponent = ((bits >>> 52) ^ (sign << 11)) - 1023;\nlong fraction = bits << 12; // bits are \"reversed\" but that's not a problem\n\nlong a = 1L;\nlong b = 1L;\n\nfor (int i = 63; i >= 12; i--) {\n a = a * 2 + ((fraction >>> i) & 1);\n b *= 2;\n}\n\nif (exponent > 0)\n a *= 1 << exponent;\nelse\n b *= 1 << -exponent;\n\nif (sign == 1)\n a *= -1;\n\n// Here you have to simplify the fraction\n\nSystem.out.println(\"Resultat : \"+simplifier(a,b));\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public static String getNoDecimal(float temp) {\n\n BigDecimal bigDecimal = new BigDecimal(String.valueOf(temp));\n bigDecimal = bigDecimal.setScale(0, BigDecimal.ROUND_HALF_UP);\n DecimalFormat decimalFormat = new DecimalFormat();\n decimalFormat.applyPattern(\"#,##0\");\n\n return decimalFormat.format(bigDecimal);\n }", "public String toString(){\r\n String str;\r\n if( this.denominator==1 ){\r\n str = String.valueOf(numerator);\r\n }else{\r\n str = String.valueOf(numerator) + \"/\" + String.valueOf(denominator);\r\n }\r\n return(str);\r\n }", "public String AToDaa(double a) {\n // daa = a/10\n double daa = a/10;\n return check_after_decimal_point(daa);\n }", "private String doubleToDecimalString(double toFormat){\r\n\r\n String d = \"\";\r\n DecimalFormat df = new DecimalFormat(\"0.00\");\r\n d = df.format(toFormat);\r\n\r\n return d;\r\n }", "private String literal(Number num) {\n int i = num.intValue();\n double d = num.doubleValue();\n \n if (i == d) {\n return String.valueOf(i);\n } else {\n // TODO: proper number formatting should be used\n return num.toString();\n }\n }", "public static double Subtract(double _a,double _b){\n\t\tBigDecimal a=new BigDecimal(Double.toString(_a));\n\t\tBigDecimal b=new BigDecimal(Double.toString(_b));\t\n\t\treturn a.subtract(b).doubleValue();\n\t}", "public static void main(String[] args) {\n byte byteValue = 20;\n\n\n // 16 bits\n short shortValue = 55;\n\n // 32 bits\n int intValue = 888;\n\n //\n long longValue = 23355;\n\n // need the f after a decimal to make it\n // read as a float\n float floatValue = 8834.8f;\n float floatValue2 = (float)99.3;\n\n // greater precision then float\n double doubleValue = 32.4;\n\n System.out.println(Byte.MAX_VALUE);\n\n\n intValue = (int)longValue;\n\n System.out.println(intValue);\n\n doubleValue = intValue;\n System.out.println(doubleValue);\n\n // chopped off the end so the point 8 is gone\n // not rounded either -- need Math.Rnd for for tht\n intValue = (int)floatValue;\n System.out.println(intValue);\n\n\n\n // The following won't work as we expect it to!!\n // 128 is too big for a byte.\n // Make sure your casting something into in\n // a vslue it will fit in!! Or else\n // you got weird results\n byteValue = (byte)128;\n System.out.println(byteValue);\n\n\n // You cant convert a String to an int or back again\n /// these videos are old though and from Java 7\n // I kknw aboout String.valueOf() would convert just about\n // anything I knw there are Double.valueOf()\n // or parseDouble()?? not sure which its called or\n // if its both but ill add them later\n\n\n System.out.println(\"////////// MY CODE //////////////////////\");\n\n System.out.println(\"\\nByte min value: \" + Byte.MIN_VALUE +\n \"\\nByte max value: \" + Byte.MAX_VALUE);\n\n\n System.out.println(\"\\nShort min value: \" + Short.MIN_VALUE +\n \"\\nShort max value: \" + Short.MAX_VALUE);\n\n\n System.out.println(\"\\nInt min value: \" + Integer.MIN_VALUE +\n \"\\nInt max value: \" + Integer.MAX_VALUE);\n\n\n System.out.println(\"\\nLong min value: \" + Long.MIN_VALUE +\n \"\\nLong max value: \" + Long.MAX_VALUE);\n\n\n System.out.println(\"\\nFloat min value: \" + Float.MIN_VALUE +\n \"\\nFloat max value: \" + Float.MAX_VALUE);\n\n System.out.println(\"\\nDouble min value: \" + Double.MIN_VALUE +\n \"\\nDouble max value: \" + Double.MAX_VALUE);\n\n\n\n\n\n\n }", "public static String canonicalDecimalStrNoIntegerDot(BigDecimal bd) {\n if ( bd.signum() == 0 )\n return \"0\";\n if ( bd.scale() <= 0 )\n // No decimal part.\n return bd.toPlainString();\n return bd.stripTrailingZeros().toPlainString();\n }", "public String get_fraction_part();" ]
[ "0.6359909", "0.60735637", "0.5982477", "0.5966275", "0.5955389", "0.57968867", "0.5765896", "0.5643177", "0.5621156", "0.56135154", "0.5567683", "0.55457926", "0.5515006", "0.55102545", "0.5499715", "0.5428544", "0.54282993", "0.5375485", "0.5348848", "0.53435034", "0.5325307", "0.53099597", "0.5289176", "0.5281852", "0.52680826", "0.52593046", "0.52569306", "0.5221647", "0.52167434", "0.52023196", "0.5201397", "0.5194477", "0.51828325", "0.5174761", "0.5162241", "0.51313406", "0.51113844", "0.5096202", "0.5088838", "0.50709206", "0.5054282", "0.5053013", "0.5052023", "0.5052023", "0.50482225", "0.5041707", "0.5025525", "0.5021236", "0.50143844", "0.5013654", "0.5007248", "0.49915633", "0.49910727", "0.49853796", "0.49767467", "0.49724722", "0.4966876", "0.49550116", "0.4953101", "0.4951448", "0.49511084", "0.4949904", "0.49412516", "0.49401087", "0.49393088", "0.4924571", "0.49191025", "0.49130547", "0.49124825", "0.4911611", "0.49052674", "0.4902959", "0.48969236", "0.4896814", "0.48958668", "0.48935843", "0.48933592", "0.4883116", "0.4880948", "0.48796946", "0.48770803", "0.48695463", "0.48694983", "0.4858454", "0.4852628", "0.4844184", "0.48440486", "0.48409292", "0.48361632", "0.48344266", "0.4834101", "0.48332268", "0.48261654", "0.48152998", "0.4812829", "0.4807304", "0.48009962", "0.47928438", "0.47910756", "0.478674", "0.4786727" ]
0.0
-1
gets the coordinate of x
public int getX() { return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getX() { return xCoordinate;}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "double getXPosition();", "public int getX() {\n return xCoord;\n }", "public int getX() {\n return this.coordinate.x;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getLocationX() {\r\n\t\treturn x;\r\n\t}", "protected int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "double getPositionX();", "double getPositionX();", "double getPositionX();", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "int getX_coordinate(){\n return x_coordinate;\n }", "public int getX()\r\n {\r\n return xLoc;\r\n }", "protected Number getX() {\n return this.xCoordinate;\n }", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public int getxCoordinate() {\n\t\treturn xCoordinate;\n\t}", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public int getxCoord() {\n\t\treturn xCoord;\n\t}", "public double getxCoordinate() {\n return xCoordinate;\n }", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "public double getXCoordinates() { return xCoordinates; }", "public int getX() {\n return pos_x;\n }", "public int getXPoint() {\r\n return this.x;\r\n }", "public int getX() {\n return (int) Math.round(x);\n }", "public double getXCoordinate() {\n return xCoordinate;\n }", "public int getX(){ return xPosition; }", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "public int getX() { \n\t\treturn x;\n\t}", "private int get_x() {\n return center_x;\n }", "public int getX() {\n\treturn baseXCoord;\n}", "public int getX()\r\n\t{\r\n\t\treturn (int)x;\r\n\t}", "public int getX() {\n return (int) xPos;\n }", "@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}", "double getX() { return pos[0]; }", "public int getX() { return position.x; }", "public int getX() {\r\n return xpos;\r\n }", "public final double getX() { return location.getX(); }", "public double getxCoord() {\n\t\treturn xCoord;\n\t}", "int getX() {\n return xPos;\n }", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}", "public int get_X_Coordinate()\n {\n return currentBallX;\n }", "public int getX() { return loc.x; }", "public int getLocationX( )\n\t{\n\t\treturn locationX;\n\t}", "public int getX() {\n\t\treturn (int) x;\n\n\t}", "public double getX() { return x; }", "public int getPos_x(){\n\t\treturn pos_x;\n\t}", "long getX();", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public double getX() {\n return x;\r\n }", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public double getX() {\n return position.getX();\n }", "public double getX()\n\t{\n\t\treturn x;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's x-coordinate\n\t}", "public int getX()\n\t{\n\t\treturn mX;\n\t}", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getX()\r\n\t{\r\n\t\treturn x;\r\n\t}", "public int x (int index) { return coords[index][0]; }", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public int getX()\n\t{\n\t\treturn x;\n\t}", "public double getX_location() {\n return x_location;\n }", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();" ]
[ "0.8597881", "0.8517619", "0.85107785", "0.84543884", "0.8395726", "0.8381519", "0.8378383", "0.8362063", "0.83298767", "0.83298767", "0.82845175", "0.82777953", "0.8255613", "0.8254147", "0.8141783", "0.8141783", "0.8141783", "0.8131125", "0.8131125", "0.8115714", "0.81092715", "0.8102056", "0.8097832", "0.8089238", "0.8070111", "0.80375314", "0.80259424", "0.79974014", "0.79948425", "0.7989377", "0.79887676", "0.7977567", "0.7961934", "0.7955614", "0.7948724", "0.7946758", "0.79319686", "0.7925346", "0.79187125", "0.79142004", "0.79083526", "0.7905218", "0.79026836", "0.78898287", "0.7872734", "0.7859951", "0.78576756", "0.78550273", "0.784668", "0.7838951", "0.7838914", "0.78150266", "0.780133", "0.77986443", "0.77933097", "0.77877796", "0.77821493", "0.77771354", "0.7775134", "0.7775134", "0.7775134", "0.7775134", "0.7775134", "0.7775134", "0.7775134", "0.77673197", "0.7766715", "0.77651024", "0.7758835", "0.7758835", "0.7752406", "0.77485347", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.7744036", "0.77391803", "0.77391803", "0.77391803", "0.77391803", "0.77391803", "0.7738438", "0.77274936", "0.77274936", "0.77274936", "0.77274936", "0.77274936", "0.77274936", "0.77274936", "0.77274936", "0.77274936" ]
0.77684605
65
gets the coordinate of y
public int getY() { return y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getY();", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "public int getY() {\n return this.coordinate.y;\n }", "public int getY()\r\n {\r\n return yCoord;\r\n }", "double getY() { return pos[1]; }", "public int getY() {return y;}", "double getYPosition();", "public int getY() { return (int)y; }", "public int getY() { return y; }", "public int getY() { return y; }", "public double getY() { return y; }", "public int getY() {\r\n\t\treturn ycoord;\r\n\t}", "public int getY() { return y;}", "public int getY() { return y;}", "public int y() {\r\n\t\treturn yCoord;\r\n\t}", "public int getY() {\n return yCoord;\n }", "public double getY();", "public int getY() { return loc.y; }", "public int getY()\r\n {\r\n return yLoc;\r\n }", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "int getY();", "int getY();", "int getY();", "int getY();", "int getY();", "public int getY()\r\n\t{\r\n\t\treturn y;\r\n\t}", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY(){\r\n\t\treturn y;\r\n\t}", "public double getY(){\r\n return y;\r\n }", "public int getY() {\r\n return y;\r\n }", "public int getY() {\r\n return y;\r\n }", "public int getY()\r\n\t{\r\n\t\treturn (int)y;\r\n\t}", "public int getY()\n {\n return y;\n }", "public int getY()\n {\n return y;\n }", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY(){\n\t\treturn y;\n\t}", "public int getY(){\n\t\treturn y;\n\t}", "public int getY(){\n return this.position[1];\n }", "public int getLocationY() {\r\n\t\treturn y;\r\n\t}", "public int getY()\n {\n \t return _y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "public int getY() {\n return y;\n }", "@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}", "public int getY(){\n return y;\n }", "public int getY(){\n return y;\n }", "public int getY(){\n return y;\n }", "public double getY(){\n return y;\n }", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getYCoordinate ()\n {\n return yCoordinate;\n }", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "public int getY ()\n {\n return coY;\n }", "public double getY() {\n return y;\n }", "public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}", "public double getY() {\n return y;\r\n }", "public final double getY() { return location.getY(); }", "int getY() {\n return y;\n }", "int getY() {\n return y;\n }", "int getY() {\n return y;\n }", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public double getY()\n {\n return y;\n }", "public double getY(){\n\t\treturn y;\n\t}" ]
[ "0.86974585", "0.8691094", "0.8611658", "0.86082524", "0.8599772", "0.85957545", "0.8592598", "0.8592055", "0.8585345", "0.8585345", "0.8566804", "0.85432315", "0.8540205", "0.8540205", "0.8518801", "0.84793925", "0.84516203", "0.84507674", "0.8445251", "0.8444028", "0.8444028", "0.8444028", "0.8444028", "0.8444028", "0.8444028", "0.8444028", "0.8444028", "0.8444028", "0.842892", "0.842892", "0.842892", "0.842892", "0.842892", "0.8426783", "0.8423176", "0.8423176", "0.8417771", "0.840917", "0.8398299", "0.8398299", "0.83976847", "0.83929026", "0.83929026", "0.8371469", "0.8371469", "0.8371469", "0.8371469", "0.8371469", "0.8371469", "0.8366768", "0.8366768", "0.8363868", "0.83568", "0.83538", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83519894", "0.83483857", "0.83360845", "0.83360845", "0.83360845", "0.8328321", "0.83214563", "0.83214563", "0.83214563", "0.8319369", "0.83100426", "0.8303902", "0.829676", "0.82867074", "0.82840925", "0.8283201", "0.82816833", "0.82816833", "0.82816833", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.82777226", "0.8273819", "0.827271" ]
0.8443155
28
sets the coordinate of x
public void setX(int x) { this.x = x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setX(int x) {\n position = position.setX(x);\n }", "public void setX(int x) {\n\tbaseXCoord = x;\n}", "public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tthis.x = x;\n\t}", "public void setXCoordinate(int newValue)\n {\n x = newValue;\n }", "public void setX(int x)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate\n\t}", "protected void setX(final Number x) {\n this.xCoordinate = x;\n }", "public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}", "public void setX(double val) {\r\n\t\t this.xCoord = val;\r\n\t }", "public void setXCoordinates(double newX) { this.xCoordinates = newX; }", "public void setStartX(double x)\n {\n startxcoord=x; \n }", "public void setX(int x){ xPosition = x; }", "public PlotPosition setX( double x )\n {\n return setX( x, 1 );\n }", "public void setX(double x) {\n this.x = x;\r\n }", "void setX(int newX) {\n this.xPos = newX;\n }", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x){\r\n\t\tthis.x = x;\r\n\t}", "public void setX (int index, int x) { coords[index][0] = x; }", "public void setX(int xcoord) {\n\t\tx = xcoord;\n\t}", "public void setX(double x){\n this.x = x;\n }", "public void setX(double x){\n this.x = x;\n }", "public void setX(double x)\n {\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\n }", "public void setX(double point) {\n this.x = point;\n }", "void setX(double x){\r\n\t\tthis.x=x;\r\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setXLoc(int xLoc){\n myRectangle.setX(xLoc);\n }", "public void setX(int x)\n\t{\n\t\tgetWorldPosition().setX(x);\n\t}", "@Override\n\tpublic void setX(int x) {\n\n\t}", "@Override\n\tpublic void setX(int x) {\n\t\t\n\t}", "public void setX(int x) {\n\t\tthis.X = x;\n\t}", "public void setX(double x)\n\t{\n\t\tthis.x = x;\n\t}", "public void setxCoord(Location l) {\n\t\t\n\t}", "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}", "public void setX(int x) {\n this.x = x;\n }", "public void setX(int x) {\n this.x = x;\n }", "public void setX(double value) {\n this.x = value;\n }", "public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }", "public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}", "public void setX(float x) {\r\n\t\tleft = x - width / 2;\r\n\t}", "public void setXPosition(double x)\n\t{\n\t\tthis.xPosition = x;\n\t}", "public void setEndX(double x)\n {\n endxcoord=x; \n }", "void setX(float x) {\n _x = x;\n }", "@Override\n\tpublic void setX(float x) {\n\n\t}", "public void setX(double value) {\n\t\tthis.x = value;\n\t}", "public void setX(int x ){\n if(x>0){\n this.x=x;\n }\n \n }", "public void setX(double value) {\n\t\t\t\tthis.x = value;\n\t\t\t}", "@Override\n\tpublic void setX(float x) \n\t{\n\t\t_x = x;\n\t}", "default void setX(double x)\n {\n getAxis().setX(x);\n }", "public void setX(int x)\n {\n this.x = x;\n }", "public void setX(float x){\n hitBox.offsetTo(x,hitBox.top);\n //this.x=x;\n }", "public void setX(int x)\r\n {\r\n this.x = x;\r\n }", "public void setX(double value) {\n origin.setX(value);\n }", "public void setXCoordinate(int xCoordinate)\n {\n if (xCoordinate >= 0)\n {\n this.xCoordinate = xCoordinate;\n }\n else \n {\n this.xCoordinate = 0;\n }// end of if (xCoordinate >= 0)\n }", "public void setX(final int x) {\n\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int xCoord) {\n this.xCoord = xCoord;\n }", "public void setX(float x) {\n this.x = x;\n }", "public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }", "public void setX(int x) { loc.x = x; }", "public void setX(float x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(double x)\n\t\t{\n\t\t this.x[0] = x;\n\t\t}", "public void setX(double newX) {\r\n x = newX;\r\n }", "public void setX(int x) {\n synchronized (this.xLock) {\n this.movementComposer.setXPosition(x);\n }\n }", "public void setX(double X)\r\n {\r\n curX = X;\r\n }", "public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "public void setPosicion(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public void setXPosition( int xCoordinate ) {\n xPosition = xCoordinate;\n }", "public void setX(int newX)\n {\n x = newX;\n }", "public void setX(int x) {\r\n this.x = x;\r\n\r\n this.slot = Slot.fromXY(x, getY());\r\n }", "public void setX(double x)\r\n\t{\t\r\n\t\tvirtualDxfPoint.setTransformationX(x);\r\n\t\tAnchor.setX(x);\r\n\t}", "private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }", "public void setX(Float x) {\n\t\tthis.x = x;\n\t}", "public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public void setX(int x) { this.x=x; }", "public void setX(double pX) {\n mX = pX;\n }", "public void setxCoordinate(int xCoordinate) {\n this.xCoordinate = xCoordinate;\n }", "public void setX(Double x);", "public void setXY(int x, int y)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate \n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}", "public void setStartPoint(int x) {\n\t\tthis.x = x;\n\n\t}", "public void setX(long x){\n this.x = x;\n }", "public void setxPos(int xPos) {\r\n \tthis.xPos = xPos;\r\n }", "public void setX(int newX)\n\t{\n\t\tx += newX;\n\t\tboundingBox = new Rectangle(x,y,width,height);\n\t}", "public void setX(float x)\n {\n getBounds().offsetTo(x - positionAnchor.x, getBounds().top);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public void setCoordinates(int x, int y) {\n\t\t\n\t\txPosition = x;\t\t\t// Assigns the x integer\n\t\tyPosition = y;\t\t\t// Assigns the y integer\n\t}", "public void setX(int index, float x) {\n\t\tpoints.get(index).setX(x);\n\t}" ]
[ "0.86604476", "0.8617623", "0.85403055", "0.84721595", "0.84133935", "0.8390966", "0.8354936", "0.8308661", "0.82829547", "0.823048", "0.822977", "0.82150036", "0.80889875", "0.80752856", "0.80401677", "0.80397546", "0.80397546", "0.80397546", "0.80397546", "0.8039422", "0.8020781", "0.8006918", "0.7995984", "0.7995984", "0.79881436", "0.7983591", "0.7983591", "0.7983591", "0.79809624", "0.79617167", "0.7959956", "0.7959956", "0.7959956", "0.7959956", "0.7959956", "0.7958984", "0.7929168", "0.7928066", "0.7924206", "0.7916209", "0.7911605", "0.79072756", "0.790285", "0.7902173", "0.7893958", "0.7893958", "0.7877195", "0.7854044", "0.78517836", "0.7847634", "0.7841666", "0.7839125", "0.78364295", "0.78225833", "0.77995795", "0.77947056", "0.77880496", "0.77874327", "0.77785695", "0.77719927", "0.77605754", "0.77543634", "0.77527285", "0.7727103", "0.7726462", "0.7715156", "0.7715156", "0.7715156", "0.7715156", "0.77039313", "0.76952446", "0.76925147", "0.76920915", "0.76804763", "0.7629367", "0.76206493", "0.7607579", "0.7599511", "0.7587899", "0.7581105", "0.75770754", "0.75377995", "0.75343204", "0.75334746", "0.7518138", "0.75124735", "0.7508735", "0.7483774", "0.7479298", "0.747795", "0.74653", "0.74435014", "0.7435567", "0.7425576", "0.7421559", "0.7418482", "0.74157006", "0.73781174", "0.7366685", "0.7351647" ]
0.794818
36
sets the coordinate of y
public void setY(int y) { this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setY(int y) { loc.y = y; }", "public void setY(int y) { this.y=y; }", "public void setY(int y)\n {\n this.y = y;\n }", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}", "public void setY(int y){ yPosition = y; }", "void setY(int y) {\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public void setY(double y)\n {\n this.y = y;\n }", "public void setY(int y) {\n\tbaseYCoord = y;\n}", "public void setY(int y){\n\t\tthis.y_location = y;\n\t}", "public void setY(double y) {\n this.y = y;\r\n }", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "void setY(double y){\r\n\t\tthis.y=y;\r\n\t}", "public void setY(int y ){\n if(y>0){\n this.y=y;\n }\n \n }", "public void setY(long y){\n this.y = y;\n }", "@Override\n public void setY(int y) {\n this.y=y;\n }", "void setY(int y) {\n position = position.setY(y);\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "void setY(final Number y) {\n this.yCoordinate = y;\n }", "public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int theY)\r\n {\r\n y = theY;\r\n }", "public void setY(final int y) {\n\n this.y = y;\n }", "@Override\n\tpublic void setY(int y) {\n\n\t}", "@Override\n\tpublic void setY(int y) {\n\t\t\n\t}", "public void setY(double y)\n\t{\n\t\tthis.y = y;\n\t}", "public void setY(int value) {\n this.y = value;\n }", "public void setY(int y) {\n\t\tthis.Y = y;\n\t}", "void setY(float y) {\n _y = y;\n }", "public void setY(Double y);", "public void setY(double y) {\n\t\tthis.y = y;\n\t}", "public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }", "public void setY(double y)\n\t\t{\n\t\t this.y[0] = y;\n\t\t}", "public PlotPosition setY( double y )\n {\n return setY( y, 1 );\n }", "@Override\n\tpublic void setY(int y) {\n\t\tyPos = y;\n\t}", "public void setY(double value) {\n this.y = value;\n }", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public void setYCoordinate(int newValue)\n {\n y = newValue;\n }", "@Override\r\n\tpublic void setY(float y) {\n\t\t\r\n\t}", "public void setY (int index, int y) { coords[index][1] = y; }", "public void setY(double val) {\r\n\t\t this.yCoord = val;\r\n\t }", "public void setY(float y){\n this.y = y;\n }", "public void setEndY(double y)\n {\n endycoord=y; \n }", "@Override\n\tpublic void setY(float y) {\n\n\t}", "@Override\n\tpublic void setY(float y) \n\t{\n\t\t_y = y;\n\t}", "public void setYPosition(double y)\n\t{\n\t\tthis.yPosition = y;\n\t}", "public void setY(double newY) {\r\n y = newY;\r\n }", "public void setY(Double y) {\n\t\tthis.y = y;\n\t}", "public void setY(float y) {\n this.y = y;\n }", "void setY(int newY) {\n this.yPos = newY;\n }", "public void setStartY(double y)\n {\n startycoord=y; \n }", "public void setY( double Y)\r\n {\r\n curY = Y;\r\n }", "default void setY(double y)\n {\n getAxis().setY(y);\n }", "public void setY(float y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(double point) {\n this.y = point;\n }", "public void setY(int ycoord) {\n\t\ty = ycoord;\n\t}", "public void setY(int ys)\r\n\t{\r\n\t\ty = ys;\r\n\t}", "public void setyCoord(Location l) {\n\t\t\n\t}", "public void setY(int yPos){\t\t\n\t\ty = new Integer(yPos);\n\t}", "public void y(double y) {\n _y = y;\n }", "public void NewY(double y){\n\t\tthis.y = y;\n\t}", "public void setY(double value) {\n origin.setY(value);\n }", "static void setY(int j) {\n\t\tpx = j;\n\t}", "public void setY(int y) {\r\n this.y = y;\r\n\r\n this.slot = Slot.fromXY(getX(), y);\r\n }", "public void setY(Float y) {\n\t\tthis.y = y;\n\t}", "public void setY(double pY) {\n mY = pY;\n }", "public void setY(int yCoord) {\n this.yCoord = yCoord;\n }", "public void setY(double y)\r\n\t{\t\r\n\t\tvirtualDxfPoint.setTransformationY(y);\r\n\t\tAnchor.setY(y);\r\n\t}", "public void setY(float y){\n hitBox.offsetTo(hitBox.left,y);\n //this.y=y;\n }", "private void setY(long value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n }", "public void setY(int y) {\r\n this.y = (short) y;\r\n }", "public void setCurrentYPosition(int y) {\n\t\tthis.currentYPosition = y;\n\t\tthis.currentXPosition = this.floats.leftIntersectionPoint(this.box.getAbsoluteX()\n\t\t\t\t+ this.box.marginLeft + this.box.paddingLeft, this.box.getAbsoluteY() + y\n\t\t\t\t+ this.box.marginTop + this.box.paddingTop, this.currentRowMaxWidth, this.box);\n\t}", "final void setY(double d) {\n y = d;\n }", "public void setYCoordinate (int yCoordinate)\n {\n if (yCoordinate >= 0)\n {\n this.yCoordinate = xCoordinate;\n }\n else \n {\n this.yCoordinate = 0;\n }// end of if (yCoordinate >= 0)\n }", "public void setY(boolean y) {\n\tthis.y = y;\n }", "public void setyCoordinate(int yCoordinate) {\n this.yCoordinate = yCoordinate;\n }", "public void setYPosition( int yCoordinate ) {\n yPosition = yCoordinate;\n }", "public void setXY(int x, int y)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate \n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}", "public void setY(int node, int y) {\n if (y != ys[node])\n invalid[node] = true;\n ys[node] = y;\n }", "public void setyCoordinate(double yCoordinate) {\n this.yCoordinate = yCoordinate;\n }", "public void setY(double d) {\n\t\tthis.y = d;\n\t}", "public void setY(double y) throws IllegalArgumentException {\n\t\tif (!isValidY(y)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.y = y;\n\t}", "public void setY(double d) {\n\t\tthis.y = (int)d;\n\t}", "public void set(double x, double y) {\n \n _x = x;\n _y = y;\n \n }" ]
[ "0.8712376", "0.8632176", "0.8621093", "0.85978115", "0.85903585", "0.85903585", "0.85903585", "0.85789293", "0.85789293", "0.85789293", "0.857612", "0.85606086", "0.85251623", "0.85192454", "0.85192454", "0.8518872", "0.85155195", "0.85132813", "0.8504668", "0.8503047", "0.8503047", "0.8503047", "0.8503047", "0.8496005", "0.84764266", "0.8444947", "0.8442389", "0.8441345", "0.84383124", "0.84383124", "0.84383124", "0.8431648", "0.8430354", "0.84290993", "0.84290993", "0.84290993", "0.84290993", "0.84271824", "0.8424558", "0.83928716", "0.83919555", "0.8373366", "0.83370763", "0.8331242", "0.83311117", "0.8321712", "0.830942", "0.8248403", "0.8231432", "0.8228095", "0.8199722", "0.81820786", "0.81796765", "0.81743705", "0.8160457", "0.81527853", "0.8131044", "0.81283486", "0.8116735", "0.80978304", "0.80940616", "0.80932885", "0.8059145", "0.8026035", "0.802142", "0.8018949", "0.80126345", "0.80058587", "0.7987745", "0.7982917", "0.79822254", "0.794997", "0.7917278", "0.79040825", "0.7902238", "0.7880405", "0.7875115", "0.78465426", "0.7826398", "0.77677274", "0.7753569", "0.7732048", "0.7693301", "0.7678485", "0.76767087", "0.7671843", "0.7654368", "0.7653359", "0.7652187", "0.76193213", "0.75843954", "0.7581355", "0.75742954", "0.75697076", "0.75603205", "0.7543243", "0.75432163", "0.7534684", "0.7531518", "0.7530574" ]
0.86302185
2
checks if the coordinates are equal or not
public boolean equals(Position other) { return (other.x == this.x && other.y == this.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean almostEqual(Coordinates a, Coordinates b);", "public boolean coordsAreEqual(Cell anotherCell){\n return (getI() == anotherCell.getI()) && (getJ() == anotherCell.getJ());\n }", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }", "boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "private boolean containsSameCoord(Point p) {\n boolean elementsContainsP = false;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point pt = it.next();\n if (x(pt) == x(p) && y(pt) == y(p)) {\n elementsContainsP = true;\n break;\n }\n }\n return elementsContainsP;\n }", "@Override\n public boolean equals(Object o) {\n //if the other object is null, they're not equal\n if (o == null) { return false; }\n\n //check if it's a coordinate and if so, if it's a matching coordinate\n if (o instanceof Coordinate) {\n Coordinate other = (Coordinate) o;\n return col == other.col && row == other.row;\n }\n\n return false;\n }", "public boolean equals(Coordinate c) {\r\n\t\treturn (c.x == x) && (c.y == y);\r\n\t}", "public boolean equals(Object o) {\r\n\t if(o instanceof Point) {\r\n\t\t Point temp = (Point) o;\r\n\t\t long x = ((Compare2D) o).getX();\r\n\t\t long y = ((Compare2D) o).getY();\r\n\t\t if(longitude == x && latitude == y)\r\n\t\t\t return true;\r\n\t }\r\n\t return false;\r\n }", "public boolean isEqualNode(int xcoords, int ycoords){ \n boolean ret = false;\n Node N = head;\n for (int i = 1; i < numItems; i++){\n if (xcoords == N.x && ycoords == N.y){\n ret = true;\n }else { \n ret = false;\n }\n N = N.next;\n }\n return ret;\n }", "@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Coord) { // object is Coord type\n Coord coord = (Coord) object; // typecase object to Coord type\n if (this.x == coord.x && this.y == coord.y) { // Equals Coord\n return true;\n }\n }\n return false;\n }", "public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }", "boolean equals(Point other) {\n //System.out.println(\"Calling our equals method now!\");\n return (this.x == other.x) && (this.y == other.y);\n }", "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n \n final Point other = (Point) obj;\n if( !(Point.memeReel(this.x, other.getX()) && Point.memeReel(this.y, other.getY())) ) {\n return false;\n }\n\n return true;\n }", "public boolean equals(MC_Location loc) {\n\t\t if(x != loc.x) return false;\n\t\t if(y != loc.y) return false;\n\t\t if(z != loc.z) return false;\n\t\t if(dimension != loc.dimension) return false;\n\t\t if(Math.abs(yaw - loc.yaw) > 0.0001) return false;\n\t\t if(Math.abs(pitch - loc.pitch) > 0.0001) return false;\n\t\t return true;\n\t }", "@Override\n\tpublic boolean equals(Object other)\n\t{\n if (other == this) \n {\n return true;\n }\n \n // Check if is an instance of this class:\n if (!(other instanceof RelativeLocation))\n {\n return false;\n }\n \n // Check if have same x and y values:\n RelativeLocation otherRelativeLocation = (RelativeLocation) other;\n \n return (this.getX() == otherRelativeLocation.getX()\n \t\t&& this.getY() == otherRelativeLocation.getY());\n\t\t\n\t}", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "@Override\n public boolean equals(Object other) {\n if (this == other) return true; \n \n if (other instanceof Coord3) { // if other is a Coord3 type\n return x == ((Coord3) other).x && y == ((Coord3) other).y && z == ((Coord3) other).z;\n }\n return false;\n }", "public static Boolean equalPoints(UserLocation m, UserLocation n) {\n if ((m.getLat() == n.getLat()) && (m.getLon() == n.getLon()))\n return true;\n else\n return false;\n }", "public boolean equals(Object obj) {\r\n\t\treturn ( this.getX() == ((Coordinate)obj).getX() && this.getY() == ((Coordinate)obj).getY());\r\n\t}", "@Test\n\tvoid testCheckCoordinates2() {\n\t\tassertTrue(DataChecker.checkCoordinate(-1));\n\t}", "boolean hasCoordInfo();", "public boolean isSameAs(Move comp){ \n return this.xFrom==comp.xFrom &&\n this.xTo==comp.xTo &&\n this.yFrom==comp.yFrom &&\n this.yTo==comp.yTo;\n }", "@Test\n\tvoid testCheckCoordinates1() {\n\t\tassertTrue(DataChecker.checkCoordinate(1));\n\t}", "void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}", "public boolean equals(ChessLocation cp)\r\n {\r\n if(cp.getRow() == this.row && cp.getCol() == this.col)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "@Test\n\tvoid testCheckCoordinates3() {\n\t\tassertTrue(DataChecker.checkCoordinate(0));\n\t}", "@Test\n\tvoid testCheckCoordinates6() {\n\t\tassertTrue(DataChecker.checkCoordinate(90));\n\t}", "public Boolean sameCenterPoints(Cell cell) {\r\n int centerX = cell.getcenterX();\r\n int centerY = cell.getcenterY();\r\n for (int i = 0; i < cells.size(); i++) {\r\n Cell currCell = cells.get(i);\r\n if (currCell.getcenterX()==centerX && currCell.getcenterY()==centerY\r\n ) {\r\n return (true);\r\n }\r\n }\r\n return false;\r\n }", "@Override\n public boolean equals(Object o) {\n if ((o == null) || !(o instanceof Location)) {\n return false;\n }\n\n // Check x- and y-coordinates.\n Location other = (Location) o;\n if ((this.x == other.x) && (this.y == other.y)) {\n return true;\n }\n\n return false;\n }", "public boolean equals(Square other){\n\t\t\treturn this.x==other.x && this.y==other.y;\n\t\t}", "private boolean setCoords(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) {\r\n // Ensure all x co-ordinates are in the first quadrant\r\n if(x1 < 0 || x2 < 0 || x3 < 0 || x4 < 0) {\r\n throw new IllegalArgumentException(\"Error: Non-negative numbers for the X co-ordinates only\");\r\n } else if(y1 < 0 || y2 < 0 || y3 < 0 || y4 < 0) {\r\n throw new IllegalArgumentException(\"Error: Non-negative numbers for the Y co-ordinates only\");\r\n } else if(x1 > 20 || x2 > 20 || x3 > 20 || x4 > 20) {\r\n throw new IllegalArgumentException(\"Error: X co-ordinate values cannot be greater than 20\");\r\n } else {\r\n \treturn(true);\r\n }\r\n }", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "boolean isDone(){\n\t\t\n\t\treturn (x0==x1 && y0==y1);\n\t}", "public boolean sameAsGold() {\n\t\tif (this.level == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tArrayList<Gold> goldObjects = this.level.getGoldObjects();\n\n\t\tfor (int i = 0; i < goldObjects.size(); i++) {\n\t\t\tif (this.tilePositionX == goldObjects.get(i).getPositionX()\n\t\t\t\t\t&& this.tilePositionY == goldObjects.get(i).getPositionY()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean equals(Object o) {\n\t\tif (o instanceof Coordinate) {\n\t\t\tif (((Coordinate) o).getRow() == this.getRow() && ((Coordinate) o).getCol() == this.getCol()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean hasPossibleCapture(final Coordinate destination) {\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (destination.equals(tempCoordinate1)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (destination.equals(tempCoordinate2)) {\n return true;\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (destination.equals(tempCoordinate3)) {\n return true;\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (destination.equals(tempCoordinate4)) {\n return true;\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (destination.equals(tempCoordinate5)) {\n return true;\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (destination.equals(tempCoordinate6)) {\n return true;\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (destination.equals(tempCoordinate7)) {\n return true;\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n return destination.equals(tempCoordinate8);\n }", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "private boolean compareLocation(Location location){\n return location.getBlockX()==this.location.getBlockX() && location.getBlockY()==this.location.getBlockY() && location.getBlockZ() == this.location.getBlockZ();\n }", "@Test\n public void testGetLocation() {\n int[] location = board3by3.getLocation(1);\n int[] result = new int[2];\n result[0] = 2;\n result[1] = 0;\n boolean equiv = Arrays.equals(result, location);\n assertTrue(equiv);\n }", "private boolean close(LatLngPoint a, LatLngPoint b) {\n float lat_actual = Math.abs(a.lat - b.lat);\n float lng_actual = Math.abs(a.lng - b.lng);\n assertTrue(lat_actual < 1);\n assertTrue(lng_actual < 1);\n return true;\n }", "public boolean onStairs(){\n\t\tint yp = 0; int xp = 0;\n\t\tint ys = 1; int xs = 1;\n\t\tfor(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position\n\t\t\tfor(int p = 0 ; p < this.position.length; p++){\n\t\t\t\tif(this.position[i][p] == 1 && this.Stairs[i][p] == 1){\n\t\t\t\t\typ=i; xp=p;\n\t\t\t\t\tys=i; xs=p;\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\tif(yp==ys && xp==xs){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;//if they are not in the same location, return false\n\t}", "public boolean equals(Object o)\n\t{\n\t\tboolean ret = false;\n\t\tif(o instanceof Position)\n\t\t{\n\t\t\tPosition tmp = (Position)o;\n\t\t\tif(tmp.getX()==x && tmp.getY()==y)\n\t\t\t\tret = true;\n\t\t}\n\t\treturn ret;\n\t}", "@Test\n\tvoid testCheckCoordinates5() {\n\t\tassertFalse(DataChecker.checkCoordinate(100));\n\t}", "@Test\n\tvoid testCheckCoordinates4() {\n\t\tassertFalse(DataChecker.checkCoordinate(-100));\n\t}", "public boolean isTheSame(CoordinateSystem cs) {\n // we need to introduce some order among the points before we can start comparing !\n double totalTolerance = 0.001;\n\n double dist1 = this.axis1.endsDistance(cs.axes.getKey()) + this.axis2.endsDistance(cs.axes.getValue());\n double dist2 = this.axis1.endsDistance(cs.axes.getValue()) + this.axis2.endsDistance(cs.axes.getKey());\n\n return (dist1 < totalTolerance || dist2 < totalTolerance);\n }", "public boolean equals(Object obj) {\n\n if (obj instanceof Location) {\n\n Location other = (Location) obj;\n\n return row == other.getRow() && col == other.getCol();\n\n } else {\n\n return false;\n\n }\n }", "public boolean isEqual(Road r) {\n if (this.targetVertex == r.targetVertex && this.startVertex == r.startVertex || this.targetVertex == r.startVertex && this.startVertex == r.targetVertex) {\n return true;\n } else {\n return false;\n }\n }", "public boolean equals(Location anotherLocation)\r\n\t{\r\n\t\treturn (this.getRow()==anotherLocation.getRow()) && (this.getColumn()==anotherLocation.getColumn());\r\n\t}", "@Test\n\tpublic void testIfCoordinatesAreValid()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.getCoordinate(0); // at index 0 is the king's default location (5, 5)\n\t\tassertEquals(c.getX(), 5);\n\t\tassertEquals(c.getY(), 5);\t\n\t}", "protected boolean validCoord(int row, int col) {\n\t\treturn (row >= 0 && row < b.size() && col >= 0 && col < b.size());\n\t}", "boolean hasHasXCoordinate();", "private boolean isValidCoordinate(int x, int y) {\n return x >= 0 && x < gameState.mapSize\n && y >= 0 && y < gameState.mapSize;\n }", "@Test\n public void testNullPositionEquals(){\n assertFalse(Maze.position(0,0).equals(null));\n }", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof XiangqiCoordinate)) return false;\n XiangqiCoordinate coordinate = (XiangqiCoordinate) obj;\n return coordinate.getRank() == rank && coordinate.getFile() == file;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null)\n\t\t\treturn false;\n\n\t\tif (!(obj instanceof Location))\n\t\t\treturn false;\n\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tLocation that = (Location) obj;\n\n\t\treturn this.map == that.map && this.y() == that.y() && this.x() == that.x();\n\t}", "public boolean equals( Object other ) {\n if ( super.equals( other ) && ( other instanceof Point ) ) {\n \tPoint p = (Point)other;\n boolean flagEq = Math.abs( getX() - p.getX() ) < mute &&\n \t \t\t\t Math.abs( getY() - p.getY() ) < mute;\n if ( getCoordinateDimension() == 3 ) {\n \tflagEq = flagEq && Math.abs( getZ() - p.getZ() ) < mute;\n }\n return flagEq;\n }\n\n return false;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n GeoPoint other = (GeoPoint) o;\n if (!this.isValid() || !other.isValid()) {\n return false;\n }\n return Objects.equals(coordinates.get(0), other.coordinates.get(0))\n && Objects.equals(coordinates.get(1), other.coordinates.get(1))\n && Objects.equals(coordinateSystem, other.coordinateSystem);\n }", "public boolean equals(Object other) {\r\n if (other == this) return true;\r\n if (other == null) return false;\r\n if (other.getClass() != this.getClass()) return false;\r\n Point2D that = (Point2D) other;\r\n return this.x == that.x && this.y == that.y;\r\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (super.equals(obj)) return true;\r\n\t\tif (!obj.getClass().equals(this.getClass())) return false;\r\n\t\tPoint p = (Point) obj;\r\n\t\tif ((this.x == p.x) && (this.y == p.y)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n\tvoid testCheckCoordinates8() {\n\t\tassertTrue(DataChecker.checkCoordinate(new Integer(5)));\n\t}", "@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof BoardPosition))\n return false;\n BoardPosition b = (BoardPosition) obj;\n return (this.getRow() == b.getRow()) && (this.getColumn() == b.getColumn()) && (this.getPlayer() == b.getPlayer());\n }", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n assertTrue(this.board.isPositionValid(new Position(line, column)));\n }\n }\n }", "public boolean needCoordinates() { return needCoords; }", "@Test\n\tvoid testCheckCoordinates7() {\n\t\tassertTrue(DataChecker.checkCoordinate(-90));\n\t}", "@Test\n public void testEqualsFalse() {\n Rectangle r5 = new Rectangle(7, 5, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 254),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(0, 4, new Color(255, 155, 255),\n new Position2D(-50, 75));\n Rectangle r8 = new Rectangle(0, 4, new Color(0, 255, 255),\n new Position2D(-50, 75));\n Rectangle r9 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, 75));\n Rectangle r10 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(51, -75));\n Rectangle r11 = new Rectangle(1, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n Rectangle r12 = new Rectangle(1, 100, new Color(199, 155, 13),\n new Position2D(50, 0));\n\n assertNotEquals(r1, r5);\n assertNotEquals(r2, r6);\n assertNotEquals(r2, r7);\n assertNotEquals(r2, r8);\n assertNotEquals(r3, r9);\n assertNotEquals(r3, r10);\n assertNotEquals(r4, r11);\n assertNotEquals(r4, r12);\n }", "public boolean equals(Object other) {\n System.out.println(\"Calling our equals method now!\");\n\n if (other == null) {\n return false;\n }\n\n if (!(other instanceof Point)) {\n return false;\n }\n\n // other must be a Point here\n Point p = (Point) other;\n return (this.x == p.x) && (this.y == p.y);\n }", "@Override\n public boolean equals(Object o) {\n final BoardCell secondCell = (BoardCell) o;\n return((this.xCor==secondCell.xCor)\n &&(this.yCor==secondCell.yCor));\n }", "public boolean equals(Point other) {\r\n return ((this.x == other.getX()) && (this.y == other.getY()));\r\n }", "public boolean equals(Position p) {\n return p.xCoord == xCoord && p.yCoord == yCoord && p.zCoord == zCoord;\n }", "@Override\n public boolean equals(final Object o) {\n Position position = (Position) o;\n return posX == position.posX && posY == position.posY && Objects.equals(charAlg, position.charAlg);\n }", "public boolean equals(Case c){\n\t\treturn (this.posX==c.getPosX() && this.posY==c.getPosY()); \n\t}", "public boolean equals(Point other) {\n if (other == null) {\n return false;\n }\n return this.x == other.x && this.y == other.y;\n }", "public boolean check() {\n return StuffUtils.equal(structure, SpigotUtils.structBetweenTwoLocations(pos1, pos2, material));\n }", "@Override\n public boolean isLocationValid(XYCoord coords)\n {\n return master.isLocationValid(coords);\n }", "private static boolean same3Gradients(int[] coords, int r) {\n double n1 = (r + 1) - r;\n double n2 = (r + 2) - (r + 1);\n\n double d1 = coords[r + 1] - coords[r];\n double d2 = coords[r + 2] - coords[r + 1];\n\n // These cases are when we have Q on the same line or column.\n // This is something that will never happen, because of the nqueens Solver's constraints.\n // if (d1 == 0 && d2 == 0) {\n // return n1 == n2;\n // } else if (n1 == 0) {\n // if (n2 == 0)\n // return d1 == d2\n // return false;\n // }\n\n return Math.abs(n1 / d1 - n2 / d2) < 1e-99;\n }", "private boolean arePointsRepeated(Point[] points) {\n for (int i = 0; i < points.length; i++) {\r\n for (int j = i + 1; j < points.length; j++) {\r\n if (points[i].compareTo(points[j]) == 0)\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n BuildGrid buildGrid = (BuildGrid) o;\n return m_dim_x == buildGrid.m_dim_x && m_dim_y == buildGrid.m_dim_y && Arrays.equals(m_grid, buildGrid.m_grid);\n }", "private boolean hasValidOrientation(String[] coord) {\n int[] indices = getIndexFromCoord(coord);\n int x0 = indices[0];\n int y0 = indices[1];\n int x1 = indices[2];\n int y1 = indices[3];\n\n boolean result = x0 == x1 || y0 == y1;\n if (!result) {\n System.out.println(\"Error! Wrong ship location! Try again:\");\n }\n return result;\n }", "public boolean hasSameSides(Property prop) {\n // this code provided by Dave Houtman [2020] personal communication\n return this.getXLength() == prop.getXLength() && this.getYWidth() == prop.getYWidth();\n }", "@Test\n public void testNotPositionInstanceEquals(){\n Pillar p = new Pillar(0,0);\n assertFalse(Maze.position(0,0).equals(p));\n }", "public boolean equal(int row, int col){ \n return this.row == row && this.col == col;\n }", "private boolean checkIfGoodSquare(MapLocation location) {\n return (location.x % 2 == location.y % 2) && !location.isAdjacentTo(Cache.myECLocation);\n }", "private boolean locateSafety(String[] coord) {\n\n int[] indices = getIndexFromCoord(coord);\n int x0 = indices[0];\n int y0 = indices[1];\n int x1 = indices[2];\n int y1 = indices[3];\n\n\n if (x0 == x1) {\n // horizontal\n int northIndex = x0 > 0 ? x0 - 1 : -1;\n int southIndex = x0 < Row.values().length - 1 ? x0 + 1 : -1;\n int leftIndex = y0 > 0 ? y0 - 1 : -1;\n int rightIndex = y1 < fields.length - 1 ? y1 + 1 : -1;\n // check north area\n if (northIndex != -1) {\n for (int i = y0; i <= y1; i++) {\n if (fields[northIndex][i].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check south area\n if (southIndex != -1) {\n for (int i = y0; i <= y1; i++) {\n if (fields[southIndex][i].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check left\n if (leftIndex != -1 && fields[x0][leftIndex].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check right\n if (rightIndex != -1 && fields[x0][rightIndex].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n\n } else {\n // vertical\n int leftCol = y0 > 0 ? y0 - 1 : -1;\n int rightCol = y0 < fields.length - 1 ? y0 + 1 : -1;\n int northIndex = x0 > 0 ? x0 - 1 : -1;\n int southIndex = x1 < Row.values().length -1 ? x1 + 1 : -1;\n\n // check north\n if (northIndex != -1 && fields[northIndex][y0].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check south\n if (southIndex != -1 && fields[southIndex][y0].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check left\n if (leftCol != -1) {\n for (int i = x0; i <= x1; i++) {\n if (fields[i][leftCol].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check right\n if (rightCol != -1) {\n for (int i = x0; i <= x1; i++) {\n if (fields[i][rightCol].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }", "public boolean verificaQuadrante(int x, int y){\n int quadrante = getQuadrante(x, y);\n\n switch (quadrante){\n case 1:\n //se ja existe o elemento no quadrante 1: x de 0 a 2 e y de 0 a 2\n //seguintes sao analogos\n for(int i = 0; i <= 2; i++){\n for(int j = 0; j <= 2; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n case 2:\n for(int i = 0; i <= 2; i++){\n for(int j = 3; j <= 5; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n case 3:\n for(int i = 0; i <= 2; i++){\n for(int j = 6; j <= 8; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n\n }\n }\n return true;\n\n case 4:\n for(int i = 3; i <= 5; i++){\n for(int j = 0; j <= 2; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n case 5:\n for(int i = 3; i <= 5; i++){\n for(int j = 3; j <= 5; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n case 6:\n for(int i = 3; i <= 5; i++){\n for(int j = 6; j <= 8; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n case 7:\n for(int i = 6; i <= 8; i++){\n for(int j = 0; j <= 2; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n case 8:\n for(int i = 6; i <= 8; i++){\n for(int j = 3; j <= 5; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n case 9:\n for(int i = 6; i <= 8; i++){\n for(int j = 6; j <= 8; j++){\n if(matriz[x][y] == matriz[i][j])\n if(x!=i && y!=j)\n return false;\n }\n }\n return true;\n\n default:\n return false;\n }\n }", "public boolean equals(Object other){\n\t\t\n\t\t\n\t\tif(other instanceof Wall)\n\t\t{\n\t\t\t\n\t\t\tWall that = (Wall) other;\n\t\t\t\n\t\t\tif(this.startx == that.startx && this.starty == that.starty && this.endx == that.endx && this.endy == that.endy){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(this.startx == that.endx && this.starty == that.endy && this.endx == that.startx && this.endy == that.starty){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "@Override\n public boolean equals(Object o) {\n\tif (o == null)\n\t return false; \n\telse {\n\t Square p = (Square) o; \n\t return ( (rowIndex == p.rowIndex) && (colIndex == p.colIndex) );\n\t} \n }", "static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "public boolean isEqual(Move m){\r\n\t\treturn m.getStartSquare()==start_sq&&m.getEndSquare()==end_sq&&(m.getModifier()==modifiers % 10);\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof DBSeriesData)) {\n return false;\n }\n DBSeriesData other = (DBSeriesData) object;\n if ((this.xvalue == null && other.xvalue != null) || (this.yvalue != other.yvalue)) {\n return false;\n }\n return true;\n }", "public boolean equals(Point other) {\n return this.x == other.getX() && this.y == other.getY();\n }" ]
[ "0.7520301", "0.7175561", "0.7056023", "0.698029", "0.6978082", "0.689756", "0.689756", "0.689756", "0.6876181", "0.6810895", "0.6732657", "0.66517174", "0.6644312", "0.66330695", "0.66321915", "0.6595126", "0.65839237", "0.657933", "0.65636146", "0.65616107", "0.6524598", "0.64949226", "0.6463325", "0.6447302", "0.6429201", "0.6421064", "0.64068127", "0.63899034", "0.6368498", "0.6353918", "0.635025", "0.63478255", "0.6345491", "0.62751126", "0.62518376", "0.6226053", "0.62171906", "0.62026185", "0.6189284", "0.61752367", "0.61567783", "0.6153122", "0.6152816", "0.6141024", "0.61370176", "0.6131543", "0.6126996", "0.61173236", "0.61092484", "0.61062604", "0.6099999", "0.6098086", "0.6090521", "0.60888314", "0.6088456", "0.6080536", "0.60746247", "0.6073958", "0.60736626", "0.60684013", "0.6054477", "0.60396194", "0.60334224", "0.60240054", "0.6022726", "0.60221237", "0.6018963", "0.60150635", "0.59979594", "0.59947854", "0.59910977", "0.59800804", "0.5974195", "0.5973738", "0.59724987", "0.5962957", "0.5962769", "0.5957099", "0.5955603", "0.5950842", "0.59494704", "0.5945794", "0.5940143", "0.5936133", "0.5932898", "0.5918781", "0.5896979", "0.5895959", "0.5895503", "0.5886084", "0.58784723", "0.5877312", "0.5875404", "0.58750844", "0.5870523", "0.58582747", "0.5856042", "0.5834088", "0.58340454", "0.583293" ]
0.6444961
24
Creates a new DateTimeRfc1123 object with the specified DateTime.
public DateTimeRfc1123(OffsetDateTime dateTime) { this.dateTime = dateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTimeRfc1123(String formattedString) {\n this.dateTime = parse(formattedString);\n }", "public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}", "public DateTime(final DateTime timeStamp) {\n this(null, timeStamp);\n }", "Builder addDateCreated(DateTime value);", "public DateTime(String datetime) {\n super();\n if(datetime!=null) {\n try {\n SimpleDateFormat f = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = (Date)f.parse(datetime);\n this.setTime(date.getTime());\n } catch (ParseException e) {\n }\n\n }\n }", "public void setCreationDateTime(java.util.Date creationDateTime) {\n this.creationDateTime = creationDateTime;\n }", "public void setCreationDateTime(java.util.Date creationDateTime) {\n this.creationDateTime = creationDateTime;\n }", "public void setCreatedDateTime(ZonedDateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "public void setCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "public void setCreatedAt(final ZonedDateTime createdAt);", "LocalDateTime getCreationDate();", "@JsonProperty(\"created_at\")\n public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "LocalDateTime getCreatedAt();", "OffsetDateTime createdDateTime();", "public Flow withCreatedAt(DateTime createdAt) {\n this.createdAt = createdAt;\n return this;\n }", "public DateTime() {\n setCharacteristic(null);\n setYear(1582);\n setMonth(0);\n setDay(1);\n setHours(0);\n setMinutes(0);\n setSeconds(0);\n }", "public void setCreateDateTime(LocalDateTime createDateTime) {\n\t\tthis.createDateTime = createDateTime;\n\t}", "public VersionInfo withCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n return this;\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedOn(DateTime createdOn);", "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "public Builder setCreateDateBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n createDate_ = value;\n onChanged();\n return this;\n }", "public void setCreationTime(LocalDateTime creationTime) {\n\t\tthis.creationTime = creationTime;\n\t}", "org.hl7.fhir.DateTime addNewAppliesDateTime();", "@NotNull\n @JsonProperty(\"createdAt\")\n public ZonedDateTime getCreatedAt();", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date date) {\n\t\t\n\t}", "public void setCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreatedDate(LocalDateTime createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public DateTime(LocalDate date, Optional<LocalTime> optionalTime) {\n this.date = date;\n this.optionalTime = optionalTime;\n }", "public Periode withStartDateTimeString(String startDateTimeString) {\n this.setStartDateTimeString(startDateTimeString);\n return this;\n }", "@JsonProperty(\"datetime\")\n public void setDatetime(Date datetime) {\n this.datetime = datetime;\n }", "public DescribeTestSetDiscrepancyReportResult withCreationDateTime(java.util.Date creationDateTime) {\n setCreationDateTime(creationDateTime);\n return this;\n }", "public DateTime(String string) {\r\n\t\tSimpleDateFormat[] formats = new SimpleDateFormat[] {\r\n\t\t\t\tYYYY_MM_DD_FORMATTER, YYYY_MMT_DD_T_HH_MM_FORMATTER,\r\n\t\t\t\tYYYY_MMT_DD_T_HH_MM_SS_FORMATTER };\r\n\t\tfor (SimpleDateFormat format : formats) {\r\n\t\t\ttry {\r\n\t\t\t\tformat.parse(string);\r\n\t\t\t\tthis.timeString = string;\r\n\t\t\t\treturn;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException();\r\n\t}", "io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getCreatedAtOrBuilder();", "public Date parseAsRFC1123(String str, ParsePosition parsePosition) {\n if (this._formatRFC1123 == null) {\n this._formatRFC1123 = _cloneFormat(DATE_FORMAT_RFC1123);\n }\n return this._formatRFC1123.parse(str, parsePosition);\n }", "public void setCreationTime(Date createdAtTime) {\n\n\t\tthis.createdAtTime = createdAtTime;\n\t}", "public void setCreatedAt(Date createdAt) {\n\t\tthis.createdAt = createdAt;\n\t}", "private ZonedDateTime resolveInstant(LocalDateTime newDateTime) {\n return ofInstant(newDateTime, offset, zone);\n }", "public void setCreatedAt(Date createdAt) {\r\n\t\tthis.createdAt = createdAt;\r\n\t}", "public void setCreatedAt( Date createdAt ) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public DateTime createDateTime() throws IllegalCommandArgumentException {\n DateTime dateTime = null;\n if (containsStartDate && containsStartTime && containsEndDate && containsEndTime) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, startTime, endDate, endTime);\n checkStartEndDate(startDate, endDate, dateTime); \n } else if (containsStartDate && containsStartTime && containsEndTime) {\n dateTime = new DateTime(startDate, startTime, endTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsStartTime) {\n dateTime = new DateTime(startDate, startTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsEndDate) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, \"0800\", endDate, \"2359\");\n checkStartEndDate(startDate, endDate, dateTime);\n } else if (containsStartDate) {\n dateTime = new DateTime(startDate);\n checkEndDate(startDate, dateTime);\n } else if (containsStartTime && containsEndTime) {\n dateTime = new DateTime(currentDate, startTime, endTime);\n } else if (containsStartTime) {\n dateTime = new DateTime(currentDate, startTime);\n }\n return dateTime;\n }", "public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public ParticipantUpdater setDateCreated(final ZonedDateTime dateCreated) {\n this.dateCreated = dateCreated;\n return this;\n }", "public FileObject createdDateUtc(String createdDateUtc) {\n this.createdDateUtc = createdDateUtc;\n return this;\n }", "Builder addDateCreated(Date value);", "public static LocalDateTime getStartOfDay(LocalDateTime dateTime) {\n return dateTime.withHour(0).withMinute(0).withSecond(0);\n }", "public void setCreatedDt(Date createdDt) {\n\t\tthis.createdDt = createdDt;\n\t}", "public void setCreatedAt(long createdAt) {\n this.createdAt = createdAt;\n }", "public ImagingStudy setDateTime(DateTimeDt theValue) {\n\t\tmyDateTime = theValue;\n\t\treturn this;\n\t}", "protected Time(Date dateTime) throws ArgumentException {\n\t\tthis.setHours(dateTime.getHours());\n\t\tthis.setMinutes(dateTime.getMinutes());\n\t\tthis.setSeconds(dateTime.getSeconds());\n\t}", "@Schema(example = \"2019-09-09T12:34:56Z\", description = \"Timestamp when the refund was created. Format: YYYY-MM-DD:HH:mm:ss.SSSZ.\")\n public OffsetDateTime getCreatedDateTime() {\n return createdDateTime;\n }", "private LocalDate createDate(String date) {\n LocalDate localDate = LocalDate.parse(date);\n\n return localDate;\n }", "public Builder withCreationDate(final long creationDate) {\n this.creationDate = LocalDateTime.ofInstant(\n Instant.ofEpochSecond(creationDate), ZoneId.systemDefault()\n );\n return this;\n }", "void setAppliesDateTime(org.hl7.fhir.DateTime appliesDateTime);", "public void setCreatedTime(LocalDateTime value) {\n set(5, value);\n }", "public void setCreatedDateUtc(String createdDateUtc) {\n this.createdDateUtc = createdDateUtc;\n }", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "public User(){\n registerDate = new LocalDateTime();\n }", "OffsetDateTime creationTime();", "public LocalDateTime getCreateDateTime() {\n\t\treturn createDateTime;\n\t}", "io.opencannabis.schema.temporal.TemporalInstant.Instant getCreatedAt();", "public Member(String firstName, String lastName, String screenName, String emailAddress,\n LocalDateTime dateCreated) {\n this.dateCreated = dateCreated;\n this.firstName = firstName;\n this.lastName = lastName;\n this.screenName = screenName;\n this.emailAddress = emailAddress;\n }", "@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "Builder addDateCreated(String value);", "protected LocalDateTime asLocalDateTime(JsonNode jsonNode) {\n Assertion.isNotNull(jsonNode, \"jsonNode is required\");\n return LocalDateTime.parse(jsonNode.asText(), DateTimeFormatter.ISO_DATE_TIME);\n }", "public static void specificDateTime() {\n LocalDate date = LocalDate.of(1996, Month.JUNE, 07);\n LocalDate date2 = LocalDate.of(1996, 06, 07);\n System.out.println(\"Specific localDate: \" + date + \", \" + date2);\n\n LocalTime time = LocalTime.of(12, 05);\n // Can specify seconds and nano seconds\n LocalTime time2 = LocalTime.of(12, 05, 10, 10);\n System.out.println(\"Specific localTime: \" + time + \", \" + time2);\n\n // Can create localDateTime with all values or by combining a localDate and\n // localTime\n LocalDateTime dateTime = LocalDateTime.of(date, time);\n LocalDateTime dateTime2 = LocalDateTime.of(1996, Month.JUNE, 07, 12, 05, 10, 10);\n System.out.println(\"Specific localDateTime: \" + dateTime + \", \" + dateTime2);\n\n // Can create zonedDateTime with localDateTime and zoneID\n ZonedDateTime zonedDateTime = ZonedDateTime.of(dateTime, TimeZone.getDefault().toZoneId());\n // Can create with localDate, localTime and zoneID\n ZonedDateTime zonedDateTime2 = ZonedDateTime.of(date, time, TimeZone.getDefault().toZoneId());\n // Can with with all values specified, however no constructor for enum month and\n // must specify seconds and nano-seconds\n ZoneId zone = ZoneId.of(\"US/Eastern\");\n ZoneId defaultZone = TimeZone.getDefault().toZoneId();\n ZonedDateTime zonedDateTime3 = ZonedDateTime.of(1996, 06, 07, 12, 05, 10, 10, defaultZone);\n System.out.println();\n System.out.println(\"Specific Zoned DateTime:\");\n System.out.println(zonedDateTime);\n System.out.println(zonedDateTime2);\n System.out.println(zonedDateTime3);\n }", "public BoxFileUploadRequestObject setLocalFileCreatedAt(Date createdAt) throws UnsupportedEncodingException {\n entity.addBoxJSONStringEntityPart(METADATA, getCreatedAtMetadataBody(createdAt));\n return this;\n }", "public DateTime() {\n this((BusinessObject) null);\n }", "public void setCreateTime(LocalDateTime timestamp) \n {\n createTime = timestamp;\n }", "public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public EntityDefinitionModel withCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n return this;\n }", "public void setCreateDate(LocalDateTime createDate) {\n this.createDate = createDate;\n }", "@java.lang.Override\n public boolean hasCreationDate() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public TimeEntry dateUtc(OffsetDateTime dateUtc) {\n this.dateUtc = dateUtc;\n return this;\n }", "public void setCreateTime(LocalDateTime createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(LocalDateTime createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(LocalDateTime createTime) {\n this.createTime = createTime;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setCreationDateLocal(Date date) {\r\n\t\toCreationDate = date ;\r\n\t}", "@java.lang.Override\n public boolean hasCreationDate() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public com.google.protobuf.ByteString\n getCreateDateBytes() {\n java.lang.Object ref = createDate_;\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 createDate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.7023843", "0.530797", "0.52671176", "0.51639897", "0.5131379", "0.51119184", "0.51119184", "0.49793065", "0.4963314", "0.49192294", "0.49039528", "0.4886838", "0.48626098", "0.48350957", "0.4826997", "0.47450823", "0.47437805", "0.4743312", "0.47384697", "0.47384697", "0.4728776", "0.4647003", "0.46267015", "0.46179098", "0.4614682", "0.45961657", "0.45843887", "0.45843887", "0.45741946", "0.4573386", "0.4566319", "0.4561829", "0.4561829", "0.4561829", "0.4559866", "0.45483178", "0.4544977", "0.4527735", "0.45189956", "0.4511744", "0.45091695", "0.4505791", "0.44978946", "0.44976684", "0.44916648", "0.44836235", "0.44806984", "0.44806984", "0.44769573", "0.44711873", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44574964", "0.44519463", "0.44491208", "0.44434267", "0.4399818", "0.4385334", "0.43824953", "0.43708742", "0.4368402", "0.43455273", "0.43421528", "0.43378407", "0.43234393", "0.43118697", "0.42970794", "0.4280199", "0.42738765", "0.4261327", "0.42513934", "0.42507783", "0.4248281", "0.42448586", "0.4244518", "0.42444375", "0.42436358", "0.4231498", "0.42289317", "0.42134905", "0.42101592", "0.4205364", "0.41985604", "0.41834694", "0.41790518", "0.41787875", "0.4178738", "0.41707963", "0.41707963", "0.41707963", "0.41679817", "0.41679817", "0.41630062", "0.41625467", "0.41608554" ]
0.76227605
0
Creates a new DateTimeRfc1123 object with the specified DateTime.
public DateTimeRfc1123(String formattedString) { this.dateTime = parse(formattedString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTimeRfc1123(OffsetDateTime dateTime) {\n this.dateTime = dateTime;\n }", "public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}", "public DateTime(final DateTime timeStamp) {\n this(null, timeStamp);\n }", "Builder addDateCreated(DateTime value);", "public DateTime(String datetime) {\n super();\n if(datetime!=null) {\n try {\n SimpleDateFormat f = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = (Date)f.parse(datetime);\n this.setTime(date.getTime());\n } catch (ParseException e) {\n }\n\n }\n }", "public void setCreationDateTime(java.util.Date creationDateTime) {\n this.creationDateTime = creationDateTime;\n }", "public void setCreationDateTime(java.util.Date creationDateTime) {\n this.creationDateTime = creationDateTime;\n }", "public void setCreatedDateTime(ZonedDateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "public void setCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n }", "public void setCreatedAt(final ZonedDateTime createdAt);", "LocalDateTime getCreationDate();", "@JsonProperty(\"created_at\")\n public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "LocalDateTime getCreatedAt();", "OffsetDateTime createdDateTime();", "public Flow withCreatedAt(DateTime createdAt) {\n this.createdAt = createdAt;\n return this;\n }", "public DateTime() {\n setCharacteristic(null);\n setYear(1582);\n setMonth(0);\n setDay(1);\n setHours(0);\n setMinutes(0);\n setSeconds(0);\n }", "public void setCreateDateTime(LocalDateTime createDateTime) {\n\t\tthis.createDateTime = createDateTime;\n\t}", "public VersionInfo withCreatedDateTime(DateTime createdDateTime) {\n this.createdDateTime = createdDateTime;\n return this;\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedOn(DateTime createdOn);", "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "public Builder setCreateDateBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n createDate_ = value;\n onChanged();\n return this;\n }", "public void setCreationTime(LocalDateTime creationTime) {\n\t\tthis.creationTime = creationTime;\n\t}", "org.hl7.fhir.DateTime addNewAppliesDateTime();", "@NotNull\n @JsonProperty(\"createdAt\")\n public ZonedDateTime getCreatedAt();", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date date) {\n\t\t\n\t}", "public void setCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n }", "public void setCreatedDate(LocalDateTime createdDate) {\n this.createdDate = createdDate;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public DateTime(LocalDate date, Optional<LocalTime> optionalTime) {\n this.date = date;\n this.optionalTime = optionalTime;\n }", "public Periode withStartDateTimeString(String startDateTimeString) {\n this.setStartDateTimeString(startDateTimeString);\n return this;\n }", "@JsonProperty(\"datetime\")\n public void setDatetime(Date datetime) {\n this.datetime = datetime;\n }", "public DescribeTestSetDiscrepancyReportResult withCreationDateTime(java.util.Date creationDateTime) {\n setCreationDateTime(creationDateTime);\n return this;\n }", "public DateTime(String string) {\r\n\t\tSimpleDateFormat[] formats = new SimpleDateFormat[] {\r\n\t\t\t\tYYYY_MM_DD_FORMATTER, YYYY_MMT_DD_T_HH_MM_FORMATTER,\r\n\t\t\t\tYYYY_MMT_DD_T_HH_MM_SS_FORMATTER };\r\n\t\tfor (SimpleDateFormat format : formats) {\r\n\t\t\ttry {\r\n\t\t\t\tformat.parse(string);\r\n\t\t\t\tthis.timeString = string;\r\n\t\t\t\treturn;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new IllegalArgumentException();\r\n\t}", "io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getCreatedAtOrBuilder();", "public Date parseAsRFC1123(String str, ParsePosition parsePosition) {\n if (this._formatRFC1123 == null) {\n this._formatRFC1123 = _cloneFormat(DATE_FORMAT_RFC1123);\n }\n return this._formatRFC1123.parse(str, parsePosition);\n }", "public void setCreationTime(Date createdAtTime) {\n\n\t\tthis.createdAtTime = createdAtTime;\n\t}", "public void setCreatedAt(Date createdAt) {\n\t\tthis.createdAt = createdAt;\n\t}", "private ZonedDateTime resolveInstant(LocalDateTime newDateTime) {\n return ofInstant(newDateTime, offset, zone);\n }", "public void setCreatedAt(Date createdAt) {\r\n\t\tthis.createdAt = createdAt;\r\n\t}", "public void setCreatedAt( Date createdAt ) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public DateTime createDateTime() throws IllegalCommandArgumentException {\n DateTime dateTime = null;\n if (containsStartDate && containsStartTime && containsEndDate && containsEndTime) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, startTime, endDate, endTime);\n checkStartEndDate(startDate, endDate, dateTime); \n } else if (containsStartDate && containsStartTime && containsEndTime) {\n dateTime = new DateTime(startDate, startTime, endTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsStartTime) {\n dateTime = new DateTime(startDate, startTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsEndDate) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, \"0800\", endDate, \"2359\");\n checkStartEndDate(startDate, endDate, dateTime);\n } else if (containsStartDate) {\n dateTime = new DateTime(startDate);\n checkEndDate(startDate, dateTime);\n } else if (containsStartTime && containsEndTime) {\n dateTime = new DateTime(currentDate, startTime, endTime);\n } else if (containsStartTime) {\n dateTime = new DateTime(currentDate, startTime);\n }\n return dateTime;\n }", "public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public ParticipantUpdater setDateCreated(final ZonedDateTime dateCreated) {\n this.dateCreated = dateCreated;\n return this;\n }", "public FileObject createdDateUtc(String createdDateUtc) {\n this.createdDateUtc = createdDateUtc;\n return this;\n }", "Builder addDateCreated(Date value);", "public static LocalDateTime getStartOfDay(LocalDateTime dateTime) {\n return dateTime.withHour(0).withMinute(0).withSecond(0);\n }", "public void setCreatedDt(Date createdDt) {\n\t\tthis.createdDt = createdDt;\n\t}", "public void setCreatedAt(long createdAt) {\n this.createdAt = createdAt;\n }", "public ImagingStudy setDateTime(DateTimeDt theValue) {\n\t\tmyDateTime = theValue;\n\t\treturn this;\n\t}", "protected Time(Date dateTime) throws ArgumentException {\n\t\tthis.setHours(dateTime.getHours());\n\t\tthis.setMinutes(dateTime.getMinutes());\n\t\tthis.setSeconds(dateTime.getSeconds());\n\t}", "@Schema(example = \"2019-09-09T12:34:56Z\", description = \"Timestamp when the refund was created. Format: YYYY-MM-DD:HH:mm:ss.SSSZ.\")\n public OffsetDateTime getCreatedDateTime() {\n return createdDateTime;\n }", "private LocalDate createDate(String date) {\n LocalDate localDate = LocalDate.parse(date);\n\n return localDate;\n }", "public Builder withCreationDate(final long creationDate) {\n this.creationDate = LocalDateTime.ofInstant(\n Instant.ofEpochSecond(creationDate), ZoneId.systemDefault()\n );\n return this;\n }", "void setAppliesDateTime(org.hl7.fhir.DateTime appliesDateTime);", "public void setCreatedTime(LocalDateTime value) {\n set(5, value);\n }", "public void setCreatedDateUtc(String createdDateUtc) {\n this.createdDateUtc = createdDateUtc;\n }", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "public User(){\n registerDate = new LocalDateTime();\n }", "OffsetDateTime creationTime();", "public LocalDateTime getCreateDateTime() {\n\t\treturn createDateTime;\n\t}", "io.opencannabis.schema.temporal.TemporalInstant.Instant getCreatedAt();", "public Member(String firstName, String lastName, String screenName, String emailAddress,\n LocalDateTime dateCreated) {\n this.dateCreated = dateCreated;\n this.firstName = firstName;\n this.lastName = lastName;\n this.screenName = screenName;\n this.emailAddress = emailAddress;\n }", "@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "Builder addDateCreated(String value);", "protected LocalDateTime asLocalDateTime(JsonNode jsonNode) {\n Assertion.isNotNull(jsonNode, \"jsonNode is required\");\n return LocalDateTime.parse(jsonNode.asText(), DateTimeFormatter.ISO_DATE_TIME);\n }", "public static void specificDateTime() {\n LocalDate date = LocalDate.of(1996, Month.JUNE, 07);\n LocalDate date2 = LocalDate.of(1996, 06, 07);\n System.out.println(\"Specific localDate: \" + date + \", \" + date2);\n\n LocalTime time = LocalTime.of(12, 05);\n // Can specify seconds and nano seconds\n LocalTime time2 = LocalTime.of(12, 05, 10, 10);\n System.out.println(\"Specific localTime: \" + time + \", \" + time2);\n\n // Can create localDateTime with all values or by combining a localDate and\n // localTime\n LocalDateTime dateTime = LocalDateTime.of(date, time);\n LocalDateTime dateTime2 = LocalDateTime.of(1996, Month.JUNE, 07, 12, 05, 10, 10);\n System.out.println(\"Specific localDateTime: \" + dateTime + \", \" + dateTime2);\n\n // Can create zonedDateTime with localDateTime and zoneID\n ZonedDateTime zonedDateTime = ZonedDateTime.of(dateTime, TimeZone.getDefault().toZoneId());\n // Can create with localDate, localTime and zoneID\n ZonedDateTime zonedDateTime2 = ZonedDateTime.of(date, time, TimeZone.getDefault().toZoneId());\n // Can with with all values specified, however no constructor for enum month and\n // must specify seconds and nano-seconds\n ZoneId zone = ZoneId.of(\"US/Eastern\");\n ZoneId defaultZone = TimeZone.getDefault().toZoneId();\n ZonedDateTime zonedDateTime3 = ZonedDateTime.of(1996, 06, 07, 12, 05, 10, 10, defaultZone);\n System.out.println();\n System.out.println(\"Specific Zoned DateTime:\");\n System.out.println(zonedDateTime);\n System.out.println(zonedDateTime2);\n System.out.println(zonedDateTime3);\n }", "public BoxFileUploadRequestObject setLocalFileCreatedAt(Date createdAt) throws UnsupportedEncodingException {\n entity.addBoxJSONStringEntityPart(METADATA, getCreatedAtMetadataBody(createdAt));\n return this;\n }", "public DateTime() {\n this((BusinessObject) null);\n }", "public void setCreateTime(LocalDateTime timestamp) \n {\n createTime = timestamp;\n }", "public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public EntityDefinitionModel withCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n return this;\n }", "public void setCreateDate(LocalDateTime createDate) {\n this.createDate = createDate;\n }", "@java.lang.Override\n public boolean hasCreationDate() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public TimeEntry dateUtc(OffsetDateTime dateUtc) {\n this.dateUtc = dateUtc;\n return this;\n }", "public void setCreateTime(LocalDateTime createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(LocalDateTime createTime) {\n this.createTime = createTime;\n }", "public void setCreateTime(LocalDateTime createTime) {\n this.createTime = createTime;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setCreationDateLocal(Date date) {\r\n\t\toCreationDate = date ;\r\n\t}", "@java.lang.Override\n public boolean hasCreationDate() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public com.google.protobuf.ByteString\n getCreateDateBytes() {\n java.lang.Object ref = createDate_;\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 createDate_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.76227605", "0.530797", "0.52671176", "0.51639897", "0.5131379", "0.51119184", "0.51119184", "0.49793065", "0.4963314", "0.49192294", "0.49039528", "0.4886838", "0.48626098", "0.48350957", "0.4826997", "0.47450823", "0.47437805", "0.4743312", "0.47384697", "0.47384697", "0.4728776", "0.4647003", "0.46267015", "0.46179098", "0.4614682", "0.45961657", "0.45843887", "0.45843887", "0.45741946", "0.4573386", "0.4566319", "0.4561829", "0.4561829", "0.4561829", "0.4559866", "0.45483178", "0.4544977", "0.4527735", "0.45189956", "0.4511744", "0.45091695", "0.4505791", "0.44978946", "0.44976684", "0.44916648", "0.44836235", "0.44806984", "0.44806984", "0.44769573", "0.44711873", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44662383", "0.44574964", "0.44519463", "0.44491208", "0.44434267", "0.4399818", "0.4385334", "0.43824953", "0.43708742", "0.4368402", "0.43455273", "0.43421528", "0.43378407", "0.43234393", "0.43118697", "0.42970794", "0.4280199", "0.42738765", "0.4261327", "0.42513934", "0.42507783", "0.4248281", "0.42448586", "0.4244518", "0.42444375", "0.42436358", "0.4231498", "0.42289317", "0.42134905", "0.42101592", "0.4205364", "0.41985604", "0.41834694", "0.41790518", "0.41787875", "0.4178738", "0.41707963", "0.41707963", "0.41707963", "0.41679817", "0.41679817", "0.41630062", "0.41625467", "0.41608554" ]
0.7023843
1
Returns the underlying DateTime.
public OffsetDateTime getDateTime() { return this.dateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public static java.sql.Date getDateTime() {\n\t\treturn new java.sql.Date(new java.util.Date().getTime());\n\t}", "public DateTimeDt getDateTimeElement() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public DateTimeDt getDateTimeElement() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "final public synchronized Date getDate() {\n return new Date(crtime) ;\n }", "public DateTime getDateTime()\n\t{\n\t\treturn null;\n\t}", "public Date getDatetime() {\n\t\treturn datetime;\n\t}", "public DateTime getDateTime()\r\n\t{\n\t\tDateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy年MM月dd日HH:mm\");\r\n\t\treturn formatter.parseDateTime(getDate()+getTime());\r\n\t}", "public String getDateTime() {\n\t\tlog.trace(\"Get dateTime, returns [{}]\", dateTime);\n\t\treturn dateTime;\n\t}", "public Date getDate() {\n return dateTime;\n }", "public DateTime getDateTimeValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' does not have a DateTime.\");\n }", "public long getDatetime() {\n return datetime;\n }", "private Date getCurrentDateTime() {\n return Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant());\n }", "public String getDateTime() throws Exception {\n return getDateTime(null, 0, \"\");\n }", "public Calendar getDateTime() {\n return dateTime;\n }", "public java.util.Calendar getDateTime() {\n return localDateTime;\n }", "public Date getAsDate()\n {\n // Nope, shouldn't do that\n if (isASAP() || isNEVER()) {\n return null;\n }\n\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n return new Date((itsValue - DUTC.get() * 1000000L - 3506716800000000L) / 1000L);\n }", "final public long getDateTime() {\n return crtime ;\n }", "public XMLGregorianCalendar getDatetime() {\r\n\t\treturn datetime;\r\n\t}", "public String getDatetime() {\n return datetime;\n }", "long getDateTime();", "public Date getSystemDateTime(){\n\t\tDate systemDate = new Date();\t\t\n\t\treturn systemDate;\n\t}", "private DateTime goodLocalDateUse() {\n LocalDate ld = new LocalDate(2020, 6, 2);\n LocalTime now = LocalTime.now();\n return new DateTime(ld.getYear(), ld.getMonthOfYear(), ld.getDayOfYear(), now.getHourOfDay(),\n now.getMinuteOfHour(), now.getSecondOfMinute(), now.getMillisOfSecond(),\n DateTimeZone.forID(\"America/New_York\"))\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }", "public DateTime getTimeStamp(){\n\t\treturn (DateTime) getObject(DateTime.class, KEY_TIMESTAMP);\n\t}", "public DateTime getStart() {\r\n return new DateTime(getStartMillis(), getChronology());\r\n }", "public LocalDateTime getDatetime() {\n return this.datetime;\n }", "public DateTimeInterpreter getDateTimeInterpreter() {\n return config.drawingConfig.getDateTimeInterpreter(getContext(), config);\n }", "public Date date() {\n return new Date(this.msec);\n }", "public LocalDateTime getDateTime() {\n return dateTime;\n }", "public String getDateTime() {\n\t\t\n\t\tDateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\"); \n\t\t\n\t\tLocalDateTime currentDateTime = LocalDateTime.now(); \n\t\t\n\t\treturn dateTimeFormatter.format(currentDateTime);\n\t}", "org.hl7.fhir.DateTime getAppliesDateTime();", "DateTimeStruct getDateTimeStruct();", "public DTM getSystemEntryDateTime() { \r\n\t\tDTM retVal = this.getTypedField(22, 0);\r\n\t\treturn retVal;\r\n }", "@Override\n\tpublic Date getDbDate() {\n\t\treturn systemMapper.selectNow();\n\t}", "public Instant now() {\n return _clock.instant();\n }", "public CustomDate getDate() {\n return new CustomDate(date.getTime());\n }", "public Date getFormattedDate() {\r\n\t\tlog.debug(\"formatting \" + getDateTime());\r\n\t\ttry {\r\n\t\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.mmmX\");\r\n\t\t\tif (Objects.nonNull(getDateTime())) {\r\n\t\t\t\treturn df.parse(getDateTime());\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.warn(\"Illegal date format; returning epoch datetime.\");\r\n\t\t}\r\n\t\treturn new Date(0);\r\n\t}", "public Date getDate() {\n if (mDate != null) {\n return (Date) mDate.clone();\n } else {\n Logger.d(TAG, \"The mDate is null\");\n return null;\n }\n }", "public Date getDate() {\n if (mDate != null) {\n return (Date) mDate.clone();\n } else {\n Logger.d(TAG, \"The mDate is null\");\n return null;\n }\n }", "public LocalDateTime getLocalDateTime() {\n return this.datetime;\n }", "@ExecFunction(name = \"now\", argTypes = {}, returnType = \"DATETIME\")\n public static Expression now() {\n return DateTimeLiteral.fromJavaDateType(LocalDateTime.now(DateUtils.getTimeZone()));\n }", "@Override\n public DateTimeService getDateTimeService() {\n return dateTimeService;\n }", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "@SuppressWarnings({\"JdkObsolete\", \"JavaUtilDate\"})\n public @NotNull Date getTimestamp() {\n return (Date) timestamp.clone();\n }", "public static String getDateTime() {\n\t\treturn new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\").format(new Date());\n\t}", "public static String getCurrentDateTime()\n\t{\n\t\treturn getDateTime(new Date());\n\t}", "public Date getDateNow(){\n\t\tconfigDefaults(getProp(LOCALE), getProp(TIME_ZONE), null);\r\n\t\t\r\n\t\t// o time millis é sempre GMT 0, a transformação fica por conta do Date\r\n\t\treturn new Date(System.currentTimeMillis()+getProp(TIME_CORRECTION));\r\n\t}", "public LocalDateTime getDateTime() {\n return null;\n }", "public static Date now()\r\n\t{\r\n\t\treturn new Date(System.currentTimeMillis());\r\n\t}", "public Date getConnectionStartUpDateTime()\n {\n return new Date(fConnectionStartUpDateTime);\n }", "public static TimeInstant now() {\n return new TimeInstant();\n }", "private DateTime goodLocalDateUse2() {\n LocalDate ld = new LocalDate(2020, 6, 2);\n LocalTime now = LocalTime.now();\n return new DateTime(ld.getYear(), ld.getMonthOfYear(), ld.getDayOfYear(), now.getHourOfDay(),\n now.getMinuteOfHour(), now.getSecondOfMinute(), now.getMillisOfSecond(),\n DateTimeZone.getDefault())\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n }", "public java.time.Instant date() {\n return getInstant(FhirPropertyNames.PROPERTY_DATE);\n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n private String getDateTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }", "public Date getTimestamp() {\n return new Date(timestamp.getTime()); // clone\n }", "public static LocalDateTime now(){\n return LocalDateTime.now();\n }", "public org.apache.xmlbeans.XmlDateTime xgetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDateTime target = null;\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(CREATED$0, 0);\n return target;\n }\n }", "public static Date getDateNowSingl(){\n\t\tconfigDefaultsTimeZoneAndLocale();\r\n\t\t\r\n\t\t// o time millis é sempre GMT 0, a transformação fica por conta do Date\r\n\t\treturn new Date(System.currentTimeMillis()+getPropDefaultForAll(TIME_CORRECTION));\r\n\t}", "public static Date getCurrentDateTime(String dateType)\r\n\t{\r\n\t\tDate d = null;\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\ttry\r\n\t\t{\r\n\t\t\td = new Date(dateType, c.get(Calendar.YEAR),\r\n\t\t\t\t\tc.get(Calendar.MONTH) + 1, c.get(Calendar.DAY_OF_MONTH));\r\n\t\t\td.setHour(c.get(Calendar.HOUR_OF_DAY));\r\n\t\t\td.setMinute(c.get(Calendar.MINUTE));\r\n\t\t\td.setSecond(c.get(Calendar.SECOND));\r\n\t\t\td.setDateOnly(false);\r\n\t\t} catch (BogusDataException e2)\r\n\t\t{\r\n\t\t\t// This should never happen since we're setting the m/d/y\r\n\t\t\tSystem.err.println(e2.toString());\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public DateTime() {\n setCharacteristic(null);\n setYear(1582);\n setMonth(0);\n setDay(1);\n setHours(0);\n setMinutes(0);\n setSeconds(0);\n }", "public ZonedDateTime getDate() {\n return date;\n }", "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "OffsetDateTime createdDateTime();", "public DateTime getDateFromTimeSlice(int timeSlice) {\n\t\t\n\t\treturn now;\n\t}", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "public static String datetimeNow(){\n return now(DATETIME_FORMAT_PATTERN);\n }", "public DateTime getSelectedDateTime() {\r\n\treturn selectedDate;\r\n }", "public DTM getRxa22_SystemEntryDateTime() { \r\n\t\tDTM retVal = this.getTypedField(22, 0);\r\n\t\treturn retVal;\r\n }", "public static Date getNowUtilDate()\n {\n return new Date();\n }", "DateTime nowUtc();", "public DateTime getDateTime(String fieldname) throws InvalidDateTimeException {\n\t\tString value = getValue(fieldname);\n\t\tif (value == null) return null;\n\t\tDateTime result = new DateTime(value, DateTime.DATE_TIME);\n\t\treturn result;\n\t}", "public static Date now() {\n return Calendar.getInstance().getTime();\n }", "public static Date now() {\n return Calendar.getInstance().getTime();\n }", "public final long getAccessDateTime() {\n \treturn m_accessDate;\n }", "public Date getCreateDatetime() {\r\n\t\treturn createDatetime;\r\n\t}", "public DatabaseInstant getInstant() throws StandardException;", "public static DateTime nowUTC() {\n return new DateTime(DateTimeZone.UTC);\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public static LocalDate getLocalDate() {\n return LocalDate.now();\n }", "public DateTime getDateTime(String fieldname) throws InvalidDateTimeException {\n\t\tString value = getField(fieldname);\n\t\tif (value == null) return null;\n\t\tDateTime result = new DateTime(value, DateTime.DATE_TIME);\n\t\treturn result;\n\t}", "public DateTime timestamp() {\n\n\t\tif (timestamp == null) {\n\n\t\t\tfinal DateTimeValue dt = ProtoDateUtil.fromDecimalDateTime(message.getBaseTimeStamp());\n\n\t\t\ttimestamp = new DateTime(dt.getYear(), dt.getMonth(), dt.getDay(), dt.getHour(), dt.getMinute(),\n\t\t\t\t\tdt.getSecond(), dt.getMillis(), ISOChronology.getInstanceUTC());\n\n\t\t}\n\n\t\treturn timestamp;\n\n\t}", "gen.grpc.hospital.examinations.DateTime getDateTime();", "public LocalDateTime getCreateDateTime() {\n\t\treturn createDateTime;\n\t}", "static long getDateTime(){\n return System.currentTimeMillis();\n }", "DateTime getDateTimeForPosition(double xPos) {\n return getXAxis().getValueForDisplay(getXAxis().parentToLocal(xPos, 0).getX());\n }", "public Date getDate()\n\t{\n\t\tif (m_nType == AT_DATE)\n\t\t\treturn (Date)m_oData;\n\t\telse\n\t\t\treturn null;\n\t}", "DateTime getTime();", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "public DateTime() {\n this((BusinessObject) null);\n }", "public DateTime createdAt() {\n return this.createdAt;\n }", "public org.apache.xmlbeans.XmlDateTime xgetSigningTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDateTime target = null;\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n return target;\r\n }\r\n }", "public Date getDate() {\n return this.currentDate;\n }", "public Date getDate() {\n Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n calendar.set(Calendar.YEAR, year);\n calendar.set(Calendar.MONTH, month - 1); // MONTH is zero based\n calendar.set(Calendar.DAY_OF_MONTH, day);\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n return calendar.getTime();\n }", "public static Date getCurrentDate() {\n return new Date();\n }", "public Date getPerformdatetime() {\n\t\treturn performdatetime;\n\t}", "private String currentDateTime() {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }", "public Date getRespdatetime() {\n\t\treturn respdatetime;\n\t}", "public static Date GetUTCdatetimeAsDate()\n {\n return StringDateToDate(GetUTCdatetimeAsString());\n }", "public LocalDateTime getDate() {\n return date;\n }", "public Date getDBTimeStamp() throws Exception;" ]
[ "0.7372629", "0.7372629", "0.71952826", "0.68169785", "0.68169785", "0.675589", "0.67175764", "0.66701716", "0.66362154", "0.65546334", "0.6545434", "0.65225047", "0.643981", "0.6341401", "0.631617", "0.62572205", "0.6241783", "0.62303966", "0.6186353", "0.6172258", "0.61487675", "0.61120504", "0.6109381", "0.60956305", "0.6062145", "0.60563314", "0.6022632", "0.59687406", "0.5967518", "0.5966692", "0.59575486", "0.5931194", "0.5926549", "0.59237665", "0.5912124", "0.5910056", "0.5880246", "0.5877161", "0.5859026", "0.5859026", "0.5850097", "0.58410096", "0.581861", "0.5813505", "0.58065975", "0.5783998", "0.5776651", "0.5759658", "0.57557046", "0.57457954", "0.57415515", "0.5727755", "0.57248676", "0.5722819", "0.57058024", "0.5696206", "0.5691689", "0.5680599", "0.56594294", "0.56526005", "0.56417865", "0.5636676", "0.56319577", "0.5629452", "0.5627453", "0.5626373", "0.5615163", "0.56127626", "0.5608097", "0.5598586", "0.55963665", "0.5595691", "0.5589896", "0.5589896", "0.5588731", "0.55873686", "0.5585607", "0.5583551", "0.5582779", "0.5564131", "0.55640393", "0.55599284", "0.55416334", "0.55294615", "0.55215794", "0.55208963", "0.551916", "0.55155915", "0.5514238", "0.5513096", "0.551185", "0.55100715", "0.55094856", "0.5499432", "0.54922813", "0.54919326", "0.549169", "0.54807246", "0.5480057", "0.54789066" ]
0.60777783
24
Parses the specified substring of datetime to a 'int' value.
private static int parseInt(final String date, final int beginIndex, final int endIndex) { int num = 0; for (int i = beginIndex; i < endIndex; i++) { final char c = date.charAt(i); if (c < '0' || c > '9') { throw LOGGER.logExceptionAsError(new DateTimeException("Invalid date time: " + date)); } num = num * 10 + (c - '0'); } return num; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int convertStringDateToInteger(String date);", "protected static int getDay(String dateTime) {\n return Integer.parseInt(dateTime.substring(5, 7));\n }", "protected static int getSecond(String dateTime) {\n return Integer.parseInt(dateTime.substring(11, 13));\n }", "private int parseTime(String timeString){\n\n if(timeString != null) {\n String[] parseTime = timeString.split(\":|\\\\s\");\n String intTime = parseTime[0] + parseTime[1];\n int time = Integer.parseInt((intTime));\n if (time != 1200 && parseTime[2].equals(\"PM\")) {\n time += 1200;\n } else if (time == 1200 && parseTime[2].equals(\"AM\")) {\n time = 0;\n }\n return time;\n\n } else {\n return 0;\n }\n }", "private Integer timeStringToInt(String time) {\n\t\t\n\t\tif(time.equals(\"TBA\")) {\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tString[] t = time.split(\":\");\n\t\tInteger hours = Integer.parseInt(t[0]) * 100;\n\t\tInteger minutes = Integer.parseInt(t[1]);\n\t\treturn hours + minutes;\n\t}", "protected static int getHour(String dateTime) {\n return Integer.parseInt(dateTime.substring(7, 9));\n }", "@Test\n\tvoid teststringtoint(){\n\t\tCalendar cal=Calendar.getInstance();\n\t\tint m=cal.get(Calendar.MONTH);\n\t\tint d=cal.get(Calendar.DATE);\n\t\tSystem.out.println(\"m==\"+m+\" d==\"+d);\n\t}", "protected static int getMinute(String dateTime) {\n return Integer.parseInt(dateTime.substring(9, 11));\n }", "private static int get( int value, String[] isoTimestamp ) {\n\n for ( int i = 0; i < isoTimestamp.length; i++ ) {\n Integer.parseInt( isoTimestamp[i] );\n }\n if ( value > isoTimestamp.length - 1 ) {\n return 0;\n }\n return Integer.parseInt( isoTimestamp[value] );\n }", "protected static int getSeason(String dateTime) {\n return Integer.parseInt(dateTime.substring(0, 1));\n }", "public Integer GetTimeFromRecord(java.lang.String temprecord) {\r\n java.lang.String[] RecordTime = temprecord.split(\" \");\r\n return Integer.parseInt(RecordTime[1]);\r\n }", "public static int parseT1(String in){\n Scanner s = new Scanner(in);\n return s.nextInt();\n }", "public static int getInt(String value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}", "protected static int getMonth(String dateTime) {\n return Integer.parseInt(dateTime.substring(3, 5)) - 1;\n }", "protected static int getYear(String dateTime) {\n int year = Integer.parseInt(dateTime.substring(1, 3));\n return year >= 90 && year <= 99 ? 1900 + year : 2000 + year;\n }", "public static int[] parseTimeArray(String timeString, String delimiter)\n\t{\n\t\tint[] timeArray = new int[4];\n\t\tStringTokenizer st = new StringTokenizer(timeString, delimiter);\n\t\tint i = 0;\n\t\twhile (st.hasMoreTokens())\n\t\t{\n\t\t\ttimeArray[i] = Integer.parseInt(st.nextToken());\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn timeArray;\n\t}", "@Override\n public int getInt(int from, int length) {\n return Integer.parseInt(this.getString().substring(from, from+length));\n }", "static Value<Integer> parseInteger(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Integer.parseInt(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "public static int getIntegerValue(String value)\n\t{\n\t\treturn Integer.parseInt(value);\n\t}", "public static int parseInt(String value)\n\t{\n\t\treturn value.matches(\"-?\\\\d+\") ? Integer.parseInt(value) : 0;\n\t}", "private int getSecondsFromTimeString(String text) {\n int timeInSeconds = -1;\n if ( text != null && !\"\".equals(text) ) {\n int ipos = text.indexOf(\"Date:\");\n String txtDate = (ipos >= 0 ? text.substring(ipos+5).trim() : text.trim());\n ipos = text.lastIndexOf(\":\");\n if ( ipos > 0 ) {\n int endPos = ipos + 3;\n ipos = text.lastIndexOf(\":\",ipos-1);\n if ( ipos > 0 ) {\n int startPos = ipos - 2;\n if ( startPos >= 0 && endPos > startPos ) {\n text = text.substring(startPos, endPos);\n String[] values = text.split(\":\");\n if ( values.length > 2 ) {\n int hours = Integer.valueOf(values[0]);\n int minutes = Integer.valueOf(values[1]);\n int seconds = Integer.valueOf(values[2]);\n timeInSeconds = (hours * 3600) + (minutes * 60) + seconds;\n }\n }\n }\n }\n }\n return timeInSeconds;\n }", "private static int m14203b(String str, String str2) {\n String str3 = \"1970/01/01 00:00:00\";\n if (str == null) {\n str = str3;\n }\n if (str2 == null) {\n str2 = str3;\n }\n String str4 = \"[:/\\\\s]\";\n String[] split = str.split(str4);\n String[] split2 = str2.split(str4);\n int max = Math.max(split.length, split2.length);\n int i = 0;\n while (i < max) {\n int parseInt = i < split.length ? Integer.parseInt(split[i]) : 0;\n int parseInt2 = i < split2.length ? Integer.parseInt(split2[i]) : 0;\n if (parseInt < parseInt2) {\n return -1;\n }\n if (parseInt > parseInt2) {\n return 1;\n }\n i++;\n }\n return 0;\n }", "public static int parseT2(String in){\n Scanner s = new Scanner(in);\n int out = -1;\n if(s.hasNext()){\n out = s.nextInt();\n }\n return out;\n }", "public int extractInt(String s) {\n String pattern = \"(\\\\d+)\";\n //Create a Pattern object\n Pattern r = Pattern.compile(pattern);\n //Look for a match\n Matcher m = r.matcher(s);\n if (m.find( )) {\n Log.i(\"REGEX\", \"Found value: \" + m.group(0));\n return Integer.parseInt(m.group(0));\n } else {\n Log.i(\"REGEX\", \"No match found.\");\n return 0;\n }\n }", "private Integer parseTimeout(String timeoutStr) {\n \tInteger idsTimeout = -1;\n \tMatcher m = IDS_TIMEOUT_PATTERN.matcher(timeoutStr);\n \tif( m.matches() ) {\n \t\tidsTimeout = Integer.valueOf(m.group(1));\n \t\tString qualifier = m.group(2);\n \t\tif( \"s\".equals(qualifier) ) {\n \t\t\tidsTimeout = idsTimeout * 1000;\n \t\t} else if( \"m\".equals(qualifier) ) {\n \t\t\tidsTimeout = idsTimeout * 1000 * 60;\n \t\t}\n \t}\n \treturn idsTimeout;\n }", "private static int extractInt(String str) {\n\n String num = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (java.lang.Character.isDigit(str.charAt(i))) num += str.charAt(i);\n }\n return (num.equals(\"\")) ? 0 : java.lang.Integer.parseInt(num);\n\n }", "private int extractInt() {\n\t\tint startIndex = index;\n\t\tfor (; index < exprLen; index++) {\n\t\t\tchar c = expr.charAt(index);\n\t\t\tif (!Character.isDigit(c)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tint endIndex = index;\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(expr.substring(startIndex, endIndex));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(e.getMessage());\n\t\t}\n\n\t\treturn value;\n\t}", "@Override\n public Integer fromString(String value) {\n if (value == null) {\n return null;\n }\n\n // Take off the spaces\n value = value.trim();\n\n // If it's 0 (Was full of spaces) return 0\n if (value.length() < 1) {\n return null;\n }\n int valueConverted = 0;\n try {\n valueConverted = Integer.valueOf(value);\n } catch (NumberFormatException e) {\n System.err.println(\"[ERROR-INFO (IntegerString Converter)] - \" + e);\n }\n return valueConverted;\n }", "private static Integer parseIntString( String valueString ) {\n return Integer.parseInt( valueString.replaceAll( \"[^0-9]\", \"\" ) );\n }", "private static int parseInteger(String s, int index)\n\t{\n\t\tString temp = \"\";\n\t\tint i = index;\n\t\twhile (Character.isDigit(s.charAt(i)))\n\t\t{\n\t\t\ttemp += s.charAt(i++);\n\t\t}\n\t\treturn Integer.parseInt(temp);\n\t}", "private int[] parseHours(String str) {\n try {\n return enumerate(str, 0, 23);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing hours: \" + e.getMessage());\n }\n }", "public GdbIntValue parseInteger() throws GdbParseError {\n\t\ttry {\n\t\t\tString match = match(INT_HEX, true, \"hex\");\n\t\t\treturn GdbIntValue.valueOf(new BigInteger(match, 16));\n\t\t}\n\t\tcatch (GdbParseError e) {\n\t\t\t// Just try next match\n\t\t}\n\t\ttry {\n\t\t\tString match = match(INT_OCT, true, \"oct\");\n\t\t\treturn GdbIntValue.valueOf(new BigInteger(match, 8));\n\t\t}\n\t\tcatch (GdbParseError e) {\n\t\t\t// Just try next match\n\t\t}\n\t\ttry {\n\t\t\tString match = match(INT_DEC, true, \"dec\");\n\t\t\treturn GdbIntValue.valueOf(new BigInteger(match, 10));\n\t\t}\n\t\tcatch (GdbParseError e) {\n\t\t\t// Fall through to error report\n\t\t}\n\n\t\tthrow new GdbParseError(\"0x[hex], 0[oct], or [dec]\", buf);\n\t}", "@Test\n public void fixedTests() {\n assertEquals(69978 , Day02.parseInt(\"sixty nine thousand nine hundred seventy eight\"));\n }", "public int parseInt()\r\n {\r\n String str = feed.findWithinHorizon( INTEGER_PATTERN, 0 );\r\n \r\n if( str == null )\r\n throw new NumberFormatException( \"[Line \" + lineNum + \"] Input did not match an integer\" );\r\n else if( str.length() == 0 )\r\n throw new NumberFormatException( \"Input did not match an integer\" );\r\n \r\n return Integer.parseInt( str );\r\n }", "private static int monthStringToInteger(String month){\r\n\r\n\t\tswitch (month){\r\n\t\t\tcase \"Jan\": return 1;\r\n\t\t\tcase \"Feb\": return 2;\r\n\t\t\tcase \"Mar\": return 3;\r\n\t\t\tcase \"Apr\": return 4;\r\n\t\t\tcase \"May\": return 5;\r\n\t\t\tcase \"Jun\": return 6;\r\n\t\t\tcase \"Jul\": return 7;\r\n\t\t\tcase \"Aug\": return 8;\r\n\t\t\tcase \"Sep\": return 9;\r\n\t\t\tcase \"Oct\": return 10;\r\n\t\t\tcase \"Nov\": return 11;\r\n\t\t\tcase \"Dec\": return 12; \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public static int parseInt(String value) throws ServiceException {\n OMUtil.nullCheck(value);\n\n try {\n return Integer.parseInt(value);\n } catch (NumberFormatException ex) {\n throw new ServiceException(ServiceStatus.MALFORMED_REQUEST);\n }\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 }", "public static Integer parseOperationAttempt(String subRequestId) {\n Integer operationAttempt;\n try {\n operationAttempt = Integer.parseInt(subRequestId);\n } catch (NumberFormatException e) {\n logger.debug(\"A NumberFormatException was thrown in parsing the operation attempt {}\", subRequestId);\n return null;\n }\n return operationAttempt;\n }", "public int parseYear(String token) throws NumberFormatException {\n return Integer.parseInt(token);\n }", "private int getValueAsInteger(String valueToBeReturnAsInteger) {\n\t\t\n\t\tint defaultValue = 0;\n\t\t\n\t\ttry {\n\t\t\tif(null != valueToBeReturnAsInteger && StringUtils.isNotBlank(valueToBeReturnAsInteger)) {\n\t\t\t\tdefaultValue = Integer.parseInt(valueToBeReturnAsInteger);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"Error in parsing the String value to Integer for[{}]\", valueToBeReturnAsInteger);\n\t\t}\n\t\t\n\t\treturn defaultValue;\n\t}", "public static Integer getIntegerFromString(String value) {\n\n if (value == null) {\n return null;\n }\n\n Integer intVal = null;\n\n try {\n intVal = Integer.parseInt(value);\n } catch (RuntimeException exc) {\n // could not parse into int, null will be returned\n }\n return intVal;\n }", "public Integer tryIntParsing(String s) {\n try {\n int parsedInt = Integer.parseInt(s);\n return parsedInt;\n } catch (NumberFormatException e) {\n return 0;\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 int stringToHour(String stringDay) {\r\n\t\tswitch (stringDay) {\r\n\t\tcase \"6am\":\r\n\t\t\treturn 0;\r\n\t\tcase \"7am\":\r\n\t\t\treturn 1;\r\n\t\tcase \"8am\":\r\n\t\t\treturn 2;\r\n\t\tcase \"9am\":\r\n\t\t\treturn 3;\r\n\t\tcase \"10am\":\r\n\t\t\treturn 4;\r\n\t\tcase \"11am\":\r\n\t\t\treturn 5;\r\n\t\tcase \"12pm\":\r\n\t\t\treturn 6;\r\n\t\tcase \"1pm\":\r\n\t\t\treturn 7;\r\n\t\tcase \"2pm\":\r\n\t\t\treturn 8;\r\n\t\tcase \"3pm\":\r\n\t\t\treturn 9;\r\n\t\tcase \"4pm\":\r\n\t\t\treturn 10;\r\n\t\tcase \"5pm\":\r\n\t\t\treturn 11;\r\n\t\tcase \"6pm\":\r\n\t\t\treturn 12;\r\n\t\tcase \"7pm\":\r\n\t\t\treturn 13;\r\n\t\tcase \"8pm\":\r\n\t\t\treturn 14;\r\n\t\tdefault:\r\n\t\t\treturn -1;\r\n\t\t}// end switch\r\n\t}", "public Date unmarshal( String value )\n {\n return DatatypeConverter.parseDateTime( value ).getTime();\n }", "public static int parseInt(String S1){\n return Integer.parseInt(S1);\n }", "@Test\n public void testParseInt() {\n IntegerSpec integerSpec = new IntegerSpec();\n integerSpec.setDefaultValue(0);\n dataTypeParser.setDataTypeSpec(integerSpec);\n dataTypeParser.parse();\n IntegerSpec parsedIntegerSpec = (IntegerSpec) dataTypeParser.getDataTypeSpec();\n\n assertNull(parsedIntegerSpec.getMinValue());\n assertNull(parsedIntegerSpec.getMaxValue());\n }", "private int[] parseMinutes(String str) {\n try {\n return enumerate(str, 0, 59);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing minutes: \" + e.getMessage());\n }\n }", "public static int parseInt(String string) {\n return (int) Double.parseDouble(string);\n }", "@Override\n\t\tpublic Integer convert(String s) {\n\t\t\treturn Integer.parseInt(s);\n\t\t}", "private static int parseInt(String s) {\n int value;\n try {\n value = Integer.parseInt(s);\n } catch (NumberFormatException e) {\n value = 0;\n }\n return value;\n }", "public static int convertStringToValue(String value) {\n\t\treturn Integer.valueOf(value);\n\t}", "private static int parseValue(String fsRight, int fiStart, int fiEnd)\n throws NumberFormatException\n {\n int liReturn = 0 ; // the day, month, or year to be returned.\n String lsValue = fsRight.substring(fiStart,fiEnd);\n\n return Integer.decode( lsValue ).intValue() ;\n }", "protected long readTimestampFromString(String value) {\r\n\t\t return Long.parseLong(value);\r\n\t\t }", "public int convertStringToInt(String value) throws NumberFormatException, IOException {\n\t\t\t\ttry {\n\t\t\t\t return Integer.parseInt(value);\n\t\t\t\t } catch(NumberFormatException e) {\n\t\t\t\t \tfileWriterPrinter(\"NullPointerException:\\nString '\" + value + \"is not convertable to Integer...\");\n\t\t\t\t \treturn 0;\n\t\t\t\t }\n\t\t\t\t}", "private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }", "private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseInt(next);\n\t\t\tif (a > 10) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn a;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn 0;\n\t\t}\n\t}", "public static int parseInt(final CharSequence s)\n {\n // no string\n if (s == null)\n {\n throw new NumberFormatException(\"null\");\n }\n\n // determine length\n final int length = s.length();\n\n if (length == 0)\n {\n throw new NumberFormatException(\"length = 0\");\n }\n\n // that is safe, we already know that we are > 0\n final int digit = s.charAt(0);\n\n // turn the compare around to allow the compiler and cpu\n // to run the next code most of the time\n if (digit < '0' || digit > '9')\n {\n return Integer.parseInt(s.toString());\n }\n\n int value = digit - DIGITOFFSET;\n\n for (int i = 1; i < length; i++)\n {\n final int d = s.charAt(i);\n if (d < '0' || d > '9')\n {\n throw new NumberFormatException(\"Not an int \" + s.toString());\n }\n\n value = ((value << 3) + (value << 1));\n value += (d - DIGITOFFSET);\n }\n\n return value;\n }", "public int [] covertirInt(String [] a) {\n\t\n\t\n\t int [] temporal = new int [a.length-1];\n\t\n\t\n\t for (int i =0; i<temporal.length;i++) {\n\t \n\t\t temporal[i]=Integer.parseInt(a[i+1]);\n\t }\n \n \n\t return temporal;\n\t\n}", "public static int parseInt(String s){\r\n int v=-1;\r\n try{\r\n v = Integer.parseInt(s);\r\n }catch(NumberFormatException e){\r\n \r\n }\r\n return v;\r\n }", "private static int[] getFechaInt(String fecha) {\n int[] fechas = new int[3];\n int cont = 0;\n String num = \"\";\n for (int i = 0; i < fecha.length(); i++) {\n if (fecha.charAt(i) != '/') {\n if(fecha.charAt(i) != '-'){\n num += fecha.charAt(i);\n if (cont == 1) {\n fechas[1] = Integer.parseInt(num);\n num = \"\";\n } else if (cont == 3) {\n fechas[0] = Integer.parseInt(num);\n num = \"\";\n } else if (cont == 7) {\n fechas[2] = Integer.parseInt(num);\n num = \"\";\n }\n cont++;\n }\n }\n }\n return fechas;\n }", "public static int[] parseMillisecondTimeArray(String timeString, String delimiter)\n\t{\n\t\tint[] timeArray = new int[5];\n\t\tStringTokenizer st = new StringTokenizer(timeString, delimiter);\n\t\tint i = 0;\n\t\twhile (st.hasMoreTokens())\n\t\t{\n\t\t\ttimeArray[i] = Integer.parseInt(st.nextToken());\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn timeArray;\n\t}", "public static int parseInt(char[] value)\n\t{\n\t\tString integerString = new String(value);\n\t\t\n\t\treturn integerString.matches(\"-?\\\\d+\") ? Integer.parseInt(integerString) : 0;\n\t}", "public static int atoi(String s)\n {\n return (int) atol(s);\n }", "public int parseNumber(String str) {\r\n \r\n try {\r\n int i = Integer.parseInt(str);\r\n return i;\r\n } catch (Exception e) {\r\n \r\n }\r\n \r\n return 0;\r\n }", "public static Integer stringToInteger(String s) {\n\t Integer ret = null;\n\t if (!Controleur.isVide(s))\n\t try {\n ret = Integer.valueOf(s);\n } catch (NumberFormatException e) {\n }\n\t\treturn ret;\n\t}", "private int extractNumberFromText(String value) {\n\t\tif(!value.isEmpty()) {\n\t\t\tString[] token = value.split(\";\");\n\t\t\tString number = token[0].trim();\n\t\t\treturn Integer.valueOf(number);\n\t\t}\n\t\treturn 0;\n\t}", "public static int[] stringToInt(String original){\n String[] stringArray = original.split(\" \");\n int[] result = new int[stringArray.length];\n\n for (int i = 0; i < stringArray.length; i++){\n result[i] = Integer.parseInt(stringArray[i]);\n }\n return result;\n }", "public static int StringToInt(String StringValue){\n Integer integer;\n integer = Integer.valueOf(StringValue);\n return integer.intValue();\n }", "static Integer parseInteger(String s) {\n try {\n return Integer.parseInt(s);\n } catch (NumberFormatException e) {\n return null;\n }\n }", "public Integer fromString(String s) {\n if (s == null || s.trim().length() == 0)\n return 0;\n try {\n return Integer.parseInt(s);\n }\n catch (NumberFormatException e) {\n return null;\n }\n }", "@Test\n public void addition_isCorrect() {\n\n long longDate = 20190620;\n\n String strDate = String.valueOf(longDate);\n\n int year = Integer.parseInt(strDate.substring(0, 4));\n int month = Integer.parseInt(strDate.substring(4, 6));\n int day = Integer.parseInt(strDate.substring(6, 8));\n\n assertEquals(2019, year);\n assertEquals(6, month);\n assertEquals(20, day);\n }", "protected static final int m2866a(XmlPullParser xmlPullParser, String str) {\n String attributeValue = xmlPullParser.getAttributeValue(null, str);\n if (attributeValue == null) {\n return -1;\n }\n try {\n return Integer.parseInt(attributeValue);\n } catch (NumberFormatException e) {\n throw new ako(e);\n }\n }", "public static int getDay(String dueDate){\n if(dueDate.charAt(0) == 0){\n return Integer.parseInt(getSubstring(dueDate, 1, 1));\n }\n else{\n return Integer.parseInt(getSubstring(dueDate, 0, 1));\n }\n }", "public static int getInt() throws IOException {\n\t\nString s = getString();\nreturn Integer.parseInt(s);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the integer in the string as an Int.\n\t\n}", "public int getInteger(String subExpression) {\n return (int)getNumber(subExpression);\n }", "public int getIntValue2(String b) {\n int c = Integer.parseInt(b);\n return c;\n }", "public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}", "@Override\r\n\tpublic int getInt(String string) {\n\t\treturn 0;\r\n\t}", "protected static Integer getIntegerString(String string) {\n Integer i;\n try {\n i = Integer.parseInt(string);\n } catch(Exception e) {\n return null;\n }\n\n return i;\n }", "private int parseInt(char[] source, int start, int end) {\n int result = Character.digit(source[start++], 10);\n if (result == -1)\n throw new NumberFormatException(new String(source));\n\n for (int index = start; index < end; index++) {\n int nextVal = Character.digit(source[index], 10);\n if (nextVal == -1)\n throw new NumberFormatException(new String(source));\n result = 10*result + nextVal;\n }\n\n return result;\n }", "public static int parseInt(String val) {\n\n\t\tif (val == null) {\n\t\t\tval = \"0\";\n\t\t}\n\n\t\tint ret = 0;\n\n\t\ttry {\n\t\t\tret = Integer.parseInt(val);\n\t\t} catch (NumberFormatException e) {\n\t\t}\n\n\t\treturn ret;\n\t}", "private static int getIntValue(String s) {\n try {\n return Integer.parseInt(s, 16);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n return -1;\n }\n }", "public static Integer tryParseToInt(String str) {\n\t\ttry {\n\t\treturn Integer.parseInt(str);\t\n\t\t}\t\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn null;\n\t\t}\n\t\t}", "public static Integer parseInt(String s){\n\t\ttry{\n\t\t\treturn Integer.parseInt(s);\n\t\t}catch(NumberFormatException e){\n\t\t\treturn null;\n\t\t}\n\t}", "public static int convert(String entry) throws InvalidInputException {\r\n\r\n\t\ttry {\r\n\t\t\tint x = Integer.parseInt(entry);\r\n\t\t\treturn x;\r\n\t\t}catch(NumberFormatException nf) {\r\n\t\t\tthrow new InvalidInputException(\"The input is not an integer\");\r\n\t\t}\r\n\t\t\r\n\t}", "private static int convertTimeToSecs(String time){\n if (time == null) return 0;\n String hours = time.substring(0, 2);\n String mins = time.substring(3,5);\n return Integer.parseInt(hours)*3600 + Integer.parseInt(mins)*60;\n }", "public static _int parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n _int object = new _int();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n object.set_int(java.lang.Integer.MIN_VALUE);\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"int\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.set_int(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(\n content));\n } else {\n object.set_int(java.lang.Integer.MIN_VALUE);\n\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void setString (String s) { //set method\n full_Date = s;\n if(!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\");\n\n Year = Integer.parseInt(full_Date.substring(0,3));\n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n\n \n}", "private ArrayList<Integer> readIntString(String intString)\n {\n ArrayList<Integer> intList = new ArrayList<Integer>();\n Scanner intStringScanner = new Scanner(intString);\n intStringScanner.useDelimiter(\",\");\n while (intStringScanner.hasNextInt())\n {\n intList.add(new Integer(intStringScanner.nextInt()));\n }\n intStringScanner.close();\n return intList;\n }", "public static int stringToInt(String numb) {\r\n\t\tint temp = 0;\r\n\t\t\r\n\t\t//Convert the string to an int. Set it to a value of zero if not a number.\r\n\t\ttry {\r\n\t\t\ttemp = Integer.parseInt(numb);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\ttemp = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t}", "private int convertInteger(String val)\n\t{\n\t\tint value = 0;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(val);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}", "public int convertCalendarMillisecondsAsStringToDayOfMonthInt(String s) {\n\t\t\tDateFormat format = new SimpleDateFormat(\"dd\");\n\t\t\tDate date = new Date(Long.parseLong(s));\n\t\t\treturn Integer.parseInt(format.format(date));\n\t\t\t}", "public static int toInt(String str){\r\n\t\tInteger i = toInteger(str);\r\n\t\treturn i==null?0:i;\r\n\t}", "@Test\n\tpublic void parseDateTextFieldDayInMonthTest() {\n\t\tassertEquals(24,\n\t\t\t\tInteger.parseInt(textFieldDate.getText().substring(8, 10)));\n\t}", "private static int i(String s) {\n return Integer.parseInt(s);\n }", "public static int cleanReleaseYear(Literal year) {\n String yearString;\n int yearInt = 0;\n if(year == null || \"\".equals(year.toString())) {\n yearString = \"0\";\n } else {\n yearString = year.toString();\n }\n Pattern p = Pattern.compile(\"\\\\d\\\\d\\\\d\\\\d\");\n Matcher m = p.matcher(yearString);\n if(m.find()) {\n yearString = m.group();\n yearInt = Integer.parseInt(yearString);\n }\n return yearInt;\n }", "private int toInt(String binary){\n if (bitToInt(binary.charAt(0)) == 0){\n return positiveBinToInt(binary);\n }\n else{\n return negativeBinaryToInt(binary);\n }\n }", "public static int parseInt(String val)\n {\n if(val == null || val.trim().length() == 0)\n {\n return 0;\n }\n else\n {\n return Integer.parseInt(val);\n }\n }", "@Test\n\tpublic void parseDateTextFieldYearTest() {\n\t\tassertEquals(2016,\n\t\t\t\tInteger.parseInt(textFieldDate.getText().substring(0, 4)));\n\t}" ]
[ "0.7316791", "0.6325353", "0.63048595", "0.60514194", "0.6043247", "0.60304093", "0.5960071", "0.5782152", "0.5705659", "0.56963086", "0.5654311", "0.56306916", "0.5550994", "0.5538713", "0.5513059", "0.5483738", "0.5479752", "0.5477988", "0.54532623", "0.54491746", "0.5440526", "0.5425858", "0.5398335", "0.53948116", "0.5391188", "0.5359707", "0.5338769", "0.532687", "0.5300836", "0.52961457", "0.52903247", "0.52743006", "0.5266899", "0.52403384", "0.52361935", "0.52286345", "0.52201474", "0.52145547", "0.5187274", "0.51838267", "0.51758605", "0.51728684", "0.51698345", "0.5166109", "0.5137477", "0.513347", "0.5095956", "0.5095043", "0.50939345", "0.50913674", "0.5087153", "0.5085852", "0.50474787", "0.504659", "0.5032221", "0.5003019", "0.49978933", "0.49944982", "0.49873993", "0.49868718", "0.49858046", "0.49591807", "0.4954871", "0.492512", "0.4909291", "0.4901143", "0.489787", "0.48973453", "0.48961297", "0.48890355", "0.48863563", "0.48712096", "0.4861958", "0.48590443", "0.48506945", "0.48482537", "0.48469177", "0.48439056", "0.48437905", "0.48418725", "0.48355696", "0.4828399", "0.48250324", "0.48246935", "0.48099214", "0.48057586", "0.48025408", "0.4800129", "0.4798209", "0.47947866", "0.47897962", "0.47894505", "0.47873297", "0.4785877", "0.47818124", "0.47757286", "0.47671905", "0.4764161", "0.4762505", "0.47623453" ]
0.66274244
1
ISSUE 1: No se incluyo el nombre del paquete en la clase
public static void main(String[] args) { Rectangle myRect; //ISSUE 2: No existe la clase Rectangle //SOLVE 2: Se creo la clase Rectangle dentro del mismo paquete //ISSUE 2.1: No se ha instanciado myRectangle myRect = new Rectangle();//SOLVE 2.1: Se instancio my Rect myRect.width = 40; //ISSUE 3: No existe un atributo que se llame width dentro de la clase Rectangle //SOLVE 3: Se creo la propiedad width a la clase rectangle myRect.height = 50; //ISSUE 4: No existe un atributo que se llame height dentro de la clase Rectangle //SOLVE 4: Se creo la propiedad hright a la clase rectangle System.out.println("myRect's area is " + myRect.area()); //ISSUE 5: No existe el metodo Area dentro de la clase Rectangle //SOLVE 5: Se creo el metodo Area en la clase rectangle que multiplica width por height }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParqueaderoEntidad agregar(String nombre);", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "public void setNombreClase(String nombreClase) { this.nombreClase = nombreClase; }", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public void setNombreCompleto(String nombreCompleto);", "@Test\n public void getQuejaTest() {\n QuejaEntity entity = data.get(0);\n QuejaEntity newEntity = quejaPersistence.find(dataServicio.get(0).getId(), entity.getId());\n Assert.assertNotNull(newEntity);\n Assert.assertEquals(entity.getName(), newEntity.getName());\n }", "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "public ParametroPorParametroPK() {\r\n\t}", "public Puntaje(String nom, int puntaje) {\n this.nombre = nom;\n this.puntos = puntaje;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "ConjuntoTDA claves();", "public cABCEmpleados(String nombre) {\r\n this._Nombre = nombre;\r\n }", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "private UsineJoueur() {}", "public Persona(String nombre) {\n this.nombre = nombre;\n }", "public abstract String getNomClasse();", "public Categoria(String pNombre){\n this.nombre = pNombre;\n }", "public Joueur(String nomJoueur){\n\t\tthis.nom= nomJoueur;\n\t\tthis.cartesEnMain=new Main();\n\t\tthis.pileCartes=new Pile();\n\t\tthis.estDansPartie = true;\n\t\tthis.estDansBataille = true;\n\t}", "public Puertas(String via, int iden, int tipo){\r\n this.viaje=via;\r\n this.identi=iden;\r\n this.tipoPriori=tipo;\r\n switch(tipo){\r\n case(1):\r\n this.namePriori=\"Oro\";\r\n break;\r\n case(2):\r\n this.namePriori=\"Platino\";\r\n break;\r\n case(3):\r\n this.namePriori=\"Especial\";\r\n break;\r\n case(4):\r\n this.namePriori=\"Económico\";\r\n break;\r\n default:\r\n this.namePriori=\"\";\r\n break;\r\n } \r\n }", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "@Override public String getQueso(){\n return \"manchego \";\n }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public Trabajador(String nombre, String puesto) {\n\t\t\n\t\tthis.nombre = nombre;\n\t\tthis.puesto = puesto;\n\t}", "ProjetoRN createProjetoRN();", "public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "Compuesta createCompuesta();", "public String getNombreCompleto();", "Petunia() {\r\n\t\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "private Panino(String name) {\n this.name = name;\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public void setNombreLibro(String nombreNuevoLibro)\n {\n this.nombre = nombreNuevoLibro;\n }", "public void setNombreCompleto(String aNombreCompleto) {\r\n nombreCompleto = aNombreCompleto;\r\n }", "public Reparto(){\n\t\t\n\t}", "public MorteSubita() {\n }", "private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }", "public LocalResidenciaColaborador() {\n //ORM\n }", "public void setnombre(String nombre){\n this.nombre = nombre;\n }", "public NodoArbolSintactico(String nombre, int tipo) {\r\n hijos = new ArrayList<>();\r\n this.nombre = nombre;\r\n accion = null;\r\n this.tipo = tipo;\r\n }", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "public Promo(String n){\nnom = n;\n}", "public Ciudad(String nombre)\n {\n this.nombre = nombre;\n }", "public Plato(String nombre, String descripcion){\n\t\tthis.nombre=nombre;\n\t\tthis.descripcion=descripcion;\n\t}", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public void setNombre(String nombre)\n {\n this.nombre = nombre;\n }", "public Propiedad(){\n\t}", "@Override\r\n public void parar(Conexion conexion){\n }", "@Override\n public String getName(){\n return Name; \n }", "public Propiedad() {\n bdPropiedad = new DaoPropiedad();\n bdComentario = new DaoComentario();\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }", "public abstract java.lang.String getNombre();", "public ConstrutorDeLeilao para(String produto) {\n\t\t\r\n\t\t this.leilao = new Leilao(produto);\r\n\t\treturn this;\r\n\t}", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public SlanjePoruke() {\n }", "public Produto() {}", "public Veiculo(int numPassageiros, String modeloVeiculo, String tipo){\n this.numPassageiros = numPassageiros;\n this.tipo = tipo;\n this.modeloVeiculo = modeloVeiculo;\n }", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public Laboratorio(String nombre) {\r\n\t\tsuper();\r\n\t\tthis.nombre = nombre;\r\n\t}", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "public void nombreParking (String queNombreParking) {\n nombreParking = queNombreParking;\n\n }", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "public abstract String getNombre();", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "public void crearTemaGenerico (String nombre) {\n\n controladorDeDominio.crearTema(nombre);\n System.out.println(\"Se ha creado el tema: \"+nombre);\n }", "public Jugador(String nombreJugador)\n {\n this.nombreJugador = nombreJugador;\n cartasQueTieneEnLaMano = new Carta[5];\n numeroCartasEnLaMano = 0;\n }", "public Identificador(String name) {\r\n this.name = name;\r\n }", "public void sousClasseAnnoce()\n {\n try {\n Class c = Class.forName(\"lpae.entites.Annonce\");\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(GestionnaireSecurite.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public abstract Class getEntidadPrincipal();", "public Department(String name){\n this.name = name;\n }", "public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public Plato(){\n\t\t\n\t}", "Ris(String nome) {\n this.nome = nome;\n }", "private DittaAutonoleggio(){\n \n }", "public TdNmResumenPK() {\n }", "public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }", "public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }", "public void setNombre(String nombre) {\r\n this.nombre = nombre;\r\n }", "public BemPessoaDAOImpl() {\n\t\tsuper(\"PESQUISAR_BEM_PESSOA\");\n\t}", "Persistencia() {\n\t}", "public Caso_de_uso () {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public Pelicula(String nombre, int anno, int duracionMinutos, int calidad)\n {\n super(nombre,anno);\n this.duracionMinutos = duracionMinutos;\n this.calidad = calidad;\n }", "TourPackage findByName(@Param(\"name\") String name);", "public static Paquete insertPaquete(String nombre_paquete, \n String descripcion_paquete){\n Paquete miPaquete = new Paquete(nombre_paquete, descripcion_paquete);\n miPaquete.registrarPaquete();\n return miPaquete;\n \n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }", "public void setNombre(String nombre) {\n this.nombre = nombre;\n }" ]
[ "0.64332867", "0.6395353", "0.6082785", "0.6024908", "0.5989551", "0.5926056", "0.5914551", "0.58158", "0.57743907", "0.5766538", "0.5750419", "0.57500666", "0.57446754", "0.56831056", "0.5682564", "0.5640764", "0.56331736", "0.5630655", "0.56290346", "0.5620445", "0.5600586", "0.55974466", "0.5578233", "0.55777264", "0.5555085", "0.5554914", "0.55482143", "0.5512009", "0.5509314", "0.5495381", "0.5494839", "0.5484037", "0.54810864", "0.54663396", "0.54635185", "0.5458746", "0.54554224", "0.5447168", "0.54432255", "0.5434649", "0.5432753", "0.5428734", "0.5424262", "0.5421541", "0.541483", "0.5413905", "0.5404953", "0.539976", "0.5399435", "0.5399323", "0.5386953", "0.5382509", "0.53776264", "0.53772897", "0.53755605", "0.5374554", "0.53686154", "0.5368028", "0.53676987", "0.5365535", "0.5364398", "0.53641135", "0.53632", "0.53589904", "0.5358413", "0.53581446", "0.535494", "0.535102", "0.53503996", "0.53483224", "0.5345529", "0.53445405", "0.53439665", "0.5340325", "0.5335153", "0.533475", "0.5333176", "0.5332183", "0.5332044", "0.53278106", "0.53208727", "0.53205335", "0.53183013", "0.531488", "0.531488", "0.531488", "0.5314435", "0.53139406", "0.53131896", "0.53123516", "0.5311787", "0.5308378", "0.5305689", "0.5301559", "0.5301559", "0.5301559", "0.5301559", "0.5301559", "0.5301559", "0.5301559", "0.5301559" ]
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
public final void m12868a(int r5, int r6, android.content.Intent r7) { /* r4 = this; r0 = 1; r1 = 0; switch(r5) { case 1: goto L_0x0017; case 2: goto L_0x000c; default: goto L_0x0005; }; L_0x0005: r0 = r1; L_0x0006: if (r0 == 0) goto L_0x0027; L_0x0008: m12867b(r4); L_0x000b: return; L_0x000c: r2 = r4.o(); r2 = com.google.android.gms.common.GoogleApiAvailability.a(r2); if (r2 != 0) goto L_0x0005; L_0x0016: goto L_0x0006; L_0x0017: r2 = -1; if (r6 == r2) goto L_0x0006; L_0x001a: if (r6 != 0) goto L_0x0005; L_0x001c: r0 = new com.google.android.gms.common.ConnectionResult; r2 = 13; r3 = 0; r0.<init>(r2, r3); r4.f6901e = r0; goto L_0x0005; L_0x0027: r0 = r4.f6900d; r1 = r4.f6901e; m12865a(r4, r0, r1); goto L_0x000b; */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzmr.a(int, int, android.content.Intent):void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }", "private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "private void m50366E() {\n }", "public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "void m5768b() throws C0841b;", "void m1864a() {\r\n }", "public boolean method_2088(class_689 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5770d() throws C0841b;", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public final void mo91715d() {\n }", "public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public void method_4270() {}", "private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }", "static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }", "private static class_1205 method_6442(String param0, int param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2112(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "void m5769c() throws C0841b;", "void m5771e() throws C0841b;", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }", "public void method_2111(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }", "public boolean method_2243() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }", "public void method_2116(class_689 param1, boolean param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "static void m7753b() {\n f8029a = false;\n }", "public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "public void method_7080(String param1, class_1293 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void m9741j() throws cf {\r\n }", "private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }", "public boolean method_2153(boolean param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2259(String param1, double param2, double param4, double param6, int param8, double param9, double param11, double param13, double param15) {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m50367F() {\n }", "public void mo21779D() {\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "public void method_2249(boolean param1, class_81 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo115190b() {\n }", "public final void mo1285b() {\n }", "public void mo23813b() {\n }", "public boolean method_208() {\r\n return false;\r\n }", "public final void mo11687c() {\n }", "public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }", "public final void mo51373a() {\n }", "void mo72113b();", "public boolean method_2434() {\r\n return false;\r\n }", "boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }", "public void mo21787L() {\n }", "private void kk12() {\n\n\t}", "void mo80457c();", "@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }", "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "public void m23075a() {\n }", "void mo80452a();", "public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }", "public void mo12628c() {\n }", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "void mo41086b();", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }", "public void mo21785J() {\n }", "public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }", "protected boolean func_70041_e_() { return false; }", "static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }" ]
[ "0.76178586", "0.75745016", "0.7527132", "0.7452018", "0.7451632", "0.74388385", "0.73828584", "0.73828584", "0.73678523", "0.7354693", "0.7343335", "0.73163086", "0.73092943", "0.7306793", "0.72746176", "0.7253614", "0.72228837", "0.71988684", "0.7178745", "0.7137457", "0.71072346", "0.7042077", "0.7024212", "0.70200264", "0.6992708", "0.6961654", "0.69410765", "0.6908289", "0.68897", "0.6852548", "0.68294036", "0.6796397", "0.6784966", "0.67766416", "0.67738503", "0.6772191", "0.6768029", "0.6767208", "0.67439854", "0.67070204", "0.6702005", "0.6699502", "0.66990155", "0.6697237", "0.6670068", "0.6668929", "0.66560477", "0.6614071", "0.66121155", "0.6608958", "0.6594831", "0.6569631", "0.6566709", "0.65406245", "0.6514549", "0.6510371", "0.6510069", "0.6490647", "0.6436635", "0.6431416", "0.6431343", "0.64043903", "0.64021975", "0.637193", "0.6369292", "0.6368898", "0.635845", "0.63285756", "0.6326347", "0.6324877", "0.63173735", "0.6305776", "0.63031536", "0.6298401", "0.6281487", "0.62795067", "0.6241853", "0.6228302", "0.62268394", "0.62266296", "0.6223694", "0.62188977", "0.6218555", "0.62050265", "0.61983734", "0.6195557", "0.6180585", "0.6170018", "0.61672765", "0.61643815", "0.6162964", "0.61617553", "0.6157337", "0.61550725", "0.61519855", "0.61405736", "0.6126407", "0.6115713", "0.6110569", "0.61023617", "0.6095869" ]
0.0
-1
This method has been deprecated, please use method buildRanges instead.
@java.lang.Deprecated public java.util.List<io.kubernetes.client.openapi.models.V1beta1IDRange> getRanges();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t@Deprecated\n\tprotected final void rangeCheck ( int from , int to ) {\n\t}", "Range createRange();", "abstract public Range createRange();", "private Range() {}", "public void setRanges(List<Range> ranges) {\n this.ranges = ranges;\n }", "@Override\n public boolean isRange() {\n return false;\n }", "CollectionRange createCollectionRange();", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "public SummaryRanges() {\n this.intervals = new ArrayList<>();\n }", "@Override\n\tpublic List<IRange> getRangeList() {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }", "Range() {}", "public void setRange(Range range) { setRange(range, true, true); }", "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Deprecated\r\n \tpublic final void setSourceRange(ASTDmdNode elem) {\r\n \t\tinitSourceRange(DefinitionConverter.sourceRange(elem));\r\n \t}", "public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "<C> CollectionRange<C> createCollectionRange();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n Range.Builder range_Builder1 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(243L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n long long0 = 127L;\n Range range1 = Range.of((-636L), 127L);\n range1.isSubRangeOf(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public AttributeRanges() {\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public Set<T> getRanges();", "protected abstract R toRange(D lower, D upper);", "Range controlLimits();", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Range.CoordinateSystem.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem0, 0L, 0L);\n Range range0 = Range.ofLength(0L);\n range0.getBegin(range_CoordinateSystem0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.spliterator();\n range0.complementFrom(linkedList0);\n range_Builder0.contractBegin(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem1);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public SummaryRanges() {\n tree = new TreeMap<>();\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }", "java.lang.String getDestRange();", "private void eatRangeStart() {\n\n Token token = tokens.get(currentTokenPointer++);\n\n if (token.kind == TokenKind.STARTINCLUSIVE) {\n\n startInclusive = true;\n\n } else if (token.kind == TokenKind.STARTEXCLUSIVE) {\n\n startInclusive = false;\n\n } else {\n\n raiseParseProblem(\"expected a version start character '[' or '(' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n }", "@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }", "RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void calculateRange() {\n //TODO: See Rules\n }", "public JsonArray getRangeInfo() {\r\n\t\t\r\n\t\tif (restClient == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\tJsonArray arrayIPv4 = null;\r\n\t\tJsonArray arrayIPv6 = null;\r\n\t\t\r\n\t\t// IPv4 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv4 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// IPv6 Range\r\n\t\t{\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\r\n\t\t\tsb.append(\"/wapi/v1.0/ipv6range\");\r\n\t\t\tsb.append(\"?_return_type=json\");\r\n\t\t\tsb.append(\"&_return_fields=network,network_view,start_addr,end_addr,comment,disable\");\r\n\t\t\t\r\n\t\t\tString value = restClient.Get(sb.toString(), null);\r\n\t\t\t\r\n\t\t\tif (value == null)\r\n\t\t\t\treturn null;\r\n\t\t\t\r\n\t\t\t// Change unescape-unicode\r\n\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\r\n\t\t\tif (value != null) {\r\n\t\t\t\tvalue = StringUtils.unescapeUnicodeString(value);\r\n\t\t\t\tarrayIPv6 = JsonUtils.parseJsonArray(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Merge\r\n\t\tJsonArray array = new JsonArray();\r\n\t\t\r\n\t\tif (arrayIPv4 != null)\r\n\t\t\tarray.addAll(arrayIPv4);\r\n\t\t\r\n\t\tif (arrayIPv6 != null)\r\n\t\t\tarray.addAll(arrayIPv6);\r\n\t\t\r\n\t\treturn array;\r\n\t}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }", "@Override\r\n\tpublic String getActivity_range() {\n\t\treturn super.getActivity_range();\r\n\t}", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n long long0 = 785L;\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 9223372036854775806L, (-128L));\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // given length -129 would make range [9223372036854775805 - ? ] beyond max allowed end offset\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "public void selectRange(String currentRange);", "public CopyingRangeMarker(int offset, int length) {\n super(offset, length);\n }", "public AddressInfo getRange() {\r\n return range;\r\n }", "void setBeginRange( String beginRange );", "String getBeginRange();", "public void setRangeInfo(RangeInfo rangeInfo) {\n/* 1147 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public List<Range> getRanges() {\n // Lazy initialization with double-check.\n List<Range> r = this.ranges;\n if (r == null) {\n synchronized (this) {\n r = this.ranges;\n if (r == null) {\n this.ranges = r = new CopyOnWriteArrayList<Range>();\n }\n }\n }\n return r;\n }", "public void addDataRange(long beginning, long ending, Line line){\n }", "@Override\n public void onRangeStart(String s, int i, int i1) {\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public void addNonBmpRanges(List ranges) {\n }", "public void setRange(Uri range)\n {\n this.range = range;\n }", "private static void enumRangeForCopy(int r1, int r2, int r3, android.icu.impl.coll.CollationDataBuilder.CopyHelper r4) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.icu.impl.coll.CollationDataBuilder.enumRangeForCopy(int, int, int, android.icu.impl.coll.CollationDataBuilder$CopyHelper):void, dex: in method: android.icu.impl.coll.CollationDataBuilder.enumRangeForCopy(int, int, int, android.icu.impl.coll.CollationDataBuilder$CopyHelper):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.enumRangeForCopy(int, int, int, android.icu.impl.coll.CollationDataBuilder$CopyHelper):void\");\n }", "public NameAndVersionRangeSupport(String name)\n {\n this(name, null);\n }", "int getRange();", "public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n Object object0 = new Object();\n range0.endsBefore(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"[ 0 .. -1 ]/0B\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ 0 .. -1 ]/0B into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Range range0 = Range.of(0L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem1);\n range0.iterator();\n Range.of((-1233L), 0L);\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem1, 0L, (-1233L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n long long0 = (-1259L);\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n List<Range> list1 = range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range2.complementFrom(list1);\n // Undeclared exception!\n try { \n Range.of(0L, (-1259L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n long long0 = 265L;\n range_Builder0.shift(265L);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n Range range1 = Range.of(0L);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n List<Range> list2 = range0.complementFrom(list1);\n List<Range> list3 = range0.complementFrom(list2);\n range0.complementFrom(list3);\n Range.of((-1147L), 0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 0L, 0L);\n Range range3 = range2.intersection(range0);\n range0.getEnd();\n range3.intersects(range0);\n // Undeclared exception!\n try { \n Range.parseRange(\"q)fxUX9s]Tp\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse q)fxUX9s]Tp into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public RangeInfo getRangeInfo() {\n/* 1134 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "private TimeRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "String getEndRange();", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "public com.google.analytics.data.v1beta.CohortsRange.Builder getCohortsRangeBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getCohortsRangeFieldBuilder().getBuilder();\n }", "DbQuery setRangeFilter(String startValue, String endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.STRING;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }", "public NameAndVersionRangeSupport()\n {\n }", "public static void pinAddressesInRange(HashMap<String, Object> argVals,HashMap<String, Object> retVals) \n\t\tthrows IOException, ParserConfigurationException, SAXException{\n\t\t\n\t\tString origin = (String)argVals.get(\"startAddress\");\n\t\tlong range = (java.lang.Long)argVals.get(\"range\");\n\t\tLinkedList<String> addresses = (LinkedList<String>)argVals.get(\"address\");\n\t\tLinkedList<String> comments = (LinkedList<String>)argVals.get(\"addressInfo\");\n\t\tLinkedList<String> survivedComments = new LinkedList<String>();\n\t\tLinkedList<String> survivedAddr = new LinkedList<String>();\n\t\t\n\t\tfor(int i=0;i<addresses.size();i++){\n\t\t\tString addr = addresses.get(i);\n\t\t\tif(getShortestDistance(origin, addr) < range){\n\t\t\t\tsurvivedAddr.add(addr);\n\t\t\t\tif(comments.size()>i)\n\t\t\t\t\tsurvivedComments.add(comments.get(i));\n\t\t\t}\n\t\t}\n\t\tsurvivedAddr.add(origin);\n\t\t\n\t\tString url = \"\";\n\t\t\n\t\tfor(int i=0;i<survivedAddr.size();i++){\n\t\t\tif(survivedAddr.get(i)!=null){\n\t\t\t\tif(i==0){\n\t\t\t\t\turl = ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t\t}\n\t\t\t\turl += ((String)survivedAddr.get(i)).replace(\" \", \"+\")+'&';\n\t\t\t}\n\t\t}\n\t\tshowMap(survivedAddr,survivedComments,true);\n\t\t\n\t}", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "void setEndRange( String endRange );", "private void updateHighlightRanges(int highlightAnnotationRangeStart, int highlightAnnotationRangeEnd, boolean isWorldChange) {\n \t\tif (highlightAnnotationRangeStart != Integer.MAX_VALUE) {\n \n \t\t\tint maxRangeStart= highlightAnnotationRangeStart;\n \t\t\tint maxRangeEnd= highlightAnnotationRangeEnd;\n \n \t\t\tif (fTotalHighlightAnnotationRange != null) {\n \t\t\t\tmaxRangeStart= Math.min(maxRangeStart, fTotalHighlightAnnotationRange.offset);\n \t\t\t\tmaxRangeEnd= Math.max(maxRangeEnd, fTotalHighlightAnnotationRange.offset + fTotalHighlightAnnotationRange.length);\n \t\t\t}\n \n \t\t\tif (fTotalHighlightAnnotationRange == null)\n \t\t\t\tfTotalHighlightAnnotationRange= new Position(0);\n \t\t\tif (fCurrentHighlightAnnotationRange == null)\n \t\t\t\tfCurrentHighlightAnnotationRange= new Position(0);\n \n \t\t\tif (isWorldChange) {\n \t\t\t\tfTotalHighlightAnnotationRange.offset= highlightAnnotationRangeStart;\n \t\t\t\tfTotalHighlightAnnotationRange.length= highlightAnnotationRangeEnd - highlightAnnotationRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.offset= maxRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.length= maxRangeEnd - maxRangeStart;\n \t\t\t} else {\n \t\t\t\tfTotalHighlightAnnotationRange.offset= maxRangeStart;\n \t\t\t\tfTotalHighlightAnnotationRange.length= maxRangeEnd - maxRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.offset=highlightAnnotationRangeStart;\n \t\t\t\tfCurrentHighlightAnnotationRange.length= highlightAnnotationRangeEnd - highlightAnnotationRangeStart;\n \t\t\t}\n \t\t} else {\n \t\t\tif (isWorldChange) {\n \t\t\t\tfCurrentHighlightAnnotationRange= fTotalHighlightAnnotationRange;\n \t\t\t\tfTotalHighlightAnnotationRange= null;\n \t\t\t} else {\n \t\t\t\tfCurrentHighlightAnnotationRange= null;\n \t\t\t}\n \t\t}\n \n \t\tadaptToDocumentLength(fCurrentHighlightAnnotationRange);\n \t\tadaptToDocumentLength(fTotalHighlightAnnotationRange);\n \t}", "@Override\r\n @TypeInfo(\"ceylon.language.Empty|ceylon.language.Sequence<Element>\")\r\n public ceylon.language.List<? extends Element> segment(\r\n \t\t@Name(\"from\") final Integer from, \r\n \t\t@Name(\"length\") final long length) {\n if (length<=0) return $empty.getEmpty();\r\n if (!defines(from)) return $empty.getEmpty();\r\n Element x = this.first;\r\n for (int i=0; i < from.longValue(); i++) { x = this.next(x); }\r\n Element y = x;\r\n for (int i=1; i < length; i++) { y = this.next(y); }\r\n if (!includes(y)) { y = this.last; }\r\n return new Range<Element>(x, y);\r\n }", "public void setRange(int start, int end) {\n\t\tmStart = start;\n\t\tmEnd = end;\n\t\tmCurrent = start;\n\t\tupdateView();\n\t}", "RangeValue createRangeValue();", "public abstract ucar.array.RangeIterator getRangeIterator();", "public void configure() {\n/* 754 */ if (isAutoRange()) {\n/* 755 */ autoAdjustRange();\n/* */ }\n/* */ }", "private String generateRangeURL(Integer instanceID, Integer startRange, Integer endRange) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/range?start_range=\"\n\t\t\t\t+ Integer.toString(startRange) + \"&end_range=\" + Integer.toString(endRange);\n\t}", "public Range(String name, int first, int last) throws InvalidRangeException {\n this(name, first, last, 1);\n }", "public static List<PhoneNumberRange> reducePhoneNumberRanges(RoutingInfoList routingInfoList) {\n List<Long> numberList = expandPhoneNumberRanges(routingInfoList);\n \n List<PhoneNumberRange> retRanges = new ArrayList<PhoneNumberRange>();\n PhoneNumberRange curRange = null;\n if (numberList.isEmpty()) {\n return new ArrayList<PhoneNumberRange>();\n }\n // Only necessary if not already sorted\n Collections.sort(numberList);\n\n long start = numberList.get(0);\n long end = numberList.get(0);\n\n for (long rev : numberList) {\n if (rev - end > 1) {\n // break in range\n log.debug(\"Found PhoneNumberRange: [{}, {}]\", start, end);\n curRange = new PhoneNumberRange();\n curRange.setPhoneNumberStart(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(start))));\n curRange.setPhoneNumberEnd(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(end))));\n retRanges.add(curRange);\n start = rev;\n }\n end = rev;\n }\n \n // Add the last range here.\n log.debug(\"Last PhoneNumberRange: [{}, {}]\", start, end);\n curRange = new PhoneNumberRange();\n curRange.setPhoneNumberStart(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(start))));\n curRange.setPhoneNumberEnd(Utils.getFriendlyPhoneNumberKeepingCountryCode(Utils.makeNationalDirectDial(String.valueOf(end))));\n retRanges.add(curRange);\n \n return retRanges; \n }", "private int RangeCount()\n\t{\n\t\treturn _rangelist.size();\n\t}", "public DateRange getDateRange();", "@Override\n public TextRegion createLineRange(int startLineInclusive, int endLineInclusive) {\n return base.createLineRange(startLineInclusive, endLineInclusive);\n }", "private ElectronRange(String name, String reference) {\n super(\"Electron Range\", name, reference);\n }", "public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }", "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }", "public void AddRange(char first, char last)\n\t{\n\t\t_rangelist.add(new SingleRange(first, last));\n\t\tif (_canonical && _rangelist.size() > 0 && first <= _rangelist.get(_rangelist.size() - 1)._last)\n\t\t{\n\t\t\t_canonical = false;\n\t\t}\n\t}", "public Uri getRange()\n {\n return range;\n }", "@Override\n\tpublic List<IRange> getSectionRanges() {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n range_Builder0.contractBegin(0L);\n range_Builder0.copy();\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range0.complementFrom(linkedList0);\n Range range1 = Range.of((-3234L));\n range0.isSubRangeOf(range1);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.complementFrom(linkedList0);\n range1.intersects(range0);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"TGa_,[\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.TGa_,[\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n long long0 = new Long(0L);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 259L);\n Range range3 = Range.of(1L);\n Range range4 = Range.of((-32768L), 0L);\n range4.equals(range2);\n range0.complement(range3);\n Range range5 = range_Builder1.build();\n assertFalse(range5.equals((Object)range4));\n }", "private Range(String name, int length) {\n assert (length != 0);\n this.name = name;\n this.first = 0;\n this.last = length - 1;\n this.stride = 1;\n this.length = length;\n }", "private SingleRange GetRangeAt(int i)\n\t{\n\t\treturn _rangelist.get(i);\n\t}", "protected void sequence_RangeClause(ISerializationContext context, RangeClause semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public final void rule__RangeClause__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11978:1: ( ( 'range' ) )\r\n // InternalGo.g:11979:1: ( 'range' )\r\n {\r\n // InternalGo.g:11979:1: ( 'range' )\r\n // InternalGo.g:11980:2: 'range'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRangeClauseAccess().getRangeKeyword_1()); \r\n }\r\n match(input,83,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRangeClauseAccess().getRangeKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }" ]
[ "0.69337875", "0.63706005", "0.6339597", "0.6309119", "0.62203896", "0.6181258", "0.6161531", "0.60708654", "0.6060989", "0.592894", "0.59176475", "0.58385175", "0.5838221", "0.5829759", "0.5828037", "0.5811964", "0.57796216", "0.5766446", "0.5746861", "0.5744388", "0.5697463", "0.56777346", "0.5655698", "0.5648375", "0.5643476", "0.5621929", "0.5617678", "0.55953175", "0.559281", "0.55750746", "0.55599856", "0.5559358", "0.553933", "0.5532868", "0.5513068", "0.54965544", "0.5495315", "0.54792184", "0.54609716", "0.5453486", "0.545332", "0.5447773", "0.54452354", "0.54349124", "0.54285383", "0.54241157", "0.54176176", "0.54083824", "0.53998643", "0.5395014", "0.5391897", "0.53884697", "0.53850853", "0.5381844", "0.53673434", "0.53624433", "0.5358882", "0.5358516", "0.5351557", "0.5339829", "0.5321694", "0.5317788", "0.53166676", "0.531463", "0.53042245", "0.53010035", "0.52983725", "0.52970827", "0.5292562", "0.5289475", "0.5285198", "0.5282293", "0.5273389", "0.5271338", "0.52632886", "0.5259651", "0.5245998", "0.5244281", "0.52436656", "0.5239093", "0.5234134", "0.52291274", "0.5228779", "0.5226629", "0.52253276", "0.5223439", "0.5212155", "0.52103955", "0.51951075", "0.5192721", "0.518984", "0.5182322", "0.51813686", "0.5174966", "0.51736903", "0.51730126", "0.5172227", "0.5163078", "0.5160926", "0.51485384" ]
0.6390174
1
Method is deprecated. use withRule instead.
@java.lang.Deprecated public A withNewRule(java.lang.String original);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Rule createRule();", "Rule createRule();", "Rule createRule();", "Rule getRule();", "void setRule(Rule rule);", "public void add_rule(Rule rule) throws Exception;", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "public void setRule(RuleDefinition.Builder rule) {\r\n\t\t\tthis.rule = rule;\r\n\t\t}", "public void setRule(java.lang.String rule) {\n this.rule = rule;\n }", "java.lang.String getRule();", "public SingleRuleBuilder newRule() {\n return new SingleRuleBuilder();\n }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }", "@Override public ParserRule getRule() { return rule; }" ]
[ "0.68236405", "0.68236405", "0.68236405", "0.6615185", "0.6588458", "0.6491214", "0.61066884", "0.6087191", "0.6074475", "0.606279", "0.6017041", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027" ]
0.62449634
6
InterventionItem interventionItemDtoToInterventionItem(InterventionItemDto dto); InterventionItemDto interventionItemToInterventionItemDto(InterventionItem item);
List<InterventionItem> interventionItemDtoToInterventionItem(List<InterventionItemDto> dto);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ItemDTO convertIntoItemDTO(Item item) {\n if (null == item) {\n return null;\n }\n ItemDTO itemDTO = new ItemDTO();\n itemDTO.setObjectID(item.getObjectID());\n itemDTO.setTitle(item.getTitle());\n itemDTO.setDescription(item.getDescription());\n itemDTO.setType(item.getType());\n itemDTO.setPicture(item.getPicture().toString());\n itemDTO.setPicture(\"\");\n itemDTO.setStock(item.getStock());\n return itemDTO;\n }", "@SuppressWarnings(\"unchecked\")\r\n private Object fromItem(final Item item) {\r\n return (Object) ((BeanItem<T>) item).getBean();\r\n }", "@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}", "public abstract T convertToEntity(D dto);", "void refineItem(JavaBeanMarshaller marshaller, Item item);", "public void convert(BaseViewHolder helper, MultiItemEntity item) {\n updateRideData(helper, (HistoryRideTraningItem) item);\n }", "public abstract D convertToDto(T entity);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "ExerciseDTO convertToExerciseDTO(Exercise exercise);", "ItemImportResult convert(ImportResult importRes);", "@Override\n protected void convert(@NonNull BaseViewHolder helper, PartyContentItemBean.ListBean item) {\n try {\n int adapterPosition = helper.getAdapterPosition();\n helper.addOnClickListener(R.id.front_layout);\n helper.addOnClickListener(R.id.delete_layout);\n ImageView pic = helper.getView(R.id.pic);\n if (StringUtil.isNotNullString(item.getCoverPicturePath())) {\n pic.setVisibility(View.VISIBLE);\n GlideUtil.loadImage(mContext, item.getCoverPicturePath(), pic);\n } else {\n pic.setVisibility(View.GONE);\n }\n TextView itemTitle = helper.getView(R.id.item_title);\n itemTitle.setText((item.getTitle()));\n helper.setText(R.id.author, (item.getAuthor()));\n helper.setText(R.id.time, (item.getReleaseTime()));\n SwipeRevealLayout swipeRevealLayout = helper.getView(R.id.swipe_reveal_layout);\n if (adapterPosition != newOpenedPos && swipeRevealLayout.isOpened()) {\n swipeRevealLayout.close(true);\n }\n swipeRevealLayout.setSwipeListener(new SwipeRevealLayout.SimpleSwipeListener() {\n @Override\n public void onOpened(SwipeRevealLayout view) {\n super.onOpened(view);\n oldOpenedPos = newOpenedPos;\n newOpenedPos = adapterPosition;\n notifiItemClose(oldOpenedPos);\n }\n });\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "int reasignWaybillFromOldTravel(ReasignWaybillFromOldTravelDTO dto);", "protected abstract void processDTO();", "@Test \n\tpublic void saveItemTest() throws Exception {\n\t\tItemDTO aItemDto = catalogService.createItem(itemDto);\n\t\tassertNotNull(aItemDto);\n\t\tassertEquals(itemDto,aItemDto);\n\t}", "Account coverEmpDTOToAccount(AccountDTO accountDTO);", "ShipmentItem createShipmentItem();", "V toDto(E entity);", "public static Ingredient convertToEntity(IngredientDTO ingredientDTO) {\n Ingredient ingredient = new Ingredient();\n if(ingredientDTO.getSearchString()!=null) {\n ingredient.setSearchString(ingredientDTO.getSearchString().toLowerCase());\n }\n if(ingredientDTO.getImageurl()!=null) {\n ingredient.setImageurl(ingredientDTO.getImageurl());\n }\n if(ingredientDTO.getName()!=null) {\n ingredient.setName(ingredientDTO.getName());\n }\n if(ingredientDTO.getReference()!=null) {\n ingredient.setReference(ingredientDTO.getReference());\n }\n if(ingredientDTO.getRejectionPercent()!=null) {\n ingredient.setRejectionPercent(ingredientDTO.getRejectionPercent());\n }\n return ingredient;\n }", "E mapToEntity(D dto);", "public ItemsPk insert(Items dto) throws ItemsDaoException;", "@Override\n @Transactional\n public Integer addDto(D dto, E entity) throws MedragServiceException {\n E result = (E) new ModelMapper().map(dto, entity.getClass());\n try {\n return entityDao.addEntity(result);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "public static IngredientDTO convertFromEntity(Ingredient ingredient) {\n IngredientDTO dto = new IngredientDTO();\n if (ingredient.getName() != null) {\n dto.setName(ingredient.getName());\n }\n if (ingredient.getImageurl() != null) {\n dto.setImageurl(ingredient.getImageurl());\n }\n if (ingredient.getId() != 0) {\n dto.setId(ingredient.getId());\n }\n if(ingredient.getRejectionPercent()!=null) {\n dto.setRejectionPercent(ingredient.getRejectionPercent());\n }\n if(ingredient.getReference()!=null) {\n dto.setReference(ingredient.getReference());\n }\n if(ingredient.getSearchString()!=null) {\n dto.setSearchString(ingredient.getSearchString());\n }\n return dto;\n\n }", "private static JsonItem toBasicJson(Item item) {\r\n\t\tJsonItem jsonItem = new JsonItem();\r\n\t\tapplyBasicJsonValues(jsonItem, item);\r\n\t\treturn jsonItem;\r\n\t}", "@Mapper(componentModel = \"spring\", uses = {ProOrderMapper.class})\r\npublic interface ProOrderItemMapper extends EntityMapper<ProOrderItemDTO, ProOrderItem> {\r\n\r\n @Mapping(source = \"proOrder.id\", target = \"proOrderId\")\r\n ProOrderItemDTO toDto(ProOrderItem proOrderItem);\r\n\r\n @Mapping(source = \"proOrderId\", target = \"proOrder\")\r\n ProOrderItem toEntity(ProOrderItemDTO proOrderItemDTO);\r\n\r\n default ProOrderItem fromId(Long id) {\r\n if (id == null) {\r\n return null;\r\n }\r\n ProOrderItem proOrderItem = new ProOrderItem();\r\n proOrderItem.setId(id);\r\n return proOrderItem;\r\n }\r\n}", "public Item convertToItem(Object value, XQItemType type) throws XQException;", "public void transferItem(Items item) throws Exception {\n\t\tif (item.getHolder() instanceof Monsters) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse if (item.getHolder() instanceof Backpacks) {\n\t\t\titem.setHolder(null);\n\t\t\tthis.addAnchor(item);\n\t\t}\n\t\telse\n\t\t\tthrow new Exception(\"The transaction is only possible between monsters and/or backpacks.\");\n\t}", "E toEntity(V dto);", "public Object caste(Object item, CastTo ct){\n Object result = new Object();\n switch(ct){\n case date:result = DateParser.parse((String)item, OutFormat.date);\n break;\n case datetime:result = DateParser.parse((String)item, OutFormat.datetime);\n break;\n case datetime2:result = DateParser.parse((String)item, OutFormat.datetime2);\n break;\n case smalldatetime:result = DateParser.parse((String)item, OutFormat.smalldatetime);\n break;\n case time:result = DateParser.parse((String)item, OutFormat.time);\n break;\n case CHAR:result = CharCatster(item);\n //return result.toString();\n break;\n case UNSIGNED:result = UnSigndCatster(item);\n break;\n case SIGNED:result = SigndCatster(item);\n break;\n case BINARY:result = BinaryCaster(item);\n break;\n }\n return result;\n }", "public interface IReglaUtilDTO {\n\n\t/**\n\t * To business.\n\t * \n\t * @param reglaDTO\n\t * the regla dto\n\t * @return the regla\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tRegla toBusiness(ReglaDTO reglaDTO) throws TransferObjectException;\n\n\t/**\n\t * To rest.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRest(Regla regla) throws TransferObjectException;\n\n\t/**\n\t * To rest info.\n\t * \n\t * @param regla\n\t * the regla\n\t * @return the regla dto\n\t * @throws TransferObjectException\n\t * the transfer object exception\n\t */\n\tReglaDTO toRestInfo(Regla regla) throws TransferObjectException;\n}", "Item convertToItem(Object value) throws XQException;", "public ItemTypeDTO findById(String id);", "public interface BookConverter {\n BookDto toBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(BookDto bookDto);\n\n FullBookDto toFullBookDto(BookEntity bookEntity);\n\n BookEntity toBookEntity(FullBookDto fullBookDto);\n}", "@PostMapping(\"\")\n public ResultEntity<String> addItem(@RequestBody NewItemRequest item, Principal principal) {\n return itemService.addItem(new Item(item, ConstantUtil.TYPE_SALE_RENT, principal.getName()));\n }", "@Override\n\tpublic FoodItemDto getFoodItem(Long id) {\n\t\tObject[] item = foodItemRepository.getOneFoodItem(id);\n\t\tFoodItemDto result = new FoodItemDto(item);\n\t\treturn result;\n\t}", "D mapToDTO(E entity);", "public interface ItemsMapper {\n List<Items> findItemsByName(QueryVo queryVo);\n Items findItemsById(Integer id);\n // 提交商品修改信息\n void updateItems(Items items);\n}", "Ticket ticketDTOToTicket(TicketDTO ticketDTO);", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "AccountDTO coverAccountToEmpDTO(Account account);", "public SaleInformationDTO enterItem(String itemIdentifier) throws ItemNotFoundException,DataBaseUnacessibleException,Exception{\n try{\n ItemDTO item = eis.findItem(itemIdentifier); \n SaleInformationDTO saleInformation = sale.addItem(item);\n return saleInformation;\n }\n catch(ItemNotFoundException itemNotFound){\n System.err.println(\"Developer: tried to add item with identifer: \"+itemIdentifier);\n throw itemNotFound;\n }\n catch(DataBaseUnacessibleException dataBaseNotStarting){\n System.err.println(\"Developer: Server/Database, External Inventory System is down\");\n throw dataBaseNotStarting;\n }\n catch(Exception e){\n System.err.println(\"Something is wrong with the code.\");\n throw e;\n }\n }", "public static IncomingDelivery mapToEntity(IncomingDeliveryDTO dto) throws Exception {\r\n\r\n\t\tif(dto==null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tIncomingDelivery entity = new IncomingDelivery();\r\n\r\n\r\n\t\tentity.setIncomingDeliveryId(dto.getIncomingDeliveryId());\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\t// organisation must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\t\t// lastEditor must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\ttry {\r\n\t\t\tentity.setDate(df.parse(dto.getDate()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// set current Date if parsing fails\r\n\t\t\tentity.setDate(new Date(System.currentTimeMillis()));\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// updateTimestamp does not have to be delivered by the frontend\r\n\t\tif (dto.getUpdateTimestamp() != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tentity.setUpdateTimestamp(df.parse(dto.getUpdateTimestamp()));\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// set current Date if parsing fails\r\n\t\t\t\tentity.setUpdateTimestamp(new Date(System.currentTimeMillis()));\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tentity.setComment(dto.getComment());\r\n\r\n\t\t// set archived Flag only by function, not by object\r\n\t\t// entity.setArchived(dto.getArchived());\r\n\t\t// booked status does not have to be set, because it is generated by Hibernate when getting the entity\r\n\r\n\t\tSet<IncomingArticle> incomingArticles = new HashSet<IncomingArticle>();\r\n\t\tfor(IncomingArticleDTO incomingArticleDTO : dto.getIncomingArticleDTOs())\r\n\t\t{\r\n\t\t\tincomingArticles.add(IncomingArticleMapper.mapToEntity(incomingArticleDTO));\r\n\t\t}\r\n\r\n\t\tentity.setIncomingArticles(incomingArticles);\r\n\r\n\t\treturn entity;\r\n\r\n\t}", "@Mapper\npublic interface LicenseDongEntityMapper {\n\n LicenseDongEntity toLicenseDongEntity(Item item);\n\n List<LicenseDongEntity> toLicenseDongEntityList(List<Item> itemList);\n\n}", "@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }", "private Object createObjectFromAttName(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getName();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getName());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getName());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getName());\n \t\t}\n \t\t// outta here\n \t\treturn null;\n \t}", "public SaleDTO scanItem( int itemID)throws ItemNotFoundException,DatabaseFailureException {\n\n return scanItem(1, itemID);\n }", "public ItemDTO searchItemInventory(int idItem) {\n\t\tfor (ItemData item : items) {\n\t\t\tif (item.idItem == idItem) {\n\t\t\t\treturn new ItemDTO(item.idItem, item.description, item.price, item.VAT, item.quantitySold);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Test\n\tpublic void testMapBookOrderItemEntityToBookOrderItem() {\n\t\t// Given\n\t\tBookOrderItemEntity bookOrderItemEntity = new BookOrderItemEntity();\n\t\tbookOrderItemEntity.setQuantity(mockValues.nextInteger());\n\t\tbookOrderItemEntity.setPrice(mockValues.nextBigDecimal());\n\t\t\n\t\t// When\n\t\tBookOrderItem bookOrderItem = bookOrderItemServiceMapper.mapBookOrderItemEntityToBookOrderItem(bookOrderItemEntity);\n\t\t\n\t\t// Then\n\t\tassertEquals(bookOrderItemEntity.getQuantity(), bookOrderItem.getQuantity());\n\t\tassertEquals(bookOrderItemEntity.getPrice(), bookOrderItem.getPrice());\n\t}", "private void setItems(DataRelationModelDto dto, List<DataRelationModelItemDto> itemDtos) {\n\t\tList<String> dpdNameList = new ArrayList<>();\n\t\tList<String> targetDpdNameList = new ArrayList<>();\n\t\tfor (DataRelationModelItemDto itemDto : itemDtos) {\n\t\t\tdpdNameList.add(itemDto.getDpd().getDpdName());\n\t\t\ttargetDpdNameList.add(itemDto.getTargetDpd().getDpdName());\n\t\t}\n\t\tdto.setDpdNameList(dpdNameList);\n\t\tdto.setTargetDpdNameList(targetDpdNameList);\n\t}", "@Override\n public Item createItem(int itemNum, Item item) throws VendingMachinePersistenceException {\n loadItemFile();\n Item newItem = itemMap.put(itemNum, item);\n writeItemFile();\n return newItem;\n }", "@Mapper(componentModel = \"spring\", uses = {TravauxMapper.class, ChantierMapper.class, EmployeMapper.class})\npublic interface AffectationMapper extends EntityMapper<AffectationDTO, Affectation> {\n\n @Mapping(source = \"travaux.id\", target = \"travauxId\")\n @Mapping(source = \"travaux.nomTrav\", target = \"travauxNomTrav\")\n @Mapping(source = \"chantier.id\", target = \"chantierId\")\n @Mapping(source = \"chantier.nomChantier\", target = \"chantierNomChantier\")\n AffectationDTO toDto(Affectation affectation);\n\n @Mapping(source = \"travauxId\", target = \"travaux\")\n @Mapping(source = \"chantierId\", target = \"chantier\")\n Affectation toEntity(AffectationDTO affectationDTO);\n\n default Affectation fromId(Long id) {\n if (id == null) {\n return null;\n }\n Affectation affectation = new Affectation();\n affectation.setId(id);\n return affectation;\n }\n}", "Object toObject(XQItemAccessor xqItemAccessor) throws XQException;", "SurveyQuestionDTO convertSurveyQuestionToSurveyQuestionDTO(SurveyQuestion question);", "Comment dtoToEntity(CommentDto commentDto);", "PersonaDTO PersonaToPersonaDTO(Persona persona);", "public GItem(Item i) {\n this.mGItem = i.getId();\n this.title = i.getTitle();\n\n if (!i.getAddress().equals(\"\")){\n this.address = i.getAddress();\n }\n\n if (i instanceof OfficerItem){\n this.type = 1;\n\n } else if (i instanceof CompanyItem){\n this.type = 0;\n }\n\n }", "OrderItemDto getOrderItem(long id) throws SQLException;", "Meal editMeal(MealEditDTO mealEditDTO);", "@PutMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> updateItem(@PathVariable(value=\"item_id\") Long item_id, @Valid @RequestBody Item itemDetails){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\titem.setItem_id(itemDetails.getItem_id());\n\t\titem.setItem_name(itemDetails.getItem_name());\n\t\titem.setItem_discription(itemDetails.getItem_discription());\n\t\titem.setCategory(itemDetails.getCategory());\n\t\titem.setPrice(itemDetails.getPrice());\n\t\t\n\t\tItem upItem = itemDAO.save(item);\n\t\t\n\t\treturn ResponseEntity.ok().body(upItem);\n\t\t\n\t}", "ShoppingItem getShoppingItemByGuid(String itemGuid);", "public void inicializarItemInvoice() {\r\n\t\ttry {\r\n\t\t\teditarItem = false;\r\n\t\t\trequired = true;\r\n\t\t\tpo = new PO();\r\n\t\t\tlistPos = new ArrayList<PO>();\r\n\t\t\titemInvoice = null;\r\n\t\t\titemPO = null;\r\n\t\t\tpartNumber = null;\r\n\t\t\tBasicFiltroPO filtroPO = new BasicFiltroPO();\r\n\r\n\t\t\tCarga c = facade.getCargaById(invoice.getCarga().getId());\r\n\t\t\tfiltroPO.setFilial(c.getFilial());\r\n\t\t\tlistPos = facade.listarPO(filtroPO);\r\n\t\t\tpoConverter = new ConverterUtil<PO>(listPos);\r\n\r\n\t\t} catch (BusinessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testMapBookOrderItemToBookOrderItemEntity() {\n\t\t// Given\n\t\tBookOrderItem bookOrderItem = new BookOrderItem();\n\t\tbookOrderItem.setQuantity(mockValues.nextInteger());\n\t\tbookOrderItem.setPrice(mockValues.nextBigDecimal());\n\n\t\tBookOrderItemEntity bookOrderItemEntity = new BookOrderItemEntity();\n\t\t\n\t\t// When\n\t\tbookOrderItemServiceMapper.mapBookOrderItemToBookOrderItemEntity(bookOrderItem, bookOrderItemEntity);\n\t\t\n\t\t// Then\n\t\tassertEquals(bookOrderItem.getQuantity(), bookOrderItemEntity.getQuantity());\n\t\tassertEquals(bookOrderItem.getPrice(), bookOrderItemEntity.getPrice());\n\t}", "public interface ItemService {\n /**\n * 根据id查询商品\n * @param itemId\n * @return\n */\n TbItemDTO getItemById(long itemId);\n\n /**\n * 查询商品列表\n * @param pageNum\n * @param pageSize\n * @return\n */\n EUDataGridPageVO<TbItemDTO> getItems(int pageNum,int pageSize);\n\n /**\n * 添加商品\n * @param tbItemDO\n * @return\n */\n SaveItemResponseVO saveItem(TbItemDO tbItemDO, String desc, String itemParams) throws Exception;\n}", "@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }", "public Map<Long, DeliveryHeaderDo> importDto(ContainerItemsDTO dto, GeoApiContext context,\r\n\t\t\tMap<Long, String> delNoteAddrMap) throws InvalidInputFault, ExecutionFault, NoResultFault, Exception {\n\t\tMap<Long, DeliveryHeaderDo> map = new HashMap<>();\r\n\t\tMap<Long, String> currentStatusMap = new HashMap<>();\r\n\t\tMap<Long, String> prevStatusMap = new HashMap<>();\r\n\t\tDeliveryHeaderDo dos = null;\r\n\t\t// Multimap<DeliveryHeaderDo, DeliveryItemDo> map =\r\n\t\t// ArrayListMultimap.create();\r\n\t\t// Set<Long> isVisited = new HashSet<>();\r\n\t\tif (!ServicesUtil.isEmpty(dto)) {\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<ContainerDetailsDTO> items = (List<ContainerDetailsDTO>) dto.getITEM();\r\n\t\t\tDate currDate = new Date();\r\n\t\t\t/*\r\n\t\t\t * ContainerDetailsDTO t = items.get(0);\r\n\t\t\t * visitedHeaders.add(t.getDELIVNO());\r\n\t\t\t */\r\n\t\t\t// Long id;\r\n\t\t\tfor (ContainerDetailsDTO d : items) {\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * if (isVisited.add(d.getDELIVNO())) { dos = new\r\n\t\t\t\t * DeliveryHeaderDo(); headerList.add(dos); }\r\n\t\t\t\t */\r\n\t\t\t\tif (map.containsKey(d.getDELIVNO()) == false) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdos = new DeliveryHeaderDo();\r\n\t\t\t\t\t\tdos.setDeliveryNoteId(d.getDELIVNO());\r\n\t\t\t\t\t\t// fetching the delivery note if exits\r\n\t\t\t\t\t\tdos = deliveryHeaderDao.find(dos);\r\n\t\t\t\t\t\tdelNoteAddrMap.put(dos.getDeliveryNoteId(), dos.getShipToAddress());\r\n\t\t\t\t\t\tList<DeliveryItemDo> deliveryItems = new ArrayList<DeliveryItemDo>();\r\n\t\t\t\t\t\tdos.setDeliveryItems(deliveryItems);\r\n\t\t\t\t\t} catch (InvalidInputFault e) {\r\n\t\t\t\t\t\tdos = new DeliveryHeaderDo();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmap.put(d.getDELIVNO(), dos);\r\n\t\t\t\t} \r\n\t\t\t\telse {\r\n\t\t\t\t\tdos = map.get(d.getDELIVNO());\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!currentStatusMap.containsKey(d.getDELIVNO()))\r\n\t\t\t\t\tcurrentStatusMap.put(d.getDELIVNO(), \"\");\r\n\t\t\t\tif (ServicesUtil.isEmpty(dos.getStatus()))\r\n\t\t\t\t\tprevStatusMap.put(d.getDELIVNO(), \"\");\r\n\t\t\t\telse\r\n\t\t\t\t\tprevStatusMap.put(d.getDELIVNO(), dos.getStatus());\r\n\r\n\t\t\t\tDeliveryItemDo itemDo = new DeliveryItemDo();\r\n\r\n\t\t\t\t// setting delivery header\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getDELIVNO()))\r\n\t\t\t\t\tdos.setDeliveryNoteId(d.getDELIVNO());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getSALESGRP()))\r\n\t\t\t\t\tdos.setSalesGroup(d.getSALESGRP());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getPURCHORD()))\r\n\t\t\t\t\tdos.setPurchaseOrder(d.getPURCHORD());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getREFNO()))\r\n\t\t\t\t\tdos.setRefNo(Long.parseLong(d.getREFNO()));\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getSLOC()))\r\n\t\t\t\t\tdos.setStorageLocation(d.getSLOC());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getSHIPADD())) {\r\n\t\t\t\t\tString shipToAddress = d.getSHIPADD();\r\n\t\t\t\t\tdos.setShipToAddress(shipToAddress);\r\n\t\t\t\t}\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getCITY()))\r\n\t\t\t\t\tdos.setCity(d.getCITY());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getAREACODE()))\r\n\t\t\t\t\tdos.setAreaCode(d.getAREACODE());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getTELP()))\r\n\t\t\t\t\tdos.setTelephone(d.getTELP());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getSOLDADD()))\r\n\t\t\t\t\tdos.setSoldToAddress(d.getSOLDADD());\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getSHIPTYP()))\r\n\t\t\t\t\tdos.setShippingType(d.getSHIPTYP());\r\n\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getINSTDELV())) {\r\n\t\t\t\t\tString instruction = d.getINSTDELV().substring(0, Math.min(d.getINSTDELV().length(), 1000));\r\n\t\t\t\t\tdos.setInstructionForDelivery(instruction);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * // setting warehouse from sloc if\r\n\t\t\t\t * (!ServicesUtil.isEmpty(d.getSLOC())) { WareHouseDetailsDo\r\n\t\t\t\t * warehouseDo = new WareHouseDetailsDo();\r\n\t\t\t\t * warehouseDo.setWareHouseId(d.getSLOC());\r\n\t\t\t\t * \r\n\t\t\t\t * try { // find warehouse by id and assigned to delivery note\r\n\t\t\t\t * warehouseDo = wareHouseDao.find(warehouseDo); } catch\r\n\t\t\t\t * (Exception e) { throw new\r\n\t\t\t\t * InvalidInputFault(\"Invalid SLOC id '\" + d.getSLOC() +\r\n\t\t\t\t * \"' no warehouse found\"); }\r\n\t\t\t\t * dos.setWareHouseDetails(warehouseDo); }\r\n\t\t\t\t */\r\n\r\n\t\t\t\t// set other params\r\n\t\t\t\tif (!ServicesUtil.isEmpty(d.getCREATEDT()) && !ServicesUtil.isEmpty(d.getCREATETM())) {\r\n\t\t\t\t\tDate eccCreatedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(d.getCREATEDT()+\" \"+d.getCREATETM());\r\n\t\t\t\t\tdos.setCreatedDate(eccCreatedDate);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdos.setUpdatedAt(currDate);\r\n\t\t\t\tif (ServicesUtil.isEmpty(d.getSTAT())) {\r\n\t\t\t\t\tdos.setCreatedAt(currDate);\r\n\t\t\t\t\tif (ServicesUtil.isEmpty(currentStatusMap.get(dos.getDeliveryNoteId())) || currentStatusMap\r\n\t\t\t\t\t\t\t.get(dos.getDeliveryNoteId()).equals(DeliveryNoteStatus.DELIVERY_NOTE_CREATED.getValue())) {\r\n\t\t\t\t\t\tdos.setStatus(DeliveryNoteStatus.DELIVERY_NOTE_CREATED.getValue());\r\n\t\t\t\t\t\tcurrentStatusMap.put(dos.getDeliveryNoteId(),\r\n\t\t\t\t\t\t\t\tDeliveryNoteStatus.DELIVERY_NOTE_CREATED.getValue());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (!ServicesUtil.isEmpty(prevStatusMap.get(dos.getDeliveryNoteId())) && !prevStatusMap\r\n\t\t\t\t\t\t\t\t.get(dos.getDeliveryNoteId()).equals(DeliveryNoteStatus.RFC_DN_INVALIDATED.getValue()))\r\n\t\t\t\t\t\t\tdos.setStatus(prevStatusMap.get(dos.getDeliveryNoteId()));\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdos.setStatus(DeliveryNoteStatus.DELIVERY_NOTE_CREATED.getValue());\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// if STAT = X means order is cancelled and we need to remove\r\n\t\t\t\t// the mapping of trip and this delivery note and\r\n\t\t\t\t// set status as RFC_invalidated\r\n\t\t\t\tif ((!ServicesUtil.isEmpty(d.getSTAT()) && d.getSTAT().equals(DeliveryNoteStatus.STAT.getValue()))) {\r\n\r\n\t\t\t\t\t// setting delivery note status as RFC_Invaidated and set\r\n\t\t\t\t\t// tripped to false again\r\n\t\t\t\t\tif (ServicesUtil.isEmpty(currentStatusMap.get(dos.getDeliveryNoteId())) || currentStatusMap\r\n\t\t\t\t\t\t\t.get(dos.getDeliveryNoteId()).equals(DeliveryNoteStatus.RFC_DN_INVALIDATED.getValue())) {\r\n\t\t\t\t\t\tdos.setStatus(DeliveryNoteStatus.RFC_DN_INVALIDATED.getValue());\r\n\t\t\t\t\t\tcurrentStatusMap.put(dos.getDeliveryNoteId(), DeliveryNoteStatus.RFC_DN_INVALIDATED.getValue());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (!ServicesUtil.isEmpty(prevStatusMap.get(dos.getDeliveryNoteId())) && !prevStatusMap\r\n\t\t\t\t\t\t\t\t.get(dos.getDeliveryNoteId()).equals(DeliveryNoteStatus.RFC_DN_INVALIDATED.getValue()))\r\n\t\t\t\t\t\t\tdos.setStatus(prevStatusMap.get(dos.getDeliveryNoteId()));\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdos.setStatus(DeliveryNoteStatus.DELIVERY_NOTE_CREATED.getValue());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (ServicesUtil.isEmpty(d.getSTAT())) {\r\n\r\n\t\t\t\t\t// parsing item do\r\n\t\t\t\t\tif (!ServicesUtil.isEmpty(d.getSERNUM()))\r\n\t\t\t\t\t\titemDo.setSerialNum(d.getSERNUM());\r\n\t\t\t\t\tif (!ServicesUtil.isEmpty(d.getMAT()))\r\n\t\t\t\t\t\titemDo.setMaterial(d.getMAT());\r\n\t\t\t\t\tif (!ServicesUtil.isEmpty(d.getBATCH()))\r\n\t\t\t\t\t\titemDo.setBatch(d.getBATCH());\r\n\t\t\t\t\tif (!ServicesUtil.isEmpty(d.getDESC()))\r\n\t\t\t\t\t\titemDo.setDescription(d.getDESC());\r\n\t\t\t\t\tif (!ServicesUtil.isEmpty(d.getQTY()))\r\n\t\t\t\t\t\titemDo.setQuantity(d.getQTY());\r\n\t\t\t\t\tif (!ServicesUtil.isEmpty(d.getVOL()))\r\n\t\t\t\t\t\titemDo.setVolume(d.getVOL());\r\n\t\t\t\t\tdos.getDeliveryItems().add(itemDo);\r\n\t\t\t\t}\r\n\t\t\t\t// map.get(d.getDELIVNO()).getDeliveryItems().add(itemDo);\r\n\t\t\t\t// map.put(dos, itemDo);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn map;\r\n\t}", "@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }", "public SaleDTO scanItem(int quantity, int itemID) throws ItemNotFoundException,DatabaseFailureException{\n Item scannedItem = (registryCreator.getItemRegistry()).getItem(itemID);\n return sale.sellItem(quantity, scannedItem);\n }", "@Override\n\tpublic ThematicItem changeItem(ThematicItem item) {\n\t\treturn repository.changeItem(item);\n\t}", "@PostMapping(\"/ajouter-produit\")\r\n\tpublic Message ajouterProduit(@RequestBody ProduitItem item){\r\n\t\ttry{\r\n\t\t\tpanierService.ajouterProduit(item.getIdProduit(), item.getQuantite());\r\n\t\t\treturn MessageUtil.SUCCES;\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn MessageUtil.ERREUR;\r\n\t\t}\r\n\t}", "public abstract M toModel(DTO dto);", "@Component\n@Mapper(componentModel = \"spring\")\npublic interface CarriageMapper {\n\n Carriage carriageModelToCarriage(CarriageModel carriageModel);\n\n CarriageModel carriageToCarriageModel(Carriage carriage);\n\n CarriageModel carriageDtoToCarriageModel(CarriageDto carriageDto);\n\n CarriageDto carriageModelToCarriageDto(CarriageModel carriageModel);\n\n List<CarriageModel> carriagesToCarriageModels(List<Carriage> carriages);\n\n List<CarriageDto> carriageModelsToCarriageDtos(List<CarriageModel> carriageModels);\n\n List<Carriage> carriageModelsToCarriages(List<CarriageModel> carriageModels);\n}", "@Override\n\tItem save(Item item);", "@RequestMapping(method=RequestMethod.POST, value = \"/item/{id}\", produces = \"application/json\")\n public void addItem(@RequestBody Item itemToAdd)\n {\n this.itemRepository.addItem(itemToAdd);\n }", "public ConfigurationItemDTO toConfigurationItemDTO() {\r\n\t\tfinal ConfigurationItemDTO dto = new ConfigurationItemDTO();\r\n\t\tdto.setKey(key);\r\n\t\tfinal String value;\r\n\t\tswitch (type) {\r\n\t\t\tcase CONTENT_TYPE:\r\n\t\t\t\tvalue = get(contentTypeValue);\r\n\t\t\t\tbreak;\r\n\t\t\tcase CATEGORY:\r\n\t\t\t\tvalue = get(categoryValue);\r\n\t\t\t\tbreak;\r\n\t\t\tcase FILE:\r\n\t\t\t\tvalue = get(fileValue);\r\n\t\t\t\tbreak;\r\n\t\t\tcase STRING:\r\n\t\t\t\tvalue = stringValue;\r\n\t\t\t\tbreak;\r\n\t\t\tcase CHOICE:\r\n\t\t\t\tvalue = stringValue;\r\n\t\t\t\tbreak;\r\n\t\t\tcase INTEGER:\r\n\t\t\t\tvalue = (integerValue == null) ? null : integerValue.toString();\r\n\t\t\t\tbreak;\r\n\t\t\tcase BOOLEAN:\r\n\t\t\t\tvalue = (booleanValue == null) ? null : booleanValue.toString();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tvalue = null;\r\n\t\t}\r\n\t\tdto.setCurrentValue(value);\r\n\t\treturn dto;\r\n\t}", "public PickPermitTileBonusAction map(PickPermitTileActionDTO pickPermitTileActionDTO);", "@GetMapping(\"/{id}\")\n public ResultEntity<ItemDTO> getItemByItemId(@PathVariable String id)\n {\n return itemService.getItemByItemId(id);\n }", "@Override\n public Item updateItem(Item item) throws VendingMachinePersistenceException {\n loadItemFile();\n Item updatedItem = itemMap.put(item.getItemID(), item);\n writeItemFile();\n return itemMap.get(updatedItem.getItemID());\n }", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }", "void update( ExperimentDTO item );", "public static Weapon transformToEntity(WeaponDTO weaponDto) {\n if (weaponDto == null) {\n throw new NullPointerException(\"Data transfer object for transformation cannot be null\");\n }\n\n Weapon weapon = new Weapon();\n\n weapon.setId(weaponDto.getId());\n weapon.setName(weaponDto.getName());\n weapon.setAmmunition(weaponDto.getAmmunition());\n weapon.setGunReach(weaponDto.getGunReach());\n return weapon;\n }", "private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}", "public void calcularReserva(ProductoDTO item) {\n\t\t\n\t}", "@Override\n\tpublic Izdavac convert(IzdavacDTO dto) {\n\t\tIzdavac izdavac=new Izdavac();\n\t\tif(dto.getId()!=null) {\n\t\t\tizdavac=izdavacService.findOne(dto.getId());\n\t\t\tif(izdavac==null) {\n\t\t\t\tthrow new IllegalStateException(\"greska izdavacDTO\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tizdavac.setAdresa(dto.getAdresa());\n\t\tizdavac.setId(dto.getId());\n\t\tizdavac.setNaziv(dto.getNaziv());\n\t\tizdavac.setTelefon(dto.getTelefon());\n\t\t\n\t\treturn izdavac;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface WwtreatmentthreeMapper {\n\n WwtreatmentthreeDTO wwtreatmentthreeToWwtreatmentthreeDTO(Wwtreatmentthree wwtreatmentthree);\n\n List<WwtreatmentthreeDTO> wwtreatmentthreesToWwtreatmentthreeDTOs(List<Wwtreatmentthree> wwtreatmentthrees);\n\n Wwtreatmentthree wwtreatmentthreeDTOToWwtreatmentthree(WwtreatmentthreeDTO wwtreatmentthreeDTO);\n\n List<Wwtreatmentthree> wwtreatmentthreeDTOsToWwtreatmentthrees(List<WwtreatmentthreeDTO> wwtreatmentthreeDTOs);\n}", "public interface MowerMapper {\n\n public List<Mower> mapMowerDtoListToMowerEntityList(final List<MowerRequestJsonDto> mowerRequestJsonDto);\n\n public Mower mapMowerDtoToMowerEntity(final MowerRequestJsonDto mowerRequestJsonDto);\n}", "public Member copyDtoToEntity(MemberDto dto, Member entity) {\r\n reflectFormalizedDatetimeToEntity(dto, entity);\r\n reflectMemberIdToEntity(dto, entity);\r\n reflectMemberNameToEntity(dto, entity);\r\n reflectUpdateDatetimeToEntity(dto, entity);\r\n\r\n return entity;\r\n }", "@PostMapping(\"/items\")\n public ResponseEntity<Items> createItems(@RequestBody Items items) throws URISyntaxException {\n log.debug(\"REST request to save Items : {}\", items);\n if (items.getId() != null) {\n throw new BadRequestAlertException(\"A new items cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Items result = itemsRepository.save(items);\n return ResponseEntity.created(new URI(\"/api/items/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Override\n @Transactional\n public D getDtoById(D dto, E entity, Integer id) throws MedragServiceException {\n E entityById = null;\n try {\n entityById = entityDao.getEntityById(entity, id);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n return (D) new ModelMapper().map(entityById, dto.getClass());\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n protected Item toItem(final T entity) {\r\n BeanItem<T> beanItem = new NestedBeanItem<T>(entity);\r\n\r\n for (Object propertyId : queryDefinition.getPropertyIds()) {\r\n if (beanItem.getItemProperty(propertyId) == null) {\r\n beanItem.addItemProperty(\r\n propertyId,\r\n new ObjectProperty(queryDefinition.getPropertyDefaultValue(propertyId), \r\n queryDefinition.getPropertyType(propertyId),\r\n queryDefinition.isPropertyReadOnly(propertyId)));\r\n }\r\n }\r\n\r\n return beanItem;\r\n }", "@Override\n\t\t\t\tpublic void convert(ViewHolder helper,\n\t\t\t\t\t\tGoodsList item) {\n\t\t\t\t\thelper.setText(R.id.photo_goods_title,\n\t\t\t\t\t\t\titem.getTitle());\n\t\t\t\t\thelper.setText(R.id.photo_goods_content,\n\t\t\t\t\t\t\titem.getProduct());\n\t\t\t\t\thelper.setText(R.id.photo_goods_price, \"¥\"\n\t\t\t\t\t\t\t+ item.getTeam_price());\n\t\t\t\t\thelper.setImageByUrl(R.id.photo_goods_image,\n\t\t\t\t\t item.getImage(), getActivity());\n\t\t\t\t}", "@Mapper(componentModel = \"spring\", uses = { CustomUserMapper.class, IconMapper.class })\npublic interface TeamMapper extends EntityMapper<TeamDTO, Team> {\n\n /* (non-Javadoc)\n * @see com.ttth.teamcaring.service.mapper.EntityMapper#toDto(java.lang.Object)\n */\n @Mapping(source = \"owner.id\", target = \"ownerId\")\n @Mapping(source = \"icon.id\", target = \"iconId\")\n TeamDTO toDto(Team team);\n\n /* (non-Javadoc)\n * @see com.ttth.teamcaring.service.mapper.EntityMapper#toEntity(java.lang.Object)\n */\n @Mapping(target = \"groups\", ignore = true)\n @Mapping(target = \"appointments\", ignore = true)\n @Mapping(source = \"ownerId\", target = \"owner\")\n @Mapping(source = \"iconId\", target = \"icon\")\n Team toEntity(TeamDTO teamDTO);\n\n /**\n * From id.\n *\n * @param id the id\n * @return the team\n */\n default Team fromId(Long id) {\n if (id == null) {\n return null;\n }\n Team team = new Team();\n team.setId(id);\n return team;\n }\n}", "RocketDTO addRocket(CreateRocketDTO rocket);", "public abstract T tranformSingle(S item);", "public FilmType convertDtoToEntity(FilmTypeDto dto){\n\t\tFilmType entity = new FilmType();\n\t\tif(dto!=null){\n\t\t\tentity.setId(dto.getId());\n\t\t\tentity.setVersion(dto.getVersion());\n\t\t\tentity.setDescription(dto.getDescription());\n\t\t}\n\t\treturn entity;\n\t}", "public Representante toEntity(RepresentanteDTO dto, Representante entity) {\n\n entity.setIdRepresentante(dto.getIdRepresentante());\n entity.setNome(dto.getNome());\n entity.setTelefone(dto.getTelefone());\n entity.setSexo(dto.getSexo());\n entity.setEmail(dto.getEmail());\n\n return entity;\n }", "public void saveDonationForUser(Volunteer volunteer, DonationItemDto donationItems);", "public static Promotion dtoToEntity(PromotionDTO dto) {\n if(dto != null) {\n Promotion entity = new Promotion();\n entity.setDiscount(dto.getDiscount());\n entity.setId(dto.getId());\n entity.setAlias(dto.getAlias());\n return entity;\n }\n return null;\n }", "public T caseItem(Item object) {\n\t\treturn null;\n\t}", "TicketDTO ticketToTicketDTO(Ticket ticket);", "TransactionResponseDTO transferTransaction(TransactionRequestDTO transactionRequestDTO);" ]
[ "0.68001276", "0.57670355", "0.5745861", "0.5573432", "0.5572376", "0.55674773", "0.5515481", "0.55097705", "0.5484496", "0.5368901", "0.5365541", "0.534914", "0.5339486", "0.53229654", "0.5279773", "0.52784157", "0.52564144", "0.52365196", "0.52237", "0.5218682", "0.52162755", "0.52151227", "0.5212846", "0.5202125", "0.51971096", "0.5190887", "0.51774377", "0.51742375", "0.51655936", "0.5160925", "0.51474446", "0.51467025", "0.51461256", "0.5142822", "0.51422644", "0.5101814", "0.50995314", "0.5083942", "0.50813377", "0.50770235", "0.50721866", "0.50244224", "0.50161517", "0.5014006", "0.50001585", "0.49857074", "0.4983222", "0.497273", "0.4968737", "0.4963301", "0.49475297", "0.4944363", "0.49418613", "0.4940293", "0.49400952", "0.4934947", "0.4933255", "0.49190643", "0.49186596", "0.49179634", "0.49177784", "0.49161336", "0.4910396", "0.49080533", "0.49034303", "0.48906165", "0.48783055", "0.48747194", "0.48734072", "0.48731154", "0.48725048", "0.48711005", "0.48683202", "0.48669544", "0.4863882", "0.48607713", "0.4858558", "0.48530236", "0.48528492", "0.48518828", "0.4851811", "0.48504663", "0.48501885", "0.4848993", "0.48464623", "0.48353457", "0.48298547", "0.48220286", "0.4816361", "0.48144576", "0.48109508", "0.48082215", "0.48072413", "0.48045167", "0.4802309", "0.4800432", "0.47987944", "0.4796863", "0.47944763", "0.47934136" ]
0.83971626
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.72473437", "0.7202402", "0.71960324", "0.7177793", "0.7108265", "0.7040525", "0.70388484", "0.70126176", "0.70101976", "0.6981143", "0.69461405", "0.694", "0.69346833", "0.69183874", "0.69183874", "0.6891571", "0.6884306", "0.68758994", "0.687534", "0.68627334", "0.68627334", "0.68627334", "0.68627334", "0.6853258", "0.6847784", "0.6820167", "0.68177783", "0.68134266", "0.68132955", "0.68132955", "0.6806282", "0.68011856", "0.6798178", "0.67916524", "0.67897713", "0.6788724", "0.6783952", "0.6759952", "0.6757919", "0.6748738", "0.67445415", "0.67445415", "0.6741439", "0.67401767", "0.6726359", "0.6724678", "0.6723058", "0.6723058", "0.6721303", "0.67123276", "0.670777", "0.67050874", "0.670039", "0.66992784", "0.6697299", "0.6695259", "0.6686728", "0.668404", "0.668404", "0.6683142", "0.668091", "0.66799283", "0.6677784", "0.6669004", "0.66677624", "0.66630834", "0.66577506", "0.66577506", "0.66577506", "0.6656902", "0.66553235", "0.66553235", "0.66553235", "0.66530025", "0.66522014", "0.6650771", "0.66497517", "0.6647805", "0.66470283", "0.66469866", "0.6646818", "0.6645723", "0.66454786", "0.66439635", "0.66434425", "0.6642393", "0.6639529", "0.6635146", "0.6634077", "0.6632954", "0.66327274", "0.66327274", "0.66327274", "0.66297686", "0.66288346", "0.66275346", "0.66271275", "0.6625066", "0.6621276", "0.6619167", "0.6619167" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean onKey(View view, int keyCode, KeyEvent event) { boolean handle = false; if(event.getAction()==KeyEvent.ACTION_DOWN && keyCode==KeyEvent.KEYCODE_ENTER){ handle = entrarUrl(); } return handle; }
{ "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
System.out.println("Please write an SQL command to be explained: ");
public static void main(String[] args){ StringDB Database = new StringDB(); Database.execute("INSERT INTO teachers VALUES ( 'Martin_Aumüller' , 'maau' ) ;"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}", "public void printStatement() {\n\t\t\n\t}", "public void show() throws SQLException {\n int done = 0;\n\n show_stmt.registerOutParameter(2, java.sql.Types.INTEGER);\n show_stmt.registerOutParameter(3, java.sql.Types.VARCHAR);\n\n for (;;) {\n show_stmt.setInt(1, 32000);\n show_stmt.executeUpdate();\n System.out.print(show_stmt.getString(3));\n if ((done = show_stmt.getInt(2)) == 1) {\n break;\n }\n }\n }", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }", "public void promptDBCreds()\n\t{\n\t\ttse.startDatabase();\n\t\t\n\t}", "public static void help() {\n System.out.println(printLine(\"*\",120));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSHOW TABLES; Display all tables in the schema.\");\n //System.out.println(\"\\tSELECT table_name FROM kavibase_tables; Display all records in the table.\");\n System.out.println(\"\\tCREATE TABLE table_name (column_name data_type [PRIMARY KEY] [NOT NULL],.); Create a table.\");\n System.out.println(\"\\tINSERT INTO TABLE (column_list) table_name VALUES (value_list); Insert a record into table.\");\n System.out.println(\"\\tDELETE FROM TABLE table_name WHERE row_id=key_value; Delete a record from a table.\");\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println(\"\\tQUIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(printLine(\"*\",120));\n }", "public static void mainExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit the program\");\n\t\tSystem.out.println(\"Enter 'STU' for the Student Menu\");\n\t\tSystem.out.println(\"Enter 'FAC' for the Faculty Menu\");\n\t\tSystem.out.println(\"You may also enter a customized SQL query:\");\n\t\tSystem.out.println(\"However, this may only be a SELECT query, not a DDl,INSERT or UPDATE query\");\n\t}", "public static void main(String[] args) {\n Connection conection = createConnection(\"people.db\");\n \n try {\n conection.createStatement().executeQuery(\"SELECT * FROM people\");\n \n } catch (SQLException ex) {\n System.out.println(\"PRINT AN ERROR HERE\");\n }\n}", "public static void studentText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND 5.'ENROLL' 6.'WITHDRAW' 7.'SCHEDULE' 8.'MORE' -for more detail about options\");\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "public static void prompt() {\n\t\tSystem.out.printf(\"\\n입력 > \");\n\t}", "public void KosarajuPrint() {\n long start = System.currentTimeMillis();\n io.println(\"The given statement is \");\n if (kosaraju.checkSatisfiability()) {\n io.println(\"satisfiable.\");\n } else {\n io.println(\"not satisfiable.\");\n }\n io.println(\"The calculation took \" + (System.currentTimeMillis() - start) + \" milliseconds.\\n\");\n }", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "public void generalPrompt() {\n System.out.println(\"What would you like to do?\");\n }", "public static void main(String[] args) throws SQLException {\n choiceProgram();\n }", "public static void wellFormed(){\n System.out.println(\"A well-formed Java program has\");\n System.out.println(\"a main method with { and }\");\n System.out.println(\"braces.\");\n System.out.println(\"\");\n System.out.println(\"A System.out.println statement\");\n System.out.println(\"has ( and ) and usually a\");\n System.out.println(\"String that starts and ends\");\n System.out.println(\"with a \\\" character.\");\n System.out.println(\"(But we type \\\\\\\" instead!)\");\n }", "public static void main(String args[]) throws SQLException {\n }", "public static void main(String[] args)throws IOException ,SQLException {\nlog.debug(\"Hello this is a debug message\");\r\nlog.info(\"Hello this is a info message\");\r\nlog.warn(\"Sample warn message \");\r\nlog.error(\"Sample error message \");\r\nlog.fatal(\"Sample fatal message \");\r\n\r\n}", "public static void main(String[] args) throws SQLException {\n\t\t\r\n\t}", "public static void main(String args[]) throws SQLException, IOException\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tInsertDetails i = new InsertDetails();\n\t\tUpdate u = new Update();\n\t\tPrintResluts p = new PrintResluts();\n\t\tDeleteData d = new DeleteData();\n\t\tConnectionUtil cn = new ConnectionUtil();\n\t\tConnection con = cn.getConnection();\n\t\tSystem.out.println(\"enter: 1.to insert details \\n 2. to update \\n 3. to print results \\n 4. to delete \\n 5. to exit\");\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"enter your choice : \");\n\t\t\tint n = sc.nextInt();\n\t\t\tswitch(n)\n\t\t\t{\n\t\t\tcase 1:\t\n\t\t\t\tSystem.out.println(\"no. of rows inserted is \"+i.insert(con));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(u.updateTable(con))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"given row is updated\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"given row is not there in table\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tp.results(con);\n\t\t\tcase 4:\n\t\t\t\tint rowsdeleted = d.delete(con);\n\t\t\t\tSystem.out.println(\"no. of rows deleted is \"+rowsdeleted);\n\t\t\t}\n\t\t\tif(n==5)\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(\" go quit help\");\n }", "private static boolean determineShowSql(CommandLine optionLine)\n {\n return optionLine.hasOption(Environment.SHOW_SQL);\n }", "public static void main(String[] args) throws SQLException {\n\t}", "public void printQuestion() {\n\t\tSystem.out.println(question);\n\t}", "private void selectOperator() {\n String query = \"\";\n System.out.print(\"Issue the Select Query: \");\n query = sc.nextLine();\n query.trim();\n if (query.substring(0, 6).compareToIgnoreCase(\"select\") == 0) {\n sqlMngr.selectOp(query);\n } else {\n System.err.println(\"No select statement provided!\");\n }\n }", "@Override\n public void executeTransaction() {\n System.out.println(\"Please make a selection first\");\n }", "void printHelp();", "public static void printPrompt() {\n System.out.print(\" > \");\n }", "private void printSqlError(SQLException e){\n\t System.out.println(\"SQLException: \" + e.getMessage());\n\t System.out.println(\"SQLState: \" + e.getSQLState());\n\t System.out.println(\"VendorError: \" + e.getErrorCode());\n\t\te.printStackTrace();\n\t}", "public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }", "private void printEndingStory()\n {\n System.out.println();\n System.out.println(\"Princess Peach: Thanks, Mario. We'll be forever friends!\");\n System.out.println(\"Mario: Oh, no...\");\n System.out.println(\"Mario: Princess Peach you are more than a friend to me...\");\n System.out.println();\n }", "public static void main(String[] args) {\n\t\tConnection connection = null;\n\t\tPreparedStatement pstm = null;\n\t\t\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/medical\",\"root\",\"\");\n\t\t\t\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter Option:\");\n\t\t\tint op = Integer.parseInt(input.nextLine());\n\t\t\tSystem.out.println(op);\n\t\t\tString sql = null;\n\t\t\tswitch(op) {\n\t\t\t\tcase 1:\n\t\t\t\t\tsql = \"create table user_tbl(ID INT(5),NAME VARCHAR(12))\" ;\n\t\t\t\t\tpstm = connection.prepareStatement(sql);\n\t\t\t\t\tSystem.out.println(\"Table Created.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tsql = \"select * from user_tbl\";\n\t\t\t\t\tResultSet rs = pstm.executeQuery(sql);\n\t\t\t\t\twhile(rs.next()) {\n\t\t\t\t\t\tSystem.out.println(rs.getInt(1)+\" \"+rs.getString(2));\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tsql = \"insert into user_tbl values(1,'Aditya')\";\n\t\t\t\t\tpstm = connection.prepareStatement(sql);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Enter id:\");\n\t\t\t\t\tint id=Integer.parseInt(input.nextLine());\n\t\t\t\t\tsql = \"delete from user_tbl where id='\"+id+\"'\" ;\n\t\t\t\t\tpstm = connection.prepareStatement(sql);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t\tpstm.execute();\n\t\t}catch(Exception e) {\n\t\t\t\n\t\t}\n\t}", "private void syso() {\nSystem.out();\r\n}", "private static void help(){\n\t\tSystem.out.println(\"\\t\\tAge\\n\\tby Sayan Ghosh\\n\\n\"+\n\t\t\t\t\t\t\t\"Calculates Age of Person from Date of Birth (DD MM YYYY).\\n\"+\n\t\t\t\t\t\t\t\"Shows age in two forms:\\n\"+\n\t\t\t\t\t\t\t\t\"\\tAge in years, months, days\\n\"+\n\t\t\t\t\t\t\t\t\"\\tAge in years (as fraction)\\n\"+\n\t\t\t\t\t\t\t\"Syntax:\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age\\t\\t\\truns program and takes input\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age <dd mm yyyy>\\t\\tdirectly shows result taking dob as parameters\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age --help\\t\\t\\tshows this help\\n\");\n\t}", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }", "public static void printInfo() {\n System.out.println(\n \"This program asks user to enter vertical and horizontal sides\\n\"\n + \"for envelope A and envelope B both respectively.\"\n + \"Then it tells if some of envelope can fit into another.\\n\"\n + \"If user wants to repeat procedure with new envelopes he types y or yes (case insensitive)\\n\"\n + \"after the question \\\"Would you like to try again?\\\"\");\n }", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "private String printHelp()//refactored\n { String result = \"\";\n result += \"\\n\";\n result += \"You are weak if you have to ask me\\n\";\n result += \"Try not to die, while i´am mocking you.\\n\";\n result += \"\\n\";\n result += \"\" + currentRoom.getDescription() + \"\\n\"; //new\n result += \"\\nExits: \" + currentRoom.getExitDescription() + \"\\n\";//new\n result += \"\\nCommand words:\\n\";\n result += ValidAction.getValidCommandWords();\n result += \"\\n\";\n \n return result;\n }", "private static void printUsage()\n {\n StringBuilder usage = new StringBuilder();\n usage.append(String.format(\"semantika %s [OPTIONS...]\\n\", Environment.QUERYANSWER_OP));\n usage.append(\" (to execute query answer)\\n\");\n usage.append(String.format(\" semantika %s [OPTIONS...]\\n\", Environment.MATERIALIZE_OP));\n usage.append(\" (to execute RDB2RDF export)\");\n String header = \"where OPTIONS include:\"; //$NON-NLS-1$\n String footer =\n \"\\nExample:\\n\" + //$NON-NLS-1$\n \" ./semantika queryanswer -c application.cfg.xml -l 100 -sparql 'SELECT ?x WHERE { ?x a :Person }'\\n\" + //$NON-NLS-1$\n \" ./semantika rdb2rdf -c application.cfg.xml -o output.n3 -f N3\"; //$NON-NLS-1$\n mFormatter.setOptionComparator(null);\n mFormatter.printHelp(400, usage.toString(), header, sOptions, footer);\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public void bruteForcePrint() {\n long start = System.currentTimeMillis();\n io.print(\"The given statement is \");\n if (brute.checkEveryCombination(numVariables, statement)) {\n io.println(\"satisfiable.\");\n } else {\n io.println(\"not satisfiable.\");\n }\n io.println(\"The calculation took \" + (System.currentTimeMillis() - start) + \" milliseconds.\\n\");\n }", "private static void ExplainRules() {\n System.out.printf(\"\\n %sWELCOME TO BOMB BLAST%s!!!!!!!!!!!!\\n\\n \", Styling.ANSI_BLUE, Styling.ANSI_RESET);\r\n System.out.printf(\"- Your object is to survive as long as possible, and accumlate the most points.\\n- You accumulate points by not triggering the bomb and therefore surviving the round.\\nWhere is the bomb? Within a random box\\n- All boxes are empty apart from ONE\\n- If you select the bomb ridden box you will receive NO POINTS!\\nAnd the survivors will receive points based on how long it took the group to find the bomb\\n- After a selected amount of rounds whoever has survived the most amount of attempts wins!!\\n\\n\");\r\n AnyKey.pressAnyKeyToContinue();\r\n }", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "public static void main(String[] args) throws SQLException {\n\t\tConnection con = getCon();\r\n\t\tStatement stmt = con.createStatement();\r\n\t\tMap<String, String> maps = new HashMap<String, String>();\r\n\t\tmaps.put(\"word\", \"String\");\r\n\t\tmaps.put(\"user\", \"String\");\r\n\t\tmaps.put(\"tfidf\", \"String\");\r\n//\t\tdropTable(con, \"hivetest324\");\r\n//\t\tSystem.out.println(createTable(con, \"hivetest324\", maps));\r\n\t\tString sql = \"select num from mytest\";\r\n\t\tselectTable(con, sql);\r\n\t\t\r\n//\t\tsql = \"load data local inpath 'E:/work/tfidf' overwrite into table tfidf\";\r\n//\t\tSystem.out.println(loadData(con, sql));\r\n\t\t\r\n//\t\tsql = \"show tables\";\r\n//\t\tResultSet res = stmt.executeQuery(sql);\r\n//\t\twhile(res.next()){\r\n//\t\t\tSystem.out.println(res.getString(1));\r\n//\t\t}\r\n\t}", "private static void dealwithelp() {\r\n\t\tSystem.out.println(\"1 ) myip - to see your ip address.\");\r\n\t\tSystem.out.println(\"2 ) myport - to see your port number.\");\r\n\t\tSystem.out.println(\"3 ) connect <ip> <port> - connect to peer.\");\r\n\t\tSystem.out.println(\"4 ) list Command - list all the connected peer/peers.\");\r\n\t\tSystem.out.println(\"5 ) send <id> - to send message to peer.\");\r\n\t\tSystem.out.println(\"6 ) terminate <id> - terminate the connection\");\r\n\t\tSystem.out.println(\"7 ) exit - exit the program.\");\r\n\t}", "private static void prompt(boolean isTestRun) {\n if (!isTestRun)\n System.out.print(\"> \");\n }", "private void sampleQuery(final SQLManager sqlManager, final HttpServletResponse resp)\n throws IOException {\n try (Connection sql = sqlManager.getConnection()) {\n\n // Execute the query.\n final String query = \"SELECT 'Hello, world'\";\n try (PreparedStatement statement = sql.prepareStatement(query)) {\n \n // Gather results.\n try (ResultSet result = statement.executeQuery()) {\n if (result.next()) {\n resp.getWriter().println(result.getString(1));\n }\n }\n }\n \n } catch (SQLException e) {\n LOG.log(Level.SEVERE, \"SQLException\", e);\n resp.getWriter().println(\"Failed to execute database query.\");\n }\n }", "public void study() {\n\t\tSystem.out.println(\"I'm a good student.\");\n\t}", "private boolean runCommand( String command ) throws SQLException, NoDatabaseConnectionException, InputValidationException{\r\n\t\t\r\n\t\tif(command.length() == 0)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tboolean syntaxProblems = false;\r\n\t\t//String[] input = StringUtils.split(command);\r\n\t\tString[] input;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tinput = parseCommand( command );\r\n\t\t}catch( QuoteSequenceException e){\r\n\t\t\tSystem.out.println( e.getDescription() );\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t// 1 -- Try to execute the desired command\r\n\t\t\r\n\t\tfor( int c = 0; c < consoleCommands.length; c++){\r\n\t\t\t\r\n\t\t\tif( consoleCommands[c].matchesName( input[0] )){\r\n\t\t\t\tSystem.out.println();//Inserts a space before the command to make easier for the user to parse the output\r\n\t\t\t\tCommandResult result = consoleCommands[c].run(input);\r\n\t\t\t\tsyntaxProblems = (result == CommandResult.ERROR);\r\n\t\t\t\t\r\n\t\t\t\tif( result == CommandResult.TERMINATE_CONSOLE )\r\n\t\t\t\t\treturn false;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// 2 -- Show a message if the command was not recognized (execution will not get to this point unless the command failed). \r\n\t\tSystem.out.println(\"Command not recognized\");\r\n\t\tsyntaxProblems = true;\r\n\t\t\r\n\t\t// 3 -- Show the help if the syntax used was incorrect\r\n\t\tif( syntaxProblems ){\r\n\t\t\tdefaultCommand.run(input);\r\n\t\t\t/*System.out.println(\"Type \\\"help\\\" to see the available commands\");\r\n\t\t\t//boolean firstPrinted = false;\r\n\t\t\tVector<String[]> commands = new Vector<String[]>();\r\n\t\t\tcommands.add(new String[]{\"Similar Command\", \"Usage\"});\r\n\t\t\t\r\n\t\t\tfor( int c = 0; c < consoleCommands.length; c++){\r\n\t\t\t\t\r\n\t\t\t\tif( consoleCommands[c].getName().toLowerCase().startsWith( input[0].toLowerCase() ) ){\r\n\t\t\t\t\tcommands.add(new String[]{consoleCommands[c].getName(), consoleCommands[c].description});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( commands.size() > 1 ){\r\n\t\t\t\tString[][] commandsArray = new String[commands.size()][];\r\n\t\t\t\tcommands.toArray(commandsArray);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(ConsoleCommand.getTableFromString(commandsArray, true));\r\n\t\t\t}*/\r\n\t\t}\r\n\t\t\r\n\t\t// 4 -- Return true, noting that the console listener should not shutdown\r\n\t\treturn true;\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t System.out.println(\"Which operation you want to execute \\n 1.Display Data base.\\n 2.Insert into table \\n 3.Update the values \\n 4.Delete values\");\n \t\t Scanner in1=new Scanner(System.in);\n \t\t int a = in1.nextInt(); \n System.out.println(\"You entered integer \"+a);\n switch (a) {\n \t case 1:\n \t\t display();\n \t\t break;\n case 2:\n \t insert();\n \t break;\n case 3:\n \t update();\n \t break;\n case 4:\n \t remove();\n \t break;\n default:\n \t System.out.println(\"you entered wrong keyword...........\");\n \t }\n \n\t}", "public void bad(){\n\t\tSystem.out.println(\"you mom's a beautiful woman\");\r\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private static void echo(String msg) {\n assert msg != null;\n\n System.out.println(msg);\n }", "private static void selectEx() throws SQLException {\n ResultSet rs = stmt.executeQuery(\"SELECT name,score FROM students \\n\" +\n \"WHERE score >50;\");\n\n while (rs.next()) {\n System.out.println(rs.getString(\"name\") + \" \" + rs.getInt(\"score\"));\n }\n rs.close();\n }", "@SuppressWarnings(\"null\")\r\n\tpublic static void main(String[] args) throws SQLException {\r\n\t\tLogger.logMessage(\"------- Program started\");\r\n\t\tSystem.out.println(\"Welcome to the application\");\r\n\t\tSystem.out.println(\"Please, enter your credentials\");\r\n\t\tScanner scanner = new Scanner(System.in);\r\n \r\n\t\tString username = InputHelper.getStringInput(\"Username: \").toLowerCase();\r\n\t\tString password = InputHelper.getStringInput(\"Password: \").toLowerCase();\r\n\t\t\r\n\t\tif (authenticate(username, password)) {\r\n\t\t\tLogger.logMessage(\"user \" + username + \" authenticated succesfully\");\r\n\t\t\tSystem.out.println(\"Welcome \" + username);\r\n\t\t\ttry {\r\n\t\t\t\tConnect.connect(username , password);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tDBUtil.processException(e);\r\n\t\t\t}\r\n\t\t\tString start = null;\r\n\t\t\twhile (start == null) {\r\n\t\t\t\tString askOne = AskRequests.askLevelOne(scanner);\r\n\t\t\t\tswitch(askOne){\r\n\t\t\t\t\tcase \"M\":\r\n\t\t\t\t\t\tif (admin(username, password)) {\r\n\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" managing the Database\");\r\n\t\t\t\t\t\t\tString manage = null;\r\n\t\t\t\t\t\t\twhile (manage == null) {\r\n\t\t\t\t\t\t\t\tString askManage = AskRequests.askLevelManage(scanner);\r\n\t\t\t\t\t\t\t\tswitch(askManage) {\r\n\t\t\t\t\t\t\t\t\tcase \"A\":\r\n\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" managing Answer's Table\");\r\n\t\t\t\t\t\t\t\t\t\tString answer = null;\r\n\t\t\t\t\t\t\t\t\t\twhile (answer == null) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Which operation would you like to perform with the table Answer ?: \");\r\n\t\t\t\t\t\t\t\t\t\t\tString askAnswer = AskRequests.askLevelTwo(scanner);\r\n\t\t\t\t\t\t\t\t\t\t\tswitch (askAnswer) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"C\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Create An Answer\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnotPossible();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"U\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Update An Answer\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAnswerDAO.update(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"D\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Delete an answer\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnotPossible();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"S\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Search an Answer\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint question_id = InputHelper.getIntegerInput(\"Enter the id of the question you want to search for the answer: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAnswerDAO.search(question_id, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"X\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tanswer = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase \"Q\":\r\n\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" managing Question's Table\");\r\n\t\t\t\t\t\t\t\t\t\tString question = null;\r\n\t\t\t\t\t\t\t\t\t\twhile(question == null) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Which operation would you like to perform with the table Question ?: \");\r\n\t\t\t\t\t\t\t\t\t\t\tString askQuestion = AskRequests.askLevelTwo(scanner);\r\n\t\t\t\t\t\t\t\t\t\t\tswitch (askQuestion) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"C\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Create A Question\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint newKey = QuestionDAO.create(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAnswerDAO.create(newKey, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"U\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Update A Question\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tQuestionDAO.update(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"D\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Delete A Question\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint oldKey = QuestionDAO.delete(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tAnswerDAO.delete(oldKey, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"S\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Search A Question\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint question_id = InputHelper.getIntegerInput(\"Enter the id of the question you want to search: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tQuestionDAO.search(question_id, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"X\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tquestion = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"--------Exiting from Question Table Manager\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase \"T\":\r\n\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" managing Topic's Table\");\r\n\t\t\t\t\t\t\t\t\t\tString topic = null;\r\n\t\t\t\t\t\t\t\t\t\twhile (topic == null) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Which operation would you like to perform with the table Question ?: \");\r\n\t\t\t\t\t\t\t\t\t\t\tString askTopic = AskRequests.askLevelTwo(scanner);\r\n\t\t\t\t\t\t\t\t\t\t\tswitch (askTopic) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"C\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Create A Topic\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnotPossible();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"U\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Update A Topic\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter the id of the Question/MCQ Question you want to update: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint key = InputHelper.getIntegerInput(\"Enter the id of the Question/MCQ Question you want to update: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTopicDAO.update(key, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"D\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Delete A Topic\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTopicDAO.delete(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"S\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Search A Topic\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tTopicDAO.search(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"X\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttopic = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"--------Exiting from Topic Table Manager\");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase \"MQ\":\r\n\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" managing MCQQuestion's Table\");\r\n\t\t\t\t\t\t\t\t\t\tString mcqquestion = null;\r\n\t\t\t\t\t\t\t\t\t\twhile (mcqquestion == null) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Which operation would you like to perform with the table MCQQuestion ?: \");\r\n\t\t\t\t\t\t\t\t\t\t\tString askMCQQuestion = AskRequests.askLevelTwo(scanner);\r\n\t\t\t\t\t\t\t\t\t\t\tswitch (askMCQQuestion) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"C\":\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Create A MCQQuestion\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint newKey = MCQQuestionDAO.create(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tString next = \"O\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tList <String> lChoice = new ArrayList <String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tList <Boolean> lValue = new ArrayList <Boolean>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twhile ((lChoice.size() < 4 && lValue.size() > 4) || next.equals(\"O\") ) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (next.equals(\"X\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMCQQuestionDAO.delete(newKey, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString choice = InputHelper.getStringInput(\"Enter a choice: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBoolean value = InputHelper.getBooleanInput(\"Enter a value \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (value.toString() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Wrong values entered\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Can not saves theses values\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlChoice.add(choice);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlValue.add(value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnext = AskRequests.askLevelMCQCreate(scanner);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMCQChoiceDAO.create(newKey, lChoice, lValue, username, password);\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"U\":\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Update A MCQQuestion\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMCQQuestionDAO.update(username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"D\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Delete A MCQQuestion\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint oldKey = InputHelper.getIntegerInput(\"Enter the id of the MCQQuestion you would like to delete :\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMCQQuestionDAO.delete(oldKey, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"S\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Search A MCQQuestion\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint key = InputHelper.getIntegerInput(\"Enter the id of the MCQQuestion you would to search\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMCQQuestionDAO.search(key, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"X\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tmcqquestion = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"--------Exiting from MCQCQuestion Table Manager\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase \"C\" :\r\n\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose managing MCQChoice's table\");\r\n\t\t\t\t\t\t\t\t\t\tString mcqchoice = null;\r\n\t\t\t\t\t\t\t\t\t\twhile (mcqchoice == null) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Which operation would you like to perform with the table topic ?:\");\r\n\t\t\t\t\t\t\t\t\t\t\tString askMCQChoice = AskRequests.askLevelOne(scanner);\r\n\t\t\t\t\t\t\t\t\t\t\tswitch (askMCQChoice) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"C\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Create A MCQChoice\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnotPossible();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"U\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Update A MCQChoice\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint key = InputHelper.getIntegerInput(\"Enter the value of the MCQChoice to update: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMCQChoiceDAO.update(key, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"D\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Delete A MCQChoice\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint oldKey = InputHelper.getIntegerInput(\"Enter the id of the choice to delete: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tResultSet rs = MCQChoiceDAO.search(oldKey, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (MCQChoiceDAO.check(rs, oldKey)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMCQChoiceDAO.delete(oldKey, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Can not delete this choice ; either there is less than 5 choices for the question or the choice is true.\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"S\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" choose Search A MCQChoice\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tint anotherKey = InputHelper.getIntegerInput(\"Enter the id of the question for which you look the choices: \");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tMCQChoiceDAO.search(anotherKey, username, password);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\tcase \"X\" :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tmcqchoice = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"--------Exiting from MCQChoice Table Manager\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcase \"X\":\r\n\t\t\t\t\t\t\t\t\t\tmanage = \"\";\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Exiting\");\r\n\t\t\t\t\t\t\t\t\t\tLogger.logMessage(\"--------Exiting from Database Manager\");\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Not authorized\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"Q\":\r\n\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" performing the quiz\");\r\n\t\t\t\t\t\tSystem.out.println(\"Do you want to read the rules ?: \");\r\n\t\t\t\t\t\tString rule = AskRequests.askBool(scanner);\r\n\t\t\t\t\t\tif (rule.equals(\"Y\")) {\r\n\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" reading the rules\");\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tLogger.logMessage(\"user \" + username + \" not reading the rules\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdouble totalAssociative = 0;\r\n\t\t\t\t\t\tdouble totalOpen = 0;\r\n\t\t\t\t\t\tdouble totalmcq = 0;\r\n\t\t\t\t\t\tboolean quiz = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Would you like to work with topics ?: \");\r\n\t\t\t\t\t\tString work = AskRequests.askBool(scanner);\r\n\t\t\t\t\t\tArrayList <String> topicList = new ArrayList <String>();\r\n\t\t\t\t\t\tswitch (work) {\r\n\t\t\t\t\t\t\tcase \"Y\" :\r\n\t\t\t\t\t\t\t\tString topic = null;\r\n\t\t\t\t\t\t\t\twhile (topic == null) {\r\n\t\t\t\t\t\t\t\t\ttopic = InputHelper.getStringInput(\"Your topic: \");\r\n\t\t\t\t\t\t\t\t\tif (!topic.equals(null) && !topic.equals(\"TOPIC\")) {\r\n\t\t\t\t\t\t\t\t\t\ttopicList.add(topic);\r\n\t\t\t\t\t\t\t\t\t\ttopic = null;\r\n\t\t\t\t\t\t\t\t\t}else if(topic.equals(\"TOPIC\")) {\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\t\ttopic = null;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tArrayList <ArrayList < ArrayList <String> > > openList = new ArrayList <ArrayList < ArrayList <String> > >();\r\n\t\t\t\t\t\t\t\topenList = OpenQuestion.openQuestionWith(topicList, username, password);\r\n\t\t\t\t\t\t\t\tif (!openList.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\ttotalOpen = OpenQuestion.performWith(openList);\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Can't perform a quiz; there is no question found\");\r\n\t\t\t\t\t\t\t\t\tquiz = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tArrayList <ArrayList < ArrayList <ArrayList <String>> > > mcqList = new ArrayList <ArrayList < ArrayList <ArrayList <String>> > >();\r\n\t\t\t\t\t\t\t\tmcqList = MCQQuestion.mcqQuestionWith(topicList, username, password);\r\n\t\t\t\t\t\t\t\tif (!mcqList.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\ttotalmcq = MCQQuestion.performWith(mcqList);\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Can't perform a quiz; there is no question found\");\r\n\t\t\t\t\t\t\t\t\tquiz = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\t\tArrayList <ArrayList <String> > openArr = new ArrayList <ArrayList <String> >();\r\n\t\t\t\t\t\t\t\topenArr = OpenQuestion.openQuestionWithout(username, password, 4);\r\n\t\t\t\t\t\t\t\tif (!openArr.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(openArr);\r\n\t\t\t\t\t\t\t\t\ttotalOpen = OpenQuestion.performWithout(openArr);\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Can't perform a quiz; there is no question found\");\r\n\t\t\t\t\t\t\t\t\tquiz = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tArrayList <ArrayList <ArrayList <String>> > mcqArr = new ArrayList <ArrayList <ArrayList <String>> >();\r\n\t\t\t\t\t\t\t\tmcqArr = MCQQuestion.mcqQuestionWithout(3, username, password);\r\n\t\t\t\t\t\t\t\tif (!mcqArr.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\ttotalmcq = MCQQuestion.performWithout(mcqArr);\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Can't perform a quiz; there is no question found\");\r\n\t\t\t\t\t\t\t\t\tquiz = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (quiz) totalAssociative = (double) AssociativeQuestion.Associative(username, password, 3);\t\t\r\n\t\t\t\t\t\tif (quiz) {\r\n\t\t\t\t\t\t\tdouble total = (totalAssociative + totalOpen + totalmcq) / 3;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Your final grade is: \" + total*100 + \"%.\");\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Quiz aborted.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tcase \"X\":\r\n\t\t\t\t\t\tstart = \"\";\r\n\t\t\t\t\t\tSystem.out.println(\"Exiting\");\r\n\t\t\t\t\t\tLogger.logMessage(\"--------Exiting from the system\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Wrong credentials; not authenticated, exiting\");\r\n\t\t\tLogger.logMessage(\"authentication failure for that user \" + username);\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t\tscanner.close();\r\n\t\tLogger.logMessage(\"-------- End of program\");\r\n\r\n\t}", "public static void showPrompt() {\r\n \r\n System.out.print(\"> \");\r\n \r\n }", "private static void Secondcommentary() {\n\t\tSystem.out.println(\" Ind Scored very Good \");\n\t\t\n\t}", "private static void displayHelp(){\n System.out.println(\"1. (R)eport\");\n System.out.println(\"2. (M)inimum Spanning Tree\");\n System.out.println(\"3. (S)hortest Path from i j\");\n System.out.println(\"4. (D)own i j\");\n System.out.println(\"5. (U)p i j\");\n System.out.println(\"6. (C)hange Weight i j x\");\n System.out.println(\"7. (E)ulerian\");\n System.out.println(\"8. (Q)uit\");\n }", "private void printGoodbye() {\n System.out.println();\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "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 query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"please print\");\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"콘텐츠화면이 출력되었습니다\");\n\t}", "public static void main(String[] args) {\n System.out.print(\"Next statement will print is the same line. \");\r\n System.out.print(\"This is next statement.\");\r\n System.out.println(\"\\nNext statement will print in new line.\");\r\n System.out.println(\"This is Next statement.\");\r\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "@Test\n public void whenClientEntersIllegalCommandThenWarningIsThrownToConsole() throws IOException {\n String cmdPrompt = \"CURRENT FOLDER: C:\\\\projects\\\\vgrigoryev\\\\chapter_010 > \";\n\n this.testClientInput(\n Joiner.on(LN).join(\n \"\",\n \"\",\n \"\",\n \"\"\n ),\n\n String.format(\"%1$s%2$sThe command is illegal%3$s%4$s%5$s\",\n cmdPrompt,\n LN,\n LN,\n cmdPrompt,\n LN),\n Joiner.on(LN).join(\n \"some illegal command\",\n \"EXIT\"\n ),\n NetFileManagerClientTest.CONSOLE_OUTPUT_STUB\n );\n }", "private static void help() {\n System.out.println(USAGE); \n System.exit(0);\n }", "public void TarjanPrint() {\n long start = System.currentTimeMillis();\n io.println(\"The given statement is \");\n if (tarjan.checkSatisfiability()) {\n io.println(\"satisfiable.\");\n } else {\n io.println(\"not satisfiable.\");\n }\n io.println(\"The calculation took \" + (System.currentTimeMillis() - start) + \" milliseconds.\\n\");\n }", "private static void doUsage() {\r\n\t\tSystem.out.println(\"Usage: SpellChecker [-i] <dictionary> <document>\\n\"\r\n\t\t\t\t+ \" -d <dictionary>\\n\" + \" -h\");\r\n\t}", "PrintStatement createPrintStatement();", "private static void printUsage() \r\n\t{\r\n\t\tSystem.err.println(\"Usage: java GeneBankSearch \"\r\n\t\t\t\t+ \"<0/1(no/with Cache)> <btree file> <query file> \"\r\n\t\t\t\t+ \"[<cache size>] [<debug level>]\\n\");\r\n\t\tSystem.exit(1); \r\n\t}", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void main(String[] args) throws SQLException {\n\t\tConnection myConn = getConnection();\n\t\tStatement stmt = myConn.createStatement();\n\t\t//String insertQuery = \"INSERT INTO EmployeeDetails VALUES ('6666','Bruce',24,'SE')\";\n\t\tString insertQuery = \"INSERT INTO EmployeeDetails VALUES(\"+\n\t\t\t\t \"'\"+\"6666\"+\"',\"+\n\t\t\t\t \"'\"+\"BOSS\"+\"',\"+\n\t\t\t\t \t 24+\",\"+\n\t\t\t\t \"'\"+\"SE\"+\"')\";\n\t\t\n\t\tstmt.executeUpdate(insertQuery);\n\n\t\tSystem.out.println(\"Data insersted\");\n\t\t\n\t}", "@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}", "private static void printUsage() {\n\t\tSystem.out.println(errorHeader + \"Incorrect parameters\\nUsage :\"\n\t\t\t\t+ \"\\njava DaemonImpl <server>\\n With server = address of the server\"\n\t\t\t\t+ \" the DaemonImpl is executed on\");\n\t}", "private static void printEmptyMessage() {\r\n\t\tSystem.out.println(\"usage: bfck [-p <filename>] [-i <filename>] [-o <filename>]\\n\"\r\n\t\t\t\t+ \" [--rewrite] [--translate] [--check] [--cgen]\\n\"\r\n\t\t\t\t+ \"BRAINFUCK [M\\u00fcl93] is a programming language created in 1993 by Urban M\\u00fcller,\"\r\n\t\t\t\t+ \" and notable for its extreme minimalism.\\nThis is the BrainFuck interpreter made by the group PolyStirN,\"\r\n\t\t\t\t+ \" composed of Jo\\u00ebl CANCELA VAZ, Pierre RAINERO, Aghiles DZIRI and Tanguy INVERNIZZI.\");\r\n\t}", "public void consoleDisplay() throws SQLException, ClassNotFoundException {\n ConsoleClass obj = new ConsoleClass();\n \n obj.consoleDisplay(this);\n// if(dbStatus == true) {\n// obj.getData(this);\n// }\n \n }", "public static void main(String[] args){\n System.out.println(\" -----------\");\n System.out.println(\" | WELCOME |\");\n System.out.println(\" -----------\");\n System.out.println(\" ^ ^ ^ ^ ^ ^\");\n System.out.println(\" / \\\\/ \\\\/ \\\\/ \\\\/ \\\\/ \\\\\"); //Use double backslashes to only\n System.out.println(\"|-G--J--J--2--1--5-|\"); //print one of them.\n System.out.println(\" \\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\");\n System.out.println(\" v v v v v v\");\n //Print out short autobioographic statement\n System.out.println(\"I've gone hiking in the Austrian Alps and I plan\");\n System.out.println(\"to go back to backpack Europe for a summer\");\n \n }", "public static void printErrorForInvalidCommand(String userInput) {\n System.out.println(\"Aw man! I am unable to \" + userInput + \" yet! Please specify a different function! :D\");\n }", "public static void main(String[] args) throws SQLException {\n\t\tConnection conn= DriverManager.getConnection(\"jdbc:oracle:thin:@coestudb.qu.edu.qa:1521/STUD.qu.edu.qa\",\"scott\",\"tiger123\");\n\t\tPreparedStatement stmt = conn.prepareStatement(\"select empno,ename,sal,hiredate from emp where sal>? and job=?\");\n\t\tstmt.setDouble(1, 2000);\n\t\tstmt.setString(2, \"MANAGER\");\n\t\tResultSet rs = stmt.executeQuery();\n\t\twhile (rs.next()){\n\t\t\tint num = rs.getInt(1);\n\t\t\tString name = rs.getString(2);\n\t\t\tdouble sal = rs.getDouble(3);\n\t\t\tDate hire = rs.getDate(4);\n\t\t\tSystem.out.println(num+\" \"+name+\" \"+sal+\" \"+hire);\n\t\t}\n\t\trs.close();\n\t\tconn.close();\n\t}", "private static void printUsage(){\n\t\tprintLine(USAGE_STRING);\n\t}", "private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");\n }", "public void Okay(String q) {\n\tSystem.out.println(\"q = \" + q);\n }", "@Override\n\tpublic void printtest(String s)\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\tSystem.out.println(\"The Results of this command are:\");\n\t\tif(!s.contentEquals(\"toString\")) System.out.println(toStringCursor());\n\t\telse System.out.println(toString());\n\t}", "private void relax()\n {\n System.out.println(\"You take a few deep breaths and really notice the beauty of the environment around you.\");\n }", "private static void Firstcommentary() {\n\t\tSystem.out.println(\" Sachin Scored highest Score \");\n\t\t\n\t}", "public String Execomando(String Comsql) {\n String Mensaje = \"\";\n /* sino retorna nada es porque todo esta bien */\n try {\n PreparedStatement pstm = con.prepareStatement(Comsql);\n pstm.execute();\n pstm.close();\n } catch (SQLException e) {\n Mensaje = e.toString();\n }\n return Mensaje;\n }", "void println(String message);", "private void printCRUDDoctorOption() {\n\t\tSystem.out.println(\"\\n\\n----Edit DOCTOR----\");\n\t\tSystem.out.println(\"1. Insert a new doctor\");\n\t\tSystem.out.println(\"2. List all doctors\");\n\t\tSystem.out.println(\"3. Update doctor data\");\n\t\tSystem.out.println(\"4. Remove doctor\");\n\t\tSystem.out.println(\"5. Back\");\n\t\tSystem.out.println(\"Enter your choice: \");\n\t}", "@Override\r\n\tpublic void alimentar() {\n\t\tSystem.out.print(\" como carne, yummy, yummy\");\r\n\t}", "public void guessSentence() {\n System.out.println(\"Please guess a letter in the secret word.\");\n }", "private void sysout() {\nSystem.out.println(\"pandiya\");\n}", "private static void promptName() {\n\t\tSystem.out.print(\"Please enter a name: \");\n\t}", "public static void displayEndingMessage() {\n\t\tSystem.out.println(\"Thank you for using my program!\");\n\t}", "public static void facultyText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND' 5.'SCHEDULE' 6.'GRANTS' 7.'MORE' -for more detail about options\");\n\t}", "public void println();", "public String getStatement();", "private void showFacts() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your lose! Try harder and better luck next time.\");\n\t}" ]
[ "0.6901977", "0.666305", "0.63865393", "0.63519436", "0.6313926", "0.62100065", "0.6205876", "0.6202399", "0.6138099", "0.6129885", "0.6103763", "0.6059644", "0.60581505", "0.6049007", "0.60452116", "0.6036215", "0.6007398", "0.5941012", "0.59393036", "0.5914123", "0.5896465", "0.5888916", "0.5887661", "0.58742535", "0.58705866", "0.5851294", "0.58305156", "0.58198893", "0.5818273", "0.58056796", "0.58044404", "0.57732624", "0.5755892", "0.5751018", "0.57482386", "0.5743274", "0.5733802", "0.5731845", "0.56949043", "0.5690308", "0.56881607", "0.5683096", "0.5678819", "0.5673616", "0.5669854", "0.5660543", "0.56542724", "0.5653359", "0.56533283", "0.5651929", "0.56467414", "0.56276965", "0.5618777", "0.5618499", "0.5617892", "0.5607403", "0.5605111", "0.5605006", "0.5600936", "0.5597569", "0.55939853", "0.55823594", "0.5578541", "0.55703604", "0.55691534", "0.55660206", "0.5560177", "0.5556817", "0.55451185", "0.5538824", "0.5526643", "0.5525699", "0.55253273", "0.5520073", "0.5516647", "0.5511469", "0.55071497", "0.55061203", "0.5501841", "0.55007464", "0.54907703", "0.5490446", "0.5487088", "0.5483858", "0.54828703", "0.54800236", "0.5479649", "0.5474934", "0.5474919", "0.547248", "0.54700387", "0.54527164", "0.5450021", "0.5449965", "0.5449863", "0.5445365", "0.54407287", "0.5440548", "0.543857", "0.5438393", "0.54344803" ]
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { customers.setValue("Customer"); setData(); try { getCustomerNames(); } catch (SQLException ex) { Logger.getLogger(NewAppointmentController.class.getName()).log(Level.SEVERE, null, ex); } saveBtn.setOnAction((ActionEvent e) -> { if ("Customer".equalsIgnoreCase(customers.getValue().toString()) || title.getLength() == 0 || description.getLength() == 0 || location.getLength() == 0 || urlText.getLength() == 0 || startHour.getValue().toString() == null || startMin.getValue().toString() == null || endHour.getValue() == null || endMin.getValue() == null || startAMPM.getValue() == null || endAMPM.getValue() == null) { System.out.println("A field isn't filled out"); Alert error = new Alert(Alert.AlertType.WARNING); error.setTitle("Error"); error.setContentText("Make sure all fields are filled out."); error.showAndWait(); return; } else { selectedCustomer = customers.getValue().toString(); String selectedDate = datePicker.getValue().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); String startTime = startHour.getValue().toString() + ":" + startMin.getValue().toString(); String endTime = endHour.getValue().toString() + ":" + endMin.getValue().toString(); LocalTime startTimeParse = LocalTime.parse(startTime + " " + startAMPM.getValue().toString(), DateTimeFormatter.ofPattern("hh:mm a")); LocalTime endTimeParse = LocalTime.parse(endTime + " " + endAMPM.getValue().toString(), DateTimeFormatter.ofPattern("hh:mm a")); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm a"); try { assert !startTimeParse.isBefore(businessOpenTime):"Not valid 1"; assert !startTimeParse.isAfter(businessCloseTime):"Not valid 2"; assert !endTimeParse.isBefore(businessOpenTime):"Not valid 3"; assert !endTimeParse.isAfter(businessCloseTime):"Not valid 4"; appointmentStart = sdf.parse(selectedDate + " " + startTime + " " + startAMPM.getValue().toString()); appointmentEnd = sdf.parse(selectedDate + " " + endTime + " " + endAMPM.getValue().toString()); appointmentStarts = new Timestamp(appointmentStart.getTime()); appointmentEnds = new Timestamp(appointmentEnd.getTime()); if (!checkForOverlappingTimes(appointmentStart, appointmentEnd) || appointmentStarts.after(appointmentEnds)) { Alert error = new Alert(Alert.AlertType.WARNING); error.setTitle("Error"); error.setContentText("The appointment times are either overlapping another appointment or" + "the end time is before start time"); error.showAndWait(); return; } else { try { setAppointment(); } catch (SQLException ex) { Logger.getLogger(NewAppointmentController.class.getName()).log(Level.SEVERE, null, ex); } } } catch (ParseException | SQLException ex) { Logger.getLogger(NewAppointmentController.class.getName()).log(Level.SEVERE, null, ex); } catch (AssertionError d) { String message = d.getMessage(); System.out.println(message); Alert alert = new Alert(Alert.AlertType.INFORMATION); alert.setTitle(null); alert.setHeaderText(null); alert.setContentText("Your appointment times are outside of business hours"); Optional<ButtonType> result = alert.showAndWait(); return; } } Parent window; try { window = FXMLLoader.load(getClass().getResource("CalendarView.fxml")); Stage mainStage; mainStage = Main.parentWindow; mainStage.getScene().setRoot(window); mainStage.sizeToScene(); } catch (IOException ex) { Logger.getLogger(CalendarViewController.class.getName()).log(Level.SEVERE, null, ex); } }); cancelBtn.setOnAction((ActionEvent e) -> { Parent window; try { window = FXMLLoader.load(getClass().getResource("CalendarView.fxml")); Stage mainStage; mainStage = Main.parentWindow; mainStage.getScene().setRoot(window); mainStage.sizeToScene(); } catch (IOException ex) { Logger.getLogger(CalendarViewController.class.getName()).log(Level.SEVERE, null, ex); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
Getting customer Names for the drop down box
public void getCustomerNames() throws SQLException { ResultSet rs; Statement st = dbConnection.dbConnect().createStatement(); String recordQuery = ("Select * from customer"); rs = st.executeQuery(recordQuery); while(rs.next()){ customers.getItems().add(rs.getString("customerName")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JComboBox getCustomerList() {\n\t\t\t\tJComboBox customerSelectBox = new JComboBox();\n\t\t\t\tConnection connection = null;\n\t\t\t\tStatement statement = null;\n\n\t\t\t\ttry {\n\t\t\t\t\tconnection = DriverManager.getConnection(DATABASE_URL, UserName_SQL, Password_SQL);\n\t\t\t\t\tstatement = connection.createStatement();\n\t\t\t\t\tResultSet customerResultSet = statement\n\t\t\t\t\t\t\t.executeQuery(\"select customerId, firstName, lastName from customer;\");\n\t\t\t\t\tResultSetMetaData customerMetaData = customerResultSet.getMetaData();\n\t\t\t\t\tint numberOfColumns = customerMetaData.getColumnCount();\n\t\t\t\t\twhile (customerResultSet.next()) {\n\t\t\t\t\t\tfor (int i = 1; i <= numberOfColumns; i = i + 3) {\n\t\t\t\t\t\t\tcustomerSelectBox.addItem(\"ID (\" + customerResultSet.getObject(i) + \") \"\n\t\t\t\t\t\t\t\t\t+ customerResultSet.getObject(i + 1) + \" \" + customerResultSet.getObject(i + 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t} // end while\n\t\t\t\t} // end try\n\n\t\t\t\tcatch (SQLException sqlException) {\n\t\t\t\t\tsqlException.printStackTrace();\n\t\t\t\t} // end catch\n\n\t\t\t\tfinally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstatement.close();\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t} // end try\n\n\t\t\t\t\tcatch (Exception exception) {\n\t\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\t} // end catch\n\t\t\t\t} // end finally\n\n\t\t\t\treturn customerSelectBox;\n\t\t\t}", "public String getCustomersName()\r\n {\r\n return customersName;\r\n }", "public String getLstCustName() {\n return lstCustName;\n }", "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public void printAllCustomerNames() {\r\n for (Customer customer : customers) {\r\n if (customer != null) {\r\n System.out.format(\"Customer with id[%s] is named %s\\n\", customer.getID(), customer.getName());\r\n }\r\n }\r\n }", "public String getName()\n {\n return customer;\n }", "private void loadCustomerCombo() {\n ArrayList<CustomerDTO> allCustomers;\n try {\n allCustomers = ctrlCustomer.get();\n for (CustomerDTO customer : allCustomers) {\n custIdCombo.addItem(customer.getId());\n }\n } catch (Exception ex) {\n Logger.getLogger(PlaceOrderForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public List<Customer> getCustomerByName() {\n Query query = em.createNamedQuery(\"Customer.findByName\")\r\n .setParameter(\"name\", custName);\r\n // return query result\r\n return query.getResultList();\r\n }", "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 }", "String getName() {\n\t\treturn customer.getName();\n\t}", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn customerName;\n\t}", "public String getCustomer_Name() {\n return customer_Name;\n }", "public String getUsernameFromDropDown(){\n \tString username = new WebDriverWait (DRIVER, 5).until(\n \t\t\tExpectedConditions.presenceOfElementLocated(usernameLocator)).getText();\n \treturn username;\n }", "public String getCustomerName() {\r\n return name.getName();\r\n }", "public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "public List<CustomerServiceDto> selectInfoListByName(Criteria criteria){\n \treturn tbCustomerServiceMapper.selectInfoListByName(criteria);\n }", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }", "public Customer getCustomerByName(String customerName);", "String getCustomerNameById(int customerId);", "static IdNameSelect<INameIdParent> getCountriesSelect() {\r\n\t\treturn new IdNameSelect<INameIdParent>() {\r\n\t\t\t\r\n\t\t\tList<INameIdParent> result = new ArrayList<INameIdParent>();\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected String getSqlString() {\r\n\t\t\t\treturn countrySelect;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tList<INameIdParent> getReuslt() {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected void retrieveResult(ResultSet rs) throws SQLException {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tNameIdParent p = new NameIdParent();\r\n\t\t\t\t\tp.id = rs.getLong(\"id\");\r\n\t\t\t\t\tp.name = rs.getString(\"n\");\r\n\t\t\t\t\tresult.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public String getCustomerName() \n {\n return customerName;\n }", "public String getCustName() {\n\t\treturn custName;\n\t}", "public String getCustName() {\n\t\treturn custName;\n\t}", "public String getCustomerNamePreviewAsString() {\n\n\t\t/* Test and then remove this */\n\t\t// ArrayList<ServiceItem> serviceItemsArray = new\n\t\t// ArrayList<>(this.serviceItems);\n\t\tString customerNames = \"\";\n\n\t\tint count = 0;\n\t\tfor (ServiceItem serviceItem : serviceItems) {\n\n\t\t\tif (count == 0) {\n\t\t\t\tcustomerNames += serviceItem.getServiceDescription();\n\t\t\t}\n\t\t\tif (count == 1) {\n\t\t\t\tcustomerNames += \", \" + serviceItem.getServiceDescription();\n\t\t\t}\n\t\t\tif (count == 2) {\n\t\t\t\tcustomerNames += \" ... plus \" + (Math.abs(serviceItems.size() - 2)) + \" more\";\n\t\t\t}\n\n\t\t\tcount++;\n\t\t}\n\n\t\treturn customerNames;\n\t}", "public List<String> getOptionsNames();", "public String selectName()\n {\n JOptionPane nameSelector = new JOptionPane();\n String name = nameSelector.showInputDialog(\"What is this trainer's name?\");\n return name;\n }", "public String getCustomerName(){\n return customerName;\n }", "public String getCustomerName()\n\t{\n\t\treturn name;\n\t}", "public String getCustomerName()\n {\n return customerName;\n }", "List<String> getAttendingDoctorNames();", "public List<Customer> getCustomerList() {\r\n\t\tList<Object> columnList = null;\r\n\t\tList<Object> valueList = null;\r\n\t\tList<Customer> customers = new ArrayList<Customer>();\r\n\r\n\t\tif (searchValue != null && !searchValue.trim().equals(\"\")) {\r\n\t\t\tcolumnList = new ArrayList<Object>();\r\n\t\t\tvalueList = new ArrayList<Object>();\r\n\t\t\tcolumnList.add(searchColumn);\r\n\t\t\tvalueList.add(searchValue);\r\n\t\t}\r\n\t\tcustomers = customerService.searchCustomer(columnList, valueList,\r\n\t\t\t\tfirst, pageSize);\r\n\t\t\r\n\r\n\t\treturn customers;\r\n\t}", "@Override\n public String getItemSelectionText() {\n String itemString = getFirstNameAndLastName(itemVO);\n if (getUsername(itemVO) != null && !getUsername(itemVO).trim().equals(\"\")) {\n itemString += \" - \" + getUsername(itemVO);\n }\n\n return itemString;\n }", "public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addItem(peopleName);\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}", "List<String> getResponsibleDoctorNames();", "public List<String> getCustomers(String p){\n\t\tif( containsProduct(p)){\n\t\t\tList<String> custlist = new ArrayList<String>();\n\t\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t\tif(hasProduct(list.get(i).getUsername(), p)){\n\t\t\t\t\tcustlist.add(list.get(i).getUsername());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn custlist;\n\t\t}\n\t\treturn null;\n\t}", "public String getRandomCustName() {\n\t\tString generatedCustName = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNameLimit));\n\t\tlog.info(\"generatedCustName: \" + generatedCustName);\n\t\treturn generatedCustName;\n\t}", "private void fillExistingCustomer() {\n idField.setText(String.valueOf(existingCustomer.getCustomerID()));\n nameField.setText(existingCustomer.getCustomerName());\n String[] splitAddress = existingCustomer.getAddress().split(\", \");\n addressField.setText(splitAddress[0]);\n if ( splitAddress.length > 1 ) {\n cityField.setText(splitAddress[1]);\n }\n postalField.setText(existingCustomer.getPostalCode());\n phoneField.setText(existingCustomer.getPhone());\n\n FirstLevelDivision division = getDivisionByID(existingCustomer.getDivisionID());\n divisionComboBox.getSelectionModel().select(division);\n countryComboBox.getSelectionModel().select(getCountryByID(division.getCountryID()));\n }", "public String list(){\n\t\tif(name == null) {\n\t\t\ttry {\n\t\t\t\tlist = customerBO.getAll();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tList<Customer> l = new ArrayList<Customer>();\n\t\t\ttry {\n\t\t\t\tl = customerBO.getAll();\n\t\t\t\tfor(Customer cus: l) {\n\t\t\t\t\tString CustomerName = cus.getFirstName() + \" \" + cus.getLastName();\n\t\t\t\t\tif(CustomerName.compareTo(name) == 0) {\n\t\t\t\t\t\tlist.add(cus);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tint total = list.size();\n\t\t\t\tint div = total / STATIC_ROW_MAX;\n\t\t\t\tif(div * STATIC_ROW_MAX == total) {\n\t\t\t\t\ttotalPage = div;\n\t\t\t\t} else {\n\t\t\t\t\ttotalPage = div + 1;\n\t\t\t\t}\t\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\n\t\treturn \"list\";\n\t}", "public List<String> getListOfClientNames() throws Exception {\n if (isNotAt()) {\n goTo();\n }\n return getTableDataByColumn(clientsTable, 0);\n }", "public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}", "public Set<String> getCoffeeSelection() {\n return coffeeSelection;\n }", "List<Customer> getCustomerList();", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public java.lang.String[] getSelectnames() {\n return selectnames;\n }", "@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}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "public List<Customer> findAutoCompleteCustomers(String key) {\n\t\tTypedQuery<Customer> query = em.createQuery(\n\t\t\t\t\"select distinct c from Customer c \"\n\t\t\t\t\t\t+ \" where upper(concat(c.customerName1,' ', c.customerName2,' ', c.customerName3,' ', c.customerName4)) like :name\",\n\t\t\t\tCustomer.class);\n\t\tquery.setParameter(\"name\", \"%\" + key.toUpperCase() + \"%\");\n\t\tList<Customer> customers = query.setFirstResult(0).setMaxResults(10).getResultList();\n\n\t\treturn customers;\n\t}", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }", "String getCustomerName(String bookingRef);", "@GetMapping(\"/search/results\")\n public String showClientsByNameAndLastName(Model model, @ModelAttribute(CUSTOMER) CustomerDTO customerDTO) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n model.addAttribute(CUSTOMERS, customerService.findByNameAndLastName(customer.getFirstName(), customer.getLastName()));\n return CUSTOMERS_INDEX;\n }", "private void addNamesToAutoComplete(List<String> nameCollection)\n\t{\n\t\tArrayAdapter<String> adapter =\n\t\t\t\tnew ArrayAdapter<>(SignupPersonalActivity.this,\n\t\t\t\t\t\tandroid.R.layout.simple_dropdown_item_1line, nameCollection);\n\n\t\tmNameView.setAdapter(adapter);\n\t}", "private int getSelectedCustomerIndex() {\n\t\tString selection = (String) nameBox.getSelectedItem();\t//retrieves the selected name\n\t\ttempInt = 0;\t\t\t\t\t\t\t\t\t\t\t//resets the tempInt to zero\n\t\tfor (int i = 0; i < pcArray.size(); i++) {\t\t\t\t//loops for every preferred customer in the array\n\t\t\tif (selection.equals(pcArray.get(i).getFName())) {\t\t//if a customer matches the chosen name then..\n\t\t\t\ttempInt = i;\t\t\t\t\t\t\t\t\t\t\t//sets the tempInt to the arrays index\n\t\t\t\ti = pcArray.size();\t\t\t\t\t\t\t\t\t\t//sets the iterator to the last index\n\t\t\t} //end if\n\t\t} //end for loop\n\t\treturn tempInt;\t//return the array index\n\t}", "public String getDropdownValues(String object, String data) {\r\n\t\tAPP_LOGS.debug(\"Clicking on Enter Key\");\r\n\t\ttry {\r\n\t\t\tSelect dropdown = new Select(driver.findElement(By.xpath(object)));\r\n\r\n\t\t\t// Get all options\r\n\t\t\tList<WebElement> paymentmethods = dropdown.getOptions();\r\n\r\n\t\t\t// Get the length\r\n\t\t\tSystem.out.println(\"Available options:\" + paymentmethods.size());\r\n\r\n\t\t\t// Loop to print one by one\r\n\t\t\tfor (int j = 0; j < paymentmethods.size(); j++) {\r\n\t\t\t\tSystem.out.println(paymentmethods.get(j).getText());\r\n\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn Constants.KEYWORD_FAIL + \" - Failed entering\";\r\n\t\t}\r\n\t\treturn Constants.KEYWORD_PASS;\r\n\r\n\t}", "List<GenericTypedGrPostal> getCountryNames();", "public List<ResourceSelection> selectResourceSelection() {\n\n\t\tList<ResourceSelection> customers = new ArrayList<ResourceSelection>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from resource_selection\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tResourceSelection customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new ResourceSelection();\n\n\t\t\t\tcustomer.setRank(resultSet.getString(\"rank\"));\n\t\t\t\tcustomer.setName(resultSet.getString(\"name\"));\n\t\t\t\tcustomer.setContainer_types(resultSet.getString(\"container_types\"));\n\t\t\t\tcustomer.setEnvironment_types(resultSet.getString(\"environment_types\"));\n\t\t\t\tcustomer.setHost_groups(resultSet.getString(\"host_groups\"));\n\t\t\t\tcustomer.setPlacement(resultSet.getString(\"placement\"));\n\t\t\t\tcustomer.setMinimum(resultSet.getString(\"minimum\"));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}", "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}", "Collection<String> getUsernames();", "public String getAccountNameCustom() {\n\t\tSystem.out.println(keypad.SelectAccountNameCustom.getText());\n\t\treturn keypad.SelectAccountNameCustom.getText();\n\t}", "public void llistaCustomerByName(String string) {\n\t\tSystem.out.println(\"\\nCustomers anomenats \" + string + \" :\");\n\t\t\n\t\tObjectSet<Customer> customers = db.query(new Predicate<Customer>() {\n\t\t\tpublic boolean match(Customer customer) {\n\t\t\t\treturn customer.getName().equalsIgnoreCase(string);\n\t\t\t}\n\t\t});\n\t\t\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\t}", "public String getCustomerContactRecordMenuSelection() {\n return customerContactRecordMenuSelection;\n }", "public String getLstCustManagerName() {\n return lstCustManagerName;\n }", "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "String getSelect();", "String getSelect();", "private JComboBox accountSelector()\n\t{\n\t\tJComboBox viewSelectorDropdown = new JComboBox();\n\t\tviewSelectorDropdown.setBackground(ColorScheme.DARKER_GRAY_COLOR.darker());\n\t\tviewSelectorDropdown.setFocusable(false);\n\t\tviewSelectorDropdown.setForeground(ColorScheme.GRAND_EXCHANGE_PRICE);\n\t\tviewSelectorDropdown.setRenderer(new ComboBoxListRenderer());\n\t\tviewSelectorDropdown.setToolTipText(\"Select which of your account's trades list you want to view\");\n\t\tviewSelectorDropdown.addItemListener(event ->\n\t\t{\n\t\t\tif (event.getStateChange() == ItemEvent.SELECTED)\n\t\t\t{\n\t\t\t\tString selectedName = (String) event.getItem();\n\t\t\t\tplugin.changeView(selectedName);\n\t\t\t}\n\t\t});\n\n\t\treturn viewSelectorDropdown;\n\t}", "public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}", "public String getCustomersInElevatorString();", "public void getCharacterPickList() {\n\t\tfor (int i = 0; i < this.characters.size(); i++) {\n\t\t\tSystem.out.println((i) + (\" \") + (this.characters.get(i)));\n\t\t}\n\t}", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}", "@Then(\"^user enters customer details$\")\n\tpublic void user_enters_customer_details(DataTable customer) {\n\t\tfor(Map<String, String> data :customer.asMaps())\n\t\t{\n\t\t\t \tdriver.findElement(By.name(\"name\")).sendKeys(data.get(\"customer\"));\n\t\t\t driver.findElement(By.xpath(\"//input[@type='radio'][@value='m']\")).click();\n\t\t\t driver.findElement(By.xpath(\"//input[@type='date']\")).sendKeys(data.get(\"DOB\"));\n//\t\t\t driver.findElement(By.name(\"addr\")).sendKeys(data.get(\"add\"));\n\t\t\t driver.findElement(By.name(\"city\")).sendKeys(data.get(\"city\"));\n\t\t\t driver.findElement(By.name(\"state\")).sendKeys(data.get(\"state\"));\n\t\t\t driver.findElement(By.name(\"pinno\")).sendKeys(data.get(\"pin\"));\n\t\t\t driver.findElement(By.name(\"telephoneno\")).sendKeys(data.get(\"mobile\"));\n\t\t\t driver.findElement(By.name(\"emailid\")).sendKeys(data.get(\"emailid\"));\n\t\t\t driver.findElement(By.name(\"password\")).sendKeys(data.get(\"password\"));\n\t\t\t \n\t\t}\n\t \n\t \n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DropDownModel> getSeatingPlanName() {\n\n\t\tlogger.info(\"Method in Dao: getSeatingPlanName starts\");\n\n\t\tList<DropDownModel> planNameList = new ArrayList<DropDownModel>();\n\n\t\ttry {\n\t\t\tList<Object[]> x = em.createNamedStoredProcedureQuery(\"AssignmentOfSeatingPlan\")\n\t\t\t\t\t.setParameter(\"actionType\", \"getSeatingPlanNames\").setParameter(\"actionValue\", \"\").getResultList();\n\n\t\t\tfor (Object[] m : x) {\n\t\t\t\tDropDownModel dropDownModel = new DropDownModel(m[0], m[1]);\n\t\t\t\tplanNameList.add(dropDownModel);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tlogger.info(\"Method in Dao: getSeatingPlanName ends\");\n\n\t\treturn planNameList;\n\t}", "public void fillNameBox(){\n for(UserAccount userAccount : userAccounts) {\n nameBox.addItem(userAccount.getEmail());\n }\n }", "public static List<GroupCustomerItems> getGroupCustomer() {\n\n\t\tList<GroupCustomerItems> showCustomerItems = null;\n\n\t\ttry {\n\t\t\tshowCustomerItems = CustomerItemsDAO.showCustomerPurchase();\n\n\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn showCustomerItems;\n\t}", "private List<String> getCombo(boolean isCustomer){\n List<String> isi = new ArrayList<>();\n String[] daftar = new String[datas.size()];\n for (String data : datas) {\n daftar = data.split(\";\");\n if (isCustomer) isi.add(daftar[1]);\n else isi.add(daftar[0]);\n }\n return isi;\n}", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "@Override\n\tpublic List<DropDownBean> getAgentList(String customerId) throws Exception {\n\t\ttry {\n\t\t\treturn cacheConfigDao.getAgentList(customerId);\n\t\t}catch(Exception ex) {\n\t\t\tlogger.error(ex.getMessage(), ex);\n\t\t\tthrow new UserExceptionInvalidData(\"Error Occured while fetching the Agent details from the Server. Please try later\");\n\t\t}\n\t}", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}", "@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}", "public ArrayList<String> spinnerOptions() {\n ArrayList<String> options = new ArrayList<>();\n\n try {\n JSONObject obj = (JSONObject) jsonParser.parse(new FileReader(file.getPath()));\n\n JSONArray listCounty = (JSONArray) obj.get(\"Counties\");\n\n JSONObject county;\n\n for (int i = 0; i < listCounty.size(); i++) {\n county = (JSONObject) listCounty.get(i);\n\n options.add(county.get(\"name\").toString());\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return options;\n }", "private static List<SelectItem> retrieveLookupList(String className, boolean insertBlank) {\r\n\t\tList<SelectItem> lookupList = new ArrayList<SelectItem>();\r\n\r\n\t\t// get ServiceLocator instance\r\n\t\tServiceLocator svcLocator = ServiceLocator.getInstance();\r\n\t\t// get instance of lookup facade from service locator\r\n\t\tLookupFacade lookupFacade = (LookupFacade) svcLocator.getBean(\"lookupFacade\");\r\n\t\t// retrieve result by calling lookupfacade\r\n\t\tLookupFacadeResult lookupResult = lookupFacade.getLookupList(className);\r\n\r\n\t\t// List<SelectItem> lookupList = new ArrayList<SelectItem>();\r\n\r\n\t\tif (insertBlank) {\r\n\t\t\t// insert blank select item first\r\n\t\t\tlookupList.add(new SelectItem(\"\", \"\"));\r\n\t\t}\r\n\r\n\t\t// iterate through result list and create collection of SelectItem\r\n\t\t// components\r\n\t\tfor (ILookupProfile element : lookupResult.getLookupList()) {\r\n\t\t\tlookupList.add(new SelectItem(element.getCode(), element.getDescription()));\r\n\t\t}\r\n\r\n\t\treturn lookupList;\r\n\t}", "@Path(\"/dropdown\")\r\n\t@GET\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\tpublic String getMoviesDropdown() {\r\n\t\tList<Movie> movies = new ArrayList<Movie>() {\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\tString str = \"<select name=\\\"movie_id\\\">\";\r\n\t\t\t\tfor (Movie movie : this) {\r\n\t\t\t\t\tstr += \"<option value=\\\"\" + movie.getId() + \"\\\">\";\r\n\t\t\t\t\tstr += movie.getName();\r\n\t\t\t\t\tstr += \"</option>\";\r\n\t\t\t\t}\r\n\t\t\t\tstr += \"</select>\";\r\n\t\t\t\treturn str;\r\n\t\t\t}\r\n\t\t};\r\n\t\tmovies.addAll(TodoDao.instance.getMovies().values());\r\n\t\treturn \"\" + movies;\r\n\t}", "public void displayNames()\r\n {\r\n // ensure there is at least one Cat in the collection\r\n if (catCollection.size() > 0) {\r\n System.out.println(\"The current guests in \"+businessName);\r\n for (Cat eachCat : catCollection) {\r\n System.out.println(eachCat.getName());\r\n }\r\n }\r\n else {\r\n System.out.println(businessName + \" is empty!\");\r\n }\r\n }", "@RequestMapping(value=\"creditLedgerAccountHead\" , method={RequestMethod.GET})\n\tpublic List<DropDownModel> creditLedgerAccountHead() {\n\t\tlogger.info(\"Method : creditLedgerAccountHead starts\");\n\n\t\tlogger.info(\"Method : creditLedgerAccountHead ends\");\n\t\treturn creditLedgerDao.creditLedgerAccountHead();\n\t}", "public List<ConsultVO> selectByCusNo(int customerNo) {\n\t\treturn sqlSessionTemplate.selectList(\"consult.ConsultDAO.select\", customerNo);\n\t}", "String getCName() {\n return nameTF.getText();\n }", "@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}", "public void llenarComboSeccion() {\t\t\n\t\tString respuesta = negocio.llenarComboSeccion(\"\");\n\t\tSystem.out.println(respuesta);\t\t\n\t}", "public AddCustomer() {\n initComponents();\n loadAllToTable();\n\n tblCustomers.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n\n @Override\n public void valueChanged(ListSelectionEvent e) {\n if (tblCustomers.getSelectedRow() == -1) {\n return;\n }\n\n String cusId = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 0).toString();\n\n String cusName = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 1).toString();\n String contact = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 2).toString();\n String creditLimi = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 3).toString();\n String credidays = tblCustomers.getValueAt(tblCustomers.getSelectedRow(), 4).toString();\n\n txtCustId.setText(cusId);\n txtCustomerN.setText(cusName);\n\n txtContact.setText(contact);\n txtCreditLimit.setText(creditLimi);\n txtCreditDays.setText(credidays);\n\n }\n });\n }", "@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}", "private void buildCountryComboBox() {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(Constants.WILDCARD)\n );\n\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n countries.add(new Country(id, name));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n countryComboBox.setItems(countries);\n\n countryComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(Country item) {\n return item.getCountryName();\n }\n\n @Override\n public Country fromString(String string) {\n return null;\n }\n });\n }", "public void buildConsultantComboBox(){\r\n combo_user.getSelectionModel().selectFirst(); // Select the first element\r\n \r\n // Update each timewindow to show the string representation of the window\r\n Callback<ListView<User>, ListCell<User>> factory = lv -> new ListCell<User>(){\r\n @Override\r\n protected void updateItem(User user, boolean empty) {\r\n super.updateItem(user, empty);\r\n setText(empty ? \"\" : user.getName());\r\n }\r\n };\r\n \r\n combo_user.setCellFactory(factory);\r\n combo_user.setButtonCell(factory.call(null)); \r\n }", "private String createSelectWithNameAndAddress() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"SELECT * FROM client\");\n sb.append(\" WHERE name =?\");\n sb.append(\" AND address =?\");\n\n return sb.toString();\n }", "@Override\r\n\tpublic String[] getClientNames() {\r\n\t\treturn initData.clientNames;\r\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\tif(customers.size() >= 1){\n\t\t\t\tif(custNameCombo.getSelectedIndex() != 0){\n\t\t\t\t\tfor(Customer customer: customers){\n\t\t\t\t\t\tif(customer.getCustName() == custNameCombo.getSelectedItem()){\n\t\t\t\t\t\t\tcustJTextArea.setText(\" Customer Id: \"+customer.getCustId()\n\t\t\t\t\t\t\t\t\t+\"\\n Name: \"+customer.getCustName()\n\t\t\t\t\t\t\t\t\t+\"\\n Address: \"+customer.getCustAddress()\n\t\t\t\t\t\t\t\t\t+\"\\n Email: \"+customer.getCustEmail()\n\t\t\t\t\t\t\t\t\t+\"\\n Phone: \"+customer.getCustTelephone());\n\t\t\t\t\t\t\tcustNameCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Customer\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No Customers Found\");\n\t\t\t}\n\t\t\t}", "public List<Menu> searchCustomers(String theSearchName) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\tQuery theQuery = null;\r\n\r\n\t\t//\r\n\t\t// only search by name if theSearchName is not empty\r\n\t\t//\r\n\t\tif (theSearchName != null && theSearchName.trim().length() > 0) {\r\n\r\n\t\t\t// search for firstName or lastName ... case insensitive\r\n\t\t\ttheQuery = currentSession.createQuery(\r\n\t\t\t\t\t\"from Menu where lower(mname) like :theName or lower(munit) like :theName\", Menu.class);\r\n\t\t\ttheQuery.setParameter(\"theName\", \"%\" + theSearchName.toLowerCase() + \"%\");\r\n\r\n\t\t} else {\r\n\t\t\t// theSearchName is empty ... so just get all customers\r\n\t\t\ttheQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\t\t}\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> theMenu = theQuery.getResultList();\r\n\r\n\t\t// return the results\r\n\t\treturn theMenu;\r\n\r\n\t}", "public synchronized ArrayList<String> getNameofOptionset()\n {\n \t ArrayList<String> optionsetNames =new ArrayList<String>();\n for (OptionSet op: this.getOpset()){\n optionsetNames.add(op.getName());}\n return optionsetNames;\n }" ]
[ "0.6820678", "0.6307752", "0.6107789", "0.6045815", "0.6031175", "0.6017918", "0.6009767", "0.598109", "0.5960177", "0.59302956", "0.58710957", "0.5859727", "0.58395755", "0.5813631", "0.581275", "0.5792289", "0.57585454", "0.57563823", "0.57207775", "0.5706531", "0.5705694", "0.57040554", "0.56803364", "0.5676599", "0.56619877", "0.56619877", "0.56515294", "0.5620679", "0.5615082", "0.5603416", "0.5602826", "0.5580274", "0.55711925", "0.5559607", "0.55593956", "0.5558277", "0.5555475", "0.5553962", "0.55447567", "0.55134755", "0.5512", "0.5511925", "0.54999787", "0.5482815", "0.5478105", "0.5476359", "0.5476359", "0.5474433", "0.5456846", "0.5452282", "0.54290533", "0.54263717", "0.5425151", "0.5417634", "0.5411484", "0.5409088", "0.54080474", "0.5406345", "0.5404482", "0.5403397", "0.5400646", "0.5394157", "0.5394135", "0.5387983", "0.5374306", "0.53722847", "0.53701687", "0.53701687", "0.5369317", "0.5368093", "0.53478175", "0.5337401", "0.5334993", "0.5334537", "0.5327404", "0.5319742", "0.5314452", "0.5314056", "0.5310717", "0.53104526", "0.53099996", "0.530841", "0.530729", "0.5304091", "0.5303135", "0.52984643", "0.52947026", "0.52928954", "0.52901226", "0.529012", "0.52812266", "0.5277212", "0.5274595", "0.52736", "0.5273125", "0.5267374", "0.52662724", "0.52647346", "0.5258071", "0.52510065" ]
0.68775254
0
Setting up appointment into Database
public void setAppointment() throws SQLException { ResultSet rs; Statement st = dbConnection.dbConnect().createStatement(); Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime()); String getCustomerId="SELECT customerId FROM customer WHERE customerName = '" + selectedCustomer + "';"; rs = st.executeQuery(getCustomerId); rs.next(); selectedCustomerId = rs.getInt(1); long startTime = appointmentStart.getTime(); Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime)); appointmentStarts = new Timestamp(startDate.getTime()); long endTime = appointmentEnd.getTime(); Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime)); appointmentEnds = new Timestamp(endDate.getTime()); // Adding to customer table String query="INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('" + selectedCustomerId + "', '" + title.getText() + "', '" + description.getText() + "', '" + location.getText() + "', '" + urlText.getText() + "', '" + appointmentStarts + "', '" + appointmentEnds + "', '" + date + "', '" + LoginPageController.getUser() + "', '" + LoginPageController.getUser() + "')"; st.executeUpdate(query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void create(Appointment a) throws SQLException {\r\n\r\n String statement =\r\n \"INSERT INTO appointments (Appointment_ID, Title, Description, Location, Type, Start, End, Customer_ID, User_ID, Contact_ID) VALUES (\" +\r\n a.getAppointmentId() + \",'\" +\r\n a.getTitle() + \"','\" +\r\n a.getDescription() + \"','\" +\r\n a.getLocation() + \"','\" +\r\n a.getType() + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"','\" +\r\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) + \"',\" +\r\n a.getCustomer().getCustomerId() + \",\" +\r\n a.getUser().getId() + \",\" +\r\n a.getContact().getId() + \");\";\r\n\r\n //System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "public void saveAppointment(Appointment appointment) {\n\t\tappointmentDao.saveAppointment(appointment);\n\t}", "public static void createAppointment(Appointment TemplateAppointment) {\n String sql = \"INSERT INTO appointments Values(NULL, ?, ?,?,?,?,?,Now(),'',Now(),'',?,?,?)\";\n // (Appointment_ID,Title,Description, Type, Phone, Division_ID) VALUES (5, '', 'test', '', 'test','')\" ;\n\n try {\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ps.setString(1, TemplateAppointment.getTitle());\n ps.setString(2, TemplateAppointment.getDescription());\n ps.setString(3, TemplateAppointment.getLocation());\n ps.setString(4, TemplateAppointment.getType());\n LocalDateTime start = LocalDateTime.of(TemplateAppointment.getDate(), TemplateAppointment.getStartTime());\n start = WashTimeZone(start, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n LocalDateTime end = LocalDateTime.of(TemplateAppointment.getDate(), TemplateAppointment.getEndTime());\n end = WashTimeZone(end, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n Timestamp Tstart = Timestamp.valueOf(start);\n Timestamp Tend = Timestamp.valueOf(end);\n ps.setTimestamp(5, Tstart);\n ps.setTimestamp(6, Tend);\n//timezone work needs to happen here\n\n ps.setInt(7, TemplateAppointment.getCustomerid());\n ps.setInt(8, TemplateAppointment.getUserid());\n ps.setInt(9, TemplateAppointment.getContactid());\n\n ps.execute();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void insertAppointment(Appointment app, Account account) {\n String toDateStr = \"\";\n String toTimeStr = \"\";\n\n if (app.getToDate() != null) {\n toDateStr = app.getToDate().toString();\n }\n if (app.getToTime() != null) {\n toTimeStr = app.getToTime().toString();\n }\n\n // save mails to array with Semikolon separated\n String guests = \"\";\n // mails is null as long as no mails gonna get set\n if (app.getMails() != null) {\n //final string to store in db\n //TODO have to read for \"functional operations(Streams)\" in JAVA 8 API for this\n guests = app.getMails().stream().map((mail) -> mail + \";\").reduce(guests, String::concat);\n }\n String q\n = \"INSERT INTO '\" + account.getId() + \"' (\"\n + \"name, \"\n + \"description, \"\n + \"startdate, \"\n + \"starttime, \"\n + \"enddate, \"\n + \"endtime, \"\n + \"guests\"\n + \") VALUES (\"\n + \"'\" + app.getTitle()\n + \"','\" + app.getDescription()\n + \"','\" + app.getFromDate().toString() + \"','\"\n + app.getFromTime().toString() + \"','\"\n + toDateStr + \"','\"\n + toTimeStr + \"','\"\n + guests + \"'\"\n + \") \";\n insert(q);\n }", "public void createAppointment(View v) {\n checkFields();\n\n // grab the info in the fields and turn it into usable stuff\n int mon = parseInt(month.getText().toString());\n int d = Integer.parseInt(day.getText().toString());\n int y = Integer.parseInt(year.getText().toString());\n int h = Integer.parseInt(hour.getText().toString());\n int min = Integer.parseInt(minute.getText().toString());\n String AorP = AMorPM.getText().toString();\n String p = place.getText().toString();\n\n\n // all of the fields have been checked now. Create a new appointment\n //Appointment apt = new Appointment(d, mon, y, h, min, AorP, p);\n Appointment apt = new Appointment();\n apt.setDay(d);\n apt.setMonth(mon);\n apt.setYear(y);\n apt.setHour(h);\n apt.setMinute(min);\n apt.setAmOrPm(AorP);\n apt.setPlace(p);\n apt.setConfirmed(false);\n apt.setTaken(false);\n\n // push it onto the database\n DatabaseReference aptsRef = ref.child(\"appointmentList\");\n aptsRef.push().setValue(apt);\n\n // send out a toast signalling that we've successfully created an appointment\n Toast.makeText(getApplicationContext(), \"Appointment successfully created\", Toast.LENGTH_SHORT).show();\n\n // now send the user back to the main activity -> with their membership number\n Intent intent = new Intent(this, MainActivity.class);\n intent.putExtra(MESSAGE, memberNumber);\n startActivity(intent);\n }", "public int createAppointment(Appointment appointment) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void insertAppointment(AppointmentDto appointment) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(INSERT, (ps)->{\n\t\t\t\tps.setTime(1, appointment.getStartTime());\n\t\t\t\tps.setTime(2, appointment.getEndTime());\n\t\t\t\tps.setDate(3, appointment.getDate());\n\t\t\t\tps.setInt(4, appointment.getPhysicianId());\n\t\t\t\tps.setInt(5, appointment.getUserId());\n\t\t\t\tps.setInt(6, appointment.getProductId());\n\t\t\t\tps.setString(7, appointment.getConfirmationStatus());\n\t\t\t\tps.setString(8, appointment.getZip());\n\t\t\t\tps.setString(9, appointment.getCancellationReason());\n\t\t\t\tps.setString(10, appointment.getAdditionalNotes());\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Appointment addAppointment(Appointment appointment) {\n return appointmentRepository.save(appointment);\n }", "public Appointment() {\n initComponents();\n con=connectionDB.DBconnection();\n update_table();\n \n \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 }", "@Override\n\tpublic boolean addNewAppointment(Appointment appointment) {\n\t\t\t\tboolean status = false;\n\t\t\t\ttry {\n\t\t\t\t\tar.save(appointment);\n\t\t\t\t\tstatus = true;\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tstatus = false;\n\t\t\t\t}\n\t\t\t\treturn status;\n\t}", "public static void updateAppointments(Appointment PlaceholderAppointment) {\n String sql = \"UPDATE appointments SET Title =?, Description=?, Location=?, Type=?, start=?, end=?, Customer_ID=?, User_ID=?, Contact_ID=? WHERE Appointment_ID = ?\";\n\n try {\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ps.setString(1, PlaceholderAppointment.getTitle());\n ps.setString(2, PlaceholderAppointment.getDescription());\n ps.setString(3, PlaceholderAppointment.getLocation());\n ps.setString(4, PlaceholderAppointment.getType());\n LocalDateTime start = LocalDateTime.of(PlaceholderAppointment.getDate(), PlaceholderAppointment.getStartTime());\n start = WashTimeZone(start, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n LocalDateTime end = LocalDateTime.of(PlaceholderAppointment.getDate(), PlaceholderAppointment.getEndTime());\n end = WashTimeZone(end, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n Timestamp Tstart = Timestamp.valueOf(start);\n Timestamp Tend = Timestamp.valueOf(end);\n ps.setTimestamp(5, Tstart);\n ps.setTimestamp(6, Tend);\n//timezone work needs to happen here\n\n ps.setInt(7, PlaceholderAppointment.getCustomerid());\n ps.setInt(8, PlaceholderAppointment.getUserid());\n ps.setInt(9, PlaceholderAppointment.getContactid());\n ps.setInt(10, PlaceholderAppointment.getAppointment_ID());\n ps.execute();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n }", "public Appointment(String appointmentTypeIn, String customerNameIn, String dateIn)\n {\n //id = id + 1;\n appointmentType = appointmentTypeIn;\n customerName = customerNameIn;\n appointmentDate = dateIn;\n appointmentDetails = \"\";\n }", "public void newApointment(Appointment ap){\n\n this.appointments.add(ap);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString date = AppDateField.getText();\n\t\tString Time = AppTimeField.getText();\t\n\t\tString Name = AppPatNameField.getText();\n\t\tString Surname = AppPatSurnameField.getText();\n\t\tint Id = Integer.parseInt(AppPatIdField.getText());\n\t\tString Doctor = AppDocNameField.getText();\n\t\tString Service = (String) SelectTask.getSelectedItem();\n\t\t\n\t\tDBH db = new DBH();\n\t\t\n\t\tString sql = \"INSERT INTO `Narnia_Hospital`.`Appointments` (`Appointment_Date`, `Appointment_Time`, `AppPat_Name`, `AppPat_Surname`, `AppPatId`, `AppDoctor`, `AppService`) VALUES ('\"+date+\"','\"+Time+\"','\"+Name+\"','\"+Surname+\"','\"+Id+\"','\"+Doctor+\"','\"+Service+\"')\"; \n\t\t\n\t\t\n\t\tResultSet rs = null;\n\t\t\n\t\ttry{\n\t\t rs = db.executeCall(sql);\n \t\t\n\t\t while(rs.next()){\n\t\t\t \n\t\t\t Appointment A1 = new Appointment();\n\t\t\t \n\t\t\t A1.setAppDate (date);\n\t\t\t A1.setAppTime(Time);\n\t\t\t A1.setPatientName(Name);\n\t\t\t A1.setPatientSurname(Surname);\n\t\t\t A1.setPatId(Id);\n\t\t\t A1.setDoctorName(Doctor);\n\t\t\t A1.setServiceRequired(Service);\n\t\t\t \n\t\t\t \n\t\t\t \t\n\t\t\t\t }\n\t\t\t \n\t\t \n\t\t \n\t\t \n\t\t}catch (Exception ex){}\n\t\t\n\t\t//Offers the option to create a new one or leave this screen.\n\t\t\n\t\tJOptionPane.showMessageDialog(this, \"Appointment Registered!\");\n\t\t\n\t\t int n = JOptionPane.showConfirmDialog(this,\"Do you want to add another appointment?\", \"Message Selected\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t if (n == 0){ \n\t\t\t this.setVisible(false);\n\t\t\t new NewAppointment();\n\t\t\t\n\t\t} else if (n == 1){\n\t\t\t this.setVisible(false);\n\t\t\t new SecretaryScreen();\n\t\t}\n\t\t\n\t}", "public void saveAppointment(ActionEvent event) throws IOException {\n if(!validateInputFields()){\n return;\n }\n if(!validateTime()){\n return;\n }\n LocalDate date = startLDT.toLocalDate();\n int customer = customerCombo.getSelectionModel().getSelectedItem().getId();\n overlaps = getSameDateAppointments(customer, date);\n if(overlaps.size() > 0){\n boolean noOverlap = validateOverlap(overlaps);\n if (!noOverlap){\n showError(true, \"Selected time for customer overlaps with another appointment. Please select another time.\");\n return;\n }\n }\n // update db\n String titleField = titleText.getText();\n String descriptionField = descriptionText.getText();\n String loc = locationCombo.getSelectionModel().getSelectedItem().toString();\n int contact = contactCombo.getSelectionModel().getSelectedItem().getId();\n String ty = typeCombo.getSelectionModel().getSelectedItem().toString();\n int user = userCombo.getSelectionModel().getSelectedItem().getId();\n Timestamp start = convertZDT(startZDT);\n Timestamp end = convertZDT(endZDT);\n updateAppointment(selectedRow.getId(), titleField, descriptionField, loc, start, end, ty, user, contact, customer);\n backToMain(event);\n }", "public Appointment createAppointment (Appointment appointmentModel) {\n\t\tAppointmentEO appointmentEntity = mapToEntity(appointmentModel);\r\n\t\t\r\n\t\tAppointmentEO responseEntity = appointmentRepo.save(appointmentEntity);\r\n\t\t\r\n\t\tList<AppointmentPOEO> appointmentPOEntityList = new ArrayList<>(); \r\n\t\tfor (AppointmentPO appointmentPO : appointmentModel.getAppointmentPOs()) {\r\n\t\t\tAppointmentPOEO appointmentPOEntity = new AppointmentPOEO();\r\n\t\t\t\r\n\t\t\tappointmentPOEntity.setId(appointmentPO.getId());\r\n\t\t\tappointmentPOEntity.setPoNumber(appointmentPO.getPoNumber());\r\n\t\t\tappointmentPOEntity.setAppointment(responseEntity);\r\n\t\t\t\r\n\t\t\tappointmentPOEntityList.add(appointmentPOEntity);\r\n\t\t}\r\n\t\t\r\n\t\tIterable<AppointmentPOEO> iterable = () -> new Iterator<AppointmentPOEO>() {\r\n\t\t\tprivate int index = 0;\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean hasNext() {\r\n\t\t\t\treturn appointmentPOEntityList.size() > index;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic AppointmentPOEO next() {\r\n\t\t\t\treturn appointmentPOEntityList.get(index++);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tappointmentPORepo.saveAll(iterable);\r\n\t\treturn mapToModel(responseEntity);\r\n\t}", "public Appointment() {\r\n\t\t\t\r\n\t\t}", "public boolean updateAppointment(Appointment app);", "public Appointment() {\n ID = null;\n name = \"\";\n place = \"\";\n doctorID = null;\n date = new GregorianCalendar();\n date.setTime(new Date());\n\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH);\n int day = date.get(Calendar.DAY_OF_YEAR);\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n int second = date.get(Calendar.SECOND);\n int ms = date.get(Calendar.MILLISECOND);\n int id = (year + month + day + hour + minute + second + ms);\n this.setID(id);\n }", "Notification createNewAppointmentNotification(Appointment appointment);", "public void createAppointment(Doctor doctor, Patient patient, Date date, String time)\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n appointments.addAppointment(doctor, patient, date, time);\n }", "@Override\r\n public void update(Appointment a) throws SQLException {\r\n int id = a.getAppointmentId();\r\n String statement =\r\n \"UPDATE appointments SET \" +\r\n \"Title='\" + a.getTitle() +\r\n \"', Description ='\" + a.getDescription() +\r\n \"', Location ='\" + a.getLocation() +\r\n \"', Type='\" + a.getType() +\r\n \"', Start='\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getStartTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', End= '\" + DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\").format(a.getEndTime().withZoneSameInstant(ZoneId.of(\"Etc/UTC\"))) +\r\n \"', Customer_ID =\" + a.getCustomer().getCustomerId() +\r\n \", User_ID=\" + a.getUser().getId() +\r\n \", Contact_ID=\" + a.getContact().getId() +\r\n \" WHERE Appointment_ID =\" + id + \";\";\r\n System.out.println(statement);\r\n conn.prepareStatement(statement).executeUpdate();\r\n }", "@Test\r\n\tvoid testAppointmentServiceClassAddAppointment() {\r\n\t\tAppointmentService appointmentService = new AppointmentService();\r\n\t\tAppointment appointment = new Appointment(\"23456\", new Date(), \"This is a description\");\r\n\t\tappointmentService.addAppointment(appointment);\r\n\t\tassertTrue(appointmentService.getAppointments().containsValue(appointment));\r\n\t}", "@PostMapping(\"/appointments\")\n @ResponseStatus(HttpStatus.CREATED)\n Appointment createAppointment(@Valid @RequestBody Appointment newApp) {\n\n Appointment appointment = modelMapper.map(newApp, Appointment.class);\n appointment = appointmentService.saveAppointment(appointment);\n\n return appointment;\n }", "public Appointment()\r\n {\r\n // cView = new CalendarEventView(\"appointmentView\");\r\n }", "@Test\n\tpublic void test02() throws Throwable {\n\t\tint startHour=-15;\n\t\tint startMinute=30;\n\t\tint startDay=11;\n\t\tint startMonth=4;\n\t\tint startYear=2017;\n\t\tString title=\"Birthday Party\";\n\t\tString description=\"This is my birthday party.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt1 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t// create another appointment\n\t\tstartHour=14;\n\t\tstartMinute=30;\n\t\tstartDay=11;\n\t\tstartMonth=4;\n\t\tstartYear=2017;\n\t\ttitle=\"Class\";\n\t\tdescription=\"Rescheduled class.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt2 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t// create another appointment\n\t\tstartHour=13;\n\t\tstartMinute=30;\n\t\tstartDay=11;\n\t\tstartMonth=4;\n\t\tstartYear=2017;\n\t\ttitle=\"Meeting Today\";\n\t\tdescription=\"Meeting with the students.\";\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt appt3 = new Appt(startHour,\n\t\t\t\tstartMinute ,\n\t\t\t\tstartDay ,\n\t\t\t\tstartMonth ,\n\t\t\t\tstartYear ,\n\t\t\t\ttitle,\n\t\t\t\tdescription);\n\t\t//Create CalDay objects\n\t\tCalDay today = new CalDay (new GregorianCalendar(2017,4,11));\n\t\t//Set the calender appointments\n\t\ttoday.addAppt(appt1);\n\t\ttoday.addAppt(appt2);\n\t\ttoday.addAppt(appt3);\n\t\t//Assertions\n\t\tassertTrue(today.isValid());\n\t\tassertEquals(11, today.getDay());\n\t\tassertEquals(4, today.getMonth());\n\t\tassertEquals(2017, today.getYear());\n\t\tassertEquals(2, today.getSizeAppts());\n\t\tassertEquals(\"\\t --- 4/11/2017 --- \\n\" +\n\t\t\t\t\" --- -------- Appointments ------------ --- \\n\" +\n\t\t\t\t\"\\t4/11/2017 at 1:30pm ,Meeting Today, Meeting with the students.\\n\" +\n\t\t\t\t\" \\t4/11/2017 at 2:30pm ,Class, Rescheduled class.\\n\" +\n\t\t\t\t\" \\n\", today.toString());\n\t}", "public HMS_Appointments() {\n initComponents();\n FillDoctorName();\n appointment_table();\n }", "public Appointment(int appointmentId, int customerId, int userId, String title, String description, String location, String contact, String apptType, String url, LocalDateTime startDate,\r\n LocalDateTime endDate) {\r\n this.appointmentId = new SimpleIntegerProperty(appointmentId);\r\n this.customerId = new SimpleIntegerProperty(customerId);\r\n this.userId = new SimpleIntegerProperty(userId);\r\n this.title = new SimpleStringProperty(title);\r\n this.apptType = new SimpleStringProperty(apptType);\r\n this.location = new SimpleStringProperty(location);\r\n this.contact = new SimpleStringProperty(contact);\r\n this.url = new SimpleStringProperty(url);\r\n this.startLocalDateTime = startDate;\r\n this.endLocalDateTime = endDate;\r\n this.description = new SimpleStringProperty(description);\r\n }", "private void executeBookingTransaction(BankClient clientLoggedIn) throws ParseException {\n\t\t\n\t\tAppointment object = new Appointment(new SimpleDateFormat(\"dd/MM/yyyy\").parse(dateOfAppointment), employee, clientLoggedIn, false);\n\t\t\n\t\tSystem.out.println(\"Employee has been sent a notification. They will get back to you to confirm if appointment can be scheduled\");\n\t\t\n\t\t//employee.appointments.add(object);\n\t\ttry {\n\t\t\temployee.notify(object);\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.out.print(\"\");\n\t\t}\n\t\t\n\t\t\n\t}", "public EditAppointment() {\r\n\t\tsuper();\r\n\t}", "private void SaveAppoint(View view)\n {\n String userIdStr = getSharedPreferences(\"prefs\",0).getString(\"Id_User\", \"\");\n if(userIdStr.equals(\"\"))\n {\n Intent i = new Intent(this, LoginActivity.class);\n startActivity(i);\n finish();\n return;\n }\n\n dbAdapter = new DbAdapter(this);\n\n //covert unix-datetime (in seconds) to string\n Date appointTime = new Date(dateTimeUnix * 1000L);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEE, d MMM yyyy hh:mm aaa\");\n AppointmentTime = sdf.format(appointTime);\n\n //bind model\n bModel = new Booking();\n userIdStr = getSharedPreferences(\"prefs\", 0).getString(\"Id_User\", \"1\");\n int userIdInt = Integer.parseInt(userIdStr);\n bModel.setId_User(userIdStr);\n bModel.setAppointmentTime(this.AppointmentTime);\n bModel.setClinic(txtV.getText().toString());\n bModel.setCreationTime(sdf.format( Calendar.getInstance().getTime() ));\n if(spinDrList.getSelectedItemPosition() == 0)\n {\n Snackbar.make(view, \"Select a doctor\", Snackbar.LENGTH_LONG).show();\n return;\n }\n bModel.setDoctor(VariablesGlobal.DrProfiles.get(spinDrList.getSelectedItemPosition() -1).name);\n bModel.setDRAVAILABLE(\"1\");\n bModel.setId_Doc((VariablesGlobal.DrProfiles.get(spinDrList.getSelectedItemPosition() - 1)).id_doc);\n\n //make json from model\n formData = gson.toJson(bModel);\n\n //chk if u r coming from List of appoints or from Map\n if (app == null) //i.e. Coming from Map, hence a non-existing booking, so create a new one\n {\n\n paramsApiUri[0] = VariablesGlobal.API_URI + \"/api/values/newAppointment\";\n paramsApiUri[1] = formData;\n paramsApiUri[2] = \"POST\";\n }\n else\n {\n int appointId = getSharedPreferences(\"prefs\", 0).getInt(\"Id_Appointment\", 0);\n paramsApiUri[0] = VariablesGlobal.API_URI + \"/api/values/UpdateAppoint/\" + appointId;\n paramsApiUri[1] = formData;\n paramsApiUri[2] = \"POST\";\n }\n\n //pass args to AsyncTask to read db\n dbAdapter.execute(paramsApiUri);\n if(Bookings_AllActivity.instance != null)\n {\n Bookings_AllActivity.instance.finish();\n }\n }", "@Test\n\t public void test01() throws Throwable {\n\t\tint startHour=21;\n\t\tint startMinute=30;\n\t\tint startDay=1;\n\t\tint startMonth=2;\n\t\tint startYear=2018;\n\t\tString title=\"Test 2a\";\n\t\tString description=\"This is test 1a.\";\n\t\t //Construct a new Appointment object with the initial data\t \n\t\tAppt appt1 = new Appt(startHour,\n\t\t startMinute ,\n\t\t startDay ,\n\t\t startMonth ,\n\t\t startYear ,\n\t\t title,\n\t\t description);\n\t\t\t\t \n\t\tstartHour=8;\n\t\tstartMinute=15;\n\t\tstartDay=1;\n\t\tstartMonth=2;\n\t\tstartYear=2018;\n\t\ttitle=\"Test 2b\";\n\t\tdescription=\"This is test 1b.\";\n\t\t //Construct a new Appointment object with the initial data\t \n\t\tAppt appt2 = new Appt(startHour,\n\t\t startMinute ,\n\t\t startDay ,\n\t\t startMonth ,\n\t\t startYear ,\n\t\t title,\n\t\t description);\n\t\t\t\t \n\t// assertions\n\t\tassertTrue(appt1.getValid());\n\t\tassertTrue(appt2.getValid());\n\t\t \n\t\tLinkedList<Appt> appts = new LinkedList<Appt>();\n\t\tappts.add(appt1);\n\t\tappts.add(appt2);\n\t\t \n\t\tCalendar rightnow = Calendar.getInstance();\n \tint thisMonth = rightnow.get(Calendar.MONTH)+1;\n\t\tint thisYear = rightnow.get(Calendar.YEAR);\n\t\tint thisDay = rightnow.get(Calendar.DAY_OF_MONTH);\n\t\tGregorianCalendar today = new GregorianCalendar(thisYear,thisMonth,thisDay);\n\t\tGregorianCalendar tomorrow = (GregorianCalendar)today.clone();\n\t\ttomorrow.add(Calendar.DAY_OF_MONTH,1);\n\t\t//Construct new CalDay object\n\t\tCalDay day = new CalDay(today);\n\t\tday.addAppt(appt1);\n\t\tday.addAppt(appt2);\n\t\tTimeTable timeTable = new TimeTable();\n\t//assertions\n\t\tassertTrue(day.isValid());\n\t\tassertEquals(2, day.getSizeAppts()); //check for two appts added\n\t\tassertEquals(1, timeTable.getApptRange(appts, today, tomorrow).size()); //should return the CalDay between the two dates\n\t }", "public Appointment(int appointmentId, int customerId, int userId, String title, String apptType, String location, String contact, String url, Timestamp startTimeStamp,\r\n Timestamp endTimeStamp, String description) {\r\n this.appointmentId = new SimpleIntegerProperty(appointmentId);\r\n this.customerId = new SimpleIntegerProperty(customerId);\r\n this.userId = new SimpleIntegerProperty(userId);\r\n this.title = new SimpleStringProperty(title);\r\n this.apptType = new SimpleStringProperty(apptType);\r\n this.location = new SimpleStringProperty(location);\r\n this.contact = new SimpleStringProperty(contact);\r\n this.url = new SimpleStringProperty(url);\r\n this.startTimeStamp = startTimeStamp;\r\n this.endTimeStamp = endTimeStamp;\r\n this.description = new SimpleStringProperty(description);\r\n }", "@Test\n\tpublic void test07() throws Throwable {\n\t\tAppt appt = new Appt( 1, 1, 1, 1, 1, null, null);\n\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt apptS = new Appt( 1,1,1,1,1, \" \", \" \");\n\n\t\tGregorianCalendar cal = new GregorianCalendar();\n\t\tcal.set(2000, 3, 10, 10, 10 , 15);\n\n\t\tCalDay calDay = new CalDay(cal);\n\t\tcalDay.addAppt(appt);\n\t\tcalDay.addAppt(apptS);\n\n\t\tGregorianCalendar gCal = new GregorianCalendar();\n\t\tgCal.set(2000, 3, 11, 11, 11, 11);\n\n\t\tGregorianCalendar goCal = new GregorianCalendar();\n\t\tgCal.set(2020, 5, 15, 15, 15, 15);\n\n\t\tTimeTable timeTable = new TimeTable();\n\t\tassertNotEquals(null, timeTable.getApptRange(calDay.getAppts(), cal, gCal));\n\t\tassertNotEquals(null, timeTable.getApptRange(calDay.getAppts(), cal, goCal));\n\t\tassertNotEquals(null, timeTable.deleteAppt(calDay.getAppts(), appt));\n\n\t\t//Construct a new Appointment object with the initial data\n\t\tAppt apptY = new Appt(150, 150, 150, 150, 150, \"a\", \"a\");\n\n\n\t\tassertEquals(null, timeTable.deleteAppt( calDay.getAppts(), apptY ) );\n\t\tcalDay.addAppt(apptY);\n\n\t\tassertNotEquals(null, timeTable.getApptRange(calDay.getAppts(), cal, gCal));\n\t\tassertEquals(null, timeTable.deleteAppt(null, null ) );\n\t\tassertEquals(null, timeTable.deleteAppt(calDay.getAppts(), null ) );\n\n\t\tapptY = new Appt( -1, -1, -1, -1, -1, \"lol\", \"not today\");\n\n\t\tassertEquals(null, timeTable.deleteAppt( calDay.getAppts(), apptY ) );\n\t\tcalDay.addAppt(apptY);\n\t}", "private Appointment setUserInputDataToAppointment(Appointment appointment) {\n\t\t\n\t\tappointment.setReceptionist(Authentication.getLoggedInEmployee());\n\t\tappointment.setPatient(PatientController.getPatientById(\n\t\t\t\tInteger.parseInt(patientIdTxtBox.getText().toString())));\n\t\t//build Date String with format \"yyyy-MM-dd HH:mm:ss\"\n\t\tappointment.setAppointmentTime(DateTimeHelper.getDateFromString(\n\t\t\t\tDateTimeHelper.getDisplayDateFromDate(appointmentDate.getDate()) +\n\t\t\t\t\" \" + appmntRecptTimeCbox.getSelectedItem() + \":00\"\n\t\t\t\t));\n\t\t\n\t\treturn appointment;\n\t}", "public void updateAppoint(Appointment appointment) {\n\t\tappointmentDao.updateAppoin(appointment);\n\t}", "public final void addAppointment(Appointment appointment) {\n appointments.add(appointment);\n }", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic void updateAppointment(Time startTime, Time endTime, Date date, String status, String additionalNotes,int appointmentId) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(UPDATE_APPOINTMENT, (ps)->{\n\t\t\t\tps.setTime(1, startTime);\n\t\t\t\tps.setTime(2, endTime);\n\t\t\t\tps.setDate(3, date);\n\t\t\t\tps.setString(4, status);\n\t\t\t\tps.setString(5, additionalNotes);\n\t\t\t\tps.setInt(6, appointmentId);\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setIdAppointment(int idAppointment) {\n\t\tthis.idAppointment = idAppointment;\n\t}", "public interface AppointmentDao {\n\n // Создает новую запись и соответствующий ей приём\n void addAppointment(long id);\n\n // Возвращает приём соответствующий записи с первичным ключом id или null\n Appointment getAppointment(long id);\n\n // Возвращает список приёмов соответствующих всем записям в базе данных\n List<Appointment> getAllAppointments();\n\n // Сохраняет состояние приёма в базе данных\n void setAppointment(long id);\n\n // Удаляет запись о приёме из базы данных\n void deleteAppointment(long id);\n}", "public void appointmentPost(String patientId, String owner, String notes, String date,\n String appointmentType, String endTime, String startTime){\n Callback<Enrollment> callback = new Callback<Enrollment>() {\n @Override\n public void success(Enrollment serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEnrollmentServerEvent(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.postAppointments(patientId, owner, notes, date, appointmentType,\n endTime, startTime, callback);\n }", "public AppointmentTM() {\n }", "public boolean setGuestData(int accountpin, String firstname,\n String midname, String lastname, String bmonth,String bday, String byear, \n String mobileNumber, String email, String roomPref) throws IOException, SQLException{\n \n //SQL command statement\n String sqlstmt = \"INSERT INTO \\\"APP\\\".\\\"GUEST\\\" \"\n + \"values(\"+ accountpin +\",'\"+ firstname +\"','\"+midname+\"','\"+lastname+\"','\"\n + bmonth + \"','\"+mobileNumber+\"','\"+email+\"','none')\";\n \n cs = con.prepareCall(sqlstmt); \n cs.execute(); //execute the sql command \n \n return true;\n }", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "@FXML\n void onActAddAppt(ActionEvent event) throws SQLException, IOException {\n\n try {\n\n\n int startMinute = Integer.parseInt(startMin.getText());\n int startHour = Integer.parseInt(startHr.getText());\n int startSecond = Integer.parseInt(startSec.getText());\n int endHour = Integer.parseInt(endHr.getText());\n int endMinute = Integer.parseInt(endMin.getText());\n int endSecond = Integer.parseInt(endSec.getText());\n\n if (startMinute > 59 || startHour > 23 || startSecond > 59 || startMinute < 0 || startHour < 0 || startSecond < 0) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Invalid Time Entries\");\n alert.setContentText(\"Please make sure your time inputs are valid and based on a 24 hour clock.\");\n alert.showAndWait();\n } else {\n\n int id = idCount * 40 * Math.toIntExact(Math.round((Math.random() * 1000)));\n idCount++;\n String title = apptTitleTxt.getText();\n String description = apptDescTxt.getText();\n String location = apptLocationTxt.getText();\n String type = apptTypeTxt.getText();\n\n\n //Local Appt Time\n ZoneId zoneIdLocal = ZoneId.systemDefault();\n LocalTime startTime = LocalTime.of(startHour, startMinute, startSecond);\n LocalTime endTime = LocalTime.of(endHour, endMinute, endSecond);\n\n\n // Local Appt day\n LocalDate startDay = LocalDate.of(startDate.getValue().getYear(), startDate.getValue().getMonthValue(), startDate.getValue().getDayOfMonth());\n\n //Appt in LocalDateTime object\n LocalDateTime start1 = LocalDateTime.of(startDay, startTime);\n LocalDateTime end1 = LocalDateTime.of(startDay, endTime);\n\n if (start1.isAfter(end1) || start1.equals(end1)) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Invalid Time Entries\");\n alert.setContentText(\"Please make sure your start time is before your end time.\");\n alert.showAndWait();\n } else {\n\n\n //Business hours in LocalDateTime object\n ZoneId estZoneId = ZoneId.of(\"America/New_York\");\n LocalDateTime estBStart = LocalDateTime.of(startDay, LocalTime.of(8, 0)); //Business hours in EST\n LocalDateTime estBEnd = LocalDateTime.of(startDay, LocalTime.of(22, 0)); //Business hours in EST\n\n\n ZonedDateTime bStartZDT = estBStart.atZone(estZoneId); //Business hours start converted to Zoned Date Time object\n ZonedDateTime lStartZDT = ZonedDateTime.of(startDay, startTime, zoneIdLocal);\n\n ZonedDateTime bEndZDT = estBEnd.atZone(estZoneId);\n ZonedDateTime lEndZDT = ZonedDateTime.of(startDay, endTime, zoneIdLocal);\n\n Timestamp start = Timestamp.valueOf(start1);\n Timestamp end = Timestamp.valueOf(end1);\n\n if (lStartZDT.isBefore(bStartZDT) || lStartZDT.isAfter(bEndZDT) || lEndZDT.isAfter(bEndZDT) || lEndZDT.isBefore(bStartZDT)) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"Please place your time within the business hours of 8am-10pm EST.\");\n alert.showAndWait();\n } else {\n\n ObservableList<Appointment> filteredAppointments = allAppointments.filtered(a -> {\n if (a.getStart().isBefore(start1) && a.getEnd().isAfter(end1) || a.getStart().isAfter(start1) && a.getStart().isBefore(end1) || end1.isAfter(a.getStart()) && end1.isBefore(a.getEnd()) || a.getStart().equals(start1) || a.getStart().equals(end1) || a.getEnd().equals(start1) || a.getEnd().equals(end1)) {\n System.out.println(\"Got one!\");\n return true;\n }\n System.out.println(a.getStart());\n return false;\n\n });\n\n if (!filteredAppointments.isEmpty()) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"This time is taken. Please choose another.\");\n alert.showAndWait();\n } else {\n System.out.println(lStartZDT);\n System.out.println(lEndZDT);\n System.out.println(bStartZDT);\n System.out.println(bEndZDT);\n\n int customerId = Integer.parseInt(apptCustIdTxt.getText());\n int userId = Integer.parseInt(apptUserIdTxt.getText());\n\n if (contactList.getSelectionModel().isEmpty()) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select a contact.\");\n alert.showAndWait();\n\n } else {\n Contact contact = contactList.getSelectionModel().getSelectedItem();\n\n String sqlStatement = \"INSERT INTO appointments VALUES(?,?,?,?,?,?,?,NOW(), 'script',NOW(), 'script',?,?,?);\";\n PreparedStatement pSqlStatement = DBConnection.startConnection().prepareStatement(sqlStatement, Statement.RETURN_GENERATED_KEYS);\n\n pSqlStatement.setInt(1, id);\n pSqlStatement.setString(2, title);\n pSqlStatement.setString(3, description);\n pSqlStatement.setString(4, location);\n pSqlStatement.setString(5, type);\n pSqlStatement.setTimestamp(6, start);\n pSqlStatement.setTimestamp(7, end);\n pSqlStatement.setInt(8, customerId);\n pSqlStatement.setInt(9, userId);\n pSqlStatement.setInt(10, contact.getId());\n\n pSqlStatement.execute();\n\n Appointment newAppt = new Appointment(id, title, description, location, type, start.toLocalDateTime(), end.toLocalDateTime(), customerId, userId, contact);\n allAppointments.add(newAppt);\n DBConnection.closeConnection();\n sceneManage(\"/View/Dashboard.fxml\", event);\n }\n }\n }\n }\n }\n } catch (NumberFormatException ex) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(ex.getMessage());\n alert.showAndWait();\n }\n }", "public Appointment() {\n this(DSL.name(\"appointment\"), null);\n }", "void AddMeeting (Meeting m) throws Exception;", "@Override\n public void handleSaveAppointment() {\n if (wrapperDataMakeAppoint.isUpdateProfile()) {\n wrapperDataMakeAppoint.setAddNewCar(false);\n }\n String encode = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create().toJson(wrapperDataMakeAppoint);\n RESTManager.getInstance().makeAppointment(encode, new IRequestListener<PostAppointmentResponse>() {\n @Override\n public void onCompleted(PostAppointmentResponse data) {\n super.onCompleted(data);\n if (data != null && data.isSuccess()) {\n EventBusUtils.postEvent(data);\n getView().showSuccessMakeAppointment();\n if (wrapperDataMakeAppoint.isUpdateProfile()) {\n LocalDataManager.getInstance(getContext()).updateProfile(wrapperDataMakeAppoint.getCustomerName(), wrapperDataMakeAppoint.getCustomerEmail());\n }\n if (wrapperDataMakeAppoint.isAddNewCar()) {\n LocalDataManager.getInstance(getContext()).updateCar(wrapperDataMakeAppoint.getCarId(), wrapperDataMakeAppoint.getCarName(), wrapperDataMakeAppoint.getLicensePlates());\n }\n }\n }\n });\n }", "public Appointment(int id, Calendar calendar, String startDateTime, String endDateTime, String description, String location, Alarm alarm, User owner) { // TODO temp\n\t\tsuper(id, calendar, startDateTime, endDateTime, description, location, alarm);\n\t\tthis.owner = owner;\n\t}", "@Override\n\t \t\tprotected Void doInBackground(Void... params) {\n \t\t\t\tParseObject appointment = new ParseObject(Constants.APPIONT);\n \t\t\t\tappointment.put(Constants.PARENTID, currentUser.getUsername());\n \t\t\t\tappointment.put(Constants.TEACHER_FIRSTNAME,tFirstname);\n \t\t\t\tappointment.put(Constants.TEACHER_LASTNAME, tLastname);\n \t\t\t\tappointment.put(Constants.PARENT_FIRSTNAME, currentUser.getString(Constants.FIRSTNAME));\n \t\t\t\tappointment.put(Constants.PARENT_LASTNAME, currentUser.getString(Constants.LASTNAME));\n \t\t\t\tLog.d(\"Debug\", \"name= \" + currentUser.getString(Constants.FIRSTNAME)+currentUser.getString(Constants.LASTNAME));\n \t\t\t\tappointment.put(Constants.TIME, confirmedTime.getTime());\n \t\t\t\tappointment.put(Constants.SLOTID, confirmedTime.getSlot());\n \t\t\t\tappointment.put(Constants.TEACHERID, teacherUsername);\n \t\t\t\t\n \t\t\t\tappointment.saveInBackground();\n\t \t\t\treturn null;\n\t \t\t}", "@Override\n\tpublic void takeAppointment() {\n\t\tsearchByMobile();\n\t\tif (count == 0) {\n\t\t\tnew ManagerServiceImplementation().addPatient();\n\t\t}\n\t\tnew DoctorServiceImplementation().showDoctorDetails();\n\t\tSystem.out.println(\"Enter doctor's ID:\");\n\t\tString dID = UtilityClinic.readString();\n\t\tfor (int i = 0; i < UtilityClinic.docJson.size(); i++) {\n\t\t\tJSONObject obj = (JSONObject) UtilityClinic.docJson.get(i);\n\t\t\tif (obj.get(\"Doctor's ID\").toString().equals(dID)) {\n\t\t\t\tif (UtilityClinic.docWisePatCounter.isEmpty()) {\n\t\t\t\t\tfor (int j = 0; j < UtilityClinic.docJson.size(); j++) {\n\t\t\t\t\t\tUtilityClinic.docWisePatCounter.add(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (UtilityClinic.docWisePatCounter.get(i) < 5) {\n\t\t\t\t\tnew Appointment(obj.get(\"Doctor's name\").toString(), dID, pName, pId,\n\t\t\t\t\t\t\tobj.get(\"Availibility time\").toString());\n\t\t\t\t\tUtilityClinic.docWisePatCounter.add(i, UtilityClinic.docWisePatCounter.get(i) + 1);\n\n\t\t\t\t\tif (UtilityClinic.appFile == null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tutil.accessExistingAppJson();\n\t\t\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t\t\tutil.createAppJson();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tutil.readFromAppJson(util.appFile);\n\t\t\t\t\tJSONObject appObject = new JSONObject();\n\t\t\t\t\tAppointment app = new Appointment(obj.get(\"Doctor's name\").toString(), dID, pName, pId,\n\t\t\t\t\t\t\tobj.get(\"Availibility time\").toString());\n\t\t\t\t\tappObject.put(\"Patient's name\", app.getPatientName());\n\t\t\t\t\tappObject.put(\"Patient's ID\", app.getPatientId());\n\t\t\t\t\tappObject.put(\"Doctor's name\", app.getDoctorName());\n\t\t\t\t\tappObject.put(\"Doctor's ID\", app.getDoctorId());\n\t\t\t\t\tappObject.put(\"Time stamp\", app.getTime());\n\t\t\t\t\tUtilityClinic.appJson.add(appObject);\n\t\t\t\t\tutil.writetoJson(UtilityClinic.appJson, util.getAppFileName());\n\t\t\t\t\tutil.readFromAppJson(util.getAppFileName());\n\t\t\t\t\tSystem.out.println(\"Appointment done.....\\n\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Sorry!!! Doctor is not available....Please try on next day.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void createScheduleEntry(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n }", "public interface AppDao {\n boolean slotTaken(Timestamp date) throws Exception;\n List<Appointment> listAllApps() throws Exception;\n Appointment getAppointment(Integer id) throws Exception;\n List<Appointment> listAppsByUser(String requester) throws Exception;\n Appointment newAppointment(String requester, Room room, Timestamp date) throws Exception;\n Appointment modifyApp(Integer id, Room room, Timestamp date) throws Exception;\n Appointment removeApp(Integer id) throws Exception;\n}", "@Override\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Override method declared\r\n\t protected void onCreate(Bundle savedInstanceState) {\t\t\t\t\t\t\t\t\t\t\t//Protected method for onCreate set\r\n\t \r\n\t\t super.onCreate(savedInstanceState);\t\t\t\t\t\t\t\t\t\t\t\t\t\t// This is called for when activity is starting\r\n\t\t setContentView(R.layout.sqlview);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Goes to the sql view xml\r\n\t\t TextView sqlInfo = (TextView) findViewById(R.id.tvSQLinfo);\t\t\t\t\t\t\t\t// Finds the sql id tvSQLinfo\r\n\t\t AddAppointment info = new AddAppointment(this);\t\t\t\t\t\t\t\t\t\t\t// Addappointment set\t\t \t\t\t\t\t\t\t\t\t\t\t// context of this class\r\n\t\t info.open();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Info open set\r\n\t\t String data = info.getData();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// String set to pass in values\r\n\t\t info.close();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Info close\r\n\t\t sqlInfo.setText(data);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Set text get the data\r\n\t }", "private void confirmAppointment(Appointment appointment) throws SQLException {\n\t\ttry {\n\t\t\tappCtr.confirmAppointment(appointment, appointment.getAppServices());\n\t\t} catch (DataAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test(\tdescription = \"Create a basic appointment\",\n\t\t\tgroups = { \"sanity\" }\n\t)\n\tpublic void CheckApptCreatedOnServer() throws HarnessException {\n\t\tAppointmentItem appt = new AppointmentItem();\n\t\tappt.setSubject(\"appointment\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setContent(\"content\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setStartTime(new ZDate(2014, 12, 25, 12, 0, 0));\n\t\tappt.setEndTime(new ZDate(2014, 12, 25, 14, 0, 0));\n\n\n\t\t// Open the new mail form\n\t\tFormApptNew apptForm = (FormApptNew) app.zPageCalendar.zToolbarPressButton(Button.B_NEW);\n\t\tZAssert.assertNotNull(apptForm, \"Verify the new form opened\");\n\n\t\t// Fill out the form with the data\n\t\tapptForm.zFill(appt);\n\n\t\t// Send the message\n\t\tapptForm.zSubmit();\n\t\t\t\n\t\t//verify toasted message 'group created' \n String expectedMsg =\"Appointment Created\";\n ZAssert.assertStringContains(app.zPageMain.zGetToaster().zGetToastMessage(),\n \t\t expectedMsg , \"Verify toast message '\" + expectedMsg + \"'\");\n \n\t\t\n\t\tverifyApptCreatedOnServer(appt);\n\t}", "@FXML\n public void startApptUpdate(Appointments appt) {\n String apptID = String.valueOf(appt.getApptID());\n modApptID.setText(apptID);\n modApptID.setEditable(false);\n modApptTitle.setText(appt.getApptTitle());\n modApptDescript.setText(appt.getApptDescript());\n modApptLocale.setText(appt.getApptLocation());\n modApptContact.setItems(Appointments.getContactNames());\n modApptContact.setValue(DBContacts.getContactName(appt.getContact()));\n modApptType.setItems(Appointments.getAllApptTypes());\n modApptType.setValue(appt.getApptType());\n modApptCustName.setItems(Appointments.getCustomerNames());\n modApptCustName.setValue(DBCustomers.getCustomerName(appt.getApptCustomerID()));\n modApptDate.setValue(appt.getApptStart().toLocalDate());\n modApptDate.setValue(appt.getApptEnd().toLocalDate());\n modApptUserID.setItems(Appointments.getUserIDs());\n modApptUserID.setValue(appt.getApptUserID());\n modStartTime.setItems(Appointments.getStartWorkHours());\n modStartTime.setValue(appt.getApptStart().toLocalTime());\n modApptEndTime.setItems(Appointments.getEndWorkHours());\n modApptEndTime.setValue(appt.getApptEnd().toLocalTime());\n\n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "public int addMeeting(Meeting meeting)\n throws Exception\n {\n Connection connection = null;\n int meetingId = -1;\n \n if(meeting == null)\n return -1;\n \n try\n {\n connection = ConnectionManager.getConnection();\n PreparedStatement pstmt = connection.prepareStatement(\"insert into meetings (project_id,title,start_time,end_time,meeting_notes,created_by,created_on) values (?,?,?,?,?,?,?)\", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n pstmt.setInt(1, meeting.getProjectId());\n pstmt.setString(2, meeting.getTitle());\n \n // start time\n if(meeting.getStartTime() != null)\n { \n pstmt.setTimestamp(3, new Timestamp(meeting.getStartTime().getTimeInMillis()));\n }\n else\n { \n pstmt.setDate(3, null);\n }\n \n // end time\n if(meeting.getEndTime() != null)\n { \n pstmt.setTimestamp(4, new Timestamp(meeting.getEndTime().getTimeInMillis()));\n }\n else\n { \n pstmt.setDate(4, null);\n }\n \n // TODO: Add meeting notes.\n pstmt.setString(5, null);//meeting.getMeetingNotes());\n pstmt.setInt(6, meeting.getCreatedBy());\n pstmt.setTimestamp(7, new Timestamp(Calendar.getInstance().getTimeInMillis()));\n \n pstmt.executeUpdate();\n \n pstmt = connection.prepareStatement(\"select IDENTITY_VAL_LOCAL() from meetings\", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet rs = pstmt.executeQuery();\n meetingId = -1;\n if(rs.first())\n {\n meetingId = rs.getInt(1);\n \n //\n // Meeting Attendees...\n //\n if(meeting.getAttendees() != null && meeting.getAttendees().length > 0)\n {\n \tint attendees[] = meeting.getAttendees();\n \tpstmt = connection.prepareStatement(\"insert into meeting_attendees (meeting_id, account_id) values (?,?)\");\n \tfor(int i = 0; i < attendees.length; i++)\n \t{\n pstmt.setInt(1, meetingId);\n \t\tpstmt.setInt(2, attendees[i]);\n \t\tpstmt.addBatch();\n \t}\n \tpstmt.executeBatch();\n }\n \n //\n // Agenda Items\n //\n if(meeting.getAgendaItems() != null && meeting.getAgendaItems().length > 0)\n {\n MeetingAgendaItem agendaItems[] = meeting.getAgendaItems();\n pstmt = connection.prepareStatement(\"insert into meeting_agenda_items (meeting_id, title, notes, ordinal) values (?,?,?,?)\");\n // just leave notes null until we figure out how to present it.\n for(int i = 0; i < agendaItems.length; i++)\n {\n pstmt.setInt(1, meetingId);\n pstmt.setString(2, agendaItems[i].getTitle());\n pstmt.setString(3, null);\n pstmt.setInt(4, i);\n \n pstmt.addBatch();\n }\n pstmt.executeBatch();\n }\n \n //\n // Followup Items\n //\n if(meeting.getFollowupItems() != null && meeting.getFollowupItems().length > 0)\n {\n MeetingFollowupItem followupItems[] = meeting.getFollowupItems();\n pstmt = connection.prepareStatement(\"insert into meeting_followup_items (meeting_id, title, text, ordinal) values (?, ?, ?, ?)\");\n \n for(int i = 0; i < followupItems.length; i++)\n {\n pstmt.setInt(1, meetingId);\n //pstmt.setString(2, followupItems[i]);\n pstmt.setString(3, null);\n pstmt.setInt(4, i);\n \n pstmt.addBatch();\n }\n pstmt.executeBatch();\n }\n }\n \n rs.close();\n pstmt.close();\n }\n catch(SQLException se)\n {\n se.printStackTrace();\n }\n catch(Exception e)\n {\n \te.printStackTrace();\n }\n finally\n {\n try\n {\n if(connection != null)\n {\n connection.close();\n }\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n \n return meetingId;\n }", "@Test\r\n\tvoid testAppointmentServiceClassUpdateAppointment() {\r\n\t\tAppointmentService appointmentService = new AppointmentService();\r\n\t\tAppointment temp = new Appointment(\"12345\", new Date(), \"This is a description\");\t\t\r\n\t\tappointmentService.addAppointment(temp);\r\n\t\tassertTrue(appointmentService.getAppointments().containsValue(temp));\r\n\t\tassertTrue(temp.getDescription().equals(\"This is a description\"));\r\n\t\tappointmentService.updateAppointment(\"12345\", new Date(), \"This is a NEW description\");\r\n\t\tassertTrue(appointmentService.getAppointments().containsValue(temp));\r\n\t\tassertFalse(temp.getDescription().equals(\"This is a description\"));\r\n\t}", "public interface AppointmentStep {\n CodeStep setAppointment(SimpleDate date);\n }", "Appointment(){\n this.description =\" \";\n this.beginTime=null;\n this.endTime = null;\n }", "public void savePatientDetails(View view){\r\n\t\tsaveToSQLite();\r\n createCalendarEntry();\r\n\t\tToast.makeText(this, \"Saved. Reminder created.\", Toast.LENGTH_SHORT).show();\r\n\t}", "public Appointments(){\n\t\tsetDate(0);\n\t\tsetTime(0);\n\t\tsetClient(null);\n\t\tappointmentStatus = false;\n\t}", "public void createAgenda(Agenda agenda){\n Session session = HibernateUtil.getSessionFactory().openSession(); \n Transaction transaction = session.beginTransaction();\n session.save(agenda);\n transaction.commit();\n session.close();\n }", "public void setupAppointments() {\n\n\t\t// // remember for animation\n\t\t// final List<AbstractClusteredDayAppointmentPane>\n\t\t// lOldClusteredDayAppointmentPanes = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>(\n\t\t// clusteredAppointmentPanes);\n\t\t// final List<WholedayAppointmentPane> lOldWholedayAppointmentPanes =\n\t\t// new ArrayList<WholedayAppointmentPane>(\n\t\t// wholedayAppointmentPanes);\n\t\t//\n\t\t// // clear\n\t\t// clusteredAppointmentPanes.clear();\n\t\t// wholedayAppointmentPanes.clear();\n\t\t// if (calendarObjectProperty.get() == null) {\n\t\t// return;\n\t\t// }\n\t\t//\n\t\t// // scan all appointments and filter the ones for this day\n\t\t// for (Agenda.Appointment lAppointment : getSkinnable().appointments())\n\t\t// {\n\t\t//\n\t\t// // different panes depending on the appointment time\n\t\t// if (lAppointment.isWholeDay()) {\n\t\t//\n\t\t// // if appointment falls on the same date as this day pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// WholedayAppointmentPane lAppointmentPane = new\n\t\t// WholedayAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// wholedayAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane.setId(lAppointmentPane.getClass()\n\t\t// .getSimpleName() + wholedayAppointmentPanes.size());\n\t\t// }\n\t\t// } else if (lAppointment.getEndTime() == null) {\n\t\t//\n\t\t// // an not-wholeday appointment without an enddate is a task\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// TaskAppointmentPane lAppointmentPane = new TaskAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// } else {\n\t\t// // appointments may span multiple days, but the appointment pane\n\t\t// // will clamp the start and end date\n\t\t// RegularAppointmentPane lAppointmentPane = new RegularAppointmentPane(\n\t\t// lAppointment, this);\n\t\t//\n\t\t// // check if the appointment falls in the same day as this day\n\t\t// // pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.start)\n\t\t// && isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.end)) {\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // sort on start time and then decreasing duration\n\t\t// Collections.sort(clusteredAppointmentPanes,\n\t\t// new Comparator<AbstractDayAppointmentPane>() {\n\t\t// @Override\n\t\t// public int compare(AbstractDayAppointmentPane o1,\n\t\t// AbstractDayAppointmentPane o2) {\n\t\t// if (o1.startAsString.equals(o2.startAsString) == false) {\n\t\t// return o1.startAsString.compareTo(o2.startAsString);\n\t\t// }\n\t\t// return o1.durationInMS > o2.durationInMS ? -1 : 1;\n\t\t// }\n\t\t// });\n\t\t//\n\t\t// // start placing appointments in the tracks\n\t\t// AbstractClusteredDayAppointmentPane lClusterOwner = null;\n\t\t// for (AbstractClusteredDayAppointmentPane lAppointmentPane :\n\t\t// clusteredAppointmentPanes) {\n\t\t// // if there is no cluster owner\n\t\t// if (lClusterOwner == null) {\n\t\t//\n\t\t// // than the current becomes an owner\n\t\t// // only create a minimal cluster, because it will be setup fully\n\t\t// // in the code below\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// }\n\t\t//\n\t\t// // in which track should it be added\n\t\t// int lTrackNr = determineTrackWhereAppointmentCanBeAdded(\n\t\t// lClusterOwner.clusterTracks, lAppointmentPane);\n\t\t// // if it can be added to track 0, then we have a \"situation\". Track\n\t\t// // 0 could mean\n\t\t// // - we must start a new cluster\n\t\t// // - the appointment is still linked to the running cluster by means\n\t\t// // of a linking appointment in the higher tracks\n\t\t// if (lTrackNr == 0) {\n\t\t//\n\t\t// // So let's see if there is a linking appointment higher up\n\t\t// boolean lOverlaps = false;\n\t\t// for (int i = 1; i < lClusterOwner.clusterTracks.size()\n\t\t// && lOverlaps == false; i++) {\n\t\t// lOverlaps =\n\t\t// checkIfTheAppointmentOverlapsAnAppointmentAlreadyInThisTrack(\n\t\t// lClusterOwner.clusterTracks, i, lAppointmentPane);\n\t\t// }\n\t\t//\n\t\t// // if it does not overlap, we start a new cluster\n\t\t// if (lOverlaps == false) {\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterMembers = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>();\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// lClusterOwner.clusterTracks\n\t\t// .add(new ArrayList<AbstractClusteredDayAppointmentPane>());\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // add it to the track (and setup all other cluster data)\n\t\t// lClusterOwner.clusterMembers.add(lAppointmentPane);\n\t\t// lClusterOwner.clusterTracks.get(lTrackNr).add(lAppointmentPane);\n\t\t// lAppointmentPane.clusterOwner = lClusterOwner;\n\t\t// lAppointmentPane.clusterTrackIdx = lTrackNr;\n\t\t// // for debug System.out.println(\"----\"); for (int i = 0; i <\n\t\t// // lClusterOwner.clusterTracks.size(); i++) { System.out.println(i +\n\t\t// // \": \" + lClusterOwner.clusterTracks.get(i) ); }\n\t\t// // System.out.println(\"----\");\n\t\t// }\n\t\t//\n\t\t// // laying out the appointments is fairly complex, so we use listeners\n\t\t// // and a relayout method instead of binding\n\t\t// relayout();\n\t\t//\n\t\t// // and swap the appointments; old ones out, new ones in\n\t\t// // TODO: animation? we could move the old appointments to the\n\t\t// equivalent\n\t\t// // positions on the drag pane, then animate them to their new\n\t\t// positions,\n\t\t// // remove the old, and insert the new ones.\n\t\t// // however, this needs to be cross-days, so it cannot be done here\n\t\t// (this\n\t\t// // is only one day), but after the complete setupAppointments()\n\t\t// getChildren().removeAll(lOldClusteredDayAppointmentPanes);\n\t\t// getChildren().removeAll(lOldWholedayAppointmentPanes);\n\t\t// getChildren().addAll(wholedayAppointmentPanes);\n\t\t// getChildren().addAll(clusteredAppointmentPanes);\n\t\t//\n\t\t// // we're done, now have the header updated\n\t\t// dayHeaderPane.setupAppointments();\n\t}", "public void insertMeetingRecord(Meeting meeting) {\n SQLiteDatabase db = dbHelper.getDatabase();\n ContentValues cv = new ContentValues();\n\n // Note: derived from RaceDay.xml.\n cv.put(SchemaConstants.MEETING_DATE, meeting.getMeetingDate());\n cv.put(SchemaConstants.MEETING_ABANDONED, meeting.getAbandoned());\n cv.put(SchemaConstants.MEETING_VENUE, meeting.getVenueName());\n cv.put(SchemaConstants.MEETING_HI_RACE, meeting.getHiRaceNo());\n cv.put(SchemaConstants.MEETING_CODE, meeting.getMeetingCode());\n cv.put(SchemaConstants.MEETING_ID, meeting.getMeetingId());\n cv.put(SchemaConstants.MEETING_TRACK_DESC, meeting.getTrackDescription());\n cv.put(SchemaConstants.MEETING_TRACK_RATING, meeting.getTrackRating());\n cv.put(SchemaConstants.MEETING_WEATHER_DESC, meeting.getTrackWeather());\n\n try {\n db.beginTransaction();\n db.insertOrThrow(SchemaConstants.MEETINGS_TABLE, null, cv);\n db.setTransactionSuccessful();\n } catch (SQLException ex) {\n Log.d(context.getClass().getCanonicalName(), ex.getMessage());\n } finally {\n db.endTransaction();\n }\n }", "@Override\r\n\tpublic void updateWorklow(Appointment a) throws DBAccessException {\n\t\tsteps = cr.getWorkflowSteps();\r\n\t\t\r\n\t\t// TODO Anhand des Termins die Objekte aus steps aktualisieren \r\n\t\t\r\n\t\t// da es bei Updates der App passieren kann, dass der Ablaufplan sich ändert, müssen vorherige Ablaufpläne gelöscht werden\r\n\t\tdb.deleteWorkflow();\r\n\t\t\r\n\t\tfor (Step step : steps) {\r\n\t\t\tint seperator = step.getTime().indexOf(\":\");\r\n\t\t\tString s = step.getTime().substring(0, seperator-1); // -1, damit das \":\" nicht dabei ist\r\n\t\t\tint hour = Integer.parseInt(s);\r\n\t\t\ts = step.getTime().substring(seperator+1); // +1, damit das \":\" nicht dabei ist\r\n\t\t\tint min = Integer.parseInt(s);\r\n\t\t\t// dieser Konstruktor ist zwar veraltet, aber für unseren Zweck perfekt\r\n\t\t\tstep.setTimestamp(new Timestamp(a.getYear(), a.getMonth(), a.getDay()-step.getDaysBefore(), hour, min, 0, 0));\r\n\t\t}\r\n\t\t\r\n\t\tdb.saveWorkflow(steps);\r\n\t\t\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n // Create object of CalendarInteraction class\n CalendarInteraction mCalHelper = new CalendarInteraction(getActivity());\n appointmentGetter = new AppointmentGetter();\n\n\n // Retrieve data from the calender via the CalendarHelper Class\n Cursor data = mCalHelper.getData();\n\n // Create an arraylist of AppointModels\n ArrayList<AppointModel> appointmentList = new ArrayList<>();\n\n if (data != null){\n while (data.moveToNext())\n {\n appointModel = appointmentGetter.getData(data);\n // Add the appointment model to the arraylist\n appointmentList.add(appointModel);\n }\n\n data.close();\n\n }\n\n\n // Close off the cursor\n\n // Maak de adapter hier\n AppointModel appointModel_data[] = new AppointModel[appointmentList.size()];\n\n // Create the adapter\n appointAdapter = new AppointAdapter(listener,\n R.layout.appoint_list_layout, appointModel_data);\n\n // Keep track of amount of models\n\n // Create an array of objects filled with the models from the AppointModel\n // arraylist. This array will then be used in conjunction with the appointAdapter\n // to create the list of appointments\n\n\n\n for (AppointModel a : appointmentList) {\n appointModel_data[count] = new AppointModel(\n a.getEventID(),\n a.getTime(),\n a.getDate(),\n a.getAppointName(),\n a.getWardName(),\n a.getDoctorName()\n );\n\n count += 1;\n }\n\n\n\n\n }", "public void addAppointment(String orgname) {\r\n\t\tVEvent event = new VEvent();\r\n\t\tevent.addAttendee(new Attendee(user.getName(), \"\"));\r\n\t\tlocalCalendar.addEvent(event);\r\n\t\tevent.setOrganizer(new Organizer(orgname, \"\"));\r\n\t\t\r\n\t}", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "public void addAppointment(DateTime startTim, DateTime endTim, String desc, Date date)\n {\n Appointment app = Appointment(startTim, endTim, desc);\n if(cal.containsKey(date)){\n cal.getClass(date).append(app);\n \n }else{\n List y;\n y.append(app);\n cal.put(date, y);\n }\n }", "@PostMapping(\"/Scheduling/addAppointment\")\r\n\tpublic String addAppointment(Scheduling scheduling) {\r\n\t\tschedulingService.createAppointment(scheduling);\r\n\t\treturn \"redirect:/Scheduling\";\r\n\t}", "int insert(PineAlarm record);", "private void loadAppointmentList(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n appointments.clear();\n ArrayList<String> myApps = new ArrayList<String>();\n\n appointments.addAll(dbHandler.getAllAppointmentFromServiceProvider(companyID));\n\n for(Appointment appointment: appointments)\n myApps.add(dbHandler.getServiceTypeName(appointment.getServiceType_id()) + \" / \" +\n getDayName(appointment.getDay_id()) + \" at \" +\n appointment.getStart_time() + \" to \" +\n appointment.getEnd_time()\n );\n\n if(myApps.size()==0) {\n myApps.add(EMPTY_TEXT_LV2);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myApps);\n lv_Appointment.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "@PostMapping(\"/sys-appointments\")\n @Timed\n public ResponseEntity<SysAppointment> createSysAppointment(@RequestBody SysAppointment sysAppointment) throws URISyntaxException {\n log.debug(\"REST request to save SysAppointment : {}\", sysAppointment);\n if (sysAppointment.getId() != null) {\n throw new BadRequestAlertException(\"A new sysAppointment cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n SysAppointment result = sysAppointmentService.save(sysAppointment);\n return ResponseEntity.created(new URI(\"/api/sys-appointments/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "private void updateAppointments(Appointment[] appointments) {\n\t\tif (appointments == null) { // Retrieve from Storage\n\t\t\ttry {\n\t\t\t\tappointments = AppointmentUtil.retrieve(getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tif (appointments == null) { // When there are still no menus -> Update from Server\n\t\t\t\tonRefresh();\n\t\t\t}\n\t\t} else { // Store\n\t\t\ttry {\n\t\t\t\tAppointmentUtil.store(appointments, getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif (appointments != null) {\n\t\t\t// Only add apointments which are in the current month or future.\n\t\t\tList<Appointment> appointmentList = new ArrayList<>();\n\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tresetCalendarToMonth(now);\n\n\t\t\tfor (Appointment appointment : appointments) {\n\t\t\t\tCalendar appointmentMonth = appointment.getDate();\n\t\t\t\tresetCalendarToMonth(appointmentMonth);\n\n\t\t\t\tif (appointmentMonth.getTimeInMillis() - now.getTimeInMillis() >= 0) { // Check if present or future month\n\t\t\t\t\tappointmentList.add(appointment);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Apply appointments\n\t\t\tappointmentAdapter.clear();\n\t\t\tappointmentAdapter.addAll(appointmentList);\n\t\t}\n\t}", "public void appointmentList() throws Exception {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tlogger.debug(\"-------------Appointment-------------\");\n\t\t\tSystem.out.println(\"Press:- \" + \"\\n1.Create Appointment\" + \"\\n2.See Doctor list\" + \"\\n3.EXIT\");\n\t\t\tint input = sc.nextInt();\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcreate();\n\t\t\t\tlogger.debug(\"----------Appointment Created Successfully----------\");\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcrudDoctor.read();\n\t\t\t\tlogger.debug(\"----------This is a List of Doctors----------\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tclinicManagementSystem.show();\n\t\t\t}\n\t\t}\n\t}", "public Appointment(String alias) {\n this(DSL.name(alias), APPOINTMENT);\n }", "RentalAgency createRentalAgency();", "Notification createAppointmentRequestSubmissionConfirmationNotification(AppointmentRequest appointmentRequest, List<Appointment> appointments );", "private void saveAT() \n {\n // get DatabaseConnector to interact with the SQLite database\n\t AnimalDatabase db = new AnimalDatabase(this);\n\t AnimalList al = new AnimalList (db);\n\t \n // insert the contact information into the database\n al.Update(id, amount, comments);\n\n }", "public int Addupcoming(UpcominMovie oupcomingmovie) throws SQLException, ClassNotFoundException\n\t{\n\t\tInputStream is=this.getClass().getClassLoader().getResourceAsStream(\"MAS.properties\");\n\t\tProperties prop=new Properties();\n\t\ttry {\n\t\t\tprop.load(is);\n\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tString userid=prop.getProperty(\"userId\");\n\t\tString password=prop.getProperty(\"password\");\n\t\tString ipAddress=prop.getProperty(\"ipAddress\");\n\t\tString port=prop.getProperty(\"port\");\n\t\tString schema=prop.getProperty(\"schema\");\n\t\tConnection con=null;\n\t\tStatement st=null;\n\t ResultSet rs=null;\n\t\tint p=1;\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\tClass.forName(\"oracle.jdbc.OracleDriver\");\n\t\t\t}\n\t\t\t catch (ClassNotFoundException e)\n\t\t\t {\n\t\t\t\tthrow e;\n\t\t\t\t\t\n\t\t\t }\n\t\t\tString url=\"jdbc:oracle:thin:@\"+ipAddress+\":\"+port+\":\"+schema;\n\t\t\tcon=DriverManager.getConnection(url,userid,password);\n\t\t\tcon.setAutoCommit(false);\n\t\t\tst=con.createStatement();\n\t\t\t\n\t\t\tint randomNumber=(int)(Math.random()*9999);\n\t\t\t\n\t\t\tif(randomNumber<=10000)\n\t\t\t{\n\t\t\t\trandomNumber=randomNumber+1;\n\t\t\t}\n\t\t\trs=st.executeQuery(\"select * from upcomingmovie where movie_name='\"+oupcomingmovie.getMovieName()+\"' and movie_language='\"+oupcomingmovie.getMovieLanguage()+\"'\");\n\t\t\t\n\t\t\tif(!rs.next())\n\t\t\t{\n\t\t\tp=st.executeUpdate(\"insert into upcomingmovie values(\"+randomNumber+\",'\"+oupcomingmovie.getMovieName()+\"','\"+oupcomingmovie.getMovieLanguage()+\"','\"+oupcomingmovie.getDate()+\"','\"+oupcomingmovie.getMonth()+\"','\"+oupcomingmovie.getYear()+\"')\");\n\t\t\toupcomingmovie.setMovieId(randomNumber);\n\t\t\tcon.commit();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t p=0;\n\t\t\t\n\t\t\t\tint MovieID = rs.getInt(1);\n\t\t\t\t\n\t\t\t\tString Movie_name= rs.getString(2);\n\t\t\t\tString Movie_language = rs.getString(3);\n\t\t\t\tString Movie_date = rs.getString(4);\n\t\t\t\tString Movie_month = rs.getString(5);\n\t\t\t\tString Movie_year = rs.getString(6);\n\t\t\t\toupcomingmovie.setMovieId(MovieID);\n\t\t\t\toupcomingmovie.setMovieName(Movie_name);\n\t\t\t\toupcomingmovie.setMovieLanguage(Movie_language);\n\t\t\t\toupcomingmovie.setDate(Movie_date);\n\t\t\t\toupcomingmovie.setMonth(Movie_month);\n\t\t\t\toupcomingmovie.setYear(Movie_year);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t catch (SQLException se) \n\t\t {\n\t\t\t\n\t\t\t \n\t\t\t\tthrow se;\n\t\t }\n\t\t catch(NullPointerException ne)\n\t\t\t{\n\t\t\t\tthrow ne;\n\t\t\t}\n\t\t \n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\trs.close();\n\t\t\t\tst.close();\n\t\t\t\tcon.close();\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(SQLException se)\n\t\t\t{\n\t\t\t\t \n\t\t\t\t\tthrow se;\n\t\t\t}\n\t\t\tcatch(NullPointerException ne)\n\t\t\t{\n\t\t\t\tthrow ne;\n\t\t\t}\n\t\t}\n\t\treturn p;\n\t}", "public void AddTaskToDB(View view){\n\t\tif (TASK_CREATED == true){\n\t\t\tString name = taskName.getText().toString();\n\t\t\tString desc = taskDescription.getText().toString();\n//\t\t\tlong millisecondsToReminder = 0;\n\t\t\tlong millisecondsToCreated = 0;\n//\t\t\tyear = taskDatePicker.getYear();\n//\t\t\tmonth = taskDatePicker.getMonth() + 1;\n//\t\t\tday = taskDatePicker.getDayOfMonth();\n//\t\t\thour = taskTimePicker.getCurrentHour();\n//\t\t\tminute = taskTimePicker.getCurrentMinute();\n\t\t\ttry {\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tDate dateCreated = cal.getTime();\n\t\t\t\tmillisecondsToCreated = dateCreated.getTime();\n//\t\t\t\tString dateToParse = day + \"-\" + month + \"-\" + year + \" \" + hour + \":\" + minute;\n//\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"d-M-yyyy hh:mm\");\n//\t\t\t\tDate date = dateFormatter.parse(dateToParse);\n//\t\t\t\tmillisecondsToReminder = date.getTime();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} // You will need try/catch around this\n\n\t\t\tBujoDbHandler taskHandler = new BujoDbHandler(view.getContext());\n\t\t\tcurrentTask = new Task(name, desc, millisecondsToCreated);\n\t\t\ttaskHandler.addTask(currentTask);\n\t\t}\n\t}", "Notification createAppointmentConfirmationNotification(Appointment appointment);", "private void apptByMonthTableFill(){\n try {\n //get data from database\n monthReports = AppointmentDB.getMonthsReport();\n }\n catch (SQLException e){\n dialog(\"ERROR\",\"SQL Error\",\"Error: \"+ e.getMessage());\n }\n apptByMonthTable.setItems(monthReports);\n }", "public void addToAppointments(Appointment a){\n appointments.add(a);\n Collections.sort(appointments, (Appointment a1, Appointment a2) ->{\n return a1.getDate().compareTo(a2.getDate());\n });\n }", "public void createAll() {\n SQLFormater SQLFormaterMoods = new SQLFormater(MOODS_TABLE_NAME, ID_FIELD); // objects help to form sql strings for creating tables\n SQLFormater SQLFormaterAnswers = new SQLFormater(ANSWERS_TABLE_NAME, ID_FIELD);\n\n String[] answersTableFields = {ANSWERS_FIELD, ID_MOODS_FIELD}; // ordered fields\n String[] moodsTableFields = {MOODS_FIELD, HI_FIELD, BYBY_FIELD};\n\n SQLFormaterMoods.setNewField(MOODS_FIELD, STRING_TYPE, \"NOT NULL\"); // creating tables\n SQLFormaterMoods.setNewField(HI_FIELD, STRING_TYPE, null);\n SQLFormaterMoods.setNewField(BYBY_FIELD, STRING_TYPE, null);\n dbConnection.execute(SQLFormaterMoods.getStringToCreateDB(null));\n\n SQLFormaterAnswers.setNewField(ANSWERS_FIELD, STRING_TYPE, \"NOT NULL\");\n SQLFormaterAnswers.setNewField(ID_MOODS_FIELD, INTEGER_TYPE, null);\n String reference = \"FOREIGN KEY (\" + ID_MOODS_FIELD + \")\" +\n \" REFERENCES \" + MOODS_TABLE_NAME +\n \"(\" + ID_FIELD + \")\";\n dbConnection.execute(SQLFormaterAnswers.getStringToCreateDB(reference)); // create table with reference\n\n insertTableValues(SQLFormaterMoods, moodsTableFields, getMoodsTableValues()); // inserting ordered values into tables\n insertTableValues(SQLFormaterAnswers, answersTableFields, getAnswersTableValues());\n }", "public Appointment(Name alias) {\n this(alias, APPOINTMENT);\n }", "public AppointmentDAOImpl() {\n this.conn = DBConnector.getConnection();\n }", "@Override\r\n\tpublic String addnewMeeting(String userID, String roomID, Date startDate, Date endDate) {\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"in addition\");\r\n\t\tSession session = factory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\t\r\n\t\tUser user=new User();\r\n\t\tuser.setUserID(userID);\r\n\r\n\t\tMeetingRoom meetingRoom=new MeetingRoom();\r\n\t\tmeetingRoom.setmRoomID(roomID);\r\n\t\t\r\n\t\tMeetingTimings meetingTimings=new MeetingTimings();\r\n\t\tmeetingTimings.setEndTime(endDate);\r\n\t\tmeetingTimings.setStartTime(startDate);\r\n\t\t\r\n\t\tmeetingTimings.setMeetingRoom(meetingRoom);\r\n\t\t\r\n\t\tBookedMeeting meeting=new BookedMeeting();\r\n\t\tmeeting.setEndTime(endDate);\r\n\t\tmeeting.setStartTime(startDate);\r\n\t\tmeeting.setBookingID(userID+\"-\"+roomID+\"-\"+meetingTimings.getStartTime().hashCode()+\"-\"+meetingTimings.getEndTime().hashCode());\r\n\t\tmeeting.setMeetingRoom(meetingRoom);\r\n\t\tmeeting.setUser(user);\r\n\t\t\r\n\t\t//uncomment to add new user or meeting room\r\n\t\t//session.save(user);\r\n\t\t//session.save(meetingRoom);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tsession.save(meetingTimings);\r\n\t\t}\r\n\t\tcatch(HibernateException E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving meeting timings\"+E);\r\n\t\t}\r\n\t\t\r\n\t\ttry{\r\n\t\t\tsession.save(meeting);\r\n\t\t}\r\n\t\tcatch(HibernateException E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving meeting booked\"+E);\r\n\t\t\t\r\n\t\t}\r\n\t\t// session.persist(entity);\r\n\t\ttry{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t\tcatch(Exception E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving and closing session\"+E);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t return \"success\";\r\n\r\n\t}", "void setAppointmentScheduleFilePath(Path appointmentScheduleFilePath);", "public static void main(String[] argv) throws Exception {\n new AppointmentManager().run(argv);\n }", "private void mockUpDB() {\n locationDBAdapter.insertLocationData(\n \"ChIJd0UHJHcw2jARVTHgHdgUyrk\",\n \"Baan Thong Luang\",\n \"https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png\",\n \"https://maps.google.com/maps/contrib/101781857378275784222/photos\",\n \"CmRSAAAAEegLHnt03YODdRQ658VBWtIhOoz3TjUAj1oVqQIlLq0DkfSttuS-SQ3aOLBBbuFdwKbpkbsrFzMWghgyZeRD-n5rshknOXv6p5Xo3bdYr5FMOUGCy-6f6LYRy1PN9cKOEhBuj-7Dc5fBhX_38N_Sn7OPGhTBRgFIvThYstd7e8naYNPMUS2rTQ\",\n \"GOOGLE\",\n \"236/10 Wualai Road Tumbon Haiya, CHIANG MAI\",\n 18.770709,\n 98.978078,\n 0.0);\n\n }", "public static ResultSet prc_InsertAppointment\n (\n int checkINOUTID,\n Date startDateTime,\n Date endDateTime,\n Date currentDateTime,\n int reminder,\n int alert\n )\n {\n SPArgCollection spArgs = new SPArgCollection(\"Prc_Insert_Appointment\",\n \"Appointment\");\n spArgs.add(new StoredProcedureArg(\"@\".concat(CHECK_INOUT_ID), \n StoredProcedureArg.DataType.INTEGER, checkINOUTID));\n spArgs.add(new StoredProcedureArg(\"@\".concat(START_DT_TIME),\n StoredProcedureArg.DataType.DATETIME, startDateTime));\n spArgs.add(new StoredProcedureArg(\"@\".concat(END_DT_TIME),\n StoredProcedureArg.DataType.DATETIME, endDateTime));\n spArgs.add(new StoredProcedureArg(\"@\".concat(CURRENT_DT_TIME),\n StoredProcedureArg.DataType.DATETIME, currentDateTime));\n spArgs.add(new StoredProcedureArg(\"@\".concat(REMINDER), \n StoredProcedureArg.DataType.INTEGER, reminder));\n spArgs.add(new StoredProcedureArg(\"@\".concat(ALERT), \n StoredProcedureArg.DataType.INTEGER, alert));\n \n ResultSet rs = Utils.executeStoredProcedureToResultSet(spArgs);\n return rs;\n }", "@Test\n public void testPostApartmentDetails() {\n System.out.println(\"postApartmentDetails\");\n Date today = java.sql.Date.valueOf(\"2017-09-25\");\n Date enddate = java.sql.Date.valueOf(\"2017-10-25\");\n \n Apartment apartment = new Apartment(null, \"hello13\", 2, \"Apartment Buyer\", 6, \"test Apartment Name\",\n \"check location\", 10000, today, enddate, \"Weekly\", \"Checking Apartment Description\", \"Yearly\", \"Private\");\n ApartmentBLL instance = new ApartmentBLL();\n instance.postApartmentDetails(apartment);\n }", "private void insertFields()\n {\n RideDetails details=new RideDetails();\n details.setStartPt(editStartingPt.getText().toString());\n details.setEndPt(editEndingPt.getText().toString());\n\n try {\n details.setTravelDate(dateFormatter.parse(editDate.getText().toString()));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n details.setNoSpot(Integer.parseInt(editNoSpot.getText().toString()));\n\n\n dbOperations(details);\n\n }", "public void generateDB() {\n\t\t// Database tables creation\n\t\tcreateTables();\n\n\t\t// Try catch estructure in case there is an exception during the data\n\t\t// insertion\n\t\ttry {\n\t\t\t// Create an admin user\n\t\t\tadminUser = new User(\"admin\", \"1234\", \"admin\", \"admin\", \"admin\", 1);\n\n\t\t\t// Create some default players\n\t\t\tString p1DateString = \"1988-05-12\";\n\t\t\tString p2DateString = \"1985-02-05\";\n\t\t\tString p3DateString = \"1987-06-24\";\n\t\t\tString p4DateString = \"1992-02-05\";\n\t\t\tDate p1Date = sdf.parse(p1DateString);\n\t\t\tDate p2Date = sdf.parse(p2DateString);\n\t\t\tDate p3Date = sdf.parse(p3DateString);\n\t\t\tDate p4Date = sdf.parse(p4DateString);\n\t\t\tp1 = new Player(\"Marcelo\", \"Vieira\", p1Date, 174);\n\t\t\tp2 = new Player(\"Cristiano\", \"Ronaldo\", p2Date, 185);\n\t\t\tp3 = new Player(\"Lionel\", \"Messi\", p3Date, 170);\n\t\t\tp4 = new Player(\"Neymar\", \"Silva\", p4Date, 175);\n\n\t\t\t// Create some default teams\n\t\t\tString t1DateString = \"1902-03-6\";\n\t\t\tString t2DateString = \"1985-02-05\";\n\t\t\tDate t1Date = sdf.parse(t1DateString);\n\t\t\tDate t2Date = sdf.parse(t2DateString);\n\t\t\tList<Player> t1Players = formatPlayers(getPlayersByTeamId(REAL_MADRID));\n\t\t\tList<Player> t2Players = formatPlayers(getPlayersByTeamId(BARCELONA));\n\t\t\tt1 = new Team(t1Players, \"Real Madrid C.F.\", \"Zinedine Zidane\", \"Madrid\", t1Date);\n\t\t\tt2 = new Team(t2Players, \"FC Barcelona\", \"Luis Enrique\", \"Barcelona\", t2Date);\n\n\t\t\t// Create some default stats\n\t\t\ts1 = new Stats(1, 1, 6, 15);\n\t\t\ts2 = new Stats(3, 1, 8, 18);\n\n\t\t\t// Create some default matches\n\t\t\tString m1DateString = \"2017-01-20\";\n\t\t\tString m2DateString = \"2017-03-06\";\n\t\t\tDate m1Date = sdf.parse(m1DateString);\n\t\t\tDate m2Date = sdf.parse(m2DateString);\n\t\t\tm1 = new Match(t2, t1, s1, m1Date, \"Alfonso Alvarez Izq\");\n\t\t\tm2 = new Match(t1, t2, s2, m2Date, \"Carlos Clos Gomez\");\n\n\t\t\t// Fill the database tables only if they are empty\n\t\t\tif (!usersFilled()) {\n\t\t\t\tinsertUser(adminUser);\n\t\t\t}\n\t\t\tif (!playersFilled()) {\n\t\t\t\tinsertPlayer(p1, REAL_MADRID);\n\t\t\t\tinsertPlayer(p2, REAL_MADRID);\n\t\t\t\tinsertPlayer(p3, BARCELONA);\n\t\t\t\tinsertPlayer(p4, BARCELONA);\n\t\t\t}\n\t\t\tif (!teamsFilled()) {\n\t\t\t\tinsertTeam(t1);\n\t\t\t\tinsertTeam(t2);\n\t\t\t}\n\t\t\tif (!matchesFilled() && !statsFilled()) {\n\t\t\t\tinsertStat(s1);\n\t\t\t\tinsertMatch(m1);\n\t\t\t\tinsertStat(s2);\n\t\t\t\tinsertMatch(m2);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}" ]
[ "0.7249597", "0.6847792", "0.6832787", "0.67629194", "0.67519516", "0.66715664", "0.6635755", "0.66301936", "0.6555601", "0.6537782", "0.6500874", "0.64359444", "0.62986654", "0.62900686", "0.6286085", "0.6188036", "0.61873317", "0.61705905", "0.616245", "0.61020845", "0.6081686", "0.60502154", "0.60267496", "0.60131365", "0.60120434", "0.6011478", "0.5997586", "0.5992921", "0.5971339", "0.59365344", "0.5927835", "0.5922983", "0.59120387", "0.5876446", "0.58695245", "0.58669245", "0.584753", "0.5821938", "0.58154964", "0.579723", "0.57898736", "0.578762", "0.5784631", "0.57778937", "0.57639855", "0.57632655", "0.5760983", "0.5759029", "0.57587403", "0.57521564", "0.5750735", "0.57416904", "0.57397515", "0.5733804", "0.5725398", "0.5685817", "0.5664462", "0.566426", "0.56498975", "0.5646111", "0.56354916", "0.5633252", "0.56318563", "0.56137836", "0.56039613", "0.5598953", "0.55888563", "0.5580897", "0.55804354", "0.55743575", "0.55508643", "0.55305433", "0.5526553", "0.5513827", "0.5510929", "0.5486901", "0.54839754", "0.54500866", "0.54402936", "0.5424802", "0.5423525", "0.5422765", "0.53909254", "0.5385505", "0.5370079", "0.53676724", "0.53674924", "0.5366539", "0.5347863", "0.5344773", "0.5341426", "0.5335092", "0.53347313", "0.5332626", "0.532904", "0.532832", "0.5324538", "0.5301799", "0.52949226", "0.5290452" ]
0.77002007
0
Constructor for the CacheAccess object.
public CacheAccess( final CompositeCache<K, V> cacheControl ) { super(cacheControl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cache() {\n this(null);\n }", "public AbstractCache() {\n }", "public CacheManager()\n\t{\n\t}", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "public IndexedDiskCache(final IndexedDiskCacheAttributes cacheAttributes)\r\n {\r\n this(cacheAttributes, null);\r\n }", "public LibraryCache() {\n\t }", "public CacheService()\n {\n }", "public CacheService()\n {\n }", "private AccessList() {\r\n\r\n }", "public SearchCache() {\n this(CAPACITY, new Ticker());\n }", "protected ElevationDataCache() {\n }", "public ImcacheCacheManager() {\n this(CacheBuilder.heapCache());\n }", "public ArrayAccess()\r\n {\r\n }", "public AccessPoint() {\n }", "public MainAPI (com.intersys.cache.CacheObject ref) throws com.intersys.objects.CacheException {\n super (ref);\n }", "public CacheTest() {\n }", "public CacheException() {\r\n\t\tsuper();\r\n\t}", "public AddressCacheImpl() {\n\t\tthis(CACHE_SIZE_DEFAULT, 0L);\n\t}", "public MainAPI (com.intersys.objects.Database db) throws com.intersys.objects.CacheException {\n super (((com.intersys.cache.SysDatabase)db).newCacheObject (CACHE_CLASS_NAME));\n }", "private UtilsCache() {\n\t\tsuper();\n\t}", "public DescriptorCacheImpl() {\n super();\n \n LOG2.debug(\"New instance!\");\n \n _typeMap = new HashMap();\n _xmlNameMap = new HashMap();\n _missingTypes = new ArrayList();\n }", "public PrefixMappingCache(JDBCConnectionCredentials connectionCredentials) {\n super(CACHE_LIFETIME);\n this.connectionCredentials = connectionCredentials;\n }", "public CachedSource(Cache<V> cache, Source<V> source) {\n mCache = cache;\n mSource = source;\n }", "public ServiceCacheDB()\n\t{\n\t\tthis(0);\n\t}", "public CoreRestClientImpl(final File cacheDirectory) {\n CoreLog.d(\"Initialising the Rest Client\");\n\n final OkHttpClient client = new OkHttpClient();\n\n // initialise the cache directory if the parameter is not null\n if (cacheDirectory != null) {\n final Cache cache = new Cache(cacheDirectory, 10 * 1024 * 1024);\n client.setCache(cache);\n CoreLog.d(\"Client initialised with cache\");\n } else {\n CoreLog.d(\"Client initialised without cache\");\n }\n }", "public LpgSvcCacheViewImpl() {\n }", "public CCache (String name, int initialCapacity)\n\t{\n\t\tthis (name, initialCapacity, 120);\n\t}", "private HttpCache(@NonNull Context context) {\n mCache = new Cache(new File(context.getExternalCacheDir(), CacheConfig.FILE_DIR),\n CacheConfig.FILE_SIZE);\n }", "public MultiCache () {\n super();\n this.locals = new ArrayList<Coordinates>();\n this.stage = 0;\n }", "public CacheEntry() {\n response = null;\n }", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "public Entry(DirCacheEntry aDCE, String aPath) { _entry = aDCE; _path = aPath; }", "public RoleAccess() {\n }", "public Cache createCache() throws Exception {\n return createCache(maxEntries, DEFAULT_CACHE_CLASSNAME);\n }", "public Cache(final Element cacheInfo, final Byte version,\n\t\t\tfinal String indexdir) {\n\t\tif (version == 0) {\n\t\t\treadInfo0(cacheInfo, indexdir);\n\t\t} else if (version == 3) {\n\t\t\treadInfo3(cacheInfo, indexdir);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"unsupported version \" + version);\n\t\t}\n\t}", "public CacheService( CacheManager cachemanager )\n {\n this.cacheManager = cachemanager;\n }", "public Cache(int size) {\r\n\t\t\r\n\t\tcache = new LinkedList<T>();\r\n\t\tmaxStorage = size;\r\n\t}", "public cacheEntry(int key, String value){\n int key;\n String value;\n cacheEntry(int key){\n this.key = key;\n this.value = value;\n }\n}", "public Cache(Integer size) {\n this.size = size;\n recentlyUsed = new ArrayList<K>();\n cache = new HashMap<>();\n }", "public EasyFKCache(CacheManager cache,\n\t\t\t\t\t String prefix){\n\t\t \n\t\tthis( cache );\n\t\t\n\t\t// set the prefix\n\t\tthis.keyPrefix = prefix;\n\t}", "public TeamCacheManager() {\r\n }", "private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}", "public OldOldCache()\n {\n this(DEFAULT_UNITS);\n }", "protected CacheObject(T value) {\n this.value = value;\n }", "public Cache createCache(int cacacity, String className) \n throws Exception {\n\n // use the context class loader to load class so that any\n // user-defined classes in WEB-INF can also be loaded.\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n Class cacheClass = cl.loadClass(className);\n\n Cache cacheImpl = (Cache)cacheClass.newInstance();\n cacheImpl.init(maxEntries, cacheProps);\n\n return cacheImpl;\n }", "public Memory(int access_time) {\n\t\tthis.mem_array = new String[65536];\n\t\tthis.access_time = access_time;\n\t\tthis.fetch_cycles_left = access_time;\n\t\tthis.load_cycles_left = access_time;\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public TAppAccess() {\n\t}", "public ImcacheCacheManager(BaseCacheBuilder cacheBuilder) {\n this.cacheBuilder = cacheBuilder;\n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "public UrlCache() throws UrlCacheException {\n\t\tcreateCatalogFileIfNoneExists();\t\t\n\t}", "public DataBaseCache(Context context) {\n mContext = context;\n }", "public BoundedCache( final int cacheSize ) {\n mCacheSize = cacheSize;\n }", "@SuppressWarnings(\"unused\")\n public CachedSource(Source<V> source) {\n mCache = new Cache<>();\n mSource = source;\n }", "public InfinispanDirectory(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName, int chunkSize) {\n this(metadataCache, chunksCache, indexName, makeDefaultLockFactory(distLocksCache, indexName),\n chunkSize, makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName));\n }", "public ZIPCachedQuery(File cacheFile) throws IOException {\n \t\tthis.dataFile = cacheFile;\n \t\tloadDataFromFile();\n \t}", "public CacheItem(String key) {\n setKey(key);\n setCreateTime(System.currentTimeMillis());\n }", "public HotrodCacheFactory() {\n }", "public void init() throws CacheException {\n // no-op\n }", "public CacheTracabilityFactoryImpl() {\n\t\tsuper();\n\t}", "public ByteArrayCache() {\n try {\n imm = ImmortalMemory.instance();\n byteBuffers = (Queue) imm.newInstance(Queue.class);\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.WARN, getClass(), \"<init>\", e);\n System.exit(-1);\n }\n }", "public CacheObject(String pn, Runner runner) throws IOException, BadPathnameException {\n pathname = pn;\n // also sets server_checkin_time\n last_known_edit_time = get_server_edit_time(runner);\n content = new HashMap<>();\n final_block = -1;\n }", "public PlusSpringCacheManager() {\n }", "public ImageFileCache(Context context){\n\t\tFile cacheDir = getCacheDir(context, DISK_CACHE_SUBDIR);\n//\t\tmDiskCache = DiskLruCache.openCache(this, cacheDir, DISK_CACHE_SIZE);\n\t}", "public ArticleListAdapter(LruCache<String, Bitmap> cache) {\n this.mLruCache = cache;\n }", "public RoleAccess(RoleAccessPK roleAccessPK) {\n this.roleAccessPK = roleAccessPK;\n }", "public CachingConnectionFactory() {\n\t\tthis((String) null);\n\t}", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "public InMemoryResponseCache() {\n\t\tthis( 250*1024 ); // 250 KB cache\n\t}", "public PasswordCache(Configuration configuration) {\n super(\"PasswordCache\");\n this.configuration = configuration;\n }", "public MyLRUCache(int cacheSizeLimit) {\n this(cacheSizeLimit, 600);\n }", "public CachetClient(String url) {\n baseUrl = url;\n client = ClientBuilder.newClient();\n target = client.target(baseUrl);\n }", "public IndexedDiskCache(final IndexedDiskCacheAttributes cattr, final IElementSerializer elementSerializer)\r\n {\r\n super(cattr);\r\n\r\n setElementSerializer(elementSerializer);\r\n\r\n this.cattr = cattr;\r\n this.maxKeySize = cattr.getMaxKeySize();\r\n this.isRealTimeOptimizationEnabled = cattr.getOptimizeAtRemoveCount() > 0;\r\n this.isShutdownOptimizationEnabled = cattr.isOptimizeOnShutdown();\r\n this.logCacheName = \"Region [\" + getCacheName() + \"] \";\r\n this.diskLimitType = cattr.getDiskLimitType();\r\n // Make a clean file name\r\n this.fileName = getCacheName().replaceAll(\"[^a-zA-Z0-9-_\\\\.]\", \"_\");\r\n this.keyHash = createInitialKeyMap();\r\n this.queuedPutList = new ConcurrentSkipListSet<>(Comparator.comparing(ded1 -> ded1.pos));\r\n this.recycle = new ConcurrentSkipListSet<>();\r\n\r\n try\r\n {\r\n initializeFileSystem(cattr);\r\n initializeKeysAndData(cattr);\r\n\r\n // Initialization finished successfully, so set alive to true.\r\n setAlive(true);\r\n log.info(\"{0}: Indexed Disk Cache is alive.\", logCacheName);\r\n\r\n // TODO: Should we improve detection of whether or not the file should be optimized.\r\n if (isRealTimeOptimizationEnabled && !keyHash.isEmpty())\r\n {\r\n // Kick off a real time optimization, in case we didn't do a final optimization.\r\n doOptimizeRealTime();\r\n }\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Failure initializing for fileName: {1} and directory: {2}\",\r\n logCacheName, fileName, this.rafDir.getAbsolutePath(), e);\r\n }\r\n }", "SchemaCache(int capacity) {\n super(64, 0.75f, true);\n this.capacity = capacity;\n }", "public AccessSqlParser ()\n\t{\n\t}", "public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}", "private IgniteContract() {\n }", "public AddressCacheImplementation(float cacheTime) {\n\t\t// constructor allows the linkedlist within LinkedHashMap to maintain\n\t\t// order\n\t\t// with respect to calls to \"get\", \"put\" and \"putAll\". (i.e. maintaining\n\t\t// the most recently accessed/inserted elements at the front of the\n\t\t// cache)\n\t\tmInetAddressList = new LinkedHashMap<>(10, 0.75f, true);\n\n\t\t// element expiration time (TTL)\n\t\tmCacheTime = cacheTime;\n\n\t\t// zero initial permits\n\t\t// first in, first out distribution of permits as they become available\n\t\tmInetAddressAvailableSemaphore = new Semaphore(0, true);\n\t\tmIsClosed = false;\n\n\t\t// create a cleanup task and schedule it to start after 5 seconds, then\n\t\t// run\n\t\t// every 5 seconds\n\t\tmCleanupTask = new CleanupTask();\n\t\tTimer taskTimer = new Timer();\n\t\ttaskTimer.scheduleAtFixedRate(mCleanupTask, 5000, 5000);\n\t}", "interface Cache {\n\n /** @return A cache entry for given path string or <code>null</code> (if file cannot be read or too large to cache).\n * This method increments CacheEntry reference counter, caller must call {@link #checkIn(CacheEntry)} to release returned entry (when not null). */\n CacheEntry checkOut(CacheEntryLoader cacheEntryLoader);\n\n /**\n * Method to release cache entry previously obtained from {@link #checkOut(CacheEntryLoader)} call.\n * This method decrements CacheEntry reference counter.\n */\n void checkIn(CacheEntry key);\n\n /** Invalidates cached entry for given path string (if it is cached) */\n void invalidate(String pathString);\n\n void rename(String fromPathString, String toPathString);\n\n// /** Preload given file path in cache (if cache has vacant spot). Preloading happens in background. Preloaded pages initially have zero reference counter. */\n// void preload (String pathString);\n\n /** Clears the cache of all entries (even if some entries are checked out) */\n void clear();\n\n /** Allocates entry of given size for writing.\n * It will not be visible to others until caller calls {@link #update(String, CacheEntry)}.*/\n CacheEntry alloc(long size);\n\n /** Registers recently writtien cache entry as available for reading */\n void update(String pathString, CacheEntry cacheEntry);\n}", "private FixtureCache() {\n\t}", "public interface CacheManager {\n\n void init();\n\n void destroy();\n\n void del(String key);\n\n void set(String key, Object value);\n\n void set(String key, Object value, int expireTime);\n\n <T> T get(String key, Class<T> clazz);\n\n void hset(String key, String subKey, Object value);\n\n <T> T hget(String key, String subKey, Class<T> clazz);\n\n <T> Map<String, T> hget(String key, Class<T> clazz);\n\n void hrem(String key, String subKey);\n\n long hincr(String key, String subKey);\n\n void sadd(String key, Object val);\n\n boolean sisMember(String key, Object val);\n\n void srem(String key, Object val);\n\n Set<String> sget(String key);\n\n <T> Set<T> sget(String key, Class<T> clazz);\n\n void zadd(String key, Object val, double score);\n\n boolean zisMember(String key, Object val);\n\n void zrem(String key, Object val);\n\n void zrem(String key, double min, double max);\n\n void zreplace(String key, Object val, double score);\n\n double zincr(String key, Object val, double score);\n\n <T> Set<T> zget(String key, double min, double max, Class<T> clazz);\n\n Set<String> zget(String key, double min, double max);\n}", "public CacheEntry(int theTag, int theAddress, int theWriteValue)\n\t{\n\t\tmyTag = theTag;\n\t\tmyAddress = theAddress;\n\t\tmyWriteValue = theWriteValue;\n\t\tmyMesiState = MesiStates.EXCLUSIVE;\n\t}", "public LRUCache(int capacity) {\n super(capacity + 1, 1.0f, true); // Pass 'true' for accessOrder.\n this.capacity = capacity;\n }", "private SalesOrderCache()\n\t{\n\t\tsalesOrders = new ArrayList<SalesOrder>();\n\t}", "private TableAccessET() {\n\n }", "MFCAccessConditions()\r\n {\r\n }", "private Indexers()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public AuthenticationAccessTokens() {\n this(DSL.name(\"authentication_access_tokens\"), null);\n }", "public DiskBasedCache(File rootDirectory) {\n\t\tthis(rootDirectory, DEFAULT_DISK_USAGE_BYTES);\n\t}", "public LogAnalyzer()\n { \n // Create the array object to hold the hourly\n // access counts.\n hourCounts = new int[24];\n // Create the reader to obtain the data.\n reader = new LogfileReader();\n }", "public SessionQueryEntityCache(Session session, EntityCache queryCache)\n {\n this.session = session;\n this.queryCache = queryCache;\n }", "public void setCache(final ICache < ICacheKey < String >, Object > theCache) {\r\n this.cache = theCache;\r\n }", "public ICache(int delay, int size, String name) {\n this(null, delay, size, name);\n }", "public Scanner(CachePage aCachePage) {\n scanList = new ArrayList<String>();\n cachePage = aCachePage;\n }", "public static FileCache getInstance() {\n\t\tif (instance == null){\r\n\t\t\ttry {\r\n\t\t\t\tinstance = new FileCache();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public SpriteCache() {\n counter = 0;\n spritesToRender = new SparseArray<>();\n lock = new ReentrantLock();\n }", "CloudCache getCache(String cacheName);", "private void initializeCache(int cacheSize){\n \t\tlruCache = new LRUCache(cacheSize);\n \t}", "public Reachable(){\n\t\t\n\t\t\n\t}", "public AccessControlField(Map<Long, String> permissions) {\n this(permissions, null);\n }" ]
[ "0.72201836", "0.71887463", "0.6857016", "0.66757643", "0.6617489", "0.65835565", "0.65744174", "0.65744174", "0.6559444", "0.6464947", "0.6410988", "0.63520086", "0.6346042", "0.63404745", "0.6311137", "0.6310722", "0.6228212", "0.62005", "0.6193439", "0.61864835", "0.6175146", "0.6165653", "0.6139011", "0.6108206", "0.6092877", "0.60788715", "0.6059658", "0.6038319", "0.60326177", "0.6009363", "0.6002545", "0.5965753", "0.5949326", "0.5947716", "0.5941993", "0.58610326", "0.58598447", "0.58501506", "0.5831214", "0.5828207", "0.5800072", "0.57991886", "0.577969", "0.5774233", "0.57685745", "0.57643473", "0.5763971", "0.5763685", "0.57581174", "0.5755279", "0.5745714", "0.5742515", "0.5718665", "0.57032764", "0.56907916", "0.5682645", "0.5668437", "0.56684005", "0.5651165", "0.5641801", "0.56251216", "0.5617151", "0.5610652", "0.56048644", "0.56021285", "0.55994225", "0.5597999", "0.5593216", "0.5566282", "0.55638456", "0.55486244", "0.5540572", "0.55295336", "0.5528095", "0.55145395", "0.5499611", "0.54687", "0.5467125", "0.54610085", "0.54481345", "0.5430767", "0.5425636", "0.5422982", "0.54217225", "0.54211086", "0.54202145", "0.54071736", "0.54049784", "0.5399545", "0.5396334", "0.53925693", "0.5392141", "0.5387425", "0.53862154", "0.53824043", "0.5377889", "0.53762907", "0.5367689", "0.5334784", "0.53333455" ]
0.7559464
0
Retrieve an object from the cache region this instance provides access to.
@Override public V get( final K name ) { final ICacheElement<K, V> element = this.getCacheControl().get( name ); return ( element != null ) ? element.getVal() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public V get(K key){\n CacheObject<K, V> cacheObject = this.cache.get(key);\n\n if (cacheObject != null){\n return cacheObject.getObject();\n }\n\n return null;\n }", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "CloudCache getCache(String cacheName);", "@Override\n\tpublic V retrieve(K key) {\n\t\tcheckNullKey(key);\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.get(key);\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "@Override\n\tpublic Object getObject(String key) {\n\t\tif (mInternalCache.contains(key)) {\n\t\t\ttry {\n\t\t\t\treturn Base64.fromString(mInternalCache.getString(key, null));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Failed to get the object from cache !\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public T getObject(T object) {\r\n\t\t\r\n\t\tif(cache.contains(object) == false) //if not in the cache\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Element not found.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcache.get(cache.indexOf(object));\r\n\t\t\treturn object;\r\n\t\t\t\r\n\t\t}\r\n\t\t \r\n\t}", "@SuppressWarnings(\"unchecked\")\n public T get(K key) {\n synchronized (cacheMap) {\n CacheObject c = (CacheObject) cacheMap.get(key);\n\n if (c == null) {\n return null;\n } else {\n c.lastAccessed = System.currentTimeMillis();\n return c.value;\n }\n }\n }", "public RegionLocations get(byte[] startKey) {\n return cache.get(startKey);\n }", "public TSLCountryRegionCacheObject getTSLCountryRegionCacheObject(String countryRegionCode) throws TSLManagingException {\n\n\t\tTSLCountryRegionCacheObject result = null;\n\n\t\tif (!UtilsStringChar.isNullOrEmptyTrim(countryRegionCode)) {\n\t\t\ttry {\n\t\t\t\tresult = ConfigurationCacheFacade.tslGetTSLCountryRegionCacheObject(countryRegionCode.toUpperCase());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL161, new Object[ ] { countryRegionCode }), e);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\n\t}", "@Override\n\tpublic T retrieveItem(T obj) {\n\t\tif(cache.contains(obj)) {\n\t\t\tfor (T objInSet : cache) {\n\t\t\t\tif (objInSet.equals(obj)) {\n\t\t\t\t\treturn objInSet;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Object get(String key) {\n\n CacheObject cacheObject = cache.get(key).get();\n if (!cacheObject.isExpired()) {\n cacheObject.updateUseTime();\n return cacheObject.getValue();\n } else {\n cache.remove(key);\n queue.add(cacheObject);\n return null;\n }\n }", "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}", "Object getValueFromLocalCache(Object key);", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "public V fetch(String name) {\n return mCache.fetch(name, mSource);\n }", "@Override\n public Blob getBlob(String bucketName, String objectPath) {\n Blob result = storageProvider.get().get(bucketName, objectPath);\n if (result == null) {\n throw new NotFoundException(String.format(\"Bucket %s, Object %s\", bucketName, objectPath));\n }\n return result;\n }", "@Override\n public Object load(Object query,\n CacheElement ce)\n throws ResourceException\n {\n throw new ResourceException(\"CachingProvider: load(Object) not supported, use load(String)\");\n }", "public V get(K key) {\n CacheableObject cObj;\n\n synchronized(theLock) {\n cObj = valueMap.get(key);\n }\n\n return cObj == null ? null : cObj.cachedObject;\n }", "public Object Get(String objectName)\n\t{\n\t\tif(storage.containsKey(objectName))\n\t\t\treturn storage.get(objectName);\n\t\tlog.debug(\"The object [\"+objectName+\"] doesn't exist in the room, return Null\");\n\t\treturn null;\n\t}", "public Object get(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n }\n return cacheKey.getObject();\n }", "@Override\n\tpublic Object get(String name, Serializable key) throws CacheException {\n\t\treturn null;\n\t}", "public static Object getCache(String key) {\n\t\treturn getCache(key, null);\n\t}", "@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getCacheControl().get( name );\n }", "public Object readObject(String KEY) {\n\t\tFile file = null;\n\t\tObject obj = null;\n\t\tFileInputStream fInputStream;\n\t\ttry {\n\t\t\tfile = new File(mContext.getCacheDir().getAbsolutePath(), KEY);\n\t\t\tfInputStream = new FileInputStream(file);\n\t\t\tObjectInputStream objectInStream = new ObjectInputStream(\n\t\t\t\t\tfInputStream);\n\t\t\tobj = objectInStream.readObject();\n\t\t\tfInputStream.close();\n\t\t\tobjectInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn obj;\n\n\t}", "@Override\n public Object getResource(String resourceKey)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n return null;\n }\n\n WeakReference reference = (WeakReference)_cache.get(resourceKey);\n return reference.get();\n }\n }", "@Override\n public IBasicEntity get(Class<? extends IBasicEntity> type, String key)\n throws CachingException {\n return EntityCachingServiceLocator.getEntityCachingService().get(type, key);\n }", "public Object get(Object key) {\n Entry entry = this.cache.get(key);\n\n if (entry == null)\n return null;\n\n // move the recently accessed Entry to the head of list\n moveToHead(entry);\n return entry.value;\n }", "public static Object getCache(String key) {\n return getCache(key, null);\n }", "public static Object getCache(String key) {\n return getCache(key, null);\n }", "public Object getObject(String key);", "@Override\n public Object getObject(Object obj, int hashCode, String destDir) {\n /*\n * We know that the object has been accessed before by a task, otherwise the ObjectRegistry would have discarded\n * it and this method would not have been called.\n */\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.Event.GET_OBJECT.getId(), Tracer.Event.GET_OBJECT.getType());\n }\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Getting object with hash code \" + hashCode);\n }\n\n Object oUpdated = mainAccessToObject(obj, hashCode);\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Object obtained \" + ((oUpdated == null) ? oUpdated : oUpdated.hashCode()));\n }\n\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n }\n\n return oUpdated;\n }", "public Cache.Entry get(String param1) {\n }", "public static CatalogStructure getCache() {\n return CACHE.get();\n }", "ISObject get(String key);", "E getObject(int ID) throws DatabaseObjectNotFoundException, DatabaseNotAccessibleException;", "public T getObject(long index) {\n\t\tValueStoragePage<T> page = getPage(getPageID(index));\n\t\tif (page != null) {\n\t\t\treturn page.getObject(getPageOffset(index));\n\t\t}\n\t\treturn null;\n\t}", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "public Object getObject() {\n return getObject(null);\n }", "public T get() {\n return cache.getUnchecked(clazz);\n }", "@CheckForNull\n\t@SuppressFBWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\")\n\tpublic V get(@Nonnull String key) {\n\t\tFile jsonFile = new File(mCacheLocation, key);\n\t\tif (!jsonFile.exists()) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\treturn mObjectMapper.readValue(jsonFile, mModelClass);\n\t\t} catch (IOException e) {\n\t\t\tLogUtils.logException(TAG, \"Exception when reading \" + key, e);\n\t\t\tjsonFile.delete(); // try to delete damaged file\n\t\t\treturn null;\n\t\t}\n\t}", "public V get(Object key) {\r\n if (cacheDelegate != null) {\r\n cacheDelegate.keyLookup(key);\r\n }\r\n\r\n if (key == null) {\r\n return null;\r\n }\r\n\r\n V value;\r\n CacheData<K, V> cacheData = getEntry(key);\r\n if (cacheData != null) {\r\n // see if the key passed in matches this one\r\n if ((value = cacheData.validateKey(key, cacheDelegate)) != null) {\r\n return value;\r\n }\r\n }\r\n // if we made it here and source!=null use the passthrough\r\n if (source!=null) {\r\n value = source.get(key);\r\n put((K)key, value);\r\n return value;\r\n }\r\n return null;\r\n }", "M getById(Serializable id) throws DataAccessException;", "MageObject getObject(UUID objectId);", "public IBasicEntity get(EntityIdentifier entityID) throws CachingException {\n return EntityCachingServiceLocator.getEntityCachingService()\n .get(entityID.getType(), entityID.getKey());\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic U accessObject()\n\t{\n\t\treturn (primaryKey == null)?(null):\n\t\t (U)bean(GetUnity.class).getUnited(primaryKey);\n\t}", "@Override\r\n protected ICacheElement<K, V> processGet(final K key)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive so returning null for key = {1}\",\r\n logCacheName, key);\r\n return null;\r\n }\r\n\r\n log.debug(\"{0}: Trying to get from disk: {1}\", logCacheName, key);\r\n\r\n ICacheElement<K, V> object = null;\r\n try\r\n {\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n object = readElement(key);\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n if (object != null)\r\n {\r\n hitCount.incrementAndGet();\r\n }\r\n }\r\n catch (final IOException ioe)\r\n {\r\n log.error(\"{0}: Failure getting from disk, key = {1}\", logCacheName, key, ioe);\r\n reset();\r\n }\r\n return object;\r\n }", "final CacheData<K, V> getEntry(final Object key) {\r\n // validateKey the key in the buckets\r\n\r\n // synchronization is not a problem here\r\n // if someone changes or resets a key/value right before this\r\n // it will be properly handled, either it won't find a validateKey in the if or the\r\n // obj being returned will be null, that is fine and expected for a no-validateKey\r\n // then the client will just validateKey whatever data he was looking for in the buckets\r\n return getCacheData(getKeyPosition(key));\r\n }", "protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }", "public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}", "public Object lookup(Object key, Map cache)\n throws DBException, CacheException\n {\n if (!super.hasBeenInitialized)\n {\n init(cache);\n }\n Object target = null;\n if (key instanceof String)\n // make lookup case insensitive\n target = ((String)key).toLowerCase();\n else\n target = key;\n\n Object o = cache.get(target);\n if (super.debug)\n {\n if (o != null)\n {\n super.logger.logDebug(\"key found in cache: \" + key);\n }\n else\n {\n super.logger.logDebug(\"key not found in cache: \" + key);\n }\n }\n return o;\n }", "@Override\n public CacheAPI getCacheAPI() {\n return null;\n }", "final CacheData<K, V> getCacheData(int pos) {\r\n return buckets[pos].get();\r\n }", "GeometricalObject getObject(int index);", "public SharedObjectInterface getSharedObject( String className, String objectName ) {\n SharedEntry entry = new SharedEntry( className, objectName );\n return objectsMap.get( entry );\n }", "public Object read(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n Object result = null;\n try {\n result = em.find(object.getClass(), \"id\");\n LOG.debug(\"Found \" + object);\n } catch (Exception e) {\n LOG.error(\"Could not find Object\", e);\n } finally {\n em.close();\n }\n return result;\n }", "Object get(ID id) throws Exception;", "public Object getObject();", "T get(final UniqueId uniqueId) {\n _readLock.lock();\n try {\n return _uniqueIdMap.get(uniqueId);\n } finally {\n _readLock.unlock();\n }\n }", "public GeometricalObject getObject(int index);", "public Object getObject() ;", "public Object[] retrieveRowFromCache(int rowIndex) {\n\t ensureRowCached(rowIndex);\n\t return (Object[])data[getIndexOfRowInCache(rowIndex)];\n }", "public Object getValueToPutInCache(AbstractRecord row, AbstractSession session) {\r\n if (isStoredInCache()) {\r\n return row.get(getWriteLockField());\r\n } else {\r\n return null;\r\n }\r\n }", "private MProduct getProductFromCache(int M_Product_ID)\n {\n \tif (m_prodCache == null)\n \t\tm_prodCache = new MProductCache(getCtx(),get_TrxName());\n \tif (M_Product_ID <=0)\n \t\treturn null;\n \tMProduct p = m_prodCache.get(M_Product_ID);\n \treturn p;\n }", "public static <T> T getCacheObject(final String key, Class<T> type) {\n if (isNull(key, type)) {\n throw new NullPointerException(\"You can not use a null\" + (key == null ? \"key\" : \"type\"));\n }\n if (!cacheKeys.contains(key)) {\n return null;\n }\n T value;\n try {\n value = type.cast(cacheValues.get(cacheKeys.indexOf(key)).getValue());\n } catch (ClassCastException exception) {\n exception.printStackTrace();\n throw new ClassCastException(\"Invalid type \" + type.getName() + \" for value!\");\n }\n return value;\n }", "public Object get(String methodName, CallCacheArgs args) {\n Map<CallCacheArgs, Object> cacheArgs = this.cache.get(methodName);\n return cacheArgs == null ? null : cacheArgs.get(args);\n }", "public Node getNodeByCache(String label)\r\n\t{\r\n\t\treturn cacheNodes.get(label);\r\n\t}", "public Object get(Class cl, Serializable id) throws HibException;", "protected BsLocusDetail queryStoredObject(com.poesys.db.pk.NaturalPrimaryKey key)\n throws DelegateException {\n // Clear the caches, then query the saved object and test it.\n clearCaches();\n\n BsLocusDetail queriedObject = delegate.getObject(key);\n assertTrue(\"Object not found\", queriedObject != null);\n return queriedObject;\n }", "HRegionLocation getCachedLocation(final byte [] tableName,\n final byte [] row) {\n SoftValueSortedMap<byte [], HRegionLocation> tableLocations =\n getTableLocations(tableName);\n\n // start to examine the cache. we can only do cache actions\n // if there's something in the cache for this table.\n if (tableLocations.isEmpty()) {\n return null;\n }\n\n HRegionLocation possibleRegion = tableLocations.get(row);\n if (possibleRegion != null) {\n return possibleRegion;\n }\n\n possibleRegion = tableLocations.lowerValueByKey(row);\n if (possibleRegion == null) {\n return null;\n }\n\n // make sure that the end key is greater than the row we're looking\n // for, otherwise the row actually belongs in the next region, not\n // this one. the exception case is when the endkey is\n // HConstants.EMPTY_END_ROW, signifying that the region we're\n // checking is actually the last region in the table.\n byte[] endKey = possibleRegion.getRegionInfo().getEndKey();\n if (Bytes.equals(endKey, HConstants.EMPTY_END_ROW) ||\n KeyValue.getRowComparator(tableName).compareRows(\n endKey, 0, endKey.length, row, 0, row.length) > 0) {\n return possibleRegion;\n }\n\n // Passed all the way through, so we got nothin - complete cache miss\n return null;\n }", "PortalCacheModel getCacheModel();", "@Test\n public void retrievedContractor_whenRetrievedAgain_shouldBeAvailableInCache() {\n assertEquals(Optional.of(person), Optional.ofNullable(cacheManager.getCache(\"person2\"))\n .map(cache -> cache.get(\"17a36637-04d4-4357-9c6b-10a755dbbcdd\", Person.class)));\n }", "public Object getObject()\n {\n return m_object;\n }", "public Object get(Object key) {\n CacheEntry entry = (CacheEntry)_hash.get(key);\n if (entry != null) {\n touchEntry(entry);\n return entry.getValue();\n } else {\n return null;\n }\n }", "private static Asset getFromPersistentCache(MD5Key id) {\n \n \t\tif (id == null || id.toString().length() == 0) {\n \t\t\treturn null;\n \t\t}\n \n \t\tif (!assetIsInPersistentCache(id)) {\n \t\t\treturn null;\n \t\t}\n \n \t\tFile assetFile = getAssetCacheFile(id);\n \n \t\ttry {\n \t\t\tbyte[] data = FileUtils.readFileToByteArray(assetFile);\n \t\t\tProperties props = getAssetInfo(id);\n \n \t\t\tAsset asset = new Asset(props.getProperty(NAME), data);\n \n \t\t\tif (!asset.getId().equals(id)) {\n \t\t\t\tlog.error(\"MD5 for asset \" + asset.getName() + \" corrupted\");\n \t\t\t}\n \n \t\t\tassetMap.put(id, asset);\n \n \t\t\treturn asset;\n \t\t} catch (IOException ioe) {\n \t\t\tlog.error(\"Could not load asset from persistent cache\", ioe);\n \t\t\treturn null;\n \t\t}\n \n \t}", "public V get(K key)\n throws Exception\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n if (bucket == null)\n {\n throw new Exception(\"Invalid key: \" + key);\n } // if (bucket == null)\n else\n // if (bucket != null)\n {\n return bucket.get(key);\n } // if (bucket != null)\n }", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "public interface ICustomerCache {\n Object get(String key);\n\n Object set(String key, Object o);\n\n Object set(String key, int exp, Object o);\n\n OperationFuture<Boolean> delete(String key);\n\n void replace(String key, Object o);\n\n void destroy();\n}", "public NamedCache getCache(String sCacheName, ClassLoader loader)\n {\n Map mapByLoader = (Map) m_mapByName.get(sCacheName);\n\n if (mapByLoader != null)\n {\n synchronized (mapByLoader)\n {\n Object oHolder = mapByLoader.get(loader);\n\n if (oHolder == null || oHolder instanceof NamedCache)\n {\n return (NamedCache) oHolder;\n }\n else if (oHolder instanceof SubjectScopedReference)\n {\n return (NamedCache) ((SubjectScopedReference) oHolder).get();\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n\n return null;\n }", "public PojoCache getPojoCache();", "ISObject getFull(String key);", "DataElement getFromCache(String dataElementName);", "public Object get(String key) {\n return objectMap.get(key);\n }", "public ObjectReference getObject();", "public T get(K key);", "private Location getRegion() {\n Set<? extends Location> locations = blobStore.listAssignableLocations();\n if (!(swiftRegion == null || \"\".equals(swiftRegion))) {\n for (Location location : locations) {\n if (location.getId().equals(swiftRegion)) {\n return location;\n }\n }\n }\n if (locations.size() != 0) {\n return get(locations, 0);\n } else {\n return null;\n }\n }", "StoragePrimitive get(String key);", "@Override\n\tpublic Bitmap fetch(String key) {\n\t\treturn (Bitmap) mMemoryCache.get(key);\n\t}", "@Override\n\tpublic Object get(String name, ObjectFactory<?> objectFactory) {\n\t\tMap<String, Object> scope = threadLocal.get();\n\t\tObject obj = scope.get(name);\n\t\tif(Objects.isNull(obj)) {\n\t\t\tobj = objectFactory.getObject();\n\t\t\tscope.put(name, obj);\n\t\t\tSystem.out.println(\"Not exists \" + name + \"; hashCode: \" + obj.hashCode() +\"; threadName:\" + Thread.currentThread().getName() );\n\t\t}else {\n\t\t\tSystem.out.println(\"Exists \" + name + \"; hashCode: \" + obj.hashCode());\n\t\t}\n\t\treturn obj;\n\t\t\n\t}", "@Override\n\tpublic CacheResponse get(URI uri, String rqstMethod, Map<String, List<String>> rqstHeaders) throws IOException {\n\t\tSystem.err.println(\"enter MemoryCache.get()\");\n\t\treturn new CacheResponseImpl();\n\t}", "public void refreshObjectCache();", "public Object get(String key) {\r\n\t\treturn objectMap.get(key);\r\n\t}", "public Object get(String path)\n {\n return DataObjectUtil.get(this, path);\n }", "private void prefetchRegionCache(final byte[] tableName,\n final byte[] row) {\n // Implement a new visitor for MetaScanner, and use it to walk through\n // the .META.\n MetaScannerVisitor visitor = new MetaScannerVisitorBase() {\n public boolean processRow(Result result) throws IOException {\n try {\n byte[] value = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.REGIONINFO_QUALIFIER);\n HRegionInfo regionInfo = null;\n\n if (value != null) {\n // convert the row result into the HRegionLocation we need!\n regionInfo = Writables.getHRegionInfo(value);\n\n // possible we got a region of a different table...\n if (!Bytes.equals(regionInfo.getTableName(),\n tableName)) {\n return false; // stop scanning\n }\n if (regionInfo.isOffline()) {\n // don't cache offline regions\n return true;\n }\n value = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.SERVER_QUALIFIER);\n if (value == null) {\n return true; // don't cache it\n }\n final String hostAndPort = Bytes.toString(value);\n String hostname = Addressing.parseHostname(hostAndPort);\n int port = Addressing.parsePort(hostAndPort);\n value = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.STARTCODE_QUALIFIER);\n // instantiate the location\n HRegionLocation loc =\n new HRegionLocation(regionInfo, hostname, port);\n // cache this meta entry\n cacheLocation(tableName, loc);\n }\n return true;\n } catch (RuntimeException e) {\n throw new IOException(e);\n }\n }\n };\n try {\n // pre-fetch certain number of regions info at region cache.\n MetaScanner.metaScan(conf, this, visitor, tableName, row,\n this.prefetchRegionLimit, HConstants.META_TABLE_NAME);\n } catch (IOException e) {\n LOG.warn(\"Encountered problems when prefetch META table: \", e);\n }\n }", "public T get( @Nonnull final Object... args )\n {\n if ( Arez.shouldCheckApiInvariants() )\n {\n apiInvariant( this::isNotDisposed,\n () -> \"Arez-0161: MemoizeCache named '\" + _name + \"' had get() invoked when disposed.\" );\n }\n return getComputableValue( args ).get();\n }", "public synchronized final Object readObject() {\n\t\tif (!inQueue.isEmpty())\n\t\t\treturn inQueue.dequeue();\n\t\telse return null;\n\t}", "Object getFlyweight(String type, String tag) {\n\t\t\treturn cache.get(type + \".\" + tag);\n\t\t}", "public Object getObject() {\n return this.object;\n }", "public V deliverCacheEntry(@NonNull T key) {\n return keysToObjectsMap.get(key);\n }", "public abstract LocalAbstractObject getObject(UniqueID objectID) throws NoSuchElementException;", "V get(K id);" ]
[ "0.65560997", "0.64996207", "0.64247584", "0.6382465", "0.6364222", "0.6254376", "0.6140721", "0.61216265", "0.60983866", "0.6096541", "0.606305", "0.6040373", "0.60397196", "0.6026646", "0.60176873", "0.59569454", "0.58956933", "0.5880832", "0.5748286", "0.57430696", "0.5722733", "0.57027334", "0.5696207", "0.5671613", "0.5659498", "0.56521744", "0.56494653", "0.5643838", "0.5643838", "0.564155", "0.5629716", "0.56169486", "0.56066793", "0.5599884", "0.55900705", "0.5556169", "0.5538895", "0.5527753", "0.5516274", "0.5506928", "0.55067086", "0.5482631", "0.5468832", "0.5458158", "0.544878", "0.5430323", "0.54248184", "0.5400792", "0.53973293", "0.5382455", "0.5373437", "0.5367219", "0.53658694", "0.5364902", "0.5343491", "0.5335484", "0.5318462", "0.53123367", "0.53016543", "0.5298163", "0.529291", "0.52904844", "0.52895594", "0.52895486", "0.52855754", "0.5281136", "0.5274443", "0.5271507", "0.5267041", "0.52571535", "0.5248134", "0.52481073", "0.5244625", "0.5230889", "0.5228725", "0.5223248", "0.5220008", "0.52179116", "0.5210831", "0.51896703", "0.51890296", "0.51855147", "0.5179788", "0.51746595", "0.51719284", "0.51697403", "0.51590955", "0.51570654", "0.51564735", "0.5154352", "0.51432264", "0.5133424", "0.5131352", "0.5129574", "0.5125621", "0.51241696", "0.5122689", "0.51167434", "0.5116706", "0.51133853" ]
0.5716463
21
Retrieve an object from the cache region this instance provides access to. If the object cannot be found in the cache, it will be retrieved by calling the supplier and subsequently storing it in the cache.
@Override public V get(final K name, final Supplier<V> supplier) { V value = get(name); if (value == null) { value = supplier.get(); put(name, value); } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}", "public T getObject(T object) {\r\n\t\t\r\n\t\tif(cache.contains(object) == false) //if not in the cache\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Element not found.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcache.get(cache.indexOf(object));\r\n\t\t\treturn object;\r\n\t\t\t\r\n\t\t}\r\n\t\t \r\n\t}", "@Override\n\tpublic V retrieve(K key) {\n\t\tcheckNullKey(key);\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.get(key);\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "@Override\n\tpublic T retrieveItem(T obj) {\n\t\tif(cache.contains(obj)) {\n\t\t\tfor (T objInSet : cache) {\n\t\t\t\tif (objInSet.equals(obj)) {\n\t\t\t\t\treturn objInSet;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public V get(K key){\n CacheObject<K, V> cacheObject = this.cache.get(key);\n\n if (cacheObject != null){\n return cacheObject.getObject();\n }\n\n return null;\n }", "public Object get(String key) {\n\n CacheObject cacheObject = cache.get(key).get();\n if (!cacheObject.isExpired()) {\n cacheObject.updateUseTime();\n return cacheObject.getValue();\n } else {\n cache.remove(key);\n queue.add(cacheObject);\n return null;\n }\n }", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "@SuppressWarnings(\"unchecked\")\n public T get(K key) {\n synchronized (cacheMap) {\n CacheObject c = (CacheObject) cacheMap.get(key);\n\n if (c == null) {\n return null;\n } else {\n c.lastAccessed = System.currentTimeMillis();\n return c.value;\n }\n }\n }", "@Override\n\tpublic Object getObject(String key) {\n\t\tif (mInternalCache.contains(key)) {\n\t\t\ttry {\n\t\t\t\treturn Base64.fromString(mInternalCache.getString(key, null));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Failed to get the object from cache !\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "CloudCache getCache(String cacheName);", "public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }", "Object getValueFromLocalCache(Object key);", "public V get(K key) {\n CacheableObject cObj;\n\n synchronized(theLock) {\n cObj = valueMap.get(key);\n }\n\n return cObj == null ? null : cObj.cachedObject;\n }", "@Test\n public void retrievedContractor_whenRetrievedAgain_shouldBeAvailableInCache() {\n assertEquals(Optional.of(person), Optional.ofNullable(cacheManager.getCache(\"person2\"))\n .map(cache -> cache.get(\"17a36637-04d4-4357-9c6b-10a755dbbcdd\", Person.class)));\n }", "public V get(Object key) {\r\n if (cacheDelegate != null) {\r\n cacheDelegate.keyLookup(key);\r\n }\r\n\r\n if (key == null) {\r\n return null;\r\n }\r\n\r\n V value;\r\n CacheData<K, V> cacheData = getEntry(key);\r\n if (cacheData != null) {\r\n // see if the key passed in matches this one\r\n if ((value = cacheData.validateKey(key, cacheDelegate)) != null) {\r\n return value;\r\n }\r\n }\r\n // if we made it here and source!=null use the passthrough\r\n if (source!=null) {\r\n value = source.get(key);\r\n put((K)key, value);\r\n return value;\r\n }\r\n return null;\r\n }", "@Override\n public Object load(Object query,\n CacheElement ce)\n throws ResourceException\n {\n throw new ResourceException(\"CachingProvider: load(Object) not supported, use load(String)\");\n }", "public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}", "@Override\n public Object getObject(Object obj, int hashCode, String destDir) {\n /*\n * We know that the object has been accessed before by a task, otherwise the ObjectRegistry would have discarded\n * it and this method would not have been called.\n */\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.Event.GET_OBJECT.getId(), Tracer.Event.GET_OBJECT.getType());\n }\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Getting object with hash code \" + hashCode);\n }\n\n Object oUpdated = mainAccessToObject(obj, hashCode);\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Object obtained \" + ((oUpdated == null) ? oUpdated : oUpdated.hashCode()));\n }\n\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n }\n\n return oUpdated;\n }", "public Cache.Entry get(String param1) {\n }", "@Override\n public Object getResource(String resourceKey)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n return null;\n }\n\n WeakReference reference = (WeakReference)_cache.get(resourceKey);\n return reference.get();\n }\n }", "public Object Get(String objectName)\n\t{\n\t\tif(storage.containsKey(objectName))\n\t\t\treturn storage.get(objectName);\n\t\tlog.debug(\"The object [\"+objectName+\"] doesn't exist in the room, return Null\");\n\t\treturn null;\n\t}", "@Override\n public IBasicEntity get(Class<? extends IBasicEntity> type, String key)\n throws CachingException {\n return EntityCachingServiceLocator.getEntityCachingService().get(type, key);\n }", "public Object get(Object key) {\n Entry entry = this.cache.get(key);\n\n if (entry == null)\n return null;\n\n // move the recently accessed Entry to the head of list\n moveToHead(entry);\n return entry.value;\n }", "public V fetch(String name) {\n return mCache.fetch(name, mSource);\n }", "private MProduct getProductFromCache(int M_Product_ID)\n {\n \tif (m_prodCache == null)\n \t\tm_prodCache = new MProductCache(getCtx(),get_TrxName());\n \tif (M_Product_ID <=0)\n \t\treturn null;\n \tMProduct p = m_prodCache.get(M_Product_ID);\n \treturn p;\n }", "public TSLCountryRegionCacheObject getTSLCountryRegionCacheObject(String countryRegionCode) throws TSLManagingException {\n\n\t\tTSLCountryRegionCacheObject result = null;\n\n\t\tif (!UtilsStringChar.isNullOrEmptyTrim(countryRegionCode)) {\n\t\t\ttry {\n\t\t\t\tresult = ConfigurationCacheFacade.tslGetTSLCountryRegionCacheObject(countryRegionCode.toUpperCase());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL161, new Object[ ] { countryRegionCode }), e);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\n\t}", "public T get( @Nonnull final Object... args )\n {\n if ( Arez.shouldCheckApiInvariants() )\n {\n apiInvariant( this::isNotDisposed,\n () -> \"Arez-0161: MemoizeCache named '\" + _name + \"' had get() invoked when disposed.\" );\n }\n return getComputableValue( args ).get();\n }", "@Override\r\n protected ICacheElement<K, V> processGet(final K key)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive so returning null for key = {1}\",\r\n logCacheName, key);\r\n return null;\r\n }\r\n\r\n log.debug(\"{0}: Trying to get from disk: {1}\", logCacheName, key);\r\n\r\n ICacheElement<K, V> object = null;\r\n try\r\n {\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n object = readElement(key);\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n if (object != null)\r\n {\r\n hitCount.incrementAndGet();\r\n }\r\n }\r\n catch (final IOException ioe)\r\n {\r\n log.error(\"{0}: Failure getting from disk, key = {1}\", logCacheName, key, ioe);\r\n reset();\r\n }\r\n return object;\r\n }", "@Override\n public AsyncFuture<QueryResult> load(\n MetricType source, Filter filter, DateRange range, AggregationInstance aggregationInstance,\n QueryOptions options, Supplier<AsyncFuture<QueryResult>> loader\n ) {\n if (aggregationInstance.cadence() <= 0) {\n return loader.get();\n }\n\n final Key k = new Key(source, filter, range, aggregationInstance, options);\n\n final AsyncFuture<QueryResult> result = cache.get(k);\n\n if (result != null) {\n return result;\n }\n\n synchronized (lock) {\n final AsyncFuture<QueryResult> candidate = cache.get(k);\n\n if (candidate != null) {\n return candidate;\n }\n\n final AsyncFuture<QueryResult> next = loader.get();\n cache.put(k, next, ExpirationPolicy.ACCESSED, aggregationInstance.cadence(),\n TimeUnit.MILLISECONDS);\n return next;\n }\n }", "public static Object getCache(String key) {\n\t\treturn getCache(key, null);\n\t}", "public static Object getCache(String key) {\n return getCache(key, null);\n }", "public static Object getCache(String key) {\n return getCache(key, null);\n }", "@Override\n public Blob getBlob(String bucketName, String objectPath) {\n Blob result = storageProvider.get().get(bucketName, objectPath);\n if (result == null) {\n throw new NotFoundException(String.format(\"Bucket %s, Object %s\", bucketName, objectPath));\n }\n return result;\n }", "final CacheData<K, V> getEntry(final Object key) {\r\n // validateKey the key in the buckets\r\n\r\n // synchronization is not a problem here\r\n // if someone changes or resets a key/value right before this\r\n // it will be properly handled, either it won't find a validateKey in the if or the\r\n // obj being returned will be null, that is fine and expected for a no-validateKey\r\n // then the client will just validateKey whatever data he was looking for in the buckets\r\n return getCacheData(getKeyPosition(key));\r\n }", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "public IBasicEntity get(EntityIdentifier entityID) throws CachingException {\n return EntityCachingServiceLocator.getEntityCachingService()\n .get(entityID.getType(), entityID.getKey());\n }", "public interface ICustomerCache {\n Object get(String key);\n\n Object set(String key, Object o);\n\n Object set(String key, int exp, Object o);\n\n OperationFuture<Boolean> delete(String key);\n\n void replace(String key, Object o);\n\n void destroy();\n}", "protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }", "public T get() {\n return cache.getUnchecked(clazz);\n }", "public Object lookup(Object key, Map cache)\n throws DBException, CacheException\n {\n if (!super.hasBeenInitialized)\n {\n init(cache);\n }\n Object target = null;\n if (key instanceof String)\n // make lookup case insensitive\n target = ((String)key).toLowerCase();\n else\n target = key;\n\n Object o = cache.get(target);\n if (super.debug)\n {\n if (o != null)\n {\n super.logger.logDebug(\"key found in cache: \" + key);\n }\n else\n {\n super.logger.logDebug(\"key not found in cache: \" + key);\n }\n }\n return o;\n }", "@Override\n\tpublic Object get(String name, Serializable key) throws CacheException {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object get(String name, ObjectFactory<?> objectFactory) {\n\t\tMap<String, Object> scope = threadLocal.get();\n\t\tObject obj = scope.get(name);\n\t\tif(Objects.isNull(obj)) {\n\t\t\tobj = objectFactory.getObject();\n\t\t\tscope.put(name, obj);\n\t\t\tSystem.out.println(\"Not exists \" + name + \"; hashCode: \" + obj.hashCode() +\"; threadName:\" + Thread.currentThread().getName() );\n\t\t}else {\n\t\t\tSystem.out.println(\"Exists \" + name + \"; hashCode: \" + obj.hashCode());\n\t\t}\n\t\treturn obj;\n\t\t\n\t}", "@Override\n public T get(int key) {\n T value = _map.get(key, noFound);\n if (value == noFound) {\n value = _supplier.apply(key);\n if (value == noFound) {\n throw new UnsupportedOperationException(\"Invalid return for supplier function\");\n }\n _map.put(key, value);\n }\n\n return value;\n }", "@Override\n public Object get(String name, ObjectFactory<?> objectFactory) {\n Map<String, Object> mapForThisThread = beanMap.get();\n\n Object obj = mapForThisThread.get(name);\n if(obj != null) {\n log.info(\"get {} resolved from scope\", name);\n return obj;\n }\n obj = objectFactory.getObject();\n mapForThisThread.put(name, obj);\n log.info(\"get {} resolved from factory\", name);\n return obj;\n }", "public interface Cache {\n void put(String key, Object value);\n\n Object get(String key);\n}", "public SafeHashMap.Entry getEntry(Object oKey)\n {\n // check if the cache needs flushing\n checkFlush();\n\n Entry entry = (Entry) getEntryInternal(oKey);\n if (entry == null)\n {\n m_stats.registerMiss();\n }\n else\n {\n m_stats.registerHit();\n entry.touch();\n }\n\n return entry;\n }", "public static <T> T getCacheObject(final String key, Class<T> type) {\n if (isNull(key, type)) {\n throw new NullPointerException(\"You can not use a null\" + (key == null ? \"key\" : \"type\"));\n }\n if (!cacheKeys.contains(key)) {\n return null;\n }\n T value;\n try {\n value = type.cast(cacheValues.get(cacheKeys.indexOf(key)).getValue());\n } catch (ClassCastException exception) {\n exception.printStackTrace();\n throw new ClassCastException(\"Invalid type \" + type.getName() + \" for value!\");\n }\n return value;\n }", "public interface Cache {\r\n\r\n public Object get( Object key);\r\n public void put( Object key, Object value);\r\n}", "public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object get(String key);\n\t\n\t\n\t\n\t/**\n\t * <p>\n\t * \n\t * @param key\n\t * @return old cache object \n\t */\n\tpublic Object put(String key,Object value);\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key quietly,\n\t * without update the statistic data\n\t * @param key\n\t * @return\n\t */\n\tpublic Object getQuiet(String key);\n\t\n\t\n\t/**\n\t * <p>\n\t * remove the cached object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object remove(String key);\n\t\n\t/**\n\t * <p>\n\t * free specied size mem\n\t * @param size unit in Byte\n\t * @return\n\t */\n\tpublic long free(long size);\n\t\n\t\n\t/**\n\t * <p>\n\t * flush to the underly resource\n\t */\n\tpublic void flush();\n\t\n}", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }", "public Object get() {\n Supplier supplier = this.delegate;\n synchronized (supplier) {\n Supplier supplier2 = this.delegate;\n return supplier2.get();\n }\n }", "protected Cache cache(RequestContext ctx) {\n String serviceId = serviceId(ctx);\n if (serviceId != null) {\n return cacheManager.getCache(serviceId);\n }\n return null;\n }", "T get(final UniqueId uniqueId) {\n _readLock.lock();\n try {\n return _uniqueIdMap.get(uniqueId);\n } finally {\n _readLock.unlock();\n }\n }", "public long retrieve(UUID id) {\n if (id == null) {\n return 0;\n\n } else {\n Long cachedValue = cache.getIfPresent(id);\n if (cachedValue != null && cachedValue > 0) {\n return cachedValue;\n } else {\n return metrics.time(\n StoreMetrics.OP.SERIAL_OF,\n () -> {\n try {\n Long res =\n jdbcTemplate.queryForObject(\n PgConstants.SELECT_SER_BY_ID, new Object[] {id}, Long.class);\n if (res != null && res > 0) {\n cache.put(id, res);\n return res;\n }\n } catch (EmptyResultDataAccessException ignore) {\n // ignore\n }\n return 0L;\n });\n }\n }\n }", "public Object putCacheIfAbsent(NamedCache cache, ClassLoader loader)\n {\n if (cache.isReleased())\n {\n throw new IllegalArgumentException(\"Storing a released cache is not allowed: \" + cache.getCacheName());\n }\n\n SegmentedConcurrentMap mapByName = m_mapByName;\n\n String sCacheName = cache.getCacheName();\n Object oResult;\n Map mapByLoader;\n do\n {\n mapByLoader = (Map) mapByName.get(sCacheName);\n\n if (mapByLoader == null)\n {\n mapByLoader = new WeakHashMap();\n\n Map mapTmp = (Map) mapByName.putIfAbsent(sCacheName, mapByLoader);\n\n if (mapTmp != null)\n {\n mapByLoader = mapTmp;\n }\n }\n\n if (ScopedServiceReferenceStore.isRemoteServiceType(cache.getCacheService().getInfo().getServiceType())\n && Security.SUBJECT_SCOPED)\n {\n SubjectScopedReference scopedRef = new SubjectScopedReference();\n\n oResult = putLoaderIfAbsent(mapByLoader, loader, scopedRef);\n\n if (oResult != null)\n {\n scopedRef = (SubjectScopedReference) oResult;\n }\n\n oResult = scopedRef.putIfAbsent(cache);\n }\n else\n {\n oResult = putLoaderIfAbsent(mapByLoader, loader, cache);\n }\n }\n while (mapByName.get(sCacheName) != mapByLoader);\n\n return oResult;\n }", "private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}", "public static CatalogStructure getCache() {\n return CACHE.get();\n }", "@Override\r\n\tpublic Share fetchByPrimaryKey(Serializable primaryKey) {\r\n\t\tSerializable serializable = entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\tShareImpl.class, primaryKey);\r\n\r\n\t\tif (serializable == nullModel) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tShare share = (Share)serializable;\r\n\r\n\t\tif (share == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tshare = (Share)session.get(ShareImpl.class, primaryKey);\r\n\r\n\t\t\t\tif (share != null) {\r\n\t\t\t\t\tcacheResult(share);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tentityCache.putResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, primaryKey, nullModel);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tentityCache.removeResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\tShareImpl.class, primaryKey);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn share;\r\n\t}", "@Cacheable(cacheNames = {\"emp\"}/*,keyGenerator = \"myKeyGenerator\"*/)\n public Employee getEmp(Integer id){\n Employee empById = employeeMapper.getEmpById(id);\n System.out.println(\"id\"+id+\"开始查询了\");\n return empById;\n }", "@Override\r\n\tpublic Share fetchByUUID_G(String uuid, long groupId,\r\n\t\tboolean retrieveFromCache) {\r\n\t\tObject[] finderArgs = new Object[] { uuid, groupId };\r\n\r\n\t\tObject result = null;\r\n\r\n\t\tif (retrieveFromCache) {\r\n\t\t\tresult = finderCache.getResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\t\t\tfinderArgs, this);\r\n\t\t}\r\n\r\n\t\tif (result instanceof Share) {\r\n\t\t\tShare share = (Share)result;\r\n\r\n\t\t\tif (!Objects.equals(uuid, share.getUuid()) ||\r\n\t\t\t\t\t(groupId != share.getGroupId())) {\r\n\t\t\t\tresult = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (result == null) {\r\n\t\t\tStringBundler query = new StringBundler(4);\r\n\r\n\t\t\tquery.append(_SQL_SELECT_SHARE_WHERE);\r\n\r\n\t\t\tboolean bindUuid = false;\r\n\r\n\t\t\tif (uuid == null) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_1);\r\n\t\t\t}\r\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_3);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindUuid = true;\r\n\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_2);\r\n\t\t\t}\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_UUID_G_GROUPID_2);\r\n\r\n\t\t\tString sql = query.toString();\r\n\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(sql);\r\n\r\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\r\n\r\n\t\t\t\tif (bindUuid) {\r\n\t\t\t\t\tqPos.add(uuid);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tqPos.add(groupId);\r\n\r\n\t\t\t\tList<Share> list = q.list();\r\n\r\n\t\t\t\tif (list.isEmpty()) {\r\n\t\t\t\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\t\t\t\tfinderArgs, list);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tShare share = list.get(0);\r\n\r\n\t\t\t\t\tresult = share;\r\n\r\n\t\t\t\t\tcacheResult(share);\r\n\r\n\t\t\t\t\tif ((share.getUuid() == null) ||\r\n\t\t\t\t\t\t\t!share.getUuid().equals(uuid) ||\r\n\t\t\t\t\t\t\t(share.getGroupId() != groupId)) {\r\n\t\t\t\t\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\t\t\t\t\tfinderArgs, share);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_FETCH_BY_UUID_G, finderArgs);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (result instanceof List<?>) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn (Share)result;\r\n\t\t}\r\n\t}", "public interface CacheRepository {\n Object select(String key);\n void insert(String key, Object value);\n void delete(String key);\n boolean exists(String key);\n}", "protected final <T> Optional<T> getLocalCache(CacheKeyOptional<T> key,\n Callable<Optional<T>> caller\n ){\n try {\n return key.cast(spanOptionalCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "public NamedCache getCache(String sCacheName, ClassLoader loader)\n {\n Map mapByLoader = (Map) m_mapByName.get(sCacheName);\n\n if (mapByLoader != null)\n {\n synchronized (mapByLoader)\n {\n Object oHolder = mapByLoader.get(loader);\n\n if (oHolder == null || oHolder instanceof NamedCache)\n {\n return (NamedCache) oHolder;\n }\n else if (oHolder instanceof SubjectScopedReference)\n {\n return (NamedCache) ((SubjectScopedReference) oHolder).get();\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n\n return null;\n }", "public T get(K key);", "public Object get(String methodName, CallCacheArgs args) {\n Map<CallCacheArgs, Object> cacheArgs = this.cache.get(methodName);\n return cacheArgs == null ? null : cacheArgs.get(args);\n }", "public Object get(Object key) {\n CacheEntry entry = (CacheEntry)_hash.get(key);\n if (entry != null) {\n touchEntry(entry);\n return entry.getValue();\n } else {\n return null;\n }\n }", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "public <K, V> Cache<K, V> getCache( String name, Class<K> keyClazz, Class<V> valueClazz )\n {\n if ( cacheManager == null )\n {\n LOG.error( \"Cannot fetch the cache named {}, the CacheServcie is not initialized\", name );\n throw new IllegalStateException( \"CacheService was not initialized\" );\n }\n\n LOG.info( \"fetching the cache named {}\", name );\n\n Cache<K, V> cache = cacheManager.getCache( name, keyClazz, valueClazz );\n\n return cache;\n }", "protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }", "@Override\n public V get( final K name )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n return ( element != null ) ? element.getVal() : null;\n }", "public T getObject(long index) {\n\t\tValueStoragePage<T> page = getPage(getPageID(index));\n\t\tif (page != null) {\n\t\t\treturn page.getObject(getPageOffset(index));\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getCacheControl().get( name );\n }", "public Object getObject(String key);", "ISObject get(String key);", "public Object setCachedObject(String key, Object obj) {\n return cache.put(key, obj);\n }", "public V deliverCacheEntry(@NonNull T key) {\n return keysToObjectsMap.get(key);\n }", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "public Object get(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n }\n return cacheKey.getObject();\n }", "public PojoCache getPojoCache();", "@SuppressWarnings(\"unchecked\")\n public <V> V fetchFromSmallCache(String key, Supplier<V> valueComputer) {\n return (V) LOCAL_SMALL_CACHE.get(key, ignored -> valueComputer.get());\n }", "@CheckForNull\n\t@SuppressFBWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\")\n\tpublic V get(@Nonnull String key) {\n\t\tFile jsonFile = new File(mCacheLocation, key);\n\t\tif (!jsonFile.exists()) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\treturn mObjectMapper.readValue(jsonFile, mModelClass);\n\t\t} catch (IOException e) {\n\t\t\tLogUtils.logException(TAG, \"Exception when reading \" + key, e);\n\t\t\tjsonFile.delete(); // try to delete damaged file\n\t\t\treturn null;\n\t\t}\n\t}", "Object getFlyweight(String type, String tag) {\n\t\t\treturn cache.get(type + \".\" + tag);\n\t\t}", "public Object getValueToPutInCache(AbstractRecord row, AbstractSession session) {\r\n if (isStoredInCache()) {\r\n return row.get(getWriteLockField());\r\n } else {\r\n return null;\r\n }\r\n }", "public void cacheResult(com.Hotel.model.Hotel hotel);", "@Nullable\n @Override\n public CachedRecipe<RECIPE> getCachedRecipe(int cacheIndex) {\n return cachedRecipes[cacheIndex];\n }", "public SharedObjectInterface getSharedObject( String className, String objectName ) {\n SharedEntry entry = new SharedEntry( className, objectName );\n return objectsMap.get( entry );\n }", "E getObject(int ID) throws DatabaseObjectNotFoundException, DatabaseNotAccessibleException;", "public Object readObject(String KEY) {\n\t\tFile file = null;\n\t\tObject obj = null;\n\t\tFileInputStream fInputStream;\n\t\ttry {\n\t\t\tfile = new File(mContext.getCacheDir().getAbsolutePath(), KEY);\n\t\t\tfInputStream = new FileInputStream(file);\n\t\t\tObjectInputStream objectInStream = new ObjectInputStream(\n\t\t\t\t\tfInputStream);\n\t\t\tobj = objectInStream.readObject();\n\t\t\tfInputStream.close();\n\t\t\tobjectInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn obj;\n\n\t}", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "protected Lookup lookupOrCache(String pluginName, String functionName, int argsNumber, Object targetOrClass) {\n Function function = getFunction(pluginName, functionName);\n if (function != null && function.hasImplementation(argsNumber)) {\n return new Lookup(function);\n }\n\n // NOTE: even if the plugin has already been cached, if we can't find the requested function (either at\n // all or having a corresponding implementation for the provided arity, we re-cache the whole plugin in\n // case the plugin list or object reference has dynamically changed over the course of the program.\n return lookupAndCache(pluginName, functionName, argsNumber, targetOrClass);\n }", "@Override\n public <T> T getEntity(Key<T> key)\n {\n // Check the session first in case we've loaded the entity in another query or 'get' then fall back to the query cache\n return session.getCache().get(key)\n .map(entity -> {\n if (logger.isTraceEnabled())\n {\n logger.trace(\"Session cache hit {0}[{1}]\", key.getType().getSimpleName(), key.getId());\n }\n\n session.getStats().cacheHit();\n stats().incHits();\n return entity;\n })\n .orElseGet(() -> queryCache.getEntity(key));\n }", "protected abstract S get(E entry);", "@Cacheable(value = \"planet\", key = \"#id\", unless = \"#result == null\")\n public Planet findById(String id){\n try{\n Optional<Planet> planetOptional = planetRepository.findById(id);\n return planetOptional.orElse(null);\n }\n catch (Exception ex){\n throw ex;\n }\n }", "public void refreshObjectCache();", "@Override\n public synchronized Object get(Object key) {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n String strkey = key.toString();\n if (this.ignoreCase) {\n strkey = this.keyMap.getProperty(strkey.toLowerCase());\n if (strkey == null)\n return null;\n }\n return super.get(strkey);\n }", "protected BsLocusDetail queryStoredObject(com.poesys.db.pk.NaturalPrimaryKey key)\n throws DelegateException {\n // Clear the caches, then query the saved object and test it.\n clearCaches();\n\n BsLocusDetail queriedObject = delegate.getObject(key);\n assertTrue(\"Object not found\", queriedObject != null);\n return queriedObject;\n }", "protected final <T> T getLocalCache(CacheKeyMain<T> key, Callable<T> caller){\n try {\n return key.cast(spanMainCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n public static <T> T get(Class<T> clazz, String localeStr) throws IOException {\r\n if(clazz == null) {\r\n throw new IllegalArgumentException(\"Class cannot be null.\");\r\n }\r\n ULocale locale = null;\r\n if(localeStr != null && !localeStr.isEmpty()) {\r\n locale = ULocale.createCanonical(localeStr);\r\n }\r\n LocaleMapKey key = new LocaleMapKey(clazz.getName(), locale);\r\n T proxy = (T) cache.get(key);\r\n if(proxy == null) {\r\n proxy = createProxy(clazz, locale);\r\n cache.put(key, proxy);\r\n }\r\n return proxy;\r\n }", "public synchronized V getValue(K key) {\n SoftReference<V> ref = cache.get(key);\n\n // Is the key-value pair absent from the cache?\n if (ref == null) {\n return null;\n }\n\n // Is the reference to the value dead?\n V value = ref.get();\n recentlyUsed.remove(key);\n if (value == null) {\n cache.remove(key);\n } else {\n recentlyUsed.add(0, key);\n }\n return value;\n }", "M getById(Serializable id) throws DataAccessException;" ]
[ "0.7076534", "0.6767248", "0.66567785", "0.6631905", "0.6608631", "0.65726423", "0.6480812", "0.6370184", "0.6233235", "0.6173334", "0.6152328", "0.6107585", "0.6088236", "0.60647625", "0.60590214", "0.60322535", "0.6014085", "0.5924519", "0.58618945", "0.58561337", "0.582381", "0.5801569", "0.57965803", "0.5782686", "0.57749045", "0.57529", "0.5738242", "0.57241255", "0.57201016", "0.57164186", "0.56974226", "0.56974226", "0.5694802", "0.5683294", "0.56665236", "0.56391466", "0.563643", "0.5634607", "0.5606062", "0.5576761", "0.55634737", "0.55571103", "0.5545955", "0.55456686", "0.55381817", "0.5535978", "0.553323", "0.552516", "0.5512603", "0.54945195", "0.5486848", "0.54763", "0.5462491", "0.54584825", "0.5454968", "0.54537517", "0.544507", "0.5434643", "0.54248536", "0.5423786", "0.5417697", "0.54074836", "0.53953344", "0.5394022", "0.53860307", "0.5376423", "0.53667724", "0.5365808", "0.5361702", "0.53584754", "0.5356071", "0.53546184", "0.53541505", "0.5345352", "0.53430694", "0.53329444", "0.5331248", "0.53298986", "0.5327158", "0.5326859", "0.53049463", "0.53020287", "0.5297186", "0.52931035", "0.528951", "0.5286655", "0.5281057", "0.5266864", "0.52609956", "0.52534115", "0.5252719", "0.5238304", "0.5236231", "0.5235804", "0.5233166", "0.522921", "0.52256984", "0.5223287", "0.52227926", "0.5218106" ]
0.5355313
71
Retrieve matching objects from the cache region this instance provides access to.
@Override public Map<K, V> getMatching( final String pattern ) { final Map<K, V> unwrappedResults; final Map<K, ICacheElement<K, V>> wrappedResults = this.getCacheControl().getMatching( pattern ); if ( wrappedResults == null ) { unwrappedResults = new HashMap<>(); } else { unwrappedResults = wrappedResults.entrySet() .stream() .filter(entry -> entry.getValue() != null) .collect(Collectors.toMap( Entry::getKey, entry -> entry.getValue().getVal())); } return unwrappedResults; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<RegionLocations> getAll() {\n return Collections.unmodifiableCollection(cache.values());\n }", "public RegionLocations get(byte[] startKey) {\n return cache.get(startKey);\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "protected abstract Collection<Cache> loadCaches();", "CloudCache getCache(String cacheName);", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "@Override\n public Map<K, ICacheElement<K, V>> getMatchingCacheElements( final String pattern )\n {\n return this.getCacheControl().getMatching( pattern );\n }", "private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }", "@RequestMapping(value = \"/cache\", method = RequestMethod.GET)\n public ResponseEntity<List<LocationEntity>> getCache(){\n ResponseEntity<List<LocationEntity>> responseEntity = null;\n\n // Get last 10 geocode lookups\n List<LocationEntity> location = geoLocationService.getLocationCache();\n\n if (location != null && location.size() > 0){\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.OK);\n }else{\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.NO_CONTENT);\n }\n\n\n return responseEntity;\n }", "public List<Region> gets() {\r\n return rdao.getAllRegion();\r\n }", "public static Map<String,String> getGeoTargetsFromCache(){\n\t\tMap<String,String> dataMap=null; \t\n \tif(memcache !=null && memcache.contains(ALL_GEO_TARGETS_KEY)){\n \t\tdataMap=(Map<String,String>) memcache.get(ALL_GEO_TARGETS_KEY);\n \t\tlog.info(\"Memcache getGeoTargetsFromCache size = \"+dataMap.size());\n \t} \t\n \treturn dataMap;\n\t}", "private void prefetchRegionCache(final byte[] tableName,\n final byte[] row) {\n // Implement a new visitor for MetaScanner, and use it to walk through\n // the .META.\n MetaScannerVisitor visitor = new MetaScannerVisitorBase() {\n public boolean processRow(Result result) throws IOException {\n try {\n byte[] value = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.REGIONINFO_QUALIFIER);\n HRegionInfo regionInfo = null;\n\n if (value != null) {\n // convert the row result into the HRegionLocation we need!\n regionInfo = Writables.getHRegionInfo(value);\n\n // possible we got a region of a different table...\n if (!Bytes.equals(regionInfo.getTableName(),\n tableName)) {\n return false; // stop scanning\n }\n if (regionInfo.isOffline()) {\n // don't cache offline regions\n return true;\n }\n value = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.SERVER_QUALIFIER);\n if (value == null) {\n return true; // don't cache it\n }\n final String hostAndPort = Bytes.toString(value);\n String hostname = Addressing.parseHostname(hostAndPort);\n int port = Addressing.parsePort(hostAndPort);\n value = result.getValue(HConstants.CATALOG_FAMILY,\n HConstants.STARTCODE_QUALIFIER);\n // instantiate the location\n HRegionLocation loc =\n new HRegionLocation(regionInfo, hostname, port);\n // cache this meta entry\n cacheLocation(tableName, loc);\n }\n return true;\n } catch (RuntimeException e) {\n throw new IOException(e);\n }\n }\n };\n try {\n // pre-fetch certain number of regions info at region cache.\n MetaScanner.metaScan(conf, this, visitor, tableName, row,\n this.prefetchRegionLimit, HConstants.META_TABLE_NAME);\n } catch (IOException e) {\n LOG.warn(\"Encountered problems when prefetch META table: \", e);\n }\n }", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "List<Link> findLinkByCache();", "public static CatalogStructure getCache() {\n return CACHE.get();\n }", "@Override\r\n public Map<K, ICacheElement<K, V>> processGetMatching(final String pattern)\r\n {\r\n final Map<K, ICacheElement<K, V>> elements = new HashMap<>();\r\n Set<K> keyArray = null;\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n keyArray = new HashSet<>(keyHash.keySet());\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n final Set<K> matchingKeys = getKeyMatcher().getMatchingKeysFromArray(pattern, keyArray);\r\n\r\n for (final K key : matchingKeys)\r\n {\r\n final ICacheElement<K, V> element = processGet(key);\r\n if (element != null)\r\n {\r\n elements.put(key, element);\r\n }\r\n }\r\n return elements;\r\n }", "public JsonArray getCache() {\n return cache;\n }", "public static void cacheResult(\n java.util.List<de.fraunhofer.fokus.movepla.model.Region> regions) {\n getPersistence().cacheResult(regions);\n }", "@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }", "public Collection getAllCaches()\n {\n Set setRef = new HashSet();\n Collection<Map> colLoader = m_mapByName.values();\n\n for (Map mapByLoader : colLoader)\n {\n synchronized (mapByLoader)\n {\n for (Object oHolder : mapByLoader.values())\n {\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "public void fetchRegions () {\n try {\n // try loading from geoserve\n this.regions = loadFromGeoserve();\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from geoserve\",\n e);\n try {\n if (this.regions == null) {\n // fall back to local cache\n this.regions = loadFromFile();\n }\n } catch (Exception e2) {\n LOGGER.log(Level.WARNING,\n \"Error fetching ANSS Regions from local file\",\n e);\n }\n }\n }", "long getCacheHits();", "CACHE_ELEMENT[] get(Key ... keys);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (DefaultResourceAllocator.this) {\n\t\t\t\t\tAgent agent = agentManager.load(agentId);\n\t\t\t\t\tagentResourceQuotas.put(agentId, agent.getResources());\n\t\t\t\t\tagentResourceUsages.put(agentId, new HashMap<>());\n\t\t\t\t\n\t\t\t\t\tfor (QueryCache cache: queryCaches.values()) {\n\t\t\t\t\t\tif (cache.query.matches(agent))\n\t\t\t\t\t\t\tcache.result.add(agentId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic Map<String, Object> readAllHitos() {\n\t\treturn hitosDao.readAllHitos();\n\t}", "@Override\r\n\tpublic Share fetchByUUID_G(String uuid, long groupId,\r\n\t\tboolean retrieveFromCache) {\r\n\t\tObject[] finderArgs = new Object[] { uuid, groupId };\r\n\r\n\t\tObject result = null;\r\n\r\n\t\tif (retrieveFromCache) {\r\n\t\t\tresult = finderCache.getResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\t\t\tfinderArgs, this);\r\n\t\t}\r\n\r\n\t\tif (result instanceof Share) {\r\n\t\t\tShare share = (Share)result;\r\n\r\n\t\t\tif (!Objects.equals(uuid, share.getUuid()) ||\r\n\t\t\t\t\t(groupId != share.getGroupId())) {\r\n\t\t\t\tresult = null;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (result == null) {\r\n\t\t\tStringBundler query = new StringBundler(4);\r\n\r\n\t\t\tquery.append(_SQL_SELECT_SHARE_WHERE);\r\n\r\n\t\t\tboolean bindUuid = false;\r\n\r\n\t\t\tif (uuid == null) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_1);\r\n\t\t\t}\r\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_3);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindUuid = true;\r\n\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_2);\r\n\t\t\t}\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_UUID_G_GROUPID_2);\r\n\r\n\t\t\tString sql = query.toString();\r\n\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(sql);\r\n\r\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\r\n\r\n\t\t\t\tif (bindUuid) {\r\n\t\t\t\t\tqPos.add(uuid);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tqPos.add(groupId);\r\n\r\n\t\t\t\tList<Share> list = q.list();\r\n\r\n\t\t\t\tif (list.isEmpty()) {\r\n\t\t\t\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\t\t\t\tfinderArgs, list);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tShare share = list.get(0);\r\n\r\n\t\t\t\t\tresult = share;\r\n\r\n\t\t\t\t\tcacheResult(share);\r\n\r\n\t\t\t\t\tif ((share.getUuid() == null) ||\r\n\t\t\t\t\t\t\t!share.getUuid().equals(uuid) ||\r\n\t\t\t\t\t\t\t(share.getGroupId() != groupId)) {\r\n\t\t\t\t\t\tfinderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,\r\n\t\t\t\t\t\t\tfinderArgs, share);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_FETCH_BY_UUID_G, finderArgs);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (result instanceof List<?>) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn (Share)result;\r\n\t\t}\r\n\t}", "public static Map<String,String> getAgenciesFromCache(){\n\t\tlog.info(\"getAgenciesFromCache..\");\n\t\tMap<String,String> agencyMap=null; \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_AGENCIES_KEY)){\n \t\tagencyMap=(Map<String,String>) memcache.get(MEDIA_PLAN_AGENCIES_KEY);\n \t} \t\n \treturn agencyMap;\n\t}", "@Override\n\tpublic T retrieveItem(T obj) {\n\t\tif(cache.contains(obj)) {\n\t\t\tfor (T objInSet : cache) {\n\t\t\t\tif (objInSet.equals(obj)) {\n\t\t\t\t\treturn objInSet;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static Map<String,String> getIndustriesFromCache(){\n\t\tMap<String,String> dataMap=null;\n \t\n \tif(memcache !=null && memcache.contains(ALL_INDUSTRIES_KEY)){\n \t\tdataMap=(Map<String,String>) memcache.get(ALL_INDUSTRIES_KEY);\n \t\tlog.info(\"Memcache getIndustriesFromCache size = \"+dataMap.size());\n \t} \t\n \treturn dataMap;\n\t}", "public void refreshObjectCache();", "protected synchronized MemoryCache getExtremesLookupCache()\n {\n // Note that the extremes lookup cache does not belong to the WorldWind memory cache set, therefore it will not\n // be automatically cleared and disposed when World Wind is shutdown. However, since the extremes lookup cache\n // is a local reference to this elevation model, it will be reclaimed by the JVM garbage collector when this\n // elevation model is reclaimed by the GC.\n\n if (this.extremesLookupCache == null)\n {\n // Default cache size holds 1250 min/max pairs. This size was experimentally determined to hold enough\n // value lookups to prevent cache thrashing.\n long size = Configuration.getLongValue(AVKey.ELEVATION_EXTREMES_LOOKUP_CACHE_SIZE, 20000L);\n this.extremesLookupCache = new BasicMemoryCache((long) (0.85 * size), size);\n }\n\n return this.extremesLookupCache;\n }", "public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);", "@Override\n\tpublic CacheResponse get(URI uri, String rqstMethod, Map<String, List<String>> rqstHeaders) throws IOException {\n\t\tSystem.err.println(\"enter MemoryCache.get()\");\n\t\treturn new CacheResponseImpl();\n\t}", "private JSONArray getAllFromCache(){\n\n JSONArray response = new JSONArray();\n String cacheResponse = this.cacheConnector.getFromCache(policy.\n getCachePolicy(\"Policy Value\"));\n\n if(cacheResponse !=\"-1\"){\n System.out.println(\"Sucessfully go cache content!\");\n System.out.println(cacheResponse);\n response = new JSONArray(cacheResponse); //constructs a json array from string\n System.out.println(\"JSON Result Queried from Cache\");\n }\n //If the policy asks to query from cache but it is not present, then add to cache.\n else if (cacheResponse ==\"-1\") {\n System.out.println(\"Failed to retrieve cache content\");\n }\n\n return response;\n }", "protected void createLookupCache() {\n }", "Iterable<CurrentVersionCacheDao> getCurrentVersionCacheConnections();", "public ArrayList<Company> getCompaniesFromCache() {\n\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n query.fromLocalDatastore();\n\n try {\n return new ArrayList<>(query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchants from local data store:\\n\" + e.getMessage());\n }\n\n return new ArrayList<>();\n }", "public ArrayList<ArrayList> searchCache(String operand1)\n {\n for(CacheObject c: simpleQueryCache)\n {\n if(c.equals(operand1))\n {\n return c.getResult();\n }\n }\n return null;\n }", "public static void cacheResult(\n de.fraunhofer.fokus.movepla.model.Region region) {\n getPersistence().cacheResult(region);\n }", "public interface CacheIdLookup<T> {\n\n /**\n * Return the Id values to lookup against the L2 cache.\n */\n Collection<?> idValues();\n\n /**\n * Remove the hits returning the beans fetched from L2 cache.\n */\n List<T> removeHits(BeanCacheResult<T> cacheResult);\n\n /**\n * Return true if all beans where found in L2 cache.\n */\n boolean allHits();\n}", "@Override\n public Map<K, ICacheElement<K, V>> getCacheElements( final Set<K> names )\n {\n return this.getCacheControl().getMultiple( names );\n }", "@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.singleton(Integer.valueOf(1))));\n }\n });\n }", "@Transactional(readOnly = true)\n Collection<DataRistorante> getBy(String pattern, String city, Country country);", "@Override\n protected List<S3ObjectSummary> doInBackground(Void... params) {\n Log.i(TAG, \"Getting items\");\n return mClient.listObjects(Constants.BUCKET_NAME.toLowerCase(Locale.US),\n Util.getPrefix(mContext)).getObjectSummaries();\n }", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }", "@Override\n\tpublic V retrieve(K key) {\n\t\tcheckNullKey(key);\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.get(key);\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "public native boolean allMatchingRowsCached() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.allMatchingRowsCached();\r\n }-*/;", "@Override\n public V get(K key){\n CacheObject<K, V> cacheObject = this.cache.get(key);\n\n if (cacheObject != null){\n return cacheObject.getObject();\n }\n\n return null;\n }", "public PojoCache getPojoCache();", "@Override\n public Object load(Object query,\n CacheElement ce)\n throws ResourceException\n {\n throw new ResourceException(\"CachingProvider: load(Object) not supported, use load(String)\");\n }", "Collection<T> get(final ExternalIdBundle bundle) {\n _readLock.lock();\n try {\n // TODO: semantics are wrong\n final Collection<T> results = new HashSet<>();\n for (final ExternalId identifier : bundle) {\n if (_toMap.containsKey(identifier)) {\n results.addAll(_toMap.get(identifier));\n }\n }\n return results;\n } finally {\n _readLock.unlock();\n }\n }", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "public Cache.Entry get(String param1) {\n }", "@Test\n @Ignore\n public void testReadAllCached() {\n System.out.println(\"readAllCached\");\n Identifier id = null;\n IndexDaoImpl instance = null;\n List<Index> expResult = null;\n List<Index> result = instance.readAllCached(id);\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 Map<String, String> getCache() {\n return cache;\n }", "public Iterable<Object> getObjects(String key);", "public Object[] retrieveRowFromCache(int rowIndex) {\n\t ensureRowCached(rowIndex);\n\t return (Object[])data[getIndexOfRowInCache(rowIndex)];\n }", "@Override\n public List<StoredObject> listObjects(URI storageArea)\n {\n return Ordering.from(new Comparator<StoredObject>()\n {\n @Override\n public int compare(StoredObject o1, StoredObject o2)\n {\n return o1.getLocation().compareTo(o2.getLocation());\n }\n }).immutableSortedCopy(objects.getUnchecked(storageArea));\n }", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "Map<GroupKey, List<Result>> get(String userName,\n List<AbstractFilter> filters,\n DiscoveryAttributes.AttributeType groupAttributeType,\n Group.GroupSortingAlgorithm groupSortingType,\n ResultsSorter.SortingMethod domainSortingMethod,\n SleuthkitCase caseDb, CentralRepository centralRepoDb) throws DiscoveryException {\n try {\n final SearchKey searchKey = new SearchKey(userName, filters, groupAttributeType,\n groupSortingType, domainSortingMethod, caseDb, centralRepoDb);\n return cache.get(searchKey);\n } catch (ExecutionException ex) {\n throw new DiscoveryException(\"Error fetching results from cache\", ex.getCause());\n }\n }", "public interface CacheRepository {\n Object select(String key);\n void insert(String key, Object value);\n void delete(String key);\n boolean exists(String key);\n}", "public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }", "public V fetch(String name) {\n return mCache.fetch(name, mSource);\n }", "CopySearchResult find(ContentQuery query) throws ResourceAccessException;", "protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }", "public interface ContentCache extends DataCache {\r\n String getValue(String code, Locale locale);\r\n\r\n Boolean containsLocale(Locale locale);\r\n\r\n Boolean containsCodeForLocale(String code, Locale locale);\r\n\r\n Map<String, Map<String, String>> getCachedData();\r\n}", "@Test\n public void testIndexMaintenanceOnCacheLoadedData() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n AttributesMutator am = region.getAttributesMutator();\n am.setCacheLoader(new CacheLoader() {\n\n @Override\n public Object load(LoaderHelper helper) throws CacheLoaderException {\n String key = (String) helper.getKey();\n Portfolio p = new Portfolio(Integer.parseInt(key));\n return p;\n }\n\n @Override\n public void close() {\n // nothing\n }\n });\n\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n List keys = new ArrayList();\n keys.add(\"1\");\n keys.add(\"2\");\n keys.add(\"3\");\n keys.add(\"4\");\n\n region.getAll(keys);\n }", "public Iterator iterator()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n try\r\n {\r\n return new CompositeIterator(new Iterator[] { \r\n spaceMgr.makeComponentSpaceIterator(),\r\n spaceMgr.makeHistorySpaceIterator() });\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "static boolean isRegionCached(Configuration conf,\n final byte[] tableName, final byte[] row) throws IOException {\n return execute(new HConnectable<Boolean>(conf) {\n @Override\n public Boolean connect(HConnection connection) {\n return ((HConnectionImplementation) connection).isRegionCached(tableName, row);\n }\n });\n }", "public static void loadAllAdditionalCachedObjectList() {\n\n\t\t// TODO Completar cuando sea necesario.\n\n\t}", "public List<MhsmGeoReplicatedRegionInner> regions() {\n return this.regions;\n }", "public void cacheResult(com.Hotel.model.Hotel hotel);", "public ArrayList<EHVSS> getByRegion(String region){\n\t\tArrayList<EHVSS> ehvssNames=null;\n\t\ttry {\n\t\t\tConnection connection = DatabaseConnection.getConnection(\"mms_new\");\n\t\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT * FROM ehvss where region=?\");\n\t\t\tps.setString(1,region);\n\t\t\tResultSet rs=ps.executeQuery();\n\t\t\tehvssNames=new ArrayList<EHVSS>();\n\t\t\tresultSetParser(rs,ehvssNames);\n\t\t\trs.close();\n\t\t\tps.close();\n\t\t\t//System.out.println(\"Number of Ehvss Locations for region :\"+region+\" is :\"+ehvssNames.size());\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByRegion]\"+e);\n\t\t}catch (Exception exp) {\n\t\t\tSystem.out.println(\"Exception in class : EhvssDAO : method : [getByRegion]\"+exp);\n\t\t}\n\t\treturn ehvssNames;\n\t}", "public List<T> read(int numbersToRetrieve)\r\n {\r\n// final String methodName = \"read\";\r\n List<T> list = null;\r\n\r\n if (_cache.isEmpty())\r\n {\r\n// Advisory advisory = new Advisory();\r\n//\r\n// advisory.setPackageName (ConstantsPackages.CACHE);\r\n// advisory.setMethodName (_className + \"::\" + methodName);\r\n// advisory.setStatus (Status.STATUS_CACHE_INVALID);\r\n//\r\n// AdvisoryLog.log (advisory);\r\n }\r\n\r\n else\r\n {\r\n int elementIndex = 0;\r\n int pageIndex = 0;\r\n\r\n list = new ArrayList<T>();\r\n\r\n while((list.size() < numbersToRetrieve)&&(!_cache.isEmpty()))\r\n {\r\n List<T> workList;\r\n \r\n synchronized(_cache)\r\n {\r\n workList = _cache.get (pageIndex);\r\n }\r\n \r\n int numbersRemaining = numbersToRetrieve - list.size();\r\n\r\n // Can current cache be used to retrieve all data?\r\n if (numbersRemaining < workList.size())\r\n {\r\n for (int index = 0; index < numbersRemaining; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n }\r\n\r\n // Data must be retrieved from multiple pages of cache.\r\n else\r\n {\r\n // Retrieve available data from current page of cache.\r\n int available = workList.size();\r\n\r\n for (int index = 0; index < available; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n \r\n synchronized(_cache)\r\n {\r\n _cache.remove (pageIndex);\r\n }\r\n \r\n // Refill page.\r\n _addPages (1);\r\n }\r\n }\r\n }\r\n\r\n return list;\r\n }", "public void cacheResult(\n\t\tjava.util.List<ua.org.gostroy.guestbook.model.Entry3> entry3s);", "public void cacheableQuery() throws HibException;", "public void getRemoteItems() {\n url = getAllItemsOrderedByCategory;\n params = new HashMap<>();\n params.put(param_securitykey, param_securitykey);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getItems(mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }", "public List<RegionServer> regionServers() {\n\t\tBufferedReader bufReader = null;\n\t\tInputStreamReader input = null;\n\t\tList<RegionServer> list = new ArrayList<>();\n\t\ttry {\n\t\t\tURL url = new URL(HBase.HTTP + SystemConfig.getProperty(\"hive.cube.hbase.master\") + HBase.HBASE_REGION_SERVER_JMX);\n\t\t\tHttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n\t\t\tinput = new InputStreamReader(httpConn.getInputStream(), \"UTF-8\");\n\t\t\tbufReader = new BufferedReader(input);\n\t\t\tString line = \"\";\n\t\t\tStringBuilder contentBuf = new StringBuilder();\n\t\t\twhile ((line = bufReader.readLine()) != null) {\n\t\t\t\tcontentBuf.append(line);\n\t\t\t}\n\t\t\tJSONObject tmpBuf = JSON.parseObject(contentBuf.toString());\n\t\t\tJSONObject object = (JSONObject) JSON.parseArray(tmpBuf.getString(\"beans\")).get(0);\n\t\t\tString[] liveRegionServers = object.getString(\"tag.liveRegionServers\").split(\";\");\n\t\t\tfor (String node : liveRegionServers) {\n\t\t\t\tif (node.length() != 0) {\n\t\t\t\t\tRegionServer region = new RegionServer();\n\t\t\t\t\tregion.setRegionName(node.split(\",\")[0] + \":\" + node.split(\",\")[1]);\n\t\t\t\t\tregion.setStartTime(CalendarUtils.convertUnixTime(Long.parseLong(node.split(\",\")[2])));\n\t\t\t\t\tregion.setLive(true);\n\t\t\t\t\tlist.add(region);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] deadRegionServers = object.getString(\"tag.deadRegionServers\").split(\";\");\n\t\t\tfor (String node : deadRegionServers) {\n\t\t\t\tif (node.length() != 0) {\n\t\t\t\t\tRegionServer region = new RegionServer();\n\t\t\t\t\tregion.setRegionName(node.split(\",\")[0] + \":\" + node.split(\",\")[1]);\n\t\t\t\t\tregion.setStartTime(CalendarUtils.convertUnixTime(Long.parseLong(node.split(\",\")[2])));\n\t\t\t\t\tregion.setLive(false);\n\t\t\t\t\tlist.add(region);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Filter[Region] HBase JMX has error,msg is \" + e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (input != null) {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t\tif (bufReader != null) {\n\t\t\t\t\tbufReader.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOG.error(\"Close IO has error,msg is \" + e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "public interface ICustomerCache {\n Object get(String key);\n\n Object set(String key, Object o);\n\n Object set(String key, int exp, Object o);\n\n OperationFuture<Boolean> delete(String key);\n\n void replace(String key, Object o);\n\n void destroy();\n}", "public synchronized final Map<String, PermissionRegion> getRegions() {\n return memoryState.getRegions();\n }", "public Collection getAllCaches(String sCacheName)\n {\n Set setRef = new HashSet();\n Map mapByLoader = (Map) m_mapByName.get(sCacheName);\n\n if (mapByLoader != null)\n {\n synchronized (mapByLoader)\n {\n Collection col = mapByLoader.values();\n\n for (Iterator iter = col.iterator(); iter.hasNext(); )\n {\n Object oHolder = iter.next();\n\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "@Override\n public AsyncFuture<QueryResult> load(\n MetricType source, Filter filter, DateRange range, AggregationInstance aggregationInstance,\n QueryOptions options, Supplier<AsyncFuture<QueryResult>> loader\n ) {\n if (aggregationInstance.cadence() <= 0) {\n return loader.get();\n }\n\n final Key k = new Key(source, filter, range, aggregationInstance, options);\n\n final AsyncFuture<QueryResult> result = cache.get(k);\n\n if (result != null) {\n return result;\n }\n\n synchronized (lock) {\n final AsyncFuture<QueryResult> candidate = cache.get(k);\n\n if (candidate != null) {\n return candidate;\n }\n\n final AsyncFuture<QueryResult> next = loader.get();\n cache.put(k, next, ExpirationPolicy.ACCESSED, aggregationInstance.cadence(),\n TimeUnit.MILLISECONDS);\n return next;\n }\n }", "public void cacheResult(com.inikah.slayer.model.MMCity mmCity);", "protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }", "@Override\n\tpublic Map<Serializable, Serializable> gets(String name, List<Serializable> keys)\n\t\t\tthrows CacheException {\n\t\treturn null;\n\t}", "private void getCache(Context context) throws IOException {\n\t\t // Read file from distributed caches - each line is a item/itemset with its frequent\n\n \t// get caches files.\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tSystem.out.println(\"SETUP ------ MAPPER ----------- GET FREQUENT ITEMS--------------\");\n\t\t\n\t\t\n\t\t// URI to locate cachefile, ex URI a = new URI(\"http://www.foo.com\");\n\t\tList<URI> uris = Arrays.asList(context.getCacheFiles());\n\t\t\n\t\tSystem.out.println(\"Reading cached files\");\n\t\t// read cache files which contains candidates?\n\t\t\n\t\tnItems = 0;\n\t\t\n\t\tfor (URI uri : uris) {\n\t\t\tPath p = new Path(uri);\n\t\t\tSystem.out.println(\"Loading \" + uri.toString());\n\t\t\tFileSystem fs = FileSystem.get(context.getConfiguration());\n\t\t\tInputStreamReader ir = new InputStreamReader(fs.open(p));\n\t\t\tBufferedReader data = new BufferedReader(ir);\n\t \twhile (data.ready()) { \t\t\n\t \t\tString line=data.readLine();\n\t \t\tif (line.matches(\"\\\\s*\")) continue; // be friendly with empty lines\n\t \t\tString[] numberStrings = line.split(\"\\t\");\n\t \t\t\n \n\t \t\tint frequentItem = Integer.parseInt(numberStrings[0]);\n \t\t\tif (!hashItems.containsKey(frequentItem)) {\n\t \t\t\t\thashItems.put(frequentItem, nItems);\n\t \t\t\t\tnItems++;\n\t \t\t\t}\n\t \t\t}\n\t \t\t\n\t \t} \n\n }", "public static List<DFPSitesWithDMAObj> getDFPSitesWithDMAObjs() {\n\t \tList<DFPSitesWithDMAObj> DFPSitesWithDMAObjList = new ArrayList<>();\n\t \tString key = DFP_SITES_WITH_DMA_OBJS_KEY;\n\t \tif(memcache !=null && memcache.contains(key)){\n\t \t\tDFPSitesWithDMAObjList = (List<DFPSitesWithDMAObj>) memcache.get(key);\n\t \t\t\n\t \t}\n\t\t\treturn DFPSitesWithDMAObjList;\n\t\t\t\n\t\t}", "private void loadSearchRegions() {\n showProgress(ApplicationConstants.DIALOG_HEADER, \"Please wait while we retrieve matching results.\");\n String authToken = ShPrefManager.with(getActivity()).getToken();\n RestClient.getAPI().getRegions(authToken, new RestCallback<RegionsResponse>() {\n @Override\n public void failure(RestError restError) {\n hideProgress();\n OpenHomeUtils.showToast(getActivity().getApplicationContext(), restError.getErrorMessage(), Toast.LENGTH_LONG);\n }\n\n @Override\n public void success(RegionsResponse regionsResponse, Response response) {\n hideProgress();\n if (regionsResponse.getMessage().size() > 0) {\n regionsList = regionsResponse.getMessage();\n for (RegionsResponse.Regions region : regionsList) {\n listingsCount += region.getListingsCount();\n if (region.getParentId() == 0)\n adapterList.add(region);\n }\n regionsAdapter = new RegionsAdapter(getActivity(), adapterList, 0);\n mRecyclerView.setAdapter(regionsAdapter);\n currentAdapter = \"R\";\n listingsCountDisplayTextView.setText(listingsCount + \" Listings\");\n currentDisplayingParentId = 0;\n\n } else {\n String message = \"No results to display. Please modify the search criteria and try again.\";\n CustomDialogFragment regSuccessDialogFragment = CustomDialogFragment.newInstance(R.string.try_again,\n message, ApplicationConstants.BUTTON_OK, 0);\n regSuccessDialogFragment.show(getActivity().getFragmentManager(), \"SearchRegionsFragment\");\n }\n }\n });\n }", "public CacheEntry searchWithCache(String name) {\n CacheEntry entry = cacheHit(name);\n \n if (entry != null) return entry;\n \n // we grab serial number first; the worst that will happen is we cache a later\n // update with an earlier serial number, which would just flush anyway\n Object token = getCacheToken();\n DynamicMethod method = searchMethodInner(name);\n \n return method != null ? addToCache(name, method, token) : addToCache(name, UndefinedMethod.getInstance(), token);\n }", "public List<Region> find(Object data) {\r\n return rdao.searchByRegions(data);\r\n }", "public <K, V> Cache<K, V> getCache( String name, Class<K> keyClazz, Class<V> valueClazz )\n {\n if ( cacheManager == null )\n {\n LOG.error( \"Cannot fetch the cache named {}, the CacheServcie is not initialized\", name );\n throw new IllegalStateException( \"CacheService was not initialized\" );\n }\n\n LOG.info( \"fetching the cache named {}\", name );\n\n Cache<K, V> cache = cacheManager.getCache( name, keyClazz, valueClazz );\n\n return cache;\n }", "public static TenantCache getTenantCache(RegionCoprocessorEnvironment env, ImmutableBytesPtr tenantId) {\n GlobalCache globalCache = GlobalCache.getInstance(env);\n TenantCache tenantCache = tenantId == null ? globalCache : globalCache.getChildTenantCache(tenantId); \n return tenantCache;\n }", "public Object lookup(Object key, Map cache)\n throws DBException, CacheException\n {\n if (!super.hasBeenInitialized)\n {\n init(cache);\n }\n Object target = null;\n if (key instanceof String)\n // make lookup case insensitive\n target = ((String)key).toLowerCase();\n else\n target = key;\n\n Object o = cache.get(target);\n if (super.debug)\n {\n if (o != null)\n {\n super.logger.logDebug(\"key found in cache: \" + key);\n }\n else\n {\n super.logger.logDebug(\"key not found in cache: \" + key);\n }\n }\n return o;\n }", "private ArrayList<Object> loadCache() {\n if (cachedLabTest == null)\n {\n cachedLabTest = getOrderedTestCollection();\n return cachedLabTest;\n }\n else\n {\n return cachedLabTest;\n }\n }", "public void cacheResult(java.util.List<DataEntry> dataEntries);", "@Override\r\n public List<Asset> findList(Map<String, Object> params) {\n return assetDao.findList(params);\r\n }", "@Cacheable(cacheNames = {\"emp\"}/*,keyGenerator = \"myKeyGenerator\"*/)\n public Employee getEmp(Integer id){\n Employee empById = employeeMapper.getEmpById(id);\n System.out.println(\"id\"+id+\"开始查询了\");\n return empById;\n }", "@Nullable\n @Override\n public CachedRecipe<RECIPE> getCachedRecipe(int cacheIndex) {\n return cachedRecipes[cacheIndex];\n }", "public TSLCountryRegionCacheObject getTSLCountryRegionCacheObject(String countryRegionCode) throws TSLManagingException {\n\n\t\tTSLCountryRegionCacheObject result = null;\n\n\t\tif (!UtilsStringChar.isNullOrEmptyTrim(countryRegionCode)) {\n\t\t\ttry {\n\t\t\t\tresult = ConfigurationCacheFacade.tslGetTSLCountryRegionCacheObject(countryRegionCode.toUpperCase());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL161, new Object[ ] { countryRegionCode }), e);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\n\t}" ]
[ "0.6256662", "0.6089353", "0.60289514", "0.58381265", "0.57751435", "0.5771383", "0.566013", "0.5620635", "0.55525374", "0.5541978", "0.5517289", "0.55138636", "0.55030626", "0.54341334", "0.5359429", "0.535822", "0.52762985", "0.52746093", "0.52713925", "0.5262316", "0.5253895", "0.52443755", "0.5184731", "0.51749754", "0.5172405", "0.5159967", "0.5158776", "0.5145783", "0.51223373", "0.5111066", "0.5089735", "0.508547", "0.5083076", "0.5071324", "0.50671595", "0.5063201", "0.5061182", "0.506042", "0.5052814", "0.5046724", "0.5046086", "0.50323486", "0.5029611", "0.5019568", "0.50130767", "0.5010523", "0.5009271", "0.50030804", "0.49905607", "0.4974083", "0.49666047", "0.49661657", "0.4962366", "0.49605212", "0.4958061", "0.49572694", "0.49483216", "0.4946774", "0.49418724", "0.49357775", "0.49298275", "0.49124226", "0.49124044", "0.49094394", "0.49057555", "0.4900981", "0.48951995", "0.48945603", "0.48855674", "0.48847649", "0.48749554", "0.48738343", "0.48719588", "0.48712602", "0.48626515", "0.48605382", "0.48594955", "0.48543522", "0.48309568", "0.4818528", "0.48175958", "0.4817567", "0.4815817", "0.48132724", "0.48128593", "0.48054895", "0.48049232", "0.48038805", "0.48028535", "0.48023504", "0.4794984", "0.4792418", "0.47909155", "0.4790098", "0.47758332", "0.47735074", "0.47722164", "0.4771766", "0.47703004", "0.4763238" ]
0.51099366
30
This method returns the ICacheElement&lt;K, V&gt; wrapper which provides access to element info and other attributes. This returns a reference to the wrapper. Any modifications will be reflected in the cache. No defensive copy is made. This method is most useful if you want to determine things such as the how long the element has been in the cache. The last access time in the ElementAttributes should be current.
@Override public ICacheElement<K, V> getCacheElement( final K name ) { return this.getCacheControl().get( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public IElementAttributes getElementAttributes( final K name ) throws CacheException\n {\n IElementAttributes attr = null;\n\n try\n {\n attr = this.getCacheControl().getElementAttributes( name );\n }\n catch ( final IOException ioe )\n {\n throw new CacheException(\"Failure getting element attributes\", ioe);\n }\n\n return attr;\n }", "DataElement getFromCache(String dataElementName);", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "public V getElementByKey(K key) {\n\t\tif (cacheMap.containsKey(key)) {\n\t\t\telementHit(key);\n\t\t}\n\t\treturn cacheMap.get(key);\n\t}", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }", "protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }", "StoreResponse append(CACHE_ELEMENT element);", "public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }", "public PojoCache getPojoCache();", "public static CatalogStructure getCache() {\n return CACHE.get();\n }", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "Element getElement() {\n\t\tElement result = element.clone();\n\t\tresult.setName(table.getName());\n\t\treturn result;\n\t}", "public Value getCachedValue() {\n return cachedValue;\n }", "public T get() {\n return element;\n }", "public T getElement() {\n\t\treturn element;\n\t}", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "public T getElement() {\n return element;\n }", "public interface EzyerCache {\n class PersistentObject {\n public final byte[] mData;\n public final String mKey;\n public final long mExpireTimeMillis;\n\n public PersistentObject(byte[] data, String key, long expireTimeMillis) {\n mData = data;\n mKey = key;\n mExpireTimeMillis = expireTimeMillis;\n }\n }\n\n class ValueObject {\n public final byte[] mData;\n public final String mKey;\n public final boolean mIsExpired;\n\n public ValueObject(byte[] data, String key, boolean isExpired) {\n mData = data;\n mKey = key;\n mIsExpired = isExpired;\n }\n }\n\n ValueObject get(String key);\n\n List<ValueObject> get(String key, int start, int end);\n\n void set(PersistentObject po);\n\n void add(PersistentObject po);\n\n void remove(String key);\n\n boolean isExpired(String key);\n\n void clear();\n}", "protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}", "public T getElement()\n {\n\n return element;\n }", "private HashMap<String, Element> construireCacheDefElement() {\n cacheDefElement = new HashMap<String, Element>();\n cacheNomsElements = new HashMap<Element, String>();\n final NodeList lelements = racine_schema.getElementsByTagName(\"ELEMENT\");\n for (int i=0; i<lelements.getLength(); i++) {\n final Element el = (Element)lelements.item(i);\n final String nom = el.getAttribute(\"nom\");\n cacheDefElement.put(nom, el);\n cacheNomsElements.put(el, nom);\n }\n return(cacheDefElement);\n }", "public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}", "public BaseCacheBuilder getCacheBuilder() {\n return cacheBuilder;\n }", "@Override\n public synchronized Enumeration elements() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.elements();\n }", "@Test\n public void testGetElementJavaPerfTest() throws Exception {\n\n Status somethingThatIsSerializable = Status.STATUS_ALIVE;\n byte[] serializedForm = MemoryEfficientByteArrayOutputStream.serialize(somethingThatIsSerializable).getBytes();\n\n assertEquals(404, HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\").getResponseCode());\n\n net.sf.ehcache.server.soap.jaxws.Element element = new net.sf.ehcache.server.soap.jaxws.Element();\n element.setKey(\"1\");\n element.setValue(serializedForm);\n cacheService.put(\"sampleCache2\", element);\n\n long begin = System.currentTimeMillis();\n for (int i = 0; i < 100; i++) {\n HttpURLConnection urlConnection = HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\");\n assertEquals(200, urlConnection.getResponseCode());\n }\n long end = System.currentTimeMillis();\n LOG.info(\"Get time: \" + (end - begin) / 100f);\n }", "StoreResponse prepend(CACHE_ELEMENT element);", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "interface ICacheUtil {\n void put(Object key, Object value, long expiredTime, TimeUnit unit);\n Object get(Object key);\n void remove(Object key);\n void clear();\n boolean isExists(Object key);\n}", "StoreResponse add(CACHE_ELEMENT e);", "public StackManipulation cached() {\n return new Cached(this);\n }", "@SuppressWarnings(\"unchecked\")\n public T get(K key) {\n synchronized (cacheMap) {\n CacheObject c = (CacheObject) cacheMap.get(key);\n\n if (c == null) {\n return null;\n } else {\n c.lastAccessed = System.currentTimeMillis();\n return c.value;\n }\n }\n }", "public interface Cache<K, V> {\n\n /**\n * 通过键值获取获取缓存值\n *\n * @param k k\n * @return\n */\n V get(K k);\n\n /**\n * 通过键值刷新缓存值\n *\n * @param k k\n */\n void refresh(K k);\n}", "public interface Cache<K,E> {\n\tpublic E getCacheEntry(K id);\n\t\n\tpublic boolean addCacheEntry(K id, E entry);\n\t\n\tpublic void removeCacheEntry(K id);\n\t\n\tpublic Stream<E> getAllEntries();\n}", "public Node<E> getNodeFromCache() {\n if (this.cacheSize == 0) {\n return null;\n }\n Node<E> node = this.firstCachedNode;\n this.firstCachedNode = node.next;\n node.next = null;\n this.cacheSize--;\n return node;\n }", "public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}", "public interface Cache {\r\n\r\n public Object get( Object key);\r\n public void put( Object key, Object value);\r\n}", "Element getGenericElement();", "@Override\n public Map<K, ICacheElement<K, V>> getCacheElements( final Set<K> names )\n {\n return this.getCacheControl().getMultiple( names );\n }", "public Hashtable getElementHashEntry() {\n\t\treturn (element);\n\t}", "public Object getElement() {\n return element;\n }", "public interface Cache<K, V> {\n\n public V get(K key);\n\n public void put(K key, V value);\n\n public void remove(K key);\n\n}", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}", "public static Cache getCache(PageContext pc, int scope)\n {\n return (Cache)pc.getAttribute(Constants.JSPTAG_CACHE_KEY, scope);\n }", "@Override\r\n\tpublic Object getElement(Object elementKey) {\n\t\treturn elements.get(elementKey);\r\n\t}", "public IconCache getIconCache() {\n return mIconCache;\n }", "public MemoryCacheParams get() {\n return new MemoryCacheParams(m114359b(), 256, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, f81939a);\n }", "public Object getElement()\r\n\t\t{ return element; }", "public interface Cache {\n void put(String key, Object value);\n\n Object get(String key);\n}", "public I_Element getElement() {\n\t\treturn element;\n\t}", "StoreResponse set(CACHE_ELEMENT e);", "public interface CustomCache<K, V> {\n\n /**\n * gets a value by key\n * returns null if key is expired\n *\n * @param key\n * @return\n */\n V get(K key);\n\n /**\n * puts into cache with given ttl\n *\n * @param key\n * @param value\n */\n void put(K key, V value);\n\n /**\n * averages out the non expired values in cache.\n * to be discussed in interview\n *\n * @return\n */\n double average();\n}", "public Object getWrapper(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n } else {\n return cacheKey.getWrapper();\n }\n }", "Object getValueFromLocalCache(Object key);", "public Map<String, String> getCache() {\n return cache;\n }", "public Element getElement()\n {\n return m_Element;\n }", "@Override\n public CacheAPI getCacheAPI() {\n return null;\n }", "@Override\n public V get( final K name )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n return ( element != null ) ? element.getVal() : null;\n }", "final public Element getElement() {\n return element;\n }", "public JsonArray getCache() {\n return cache;\n }", "public T getElement();", "public interface TypedCache<T> extends WritableCache<T>, ObservableWriteOperation<T>, BaseCache {\n @Nullable\n T find(long id);\n\n @NonNull\n Observable<? extends T> observeById(long id);\n\n @NonNull\n Observable<? extends T> observeById(T element);\n}", "public interface ILeveledCache<K, V> extends ICache<K, V>{\n void reCache() throws IOException, ClassNotFoundException;\n Map<K, V> add(K key, V object) throws IOException, ClassNotFoundException;\n List<K> sortedKeys();\n int maxLevel1size();\n Set<K> level1keys();\n}", "public T get() {\n return cache.getUnchecked(clazz);\n }", "private static ICacheValet getCacheValetJavaConcurrentMapImpl() {\n\n\t\t// Obtenemos la única instancia de esta implementación.\n\t\tICacheValet result = ACacheValet.getInstance();\n\n\t\t// Si es nula, la creamos.\n\t\tif (result == null) {\n\n\t\t\tresult = new ConcurrentMapCacheValet();\n\t\t\tif (result != null) {\n\t\t\t\tACacheValet.setInstance(result);\n\t\t\t}\n\n\t\t}\n\n\t\t// La devolvemos.\n\t\treturn result;\n\n\t}", "ElementInfo getLastCreatedOrReleasedElementInfo();", "public interface Cache<T> {\n\n /**\n * Put the object in the cache with the given <code>key</code>.\n * <p>\n * The object is stored for the default configured time, depending on the\n * cache implementation. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n void put(@NonNull String key, @NonNull T value);\n\n /**\n * Put the object in the cache with the given <code>key</code> for the\n * given <code>duration</code>.\n * <p>\n * The object is stored for the requested duration. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param duration The (not null) duration to store the object for.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull Duration duration);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for ever.\n * <p>\n * The object is stored and should never be removed. This should overrule configured default\n * expiry time for objects put in the cache. However, the object may still be evicted from\n * the cache, for instance for memory reasons.\n * <p>\n * This method calls Duration.ofMillis(Long.max()) and passes it to the put(key, value, Duration duration).\n * So this method does not persist eternally, but rather persists for a long time.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n default void putEternally(@NonNull final String key, @NonNull final T value) {\n put(key, value, Duration.ofMillis(Long.MAX_VALUE));\n }\n\n /**\n * Retrieve the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The value, or <code>null</code> if the object is not found.\n */\n T get(@NonNull String key);\n\n /**\n * Retrieve an optional for the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The <code>Optional</code> for the value.\n */\n default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }\n\n /**\n * Remove the value associate with the <code>key</code>.\n *\n * @param key The key to remove.\n */\n void remove(@NonNull String key);\n\n}", "public E getElement() { return element; }", "Object getFlyweight(String type, String tag) {\n\t\t\treturn cache.get(type + \".\" + tag);\n\t\t}", "public Object getElement();", "public Element getElement() {\n return element;\n }", "public Element getElement() {\n return element;\n }", "public Element getElement() {\r\n\t\treturn element;\r\n\t}", "public Object get(Object key) {\n Entry entry = this.cache.get(key);\n\n if (entry == null)\n return null;\n\n // move the recently accessed Entry to the head of list\n moveToHead(entry);\n return entry.value;\n }", "public static synchronized OpenIDRememberMeTokenCache getCacheInstance() {\n if (rememberMeCache == null) {\n rememberMeCache = new OpenIDRememberMeTokenCache();\n }\n return rememberMeCache;\n }", "protected Map<String, String> getElementAttributes() {\n // Preserve order of attributes\n Map<String, String> attrs = new HashMap<>();\n\n if (this.getName() != null) {\n attrs.put(\"name\", this.getName());\n }\n if (this.getValue() != null) {\n attrs.put(\"value\", this.getValue());\n }\n\n return attrs;\n }", "public Map<K,V> getMap() {\n Map<K,V> results = new HashMap<K,V>(valueMap.size());\n\n synchronized(theLock) {\n for (Map.Entry<K,CacheableObject> entry : valueMap.entrySet()) {\n if (! isExpired(entry.getValue())) {\n results.put(entry.getKey(), entry.getValue().cachedObject);\n }\n }\n }\n\n return results;\n }", "private Cache<String, String> getCache() {\n if (protobufSchemaCache == null) {\n throw new IllegalStateException(\"Not started yet\");\n }\n return protobufSchemaCache;\n }", "public int get(int curtTime, int key) {\n if (!cache.containsKey(key)) {\n return Integer.MAX_VALUE;\n }\n Element elem = cache.get(key);\n if (elem.expire >= curtTime || elem.expire == -1) {\n return elem.value;\n } else {\n return Integer.MAX_VALUE;\n }\n }", "public E getElement() {\r\n return element;\r\n }", "private View getCachedView() {\n if (mCachedItemViews.size() != 0) {\n return mCachedItemViews.removeFirst();\n }\n return null;\n }", "protected Map<String,BaseAttribute> getAttributeCache(ShibbolethResolutionContext resolutionContext, String query) {\n if (cacheResults) {\n String principal = resolutionContext.getAttributeRequestContext().getPrincipalName();\n Map<String, Map<String, BaseAttribute>> cache = dataCache.get(principal);\n if (cache != null) {\n Map<String, BaseAttribute> attributes = cache.get(query);\n log.debug(\"Data connector {} got cached attributes for principal: {}\", getId(), principal);\n return attributes;\n }\n }\n\n return null;\n }", "PortalCacheModel getCacheModel();", "public Object get(String key) {\n\n CacheObject cacheObject = cache.get(key).get();\n if (!cacheObject.isExpired()) {\n cacheObject.updateUseTime();\n return cacheObject.getValue();\n } else {\n cache.remove(key);\n queue.add(cacheObject);\n return null;\n }\n }", "public static ENamedElement getElement(IAdaptable hint) {\n\t\tObject type = hint.getAdapter(IElementType.class);\n\t\tif (elements == null) {\n\t\t\telements = new IdentityHashMap<IElementType, ENamedElement>();\n\n\t\t\telements.put(Schema_1000, ESchemaPackage.eINSTANCE.getSchema());\n\n\t\t\telements.put(PersistentTable_2009,\n\t\t\t\t\tETablesPackage.eINSTANCE.getPersistentTable());\n\n\t\t\telements.put(Column_3001, ETablesPackage.eINSTANCE.getColumn());\n\n\t\t\telements.put(UniqueConstraint_3002,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getUniqueConstraint());\n\n\t\t\telements.put(ForeignKey_3003,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\n\t\t\telements.put(ForeignKey_4001,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\n\t\t\telements.put(ForeignKey_4002,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\t\t}\n\t\treturn (ENamedElement) elements.get(type);\n\t}", "private ICacheElement<K, V> readElement(final K key) throws IOException\r\n {\r\n final IndexedDiskElementDescriptor ded = keyHash.get(key);\r\n\r\n if (ded != null)\r\n {\r\n log.debug(\"{0}: Found on disk, key: \", logCacheName, key);\r\n\r\n try\r\n {\r\n return dataFile.readObject(ded);\r\n // TODO consider checking key equality and throwing if there is a failure\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: IO Exception, Problem reading object from file\", logCacheName, e);\r\n throw e;\r\n }\r\n catch (final Exception e)\r\n {\r\n log.error(\"{0}: Exception, Problem reading object from file\", logCacheName, e);\r\n throw new IOException(logCacheName + \"Problem reading object from disk.\", e);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public java.sql.Timestamp getModified() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"modified\")));\n }", "protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }", "public interface IBaseCache<T> {\n\n void setById(String id, T o);\n\n void setById(String id, T o, int timeout);\n\n void set(String key, T o);\n\n void set(String key, T o, int timeout);\n\n T getById(String id);\n\n T get(String key);\n\n void setList(List<T> list);\n\n void setList(List<T> list, int timeout);\n\n boolean hasList();\n\n List<T> getList();\n\n void setList(String key, List<T> list);\n\n void setList(String key, List<T> list, int timeout);\n\n boolean hasList(String key);\n\n List<T> getList(String key);\n\n boolean hasKeyById(String id);\n\n boolean hasKey(String key);\n\n void deleteKeyById(String id);\n\n void deleteKey(String key);\n\n void deleteList();\n\n void deleteList(String key);\n\n void deleteAllEntityKeys();\n\n\n}", "public interface CacheManager {\n\n void init();\n\n void destroy();\n\n void del(String key);\n\n void set(String key, Object value);\n\n void set(String key, Object value, int expireTime);\n\n <T> T get(String key, Class<T> clazz);\n\n void hset(String key, String subKey, Object value);\n\n <T> T hget(String key, String subKey, Class<T> clazz);\n\n <T> Map<String, T> hget(String key, Class<T> clazz);\n\n void hrem(String key, String subKey);\n\n long hincr(String key, String subKey);\n\n void sadd(String key, Object val);\n\n boolean sisMember(String key, Object val);\n\n void srem(String key, Object val);\n\n Set<String> sget(String key);\n\n <T> Set<T> sget(String key, Class<T> clazz);\n\n void zadd(String key, Object val, double score);\n\n boolean zisMember(String key, Object val);\n\n void zrem(String key, Object val);\n\n void zrem(String key, double min, double max);\n\n void zreplace(String key, Object val, double score);\n\n double zincr(String key, Object val, double score);\n\n <T> Set<T> zget(String key, double min, double max, Class<T> clazz);\n\n Set<String> zget(String key, double min, double max);\n}", "private Element get() {\n return new MockElement();\n }", "public CacheStatistics getCacheStatistics()\n {\n return m_stats;\n }", "public long getCacheExpirationSeconds() {\n return cache.getCacheExpirationSeconds();\n }", "@Override\n\t@TimeComplexity(\"O(1)\")\n\tpublic E element()\n\t{\n\t\treturn element;\n\t}", "public JwkProviderBuilder cached(long cacheSize, long expiresIn, TimeUnit unit) {\n this.cached = true;\n this.cacheSize = cacheSize;\n this.expiresIn = expiresIn;\n this.expiresUnit = unit;\n return this;\n }", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "@Override\r\n protected ICacheElement<K, V> processGet(final K key)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive so returning null for key = {1}\",\r\n logCacheName, key);\r\n return null;\r\n }\r\n\r\n log.debug(\"{0}: Trying to get from disk: {1}\", logCacheName, key);\r\n\r\n ICacheElement<K, V> object = null;\r\n try\r\n {\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n object = readElement(key);\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n if (object != null)\r\n {\r\n hitCount.incrementAndGet();\r\n }\r\n }\r\n catch (final IOException ioe)\r\n {\r\n log.error(\"{0}: Failure getting from disk, key = {1}\", logCacheName, key, ioe);\r\n reset();\r\n }\r\n return object;\r\n }", "private View getCachedView()\n\t{\n\t\tif (_cachedItemViews.size() != 0)\n\t\t{\n\t\t\treturn _cachedItemViews.removeFirst();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public V get(K key){\n CacheObject<K, V> cacheObject = this.cache.get(key);\n\n if (cacheObject != null){\n return cacheObject.getObject();\n }\n\n return null;\n }", "public interface CacheIndex {\n \n /**\n * Puts index on indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void put(Object indexedKey, Object key);\n \n /**\n * Removes the index from indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void remove(Object indexedKey, Object key);\n \n /**\n * Equals to.\n *\n * @param expectedValue the expected value\n * @return the list\n */\n List<Object> equalsTo(Object expectedValue);\n \n /**\n * Less than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThan(Object value);\n \n /**\n * Less than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThanOrEqualsTo(Object value);\n \n /**\n * Greater than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThan(Object value);\n \n /**\n * Greater than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThanOrEqualsTo(Object value);\n \n /**\n * Between.\n *\n * @param lowerBound the lower bound\n * @param upperBound the upper bound\n * @return the list\n */\n List<Object> between(Object lowerBound, Object upperBound);\n \n}" ]
[ "0.6363292", "0.63143194", "0.5981873", "0.59375316", "0.5845774", "0.58133954", "0.57552004", "0.56889695", "0.5678188", "0.5646364", "0.5644591", "0.56136394", "0.556525", "0.5559269", "0.5557251", "0.555335", "0.5545252", "0.5534319", "0.54942775", "0.54903483", "0.54806596", "0.54760486", "0.5474921", "0.54714847", "0.5457412", "0.54448456", "0.5418935", "0.5417022", "0.5412424", "0.5406466", "0.53843457", "0.535714", "0.53456265", "0.53369874", "0.5335008", "0.5321889", "0.53173876", "0.53163105", "0.53151774", "0.5310478", "0.5299104", "0.52936137", "0.52787334", "0.5270627", "0.5263378", "0.5262166", "0.5256391", "0.5251271", "0.5247439", "0.52443016", "0.52391964", "0.5238594", "0.52385896", "0.5224724", "0.52246004", "0.52141833", "0.52067953", "0.519577", "0.5182364", "0.51676303", "0.5149122", "0.5145413", "0.5134812", "0.51307833", "0.5127453", "0.5126525", "0.5125767", "0.51123965", "0.50960046", "0.50727767", "0.5063287", "0.5063287", "0.50584364", "0.5050973", "0.5050969", "0.50466514", "0.5043563", "0.50369257", "0.5021123", "0.5015323", "0.501095", "0.50095725", "0.50084174", "0.4998388", "0.49878153", "0.49852324", "0.4979421", "0.49780905", "0.49751377", "0.49714112", "0.49653506", "0.49646363", "0.49601942", "0.4958647", "0.49481702", "0.49368766", "0.49291545", "0.49285764", "0.49204177", "0.49204066" ]
0.6695358
0
Get multiple elements from the cache based on a set of cache keys. This method returns the ICacheElement&lt;K, V&gt; wrapper which provides access to element info and other attributes. This returns a reference to the wrapper. Any modifications will be reflected in the cache. No defensive copy is made. This method is most useful if you want to determine things such as the how long the element has been in the cache. The last access time in the ElementAttributes should be current.
@Override public Map<K, ICacheElement<K, V>> getCacheElements( final Set<K> names ) { return this.getCacheControl().getMultiple( names ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CACHE_ELEMENT[] get(Key ... keys);", "@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getCacheControl().get( name );\n }", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "DataElement getFromCache(String dataElementName);", "@Override\n public synchronized Enumeration elements() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.elements();\n }", "public V getElementByKey(K key) {\n\t\tif (cacheMap.containsKey(key)) {\n\t\t\telementHit(key);\n\t\t}\n\t\treturn cacheMap.get(key);\n\t}", "@Override\n public IElementAttributes getElementAttributes( final K name ) throws CacheException\n {\n IElementAttributes attr = null;\n\n try\n {\n attr = this.getCacheControl().getElementAttributes( name );\n }\n catch ( final IOException ioe )\n {\n throw new CacheException(\"Failure getting element attributes\", ioe);\n }\n\n return attr;\n }", "public interface Cache<K,E> {\n\tpublic E getCacheEntry(K id);\n\t\n\tpublic boolean addCacheEntry(K id, E entry);\n\t\n\tpublic void removeCacheEntry(K id);\n\t\n\tpublic Stream<E> getAllEntries();\n}", "Map<String, Element> getElements();", "Map<Double, Element> getElements();", "@Override\n public Map<K, ICacheElement<K, V>> getMatchingCacheElements( final String pattern )\n {\n return this.getCacheControl().getMatching( pattern );\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "StoreResponse append(CACHE_ELEMENT element);", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "@Override\r\n\tpublic Object getElement(Object elementKey) {\n\t\treturn elements.get(elementKey);\r\n\t}", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "@Override\n\tpublic Map<Serializable, Serializable> gets(String name, List<Serializable> keys)\n\t\t\tthrows CacheException {\n\t\treturn null;\n\t}", "public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }", "List<WrappedKeyValue<TKey, TValue>> GetElements() throws IOException;", "public Collection getAllCaches()\n {\n Set setRef = new HashSet();\n Collection<Map> colLoader = m_mapByName.values();\n\n for (Map mapByLoader : colLoader)\n {\n synchronized (mapByLoader)\n {\n for (Object oHolder : mapByLoader.values())\n {\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "public interface Cache<K, V> {\n\n public V get(K key);\n\n public void put(K key, V value);\n\n public void remove(K key);\n\n}", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }", "StoreResponse set(CACHE_ELEMENT e);", "StoreResponse add(CACHE_ELEMENT e);", "public Set<Map.Entry<K, V>> entrySet() {\r\n return new CacheEntrySet<K, V>(this);\r\n }", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "@Test\n public void testGetElementJavaPerfTest() throws Exception {\n\n Status somethingThatIsSerializable = Status.STATUS_ALIVE;\n byte[] serializedForm = MemoryEfficientByteArrayOutputStream.serialize(somethingThatIsSerializable).getBytes();\n\n assertEquals(404, HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\").getResponseCode());\n\n net.sf.ehcache.server.soap.jaxws.Element element = new net.sf.ehcache.server.soap.jaxws.Element();\n element.setKey(\"1\");\n element.setValue(serializedForm);\n cacheService.put(\"sampleCache2\", element);\n\n long begin = System.currentTimeMillis();\n for (int i = 0; i < 100; i++) {\n HttpURLConnection urlConnection = HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\");\n assertEquals(200, urlConnection.getResponseCode());\n }\n long end = System.currentTimeMillis();\n LOG.info(\"Get time: \" + (end - begin) / 100f);\n }", "public interface EzyerCache {\n class PersistentObject {\n public final byte[] mData;\n public final String mKey;\n public final long mExpireTimeMillis;\n\n public PersistentObject(byte[] data, String key, long expireTimeMillis) {\n mData = data;\n mKey = key;\n mExpireTimeMillis = expireTimeMillis;\n }\n }\n\n class ValueObject {\n public final byte[] mData;\n public final String mKey;\n public final boolean mIsExpired;\n\n public ValueObject(byte[] data, String key, boolean isExpired) {\n mData = data;\n mKey = key;\n mIsExpired = isExpired;\n }\n }\n\n ValueObject get(String key);\n\n List<ValueObject> get(String key, int start, int end);\n\n void set(PersistentObject po);\n\n void add(PersistentObject po);\n\n void remove(String key);\n\n boolean isExpired(String key);\n\n void clear();\n}", "public interface ElementsGetter {\n\t\n\t/**\n\t * Tests if this ElementsGetter contains more elements.\n\t * @return true if this ElementsGetter contains at least one more element to provide, false otherwise.\n\t */\n\tboolean hasNextElement();\n\t\n\t/**\n\t * Returns the next element of this ElementsGetter if it has at least one more element to provide.\n\t * @return the next element of this ElementsGetter if exists.\n\t * @throws NoSuchElementException if no more elements exist.\n\t */\n\tObject getNextElement() throws NoSuchElementException;\n\t\n\t/**\n\t * Processes all the remaining elements in this ElementsGetter using the given processor object.\n\t * @param p Processor object that processes the remaining elements.\n\t */\n\tdefault void processRemaining(Processor p) {\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "public static CatalogStructure getCache() {\n return CACHE.get();\n }", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "public interface Cache<K, V> {\n\n /**\n * 通过键值获取获取缓存值\n *\n * @param k k\n * @return\n */\n V get(K k);\n\n /**\n * 通过键值刷新缓存值\n *\n * @param k k\n */\n void refresh(K k);\n}", "@Override\n public synchronized Enumeration keys() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keys();\n }", "protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }", "Object getValueFromLocalCache(Object key);", "public interface CacheManager {\n\n void init();\n\n void destroy();\n\n void del(String key);\n\n void set(String key, Object value);\n\n void set(String key, Object value, int expireTime);\n\n <T> T get(String key, Class<T> clazz);\n\n void hset(String key, String subKey, Object value);\n\n <T> T hget(String key, String subKey, Class<T> clazz);\n\n <T> Map<String, T> hget(String key, Class<T> clazz);\n\n void hrem(String key, String subKey);\n\n long hincr(String key, String subKey);\n\n void sadd(String key, Object val);\n\n boolean sisMember(String key, Object val);\n\n void srem(String key, Object val);\n\n Set<String> sget(String key);\n\n <T> Set<T> sget(String key, Class<T> clazz);\n\n void zadd(String key, Object val, double score);\n\n boolean zisMember(String key, Object val);\n\n void zrem(String key, Object val);\n\n void zrem(String key, double min, double max);\n\n void zreplace(String key, Object val, double score);\n\n double zincr(String key, Object val, double score);\n\n <T> Set<T> zget(String key, double min, double max, Class<T> clazz);\n\n Set<String> zget(String key, double min, double max);\n}", "public interface CacheIndex {\n \n /**\n * Puts index on indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void put(Object indexedKey, Object key);\n \n /**\n * Removes the index from indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void remove(Object indexedKey, Object key);\n \n /**\n * Equals to.\n *\n * @param expectedValue the expected value\n * @return the list\n */\n List<Object> equalsTo(Object expectedValue);\n \n /**\n * Less than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThan(Object value);\n \n /**\n * Less than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThanOrEqualsTo(Object value);\n \n /**\n * Greater than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThan(Object value);\n \n /**\n * Greater than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThanOrEqualsTo(Object value);\n \n /**\n * Between.\n *\n * @param lowerBound the lower bound\n * @param upperBound the upper bound\n * @return the list\n */\n List<Object> between(Object lowerBound, Object upperBound);\n \n}", "public List<T> read(int numbersToRetrieve)\r\n {\r\n// final String methodName = \"read\";\r\n List<T> list = null;\r\n\r\n if (_cache.isEmpty())\r\n {\r\n// Advisory advisory = new Advisory();\r\n//\r\n// advisory.setPackageName (ConstantsPackages.CACHE);\r\n// advisory.setMethodName (_className + \"::\" + methodName);\r\n// advisory.setStatus (Status.STATUS_CACHE_INVALID);\r\n//\r\n// AdvisoryLog.log (advisory);\r\n }\r\n\r\n else\r\n {\r\n int elementIndex = 0;\r\n int pageIndex = 0;\r\n\r\n list = new ArrayList<T>();\r\n\r\n while((list.size() < numbersToRetrieve)&&(!_cache.isEmpty()))\r\n {\r\n List<T> workList;\r\n \r\n synchronized(_cache)\r\n {\r\n workList = _cache.get (pageIndex);\r\n }\r\n \r\n int numbersRemaining = numbersToRetrieve - list.size();\r\n\r\n // Can current cache be used to retrieve all data?\r\n if (numbersRemaining < workList.size())\r\n {\r\n for (int index = 0; index < numbersRemaining; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n }\r\n\r\n // Data must be retrieved from multiple pages of cache.\r\n else\r\n {\r\n // Retrieve available data from current page of cache.\r\n int available = workList.size();\r\n\r\n for (int index = 0; index < available; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n \r\n synchronized(_cache)\r\n {\r\n _cache.remove (pageIndex);\r\n }\r\n \r\n // Refill page.\r\n _addPages (1);\r\n }\r\n }\r\n }\r\n\r\n return list;\r\n }", "public PojoCache getPojoCache();", "public interface Cache {\r\n\r\n public Object get( Object key);\r\n public void put( Object key, Object value);\r\n}", "private HashMap<String, Element> construireCacheDefElement() {\n cacheDefElement = new HashMap<String, Element>();\n cacheNomsElements = new HashMap<Element, String>();\n final NodeList lelements = racine_schema.getElementsByTagName(\"ELEMENT\");\n for (int i=0; i<lelements.getLength(); i++) {\n final Element el = (Element)lelements.item(i);\n final String nom = el.getAttribute(\"nom\");\n cacheDefElement.put(nom, el);\n cacheNomsElements.put(el, nom);\n }\n return(cacheDefElement);\n }", "public interface IBaseCache<T> {\n\n void setById(String id, T o);\n\n void setById(String id, T o, int timeout);\n\n void set(String key, T o);\n\n void set(String key, T o, int timeout);\n\n T getById(String id);\n\n T get(String key);\n\n void setList(List<T> list);\n\n void setList(List<T> list, int timeout);\n\n boolean hasList();\n\n List<T> getList();\n\n void setList(String key, List<T> list);\n\n void setList(String key, List<T> list, int timeout);\n\n boolean hasList(String key);\n\n List<T> getList(String key);\n\n boolean hasKeyById(String id);\n\n boolean hasKey(String key);\n\n void deleteKeyById(String id);\n\n void deleteKey(String key);\n\n void deleteList();\n\n void deleteList(String key);\n\n void deleteAllEntityKeys();\n\n\n}", "protected Map<String,BaseAttribute> getAttributeCache(ShibbolethResolutionContext resolutionContext, String query) {\n if (cacheResults) {\n String principal = resolutionContext.getAttributeRequestContext().getPrincipalName();\n Map<String, Map<String, BaseAttribute>> cache = dataCache.get(principal);\n if (cache != null) {\n Map<String, BaseAttribute> attributes = cache.get(query);\n log.debug(\"Data connector {} got cached attributes for principal: {}\", getId(), principal);\n return attributes;\n }\n }\n\n return null;\n }", "public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }", "public JsonArray getCache() {\n return cache;\n }", "@SuppressWarnings(\"unchecked\")\n public T get(K key) {\n synchronized (cacheMap) {\n CacheObject c = (CacheObject) cacheMap.get(key);\n\n if (c == null) {\n return null;\n } else {\n c.lastAccessed = System.currentTimeMillis();\n return c.value;\n }\n }\n }", "public Map<String, String> getCache() {\n return cache;\n }", "public Map<K,V> getMap() {\n Map<K,V> results = new HashMap<K,V>(valueMap.size());\n\n synchronized(theLock) {\n for (Map.Entry<K,CacheableObject> entry : valueMap.entrySet()) {\n if (! isExpired(entry.getValue())) {\n results.put(entry.getKey(), entry.getValue().cachedObject);\n }\n }\n }\n\n return results;\n }", "public HashMap getElement(Selector selector) {\n \t\t\tif (selector == null)\n \t\t\t\treturn null;\n \n \t\t\tString element;\n \t\t\tfor (int i = 0; i < elements.size(); i++) {\n \t\t\t\t// make pre-parse selector call\n \t\t\t\telement = (String) elements.get(i);\n \t\t\t\tif (selector.select(element)) {\n \t\t\t\t\t// parse selected entry\n \t\t\t\t\tHashMap attributes = new HashMap();\n \t\t\t\t\tString elementName;\n \t\t\t\t\tint j;\n \t\t\t\t\t// parse out element name\n \t\t\t\t\tfor (j = 0; j < element.length(); j++) {\n \t\t\t\t\t\tif (Character.isWhitespace(element.charAt(j)))\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\tif (j >= element.length()) {\n \t\t\t\t\t\telementName = element;\n \t\t\t\t\t} else {\n \t\t\t\t\t\telementName = element.substring(0, j);\n \t\t\t\t\t\telement = element.substring(j);\n \t\t\t\t\t\t// parse out attributes\n \t\t\t\t\t\tStringTokenizer t = new StringTokenizer(element, \"=\\\"\"); //$NON-NLS-1$\n \t\t\t\t\t\tboolean isKey = true;\n \t\t\t\t\t\tString key = \"\"; //$NON-NLS-1$\n \t\t\t\t\t\twhile (t.hasMoreTokens()) {\n \t\t\t\t\t\t\tString token = t.nextToken().trim();\n \t\t\t\t\t\t\tif (!token.equals(\"\")) { //$NON-NLS-1$\n \t\t\t\t\t\t\t\t// collect (key, value) pairs\n \t\t\t\t\t\t\t\tif (isKey) {\n \t\t\t\t\t\t\t\t\tkey = token;\n \t\t\t\t\t\t\t\t\tisKey = false;\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\tattributes.put(key, token);\n \t\t\t\t\t\t\t\t\tisKey = true;\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// make post-parse selector call\n \t\t\t\t\tif (selector.select(elementName, attributes)) {\n \t\t\t\t\t\tattributes.put(\"<element>\", elementName); //$NON-NLS-1$\n \t\t\t\t\t\treturn attributes;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn null;\n \t\t}", "public interface ILeveledCache<K, V> extends ICache<K, V>{\n void reCache() throws IOException, ClassNotFoundException;\n Map<K, V> add(K key, V object) throws IOException, ClassNotFoundException;\n List<K> sortedKeys();\n int maxLevel1size();\n Set<K> level1keys();\n}", "@Override\r\n public Map<K, ICacheElement<K, V>> processGetMatching(final String pattern)\r\n {\r\n final Map<K, ICacheElement<K, V>> elements = new HashMap<>();\r\n Set<K> keyArray = null;\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n keyArray = new HashSet<>(keyHash.keySet());\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n final Set<K> matchingKeys = getKeyMatcher().getMatchingKeysFromArray(pattern, keyArray);\r\n\r\n for (final K key : matchingKeys)\r\n {\r\n final ICacheElement<K, V> element = processGet(key);\r\n if (element != null)\r\n {\r\n elements.put(key, element);\r\n }\r\n }\r\n return elements;\r\n }", "public ConcurrentHashMap<String, Attribute> getAttributes() {\n\t\treturn list;\n\t}", "StoreResponse prepend(CACHE_ELEMENT element);", "protected <T> List<T> getDocCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(docListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "public interface TypedCache<T> extends WritableCache<T>, ObservableWriteOperation<T>, BaseCache {\n @Nullable\n T find(long id);\n\n @NonNull\n Observable<? extends T> observeById(long id);\n\n @NonNull\n Observable<? extends T> observeById(T element);\n}", "CloudCache getCache(String cacheName);", "public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }", "List<Link> findLinkByCache();", "public Object get(Object key) {\n Entry entry = this.cache.get(key);\n\n if (entry == null)\n return null;\n\n // move the recently accessed Entry to the head of list\n moveToHead(entry);\n return entry.value;\n }", "public interface Cache {\n void put(String key, Object value);\n\n Object get(String key);\n}", "protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}", "public interface CustomCache<K, V> {\n\n /**\n * gets a value by key\n * returns null if key is expired\n *\n * @param key\n * @return\n */\n V get(K key);\n\n /**\n * puts into cache with given ttl\n *\n * @param key\n * @param value\n */\n void put(K key, V value);\n\n /**\n * averages out the non expired values in cache.\n * to be discussed in interview\n *\n * @return\n */\n double average();\n}", "@SuppressWarnings( \"unchecked\" )\n @Nonnull\n public ComputableValue<T> getComputableValue( @Nonnull final Object... args )\n {\n if ( Arez.shouldCheckApiInvariants() )\n {\n apiInvariant( () -> args.length == _argCount,\n () -> \"Arez-0162: MemoizeCache.getComputableValue called with \" + args.length +\n \" arguments but expected \" + _argCount + \" arguments.\" );\n }\n Map<Object, Object> map = _cache;\n final int size = args.length - 1;\n for ( int i = 0; i < size; i++ )\n {\n map = (Map<Object, Object>) map.computeIfAbsent( args[ i ], v -> new HashMap<>() );\n }\n ComputableValue<T> computableValue =\n (ComputableValue<T>) map.computeIfAbsent( args[ size ], v -> createComputableValue( args ) );\n if ( Disposable.isDisposed( computableValue ) )\n {\n computableValue = createComputableValue( args );\n map.put( args[ size ], computableValue );\n }\n return computableValue;\n }", "@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}", "public interface Cache<T> {\n\n /**\n * Put the object in the cache with the given <code>key</code>.\n * <p>\n * The object is stored for the default configured time, depending on the\n * cache implementation. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n void put(@NonNull String key, @NonNull T value);\n\n /**\n * Put the object in the cache with the given <code>key</code> for the\n * given <code>duration</code>.\n * <p>\n * The object is stored for the requested duration. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param duration The (not null) duration to store the object for.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull Duration duration);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for ever.\n * <p>\n * The object is stored and should never be removed. This should overrule configured default\n * expiry time for objects put in the cache. However, the object may still be evicted from\n * the cache, for instance for memory reasons.\n * <p>\n * This method calls Duration.ofMillis(Long.max()) and passes it to the put(key, value, Duration duration).\n * So this method does not persist eternally, but rather persists for a long time.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n default void putEternally(@NonNull final String key, @NonNull final T value) {\n put(key, value, Duration.ofMillis(Long.MAX_VALUE));\n }\n\n /**\n * Retrieve the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The value, or <code>null</code> if the object is not found.\n */\n T get(@NonNull String key);\n\n /**\n * Retrieve an optional for the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The <code>Optional</code> for the value.\n */\n default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }\n\n /**\n * Remove the value associate with the <code>key</code>.\n *\n * @param key The key to remove.\n */\n void remove(@NonNull String key);\n\n}", "public Collection getKeys() throws CacheException {\n return cache.getKeys();\n }", "public Object get(String key) {\n\n CacheObject cacheObject = cache.get(key).get();\n if (!cacheObject.isExpired()) {\n cacheObject.updateUseTime();\n return cacheObject.getValue();\n } else {\n cache.remove(key);\n queue.add(cacheObject);\n return null;\n }\n }", "interface ICacheUtil {\n void put(Object key, Object value, long expiredTime, TimeUnit unit);\n Object get(Object key);\n void remove(Object key);\n void clear();\n boolean isExists(Object key);\n}", "public MapElement get(long key) {\r\n return (MapElement) getElement(key);\r\n }", "public static Map<String,String> getKPIsFromCache(){\n\t\tMap<String,String> dataMap=null;\n \t\n \tif(memcache !=null && memcache.contains(ALL_KPI_KEY)){\n \t\tdataMap=(Map<String,String>) memcache.get(ALL_KPI_KEY);\n \t\tlog.info(\"Memcache getKPIsFromCache size = \"+dataMap.size());\n \t} \t\n \treturn dataMap;\n\t}", "@Override\r\n protected ICacheElement<K, V> processGet(final K key)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive so returning null for key = {1}\",\r\n logCacheName, key);\r\n return null;\r\n }\r\n\r\n log.debug(\"{0}: Trying to get from disk: {1}\", logCacheName, key);\r\n\r\n ICacheElement<K, V> object = null;\r\n try\r\n {\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n object = readElement(key);\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n if (object != null)\r\n {\r\n hitCount.incrementAndGet();\r\n }\r\n }\r\n catch (final IOException ioe)\r\n {\r\n log.error(\"{0}: Failure getting from disk, key = {1}\", logCacheName, key, ioe);\r\n reset();\r\n }\r\n return object;\r\n }", "@Override\n public Set keySet() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keySet();\n }", "@Nullable\n @Override\n public CachedRecipe<RECIPE> getCachedRecipe(int cacheIndex) {\n return cachedRecipes[cacheIndex];\n }", "public Iterator iterator()\n {\n // optimization\n if (OldOldCache.this.isEmpty())\n {\n return NullImplementation.getIterator();\n }\n\n // complete entry set iterator\n Iterator iter = instantiateIterator();\n\n // filter to get rid of expired objects\n Filter filter = new Filter()\n {\n public boolean evaluate(Object o)\n {\n Entry entry = (Entry) o;\n boolean fExpired = entry.isExpired();\n if (fExpired)\n {\n OldOldCache.this.removeExpired(entry, true);\n }\n return !fExpired;\n }\n };\n\n return new FilterEnumerator(iter, filter);\n }", "public interface ElementsGetter<T> {\n\t\n\t/**\n\t * Metoda provjerava ima li jos elemenata\n\t * u kolekciji\n\t * @return boolean true ako ima jos elemenata, false ako nema\n\t */\n\tpublic boolean hasNextElement();\n\t\n\t/**\n\t * Metoda dohvaca iduci element kolekcije i vraca ga.\n\t * @return Object koji je iduci element iz kolekcije\n\t */\n\tpublic T getNextElement();\n\t\n\t/**\n\t * Nad svim preostalim elementima kolekcije poziva \n\t * metodu procesora p process(Object value).\n\t * @param p Procesor koji hocemo pozvati nad\n\t * preostalim elementima kolekcije.\n\t * @throws NullPointerException ako je procesor p null\n\t */\n\tdefault void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "public Collection getAllCaches(String sCacheName)\n {\n Set setRef = new HashSet();\n Map mapByLoader = (Map) m_mapByName.get(sCacheName);\n\n if (mapByLoader != null)\n {\n synchronized (mapByLoader)\n {\n Collection col = mapByLoader.values();\n\n for (Iterator iter = col.iterator(); iter.hasNext(); )\n {\n Object oHolder = iter.next();\n\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "public Object getFromCache(Object methodKey, Object objType,\n Object[] methodArgs)\n {\n\n // Eventually, we want to insert code to mangle the methodKey with methodArgs\n return m_cachedMethods.get(methodKey);\n }", "private Document findInCache(String userId) {\n \t\tString key;\n \t\tSet<String> keys = lruCache.getKeySet();\n \t\tIterator<String> itr = keys.iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tkey = itr.next();\n \t\t\tDocument data = lruCache.get(key);\n \t\t\t// check if email in profile object is same as input userId\n \t\t\tString email = \"\";\n \t\t\ttry {\n \t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n \t\t\t} catch (XMLException e) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// cache hit\n \t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n \t\t\t\treturn data;\n \t\t\t}\n \t\t}\n \t\t// Cache miss\n \t\treturn null;\n \t}", "synchronized Collection getCreatedElements() {\n Collection col = new ArrayList(nestedElements.size());\n Iterator it = nestedElements.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry)it.next();\n if (entry.getValue() != null) {\n col.add(entry.getValue());\n }\n }\n return col;\n }", "@Test\n public void testPutGet() {\n cache.put(\"A\", \"first\");\n cache.put(\"C\", \"second\");\n cache.put(\"C\", \"third\");\n \n assertEquals(\"first\", cache.get(\"A\"));\n assertEquals(\"third\", cache.get(\"C\"));\n }", "public static Cache getCache(PageContext pc, int scope)\n {\n return (Cache)pc.getAttribute(Constants.JSPTAG_CACHE_KEY, scope);\n }", "public Iterator iterator()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n try\r\n {\r\n return new CompositeIterator(new Iterator[] { \r\n spaceMgr.makeComponentSpaceIterator(),\r\n spaceMgr.makeHistorySpaceIterator() });\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "public static Map<String,String> getAdvertisersFromCache(){\n\t\tlog.info(\"getAdvertisersFromCache..\");\n\t\tMap<String,String> advertiserMap=null; \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_ADVERTISERS_KEY)){\n \t\tadvertiserMap=(Map<String,String>) memcache.get(MEDIA_PLAN_ADVERTISERS_KEY);\n \t} \t\n \treturn advertiserMap;\n\t}", "public Object get(String methodName, CallCacheArgs args) {\n Map<CallCacheArgs, Object> cacheArgs = this.cache.get(methodName);\n return cacheArgs == null ? null : cacheArgs.get(args);\n }", "@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}", "private static void getFromCache(Session session) {\n\t\tCacheManager cm=CacheManager.getInstance();\n\t\tCache cache=cm.getCache(\"namanCache\");\n\t\tfor(int i=0;i<2;i++){\n\t\t\tif(cache.get(i)!=null){\n\t\t\t\tSystem.out.println(((UserDetails)cache.get(1).getObjectValue()).getName());\n\t\t\t}else{\n\t\t\t\tUserDetails user1=(UserDetails)session.get(UserDetails.class, i);\n\t\t\t\tSystem.out.println(user1.getName());\n\t\t\t\tcache.put(new Element(i+1,user1));\n\t\t\t}\n\t\t}\n\t\tcm.shutdown();\n\t}", "public interface HomeCache {\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n}", "@Override\n\tpublic <T> Map<String, T> get(Collection<String> arg0, long arg1)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\t\treturn null;\n\t}", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "@Override\n public V get( final K name )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n return ( element != null ) ? element.getVal() : null;\n }", "public Cache.Entry get(String param1) {\n }", "public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}", "private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}", "public interface DocumentTypeQueryService extends XmlLoader {\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentTypeId=' + #p0\")\n public DocumentType findById(String documentTypeId);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'name=' + #p0\")\n public DocumentType findByName(String name);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME,\n key=\"'{BO}' + 'documentTypeId=' + #p0.getId() + '|' + 'name=' + #p0.getName() + '|' + 'label=' + #p0.getLabel() + '|' + 'active=' + #p0.isActive() +'docGroupName=' + #p1 + '|' + 'climbHierarchy=' + #p2\")\n public Collection<DocumentType> find(DocumentType documentType, String docGroupName, boolean climbHierarchy);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}{root}' + 'documentTypeId=' + #p0.getId()\")\n public DocumentType findRootDocumentType(DocumentType docType);\n \n /**\n * Returns the DocumentType of the Document with the given ID. \n * \n * @since 2.3\n */\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentId=' + #p0\")\n public DocumentType findByDocumentId(String documentId);\n \n}", "private Document findInCache(String userId) {\n\t\tString key;\n\t\tSet<String> keys = cache.keySet();\n\t\tIterator<String> itr = keys.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tkey = itr.next();\n\t\t\tDocument data = cache.get(key);\n\t\t\t// check if email in profile object is same as input userId\n\t\t\tString email = \"\";\n\t\t\ttry {\n\t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n\t\t\t} catch (XMLException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// cache hit\n\t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n\t\t\t\treturn data;\n\t\t\t}\n\t\t}\n\t\t// Cache miss\n\t\treturn null;\n\t}", "@Override\n\tpublic Map loadAll(Iterable keys) throws CacheLoaderException {\n\t\treturn null;\n\t}", "@Override\n\tpublic V retrieve(K key) {\n\t\tcheckNullKey(key);\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.get(key);\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "private ICacheElement<K, V> readElement(final K key) throws IOException\r\n {\r\n final IndexedDiskElementDescriptor ded = keyHash.get(key);\r\n\r\n if (ded != null)\r\n {\r\n log.debug(\"{0}: Found on disk, key: \", logCacheName, key);\r\n\r\n try\r\n {\r\n return dataFile.readObject(ded);\r\n // TODO consider checking key equality and throwing if there is a failure\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: IO Exception, Problem reading object from file\", logCacheName, e);\r\n throw e;\r\n }\r\n catch (final Exception e)\r\n {\r\n log.error(\"{0}: Exception, Problem reading object from file\", logCacheName, e);\r\n throw new IOException(logCacheName + \"Problem reading object from disk.\", e);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public interface CacheIdLookup<T> {\n\n /**\n * Return the Id values to lookup against the L2 cache.\n */\n Collection<?> idValues();\n\n /**\n * Remove the hits returning the beans fetched from L2 cache.\n */\n List<T> removeHits(BeanCacheResult<T> cacheResult);\n\n /**\n * Return true if all beans where found in L2 cache.\n */\n boolean allHits();\n}" ]
[ "0.7156561", "0.6194872", "0.61915565", "0.6022542", "0.5998997", "0.59199595", "0.58619803", "0.58199674", "0.5666954", "0.56238544", "0.56211597", "0.5543591", "0.54818463", "0.5474095", "0.543134", "0.5425906", "0.5414597", "0.53979915", "0.53592", "0.5353374", "0.53101474", "0.527812", "0.5271369", "0.5268583", "0.52424467", "0.5236993", "0.52178246", "0.5212089", "0.51968104", "0.5185989", "0.51792985", "0.51790136", "0.5174635", "0.51618224", "0.5155581", "0.51404905", "0.5131817", "0.51248264", "0.5121581", "0.5104813", "0.50635636", "0.5061875", "0.50610894", "0.5061048", "0.5050595", "0.50490665", "0.50420445", "0.5028009", "0.5026366", "0.5019192", "0.5006553", "0.49921387", "0.4983746", "0.49744216", "0.49620932", "0.49582133", "0.49441093", "0.49400973", "0.49102098", "0.49028596", "0.48949522", "0.48699212", "0.4868529", "0.485416", "0.48454046", "0.4836411", "0.4827466", "0.4823616", "0.48219115", "0.48148796", "0.48050928", "0.4804345", "0.4804191", "0.47990805", "0.4798706", "0.47944996", "0.47937018", "0.47907642", "0.47815305", "0.47805515", "0.47743577", "0.47712412", "0.476764", "0.4765035", "0.47582188", "0.4758", "0.47488445", "0.473891", "0.47273606", "0.47084436", "0.4704594", "0.46969393", "0.46892795", "0.467812", "0.46774918", "0.46725914", "0.46722314", "0.4672154", "0.46641672", "0.46533376" ]
0.716805
0
Get multiple elements from the cache based on a set of cache keys. This method returns the ICacheElement&lt;K, V&gt; wrapper which provides access to element info and other attributes. This returns a reference to the wrapper. Any modifications will be reflected in the cache. No defensive copy is made. This method is most useful if you want to determine things such as the how long the element has been in the cache. The last access time in the ElementAttributes should be current.
@Override public Map<K, ICacheElement<K, V>> getMatchingCacheElements( final String pattern ) { return this.getCacheControl().getMatching( pattern ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<K, ICacheElement<K, V>> getCacheElements( final Set<K> names )\n {\n return this.getCacheControl().getMultiple( names );\n }", "CACHE_ELEMENT[] get(Key ... keys);", "@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getCacheControl().get( name );\n }", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "DataElement getFromCache(String dataElementName);", "@Override\n public synchronized Enumeration elements() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.elements();\n }", "public V getElementByKey(K key) {\n\t\tif (cacheMap.containsKey(key)) {\n\t\t\telementHit(key);\n\t\t}\n\t\treturn cacheMap.get(key);\n\t}", "@Override\n public IElementAttributes getElementAttributes( final K name ) throws CacheException\n {\n IElementAttributes attr = null;\n\n try\n {\n attr = this.getCacheControl().getElementAttributes( name );\n }\n catch ( final IOException ioe )\n {\n throw new CacheException(\"Failure getting element attributes\", ioe);\n }\n\n return attr;\n }", "public interface Cache<K,E> {\n\tpublic E getCacheEntry(K id);\n\t\n\tpublic boolean addCacheEntry(K id, E entry);\n\t\n\tpublic void removeCacheEntry(K id);\n\t\n\tpublic Stream<E> getAllEntries();\n}", "Map<String, Element> getElements();", "Map<Double, Element> getElements();", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "StoreResponse append(CACHE_ELEMENT element);", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "@Override\r\n\tpublic Object getElement(Object elementKey) {\n\t\treturn elements.get(elementKey);\r\n\t}", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "@Override\n\tpublic Map<Serializable, Serializable> gets(String name, List<Serializable> keys)\n\t\t\tthrows CacheException {\n\t\treturn null;\n\t}", "public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }", "List<WrappedKeyValue<TKey, TValue>> GetElements() throws IOException;", "public Collection getAllCaches()\n {\n Set setRef = new HashSet();\n Collection<Map> colLoader = m_mapByName.values();\n\n for (Map mapByLoader : colLoader)\n {\n synchronized (mapByLoader)\n {\n for (Object oHolder : mapByLoader.values())\n {\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "public interface Cache<K, V> {\n\n public V get(K key);\n\n public void put(K key, V value);\n\n public void remove(K key);\n\n}", "Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }", "StoreResponse set(CACHE_ELEMENT e);", "StoreResponse add(CACHE_ELEMENT e);", "public Set<Map.Entry<K, V>> entrySet() {\r\n return new CacheEntrySet<K, V>(this);\r\n }", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "@Test\n public void testGetElementJavaPerfTest() throws Exception {\n\n Status somethingThatIsSerializable = Status.STATUS_ALIVE;\n byte[] serializedForm = MemoryEfficientByteArrayOutputStream.serialize(somethingThatIsSerializable).getBytes();\n\n assertEquals(404, HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\").getResponseCode());\n\n net.sf.ehcache.server.soap.jaxws.Element element = new net.sf.ehcache.server.soap.jaxws.Element();\n element.setKey(\"1\");\n element.setValue(serializedForm);\n cacheService.put(\"sampleCache2\", element);\n\n long begin = System.currentTimeMillis();\n for (int i = 0; i < 100; i++) {\n HttpURLConnection urlConnection = HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\");\n assertEquals(200, urlConnection.getResponseCode());\n }\n long end = System.currentTimeMillis();\n LOG.info(\"Get time: \" + (end - begin) / 100f);\n }", "public interface EzyerCache {\n class PersistentObject {\n public final byte[] mData;\n public final String mKey;\n public final long mExpireTimeMillis;\n\n public PersistentObject(byte[] data, String key, long expireTimeMillis) {\n mData = data;\n mKey = key;\n mExpireTimeMillis = expireTimeMillis;\n }\n }\n\n class ValueObject {\n public final byte[] mData;\n public final String mKey;\n public final boolean mIsExpired;\n\n public ValueObject(byte[] data, String key, boolean isExpired) {\n mData = data;\n mKey = key;\n mIsExpired = isExpired;\n }\n }\n\n ValueObject get(String key);\n\n List<ValueObject> get(String key, int start, int end);\n\n void set(PersistentObject po);\n\n void add(PersistentObject po);\n\n void remove(String key);\n\n boolean isExpired(String key);\n\n void clear();\n}", "public interface ElementsGetter {\n\t\n\t/**\n\t * Tests if this ElementsGetter contains more elements.\n\t * @return true if this ElementsGetter contains at least one more element to provide, false otherwise.\n\t */\n\tboolean hasNextElement();\n\t\n\t/**\n\t * Returns the next element of this ElementsGetter if it has at least one more element to provide.\n\t * @return the next element of this ElementsGetter if exists.\n\t * @throws NoSuchElementException if no more elements exist.\n\t */\n\tObject getNextElement() throws NoSuchElementException;\n\t\n\t/**\n\t * Processes all the remaining elements in this ElementsGetter using the given processor object.\n\t * @param p Processor object that processes the remaining elements.\n\t */\n\tdefault void processRemaining(Processor p) {\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "public static CatalogStructure getCache() {\n return CACHE.get();\n }", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }", "public interface Cache<K, V> {\n\n /**\n * 通过键值获取获取缓存值\n *\n * @param k k\n * @return\n */\n V get(K k);\n\n /**\n * 通过键值刷新缓存值\n *\n * @param k k\n */\n void refresh(K k);\n}", "@Override\n public synchronized Enumeration keys() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keys();\n }", "protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }", "Object getValueFromLocalCache(Object key);", "public interface CacheManager {\n\n void init();\n\n void destroy();\n\n void del(String key);\n\n void set(String key, Object value);\n\n void set(String key, Object value, int expireTime);\n\n <T> T get(String key, Class<T> clazz);\n\n void hset(String key, String subKey, Object value);\n\n <T> T hget(String key, String subKey, Class<T> clazz);\n\n <T> Map<String, T> hget(String key, Class<T> clazz);\n\n void hrem(String key, String subKey);\n\n long hincr(String key, String subKey);\n\n void sadd(String key, Object val);\n\n boolean sisMember(String key, Object val);\n\n void srem(String key, Object val);\n\n Set<String> sget(String key);\n\n <T> Set<T> sget(String key, Class<T> clazz);\n\n void zadd(String key, Object val, double score);\n\n boolean zisMember(String key, Object val);\n\n void zrem(String key, Object val);\n\n void zrem(String key, double min, double max);\n\n void zreplace(String key, Object val, double score);\n\n double zincr(String key, Object val, double score);\n\n <T> Set<T> zget(String key, double min, double max, Class<T> clazz);\n\n Set<String> zget(String key, double min, double max);\n}", "public interface CacheIndex {\n \n /**\n * Puts index on indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void put(Object indexedKey, Object key);\n \n /**\n * Removes the index from indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void remove(Object indexedKey, Object key);\n \n /**\n * Equals to.\n *\n * @param expectedValue the expected value\n * @return the list\n */\n List<Object> equalsTo(Object expectedValue);\n \n /**\n * Less than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThan(Object value);\n \n /**\n * Less than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThanOrEqualsTo(Object value);\n \n /**\n * Greater than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThan(Object value);\n \n /**\n * Greater than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThanOrEqualsTo(Object value);\n \n /**\n * Between.\n *\n * @param lowerBound the lower bound\n * @param upperBound the upper bound\n * @return the list\n */\n List<Object> between(Object lowerBound, Object upperBound);\n \n}", "public List<T> read(int numbersToRetrieve)\r\n {\r\n// final String methodName = \"read\";\r\n List<T> list = null;\r\n\r\n if (_cache.isEmpty())\r\n {\r\n// Advisory advisory = new Advisory();\r\n//\r\n// advisory.setPackageName (ConstantsPackages.CACHE);\r\n// advisory.setMethodName (_className + \"::\" + methodName);\r\n// advisory.setStatus (Status.STATUS_CACHE_INVALID);\r\n//\r\n// AdvisoryLog.log (advisory);\r\n }\r\n\r\n else\r\n {\r\n int elementIndex = 0;\r\n int pageIndex = 0;\r\n\r\n list = new ArrayList<T>();\r\n\r\n while((list.size() < numbersToRetrieve)&&(!_cache.isEmpty()))\r\n {\r\n List<T> workList;\r\n \r\n synchronized(_cache)\r\n {\r\n workList = _cache.get (pageIndex);\r\n }\r\n \r\n int numbersRemaining = numbersToRetrieve - list.size();\r\n\r\n // Can current cache be used to retrieve all data?\r\n if (numbersRemaining < workList.size())\r\n {\r\n for (int index = 0; index < numbersRemaining; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n }\r\n\r\n // Data must be retrieved from multiple pages of cache.\r\n else\r\n {\r\n // Retrieve available data from current page of cache.\r\n int available = workList.size();\r\n\r\n for (int index = 0; index < available; index++)\r\n {\r\n list.add (workList.remove (elementIndex));\r\n }\r\n \r\n synchronized(_cache)\r\n {\r\n _cache.remove (pageIndex);\r\n }\r\n \r\n // Refill page.\r\n _addPages (1);\r\n }\r\n }\r\n }\r\n\r\n return list;\r\n }", "public PojoCache getPojoCache();", "public interface Cache {\r\n\r\n public Object get( Object key);\r\n public void put( Object key, Object value);\r\n}", "public interface IBaseCache<T> {\n\n void setById(String id, T o);\n\n void setById(String id, T o, int timeout);\n\n void set(String key, T o);\n\n void set(String key, T o, int timeout);\n\n T getById(String id);\n\n T get(String key);\n\n void setList(List<T> list);\n\n void setList(List<T> list, int timeout);\n\n boolean hasList();\n\n List<T> getList();\n\n void setList(String key, List<T> list);\n\n void setList(String key, List<T> list, int timeout);\n\n boolean hasList(String key);\n\n List<T> getList(String key);\n\n boolean hasKeyById(String id);\n\n boolean hasKey(String key);\n\n void deleteKeyById(String id);\n\n void deleteKey(String key);\n\n void deleteList();\n\n void deleteList(String key);\n\n void deleteAllEntityKeys();\n\n\n}", "protected Map<String,BaseAttribute> getAttributeCache(ShibbolethResolutionContext resolutionContext, String query) {\n if (cacheResults) {\n String principal = resolutionContext.getAttributeRequestContext().getPrincipalName();\n Map<String, Map<String, BaseAttribute>> cache = dataCache.get(principal);\n if (cache != null) {\n Map<String, BaseAttribute> attributes = cache.get(query);\n log.debug(\"Data connector {} got cached attributes for principal: {}\", getId(), principal);\n return attributes;\n }\n }\n\n return null;\n }", "private HashMap<String, Element> construireCacheDefElement() {\n cacheDefElement = new HashMap<String, Element>();\n cacheNomsElements = new HashMap<Element, String>();\n final NodeList lelements = racine_schema.getElementsByTagName(\"ELEMENT\");\n for (int i=0; i<lelements.getLength(); i++) {\n final Element el = (Element)lelements.item(i);\n final String nom = el.getAttribute(\"nom\");\n cacheDefElement.put(nom, el);\n cacheNomsElements.put(el, nom);\n }\n return(cacheDefElement);\n }", "public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }", "public JsonArray getCache() {\n return cache;\n }", "@SuppressWarnings(\"unchecked\")\n public T get(K key) {\n synchronized (cacheMap) {\n CacheObject c = (CacheObject) cacheMap.get(key);\n\n if (c == null) {\n return null;\n } else {\n c.lastAccessed = System.currentTimeMillis();\n return c.value;\n }\n }\n }", "public Map<String, String> getCache() {\n return cache;\n }", "public Map<K,V> getMap() {\n Map<K,V> results = new HashMap<K,V>(valueMap.size());\n\n synchronized(theLock) {\n for (Map.Entry<K,CacheableObject> entry : valueMap.entrySet()) {\n if (! isExpired(entry.getValue())) {\n results.put(entry.getKey(), entry.getValue().cachedObject);\n }\n }\n }\n\n return results;\n }", "public HashMap getElement(Selector selector) {\n \t\t\tif (selector == null)\n \t\t\t\treturn null;\n \n \t\t\tString element;\n \t\t\tfor (int i = 0; i < elements.size(); i++) {\n \t\t\t\t// make pre-parse selector call\n \t\t\t\telement = (String) elements.get(i);\n \t\t\t\tif (selector.select(element)) {\n \t\t\t\t\t// parse selected entry\n \t\t\t\t\tHashMap attributes = new HashMap();\n \t\t\t\t\tString elementName;\n \t\t\t\t\tint j;\n \t\t\t\t\t// parse out element name\n \t\t\t\t\tfor (j = 0; j < element.length(); j++) {\n \t\t\t\t\t\tif (Character.isWhitespace(element.charAt(j)))\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\tif (j >= element.length()) {\n \t\t\t\t\t\telementName = element;\n \t\t\t\t\t} else {\n \t\t\t\t\t\telementName = element.substring(0, j);\n \t\t\t\t\t\telement = element.substring(j);\n \t\t\t\t\t\t// parse out attributes\n \t\t\t\t\t\tStringTokenizer t = new StringTokenizer(element, \"=\\\"\"); //$NON-NLS-1$\n \t\t\t\t\t\tboolean isKey = true;\n \t\t\t\t\t\tString key = \"\"; //$NON-NLS-1$\n \t\t\t\t\t\twhile (t.hasMoreTokens()) {\n \t\t\t\t\t\t\tString token = t.nextToken().trim();\n \t\t\t\t\t\t\tif (!token.equals(\"\")) { //$NON-NLS-1$\n \t\t\t\t\t\t\t\t// collect (key, value) pairs\n \t\t\t\t\t\t\t\tif (isKey) {\n \t\t\t\t\t\t\t\t\tkey = token;\n \t\t\t\t\t\t\t\t\tisKey = false;\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\tattributes.put(key, token);\n \t\t\t\t\t\t\t\t\tisKey = true;\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// make post-parse selector call\n \t\t\t\t\tif (selector.select(elementName, attributes)) {\n \t\t\t\t\t\tattributes.put(\"<element>\", elementName); //$NON-NLS-1$\n \t\t\t\t\t\treturn attributes;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn null;\n \t\t}", "public interface ILeveledCache<K, V> extends ICache<K, V>{\n void reCache() throws IOException, ClassNotFoundException;\n Map<K, V> add(K key, V object) throws IOException, ClassNotFoundException;\n List<K> sortedKeys();\n int maxLevel1size();\n Set<K> level1keys();\n}", "@Override\r\n public Map<K, ICacheElement<K, V>> processGetMatching(final String pattern)\r\n {\r\n final Map<K, ICacheElement<K, V>> elements = new HashMap<>();\r\n Set<K> keyArray = null;\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n keyArray = new HashSet<>(keyHash.keySet());\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n final Set<K> matchingKeys = getKeyMatcher().getMatchingKeysFromArray(pattern, keyArray);\r\n\r\n for (final K key : matchingKeys)\r\n {\r\n final ICacheElement<K, V> element = processGet(key);\r\n if (element != null)\r\n {\r\n elements.put(key, element);\r\n }\r\n }\r\n return elements;\r\n }", "public ConcurrentHashMap<String, Attribute> getAttributes() {\n\t\treturn list;\n\t}", "StoreResponse prepend(CACHE_ELEMENT element);", "protected <T> List<T> getDocCache(CacheKeyList<T> key,\n Callable<List<T>> caller\n ){\n try {\n return key.cast(docListCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }", "public interface TypedCache<T> extends WritableCache<T>, ObservableWriteOperation<T>, BaseCache {\n @Nullable\n T find(long id);\n\n @NonNull\n Observable<? extends T> observeById(long id);\n\n @NonNull\n Observable<? extends T> observeById(T element);\n}", "CloudCache getCache(String cacheName);", "public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }", "List<Link> findLinkByCache();", "public Object get(Object key) {\n Entry entry = this.cache.get(key);\n\n if (entry == null)\n return null;\n\n // move the recently accessed Entry to the head of list\n moveToHead(entry);\n return entry.value;\n }", "public interface Cache {\n void put(String key, Object value);\n\n Object get(String key);\n}", "protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}", "public interface CustomCache<K, V> {\n\n /**\n * gets a value by key\n * returns null if key is expired\n *\n * @param key\n * @return\n */\n V get(K key);\n\n /**\n * puts into cache with given ttl\n *\n * @param key\n * @param value\n */\n void put(K key, V value);\n\n /**\n * averages out the non expired values in cache.\n * to be discussed in interview\n *\n * @return\n */\n double average();\n}", "@SuppressWarnings( \"unchecked\" )\n @Nonnull\n public ComputableValue<T> getComputableValue( @Nonnull final Object... args )\n {\n if ( Arez.shouldCheckApiInvariants() )\n {\n apiInvariant( () -> args.length == _argCount,\n () -> \"Arez-0162: MemoizeCache.getComputableValue called with \" + args.length +\n \" arguments but expected \" + _argCount + \" arguments.\" );\n }\n Map<Object, Object> map = _cache;\n final int size = args.length - 1;\n for ( int i = 0; i < size; i++ )\n {\n map = (Map<Object, Object>) map.computeIfAbsent( args[ i ], v -> new HashMap<>() );\n }\n ComputableValue<T> computableValue =\n (ComputableValue<T>) map.computeIfAbsent( args[ size ], v -> createComputableValue( args ) );\n if ( Disposable.isDisposed( computableValue ) )\n {\n computableValue = createComputableValue( args );\n map.put( args[ size ], computableValue );\n }\n return computableValue;\n }", "@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}", "public interface Cache<T> {\n\n /**\n * Put the object in the cache with the given <code>key</code>.\n * <p>\n * The object is stored for the default configured time, depending on the\n * cache implementation. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n void put(@NonNull String key, @NonNull T value);\n\n /**\n * Put the object in the cache with the given <code>key</code> for the\n * given <code>duration</code>.\n * <p>\n * The object is stored for the requested duration. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param duration The (not null) duration to store the object for.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull Duration duration);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for ever.\n * <p>\n * The object is stored and should never be removed. This should overrule configured default\n * expiry time for objects put in the cache. However, the object may still be evicted from\n * the cache, for instance for memory reasons.\n * <p>\n * This method calls Duration.ofMillis(Long.max()) and passes it to the put(key, value, Duration duration).\n * So this method does not persist eternally, but rather persists for a long time.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n default void putEternally(@NonNull final String key, @NonNull final T value) {\n put(key, value, Duration.ofMillis(Long.MAX_VALUE));\n }\n\n /**\n * Retrieve the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The value, or <code>null</code> if the object is not found.\n */\n T get(@NonNull String key);\n\n /**\n * Retrieve an optional for the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The <code>Optional</code> for the value.\n */\n default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }\n\n /**\n * Remove the value associate with the <code>key</code>.\n *\n * @param key The key to remove.\n */\n void remove(@NonNull String key);\n\n}", "public Collection getKeys() throws CacheException {\n return cache.getKeys();\n }", "public Object get(String key) {\n\n CacheObject cacheObject = cache.get(key).get();\n if (!cacheObject.isExpired()) {\n cacheObject.updateUseTime();\n return cacheObject.getValue();\n } else {\n cache.remove(key);\n queue.add(cacheObject);\n return null;\n }\n }", "interface ICacheUtil {\n void put(Object key, Object value, long expiredTime, TimeUnit unit);\n Object get(Object key);\n void remove(Object key);\n void clear();\n boolean isExists(Object key);\n}", "public MapElement get(long key) {\r\n return (MapElement) getElement(key);\r\n }", "public static Map<String,String> getKPIsFromCache(){\n\t\tMap<String,String> dataMap=null;\n \t\n \tif(memcache !=null && memcache.contains(ALL_KPI_KEY)){\n \t\tdataMap=(Map<String,String>) memcache.get(ALL_KPI_KEY);\n \t\tlog.info(\"Memcache getKPIsFromCache size = \"+dataMap.size());\n \t} \t\n \treturn dataMap;\n\t}", "@Override\n public Set keySet() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keySet();\n }", "@Override\r\n protected ICacheElement<K, V> processGet(final K key)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive so returning null for key = {1}\",\r\n logCacheName, key);\r\n return null;\r\n }\r\n\r\n log.debug(\"{0}: Trying to get from disk: {1}\", logCacheName, key);\r\n\r\n ICacheElement<K, V> object = null;\r\n try\r\n {\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n object = readElement(key);\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n if (object != null)\r\n {\r\n hitCount.incrementAndGet();\r\n }\r\n }\r\n catch (final IOException ioe)\r\n {\r\n log.error(\"{0}: Failure getting from disk, key = {1}\", logCacheName, key, ioe);\r\n reset();\r\n }\r\n return object;\r\n }", "@Nullable\n @Override\n public CachedRecipe<RECIPE> getCachedRecipe(int cacheIndex) {\n return cachedRecipes[cacheIndex];\n }", "public Iterator iterator()\n {\n // optimization\n if (OldOldCache.this.isEmpty())\n {\n return NullImplementation.getIterator();\n }\n\n // complete entry set iterator\n Iterator iter = instantiateIterator();\n\n // filter to get rid of expired objects\n Filter filter = new Filter()\n {\n public boolean evaluate(Object o)\n {\n Entry entry = (Entry) o;\n boolean fExpired = entry.isExpired();\n if (fExpired)\n {\n OldOldCache.this.removeExpired(entry, true);\n }\n return !fExpired;\n }\n };\n\n return new FilterEnumerator(iter, filter);\n }", "public Collection getAllCaches(String sCacheName)\n {\n Set setRef = new HashSet();\n Map mapByLoader = (Map) m_mapByName.get(sCacheName);\n\n if (mapByLoader != null)\n {\n synchronized (mapByLoader)\n {\n Collection col = mapByLoader.values();\n\n for (Iterator iter = col.iterator(); iter.hasNext(); )\n {\n Object oHolder = iter.next();\n\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "public interface ElementsGetter<T> {\n\t\n\t/**\n\t * Metoda provjerava ima li jos elemenata\n\t * u kolekciji\n\t * @return boolean true ako ima jos elemenata, false ako nema\n\t */\n\tpublic boolean hasNextElement();\n\t\n\t/**\n\t * Metoda dohvaca iduci element kolekcije i vraca ga.\n\t * @return Object koji je iduci element iz kolekcije\n\t */\n\tpublic T getNextElement();\n\t\n\t/**\n\t * Nad svim preostalim elementima kolekcije poziva \n\t * metodu procesora p process(Object value).\n\t * @param p Procesor koji hocemo pozvati nad\n\t * preostalim elementima kolekcije.\n\t * @throws NullPointerException ako je procesor p null\n\t */\n\tdefault void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "public Object getFromCache(Object methodKey, Object objType,\n Object[] methodArgs)\n {\n\n // Eventually, we want to insert code to mangle the methodKey with methodArgs\n return m_cachedMethods.get(methodKey);\n }", "private Document findInCache(String userId) {\n \t\tString key;\n \t\tSet<String> keys = lruCache.getKeySet();\n \t\tIterator<String> itr = keys.iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tkey = itr.next();\n \t\t\tDocument data = lruCache.get(key);\n \t\t\t// check if email in profile object is same as input userId\n \t\t\tString email = \"\";\n \t\t\ttry {\n \t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n \t\t\t} catch (XMLException e) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// cache hit\n \t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n \t\t\t\treturn data;\n \t\t\t}\n \t\t}\n \t\t// Cache miss\n \t\treturn null;\n \t}", "synchronized Collection getCreatedElements() {\n Collection col = new ArrayList(nestedElements.size());\n Iterator it = nestedElements.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry)it.next();\n if (entry.getValue() != null) {\n col.add(entry.getValue());\n }\n }\n return col;\n }", "@Test\n public void testPutGet() {\n cache.put(\"A\", \"first\");\n cache.put(\"C\", \"second\");\n cache.put(\"C\", \"third\");\n \n assertEquals(\"first\", cache.get(\"A\"));\n assertEquals(\"third\", cache.get(\"C\"));\n }", "public static Cache getCache(PageContext pc, int scope)\n {\n return (Cache)pc.getAttribute(Constants.JSPTAG_CACHE_KEY, scope);\n }", "public Iterator iterator()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n try\r\n {\r\n return new CompositeIterator(new Iterator[] { \r\n spaceMgr.makeComponentSpaceIterator(),\r\n spaceMgr.makeHistorySpaceIterator() });\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "public static Map<String,String> getAdvertisersFromCache(){\n\t\tlog.info(\"getAdvertisersFromCache..\");\n\t\tMap<String,String> advertiserMap=null; \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_ADVERTISERS_KEY)){\n \t\tadvertiserMap=(Map<String,String>) memcache.get(MEDIA_PLAN_ADVERTISERS_KEY);\n \t} \t\n \treturn advertiserMap;\n\t}", "public Object get(String methodName, CallCacheArgs args) {\n Map<CallCacheArgs, Object> cacheArgs = this.cache.get(methodName);\n return cacheArgs == null ? null : cacheArgs.get(args);\n }", "@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}", "private static void getFromCache(Session session) {\n\t\tCacheManager cm=CacheManager.getInstance();\n\t\tCache cache=cm.getCache(\"namanCache\");\n\t\tfor(int i=0;i<2;i++){\n\t\t\tif(cache.get(i)!=null){\n\t\t\t\tSystem.out.println(((UserDetails)cache.get(1).getObjectValue()).getName());\n\t\t\t}else{\n\t\t\t\tUserDetails user1=(UserDetails)session.get(UserDetails.class, i);\n\t\t\t\tSystem.out.println(user1.getName());\n\t\t\t\tcache.put(new Element(i+1,user1));\n\t\t\t}\n\t\t}\n\t\tcm.shutdown();\n\t}", "public interface HomeCache {\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestAllPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestFollowingPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPins(\n Observable<PinListBean> observablePinList,\n EvictProvider evictProvider);\n\n @LifeCache(duration = 2, timeUnit = TimeUnit.MINUTES)\n Observable<Reply<PinListBean>> getLatestPopularPinsNext(\n Observable<PinListBean> observablePinList,\n DynamicKey maxPinId,\n EvictProvider evictProvider);\n}", "@Override\n\tpublic <T> Map<String, T> get(Collection<String> arg0, long arg1)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\t\treturn null;\n\t}", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "@Override\n public V get( final K name )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n return ( element != null ) ? element.getVal() : null;\n }", "public Cache.Entry get(String param1) {\n }", "public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}", "private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}", "public interface DocumentTypeQueryService extends XmlLoader {\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentTypeId=' + #p0\")\n public DocumentType findById(String documentTypeId);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'name=' + #p0\")\n public DocumentType findByName(String name);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME,\n key=\"'{BO}' + 'documentTypeId=' + #p0.getId() + '|' + 'name=' + #p0.getName() + '|' + 'label=' + #p0.getLabel() + '|' + 'active=' + #p0.isActive() +'docGroupName=' + #p1 + '|' + 'climbHierarchy=' + #p2\")\n public Collection<DocumentType> find(DocumentType documentType, String docGroupName, boolean climbHierarchy);\n\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}{root}' + 'documentTypeId=' + #p0.getId()\")\n public DocumentType findRootDocumentType(DocumentType docType);\n \n /**\n * Returns the DocumentType of the Document with the given ID. \n * \n * @since 2.3\n */\n @Cacheable(value= org.kuali.rice.kew.api.doctype.DocumentType.Cache.NAME, key=\"'{BO}' + 'documentId=' + #p0\")\n public DocumentType findByDocumentId(String documentId);\n \n}", "private Document findInCache(String userId) {\n\t\tString key;\n\t\tSet<String> keys = cache.keySet();\n\t\tIterator<String> itr = keys.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tkey = itr.next();\n\t\t\tDocument data = cache.get(key);\n\t\t\t// check if email in profile object is same as input userId\n\t\t\tString email = \"\";\n\t\t\ttry {\n\t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n\t\t\t} catch (XMLException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// cache hit\n\t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n\t\t\t\treturn data;\n\t\t\t}\n\t\t}\n\t\t// Cache miss\n\t\treturn null;\n\t}", "@Override\n\tpublic Map loadAll(Iterable keys) throws CacheLoaderException {\n\t\treturn null;\n\t}", "@Override\n\tpublic V retrieve(K key) {\n\t\tcheckNullKey(key);\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.get(key);\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}", "private ICacheElement<K, V> readElement(final K key) throws IOException\r\n {\r\n final IndexedDiskElementDescriptor ded = keyHash.get(key);\r\n\r\n if (ded != null)\r\n {\r\n log.debug(\"{0}: Found on disk, key: \", logCacheName, key);\r\n\r\n try\r\n {\r\n return dataFile.readObject(ded);\r\n // TODO consider checking key equality and throwing if there is a failure\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: IO Exception, Problem reading object from file\", logCacheName, e);\r\n throw e;\r\n }\r\n catch (final Exception e)\r\n {\r\n log.error(\"{0}: Exception, Problem reading object from file\", logCacheName, e);\r\n throw new IOException(logCacheName + \"Problem reading object from disk.\", e);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public interface CacheIdLookup<T> {\n\n /**\n * Return the Id values to lookup against the L2 cache.\n */\n Collection<?> idValues();\n\n /**\n * Remove the hits returning the beans fetched from L2 cache.\n */\n List<T> removeHits(BeanCacheResult<T> cacheResult);\n\n /**\n * Return true if all beans where found in L2 cache.\n */\n boolean allHits();\n}" ]
[ "0.7166348", "0.7155499", "0.619349", "0.61909187", "0.60218585", "0.59974974", "0.59187", "0.58609855", "0.5819921", "0.5666861", "0.5622007", "0.56188846", "0.54821485", "0.54731447", "0.54308814", "0.54240274", "0.54148036", "0.53982896", "0.53589356", "0.53530145", "0.530964", "0.52779275", "0.5270513", "0.5268209", "0.5242502", "0.5237876", "0.5217715", "0.5211607", "0.51969415", "0.5183137", "0.51790035", "0.51787317", "0.5174042", "0.51626164", "0.5155646", "0.5140984", "0.51319295", "0.51240224", "0.5120017", "0.5104491", "0.5063531", "0.5061268", "0.50609046", "0.5059679", "0.5050991", "0.5048883", "0.50424373", "0.50283617", "0.50266176", "0.5017413", "0.5006551", "0.49916273", "0.49845403", "0.49737757", "0.49613506", "0.4957795", "0.49444604", "0.49390212", "0.49092263", "0.49028686", "0.4894972", "0.486924", "0.4868397", "0.4853706", "0.48449406", "0.4836374", "0.48294735", "0.4823767", "0.4822017", "0.48141962", "0.4805353", "0.48052505", "0.48037562", "0.47994384", "0.47989008", "0.47934666", "0.47916391", "0.47902644", "0.4781493", "0.47794765", "0.47752762", "0.47713917", "0.47678274", "0.47645164", "0.4757302", "0.47561592", "0.47484183", "0.47380984", "0.4726727", "0.4707379", "0.47036326", "0.4697144", "0.4688758", "0.46774152", "0.46768236", "0.4672532", "0.46723425", "0.46720365", "0.4662908", "0.4652354" ]
0.5543084
12
Place a new object in the cache, associated with key name. If there is currently an object associated with name in the region an ObjectExistsException is thrown. Names are scoped to a region so they must be unique within the region they are placed.
@Override public void putSafe( final K key, final V value ) { if ( this.getCacheControl().get( key ) != null ) { throw new ObjectExistsException( "putSafe failed. Object exists in the cache for key [" + key + "]. Remove first or use a non-safe put to override the value." ); } put( key, value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void put(String name, Serializable key, Serializable value) throws CacheException {\n\t\t\n\t}", "public synchronized static void store(Context context, String name, Object o) {\n for(Map.Entry<Object, String> e : cached.entrySet()) {\r\n if(e.getValue().contentEquals(name)) {\r\n // Found cached\r\n cached.remove(e.getKey());\r\n break;\r\n }\r\n }\r\n // Put new entry\r\n if(o != null)\r\n cached.put(o, name);\r\n // Post async update\r\n pending.put(name, o);\r\n apply(context);\r\n }", "protected abstract void put(CacheKey cacheKey);", "public boolean put( KEY key, OBJECT object );", "public abstract CacheKey put(Vector primaryKey, Object object, Object writeLockValue, long readTime);", "public static Object put(String name, Object object) {\n // Make sure the name and object are both in persistent memory first\n object = makePersistentCopy(object);\n name = (String)makePersistentCopy(name);\n\n PersistentRootEntry entry = (PersistentRootEntry)Native.getPersistentMemoryTable();\n PersistentRootEntry unusedEntry = null;\n while (entry != null) {\n String ename = entry.name;\n if (ename != null) {\n if (ename.equals(name)) {\n Object o = entry.value;\n entry.value = object;\n return o;\n }\n } else if (unusedEntry == null) {\n // Re-use first available unused entry\n unusedEntry = entry;\n }\n entry = entry.next;\n }\n\n if (unusedEntry == null) {\n unusedEntry = new PersistentRootEntry();\n unusedEntry.value = object;\n unusedEntry.name = name;\n\n PersistentRootEntry table = (PersistentRootEntry)Native.getPersistentMemoryTable();\n if (table != null) {\n unusedEntry.next = table;\n }\n table = (PersistentRootEntry)makePersistentCopy(unusedEntry);\n Native.setPersistentMemoryTable(table);\n } else {\n // Must write object first as writing the name essentially\n // links this entry into the roots and therefore must be\n // atomic.\n unusedEntry.value = object;\n unusedEntry.name = name;\n }\n return null;\n }", "public abstract Object put(String oid, Object obj) throws OIDAlreadyExistsException, ObjectNotSupportedException;", "public Object put(String aName, Object anObj)\n{\n // If map shared, clone it for real\n if(_attrMap.isShared())\n _attrMap = _attrMap.cloneX();\n \n // Put value (or remove if null)\n return anObj!=null? _attrMap.put(aName, anObj) : _attrMap.remove(aName);\n}", "void put(String key, Object obj);", "void put(String name, Object value);", "public abstract void addObject(LocalAbstractObject object) throws BucketStorageException;", "void put(Object indexedKey, Object key);", "public void put(int key, String name){\n\t\tif(get(key)==null){\n\t\t\thashMap[key] = name;\n\t\t\tSystem.out.println(name + \" stored in map under this key \" + key);\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(key + \" is already in the map\");\n\t\treturn;\n\t}", "protected boolean putIntoCache(String key, String value) throws Exception {\n \t// Ensure the value is in cache. We want to avoid it being in the storage but not\n \t// the cache as this can lead to synchronization errors:\n \tboolean inserted = evictAndReplace(key);\n \t\n \t// Perform an insert:\n map.put(key, value);\n \tusageCounter.put(key, usageCounter.get(key) + 1);\n \t\n \treturn inserted;\n }", "void put(int partitionID, String key, String value);", "void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;", "@Override\n public void put( final K name, final V obj )\n {\n // Call put with a copy of the contained caches default attributes.\n // the attributes are copied by the cacheControl\n put( name, obj, this.getCacheControl().getElementAttributes() );\n }", "public void put(ResourceLocation name, Tag nbt) {\n data.put(name.toString(), nbt);\n }", "@Override\r\n public void store(long key, O object) throws OBException {\n }", "Object put(Object key, Object value);", "public static boolean doPutOrCreate(LocalRegion rgn, EntryEventImpl ev, long lastMod) {\n try {\n boolean updated = false;\n boolean doUpdate = true; // start with assumption we have key and need value\n boolean invokeCallbacks = true;\n\n if (shouldDoRemoteCreate(rgn, ev)) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"doPutOrCreate: attempting to update or create entry\");\n }\n final long startPut = rgn.getCachePerfStats().getTime();\n final boolean isBucket = rgn.isUsedForPartitionedRegionBucket();\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().startApplyReplication();\n }\n try {\n // if the oldValue is the DESTROYED token and overwrite is disallowed,\n // then basicPut will set the blockedDestroyed flag in the event\n boolean overwriteDestroyed = ev.getOperation().isCreate();\n try {\n boolean firstBasicUpdateSuccess =\n rgn.basicUpdate(ev, true, false, lastMod, overwriteDestroyed, true, true);\n if (firstBasicUpdateSuccess) {\n rgn.getCachePerfStats().endPut(startPut, ev.isOriginRemote());\n // we did a create, or replayed a create event\n doUpdate = false;\n updated = true;\n } else {\n // already exists. If it was blocked by the DESTROYED token, then\n // do no update.\n doUpdate = checkIfToUpdateAfterCreateFailed(rgn, ev);\n }\n } catch (ConcurrentCacheModificationException ex) {\n invokeCallbacks = false;\n doUpdate = checkIfToUpdateAfterCreateFailed(rgn, ev);\n }\n } finally {\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().endApplyReplication(startPut);\n }\n }\n }\n\n // If we care about the region entry being updated, get its value\n // from this message.\n if (doUpdate) {\n if (!ev.isLocalInvalid()) {\n final long startPut = rgn.getCachePerfStats().getTime();\n boolean overwriteDestroyed = ev.getOperation().isCreate();\n final boolean isBucket = rgn.isUsedForPartitionedRegionBucket();\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().startApplyReplication();\n }\n try {\n boolean secondBasicUpdateSuccess;\n try {\n secondBasicUpdateSuccess =\n rgn.basicUpdate(ev, false, true, lastMod, overwriteDestroyed,\n invokeCallbacks, true);\n } catch (ConcurrentCacheModificationException ex) {\n secondBasicUpdateSuccess = false;\n invokeCallbacks = false;\n }\n if (secondBasicUpdateSuccess) {\n rgn.getCachePerfStats().endPut(startPut, ev.isOriginRemote());\n if (logger.isTraceEnabled()) {\n logger.trace(\"Processing put key {} in region {}\", ev.getKey(), rgn.getFullPath());\n }\n } else {\n // key not here, blocked by DESTROYED token or ConcurrentCacheModificationException\n // thrown during second update attempt\n if (rgn.isUsedForPartitionedRegionBucket()\n || (rgn.getDataPolicy().withReplication() && rgn.getConcurrencyChecksEnabled())) {\n ev.makeCreate();\n boolean thirdBasicUpdateSuccess =\n rgn.basicUpdate(ev, false, false, lastMod, true, invokeCallbacks, false);\n if (thirdBasicUpdateSuccess) {\n rgn.getCachePerfStats().endPut(startPut, ev.isOriginRemote());\n }\n } else {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\n \"While processing Update message, update not performed because this key is {}\",\n (ev.oldValueIsDestroyedToken() ? \"blocked by DESTROYED/TOMBSTONE token\"\n : \"not defined\"));\n }\n }\n }\n } finally {\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().endApplyReplication(startPut);\n }\n }\n } else { // supplied null, must be a create operation\n if (logger.isTraceEnabled()) {\n logger.trace(\"Processing create with null value provided, value not put\");\n }\n }\n } else {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null\n && !ev.getVersionTag().isRecorded()) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n if (!updated) {\n if (logger.isDebugEnabled()) {\n logger.debug(\n \"While processing Update message, update not performed because key was created but mirroring keys only and value not in update message, OR key was not new for sender and has been destroyed here\");\n }\n }\n }\n return true;\n } catch (CacheWriterException e) {\n throw new Error(\"CacheWriter should not be called\", e);\n } catch (TimeoutException e) {\n throw new Error(\n \"DistributedLock should not be acquired\",\n e);\n }\n }", "protected Object putElement(int key, Object value) {\n int index = key % capacity;\n if (index < 0) {\n index = -index;\n }\n if (map[index] == null) {\n //.... This is a new key since no bucket exists\n objectCounter++;\n map[index] = create(key, value);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n //.... A bucket already exists for this index: check whether \n // we already have a mapping for this key\n MapElement me = map[index];\n while (true) {\n if (me.getKey() == key) {\n return me.atInsert(value);\n } else {\n if (me.getNext() == null) {\n // No next element: so we have no mapping for this key\n objectCounter++;\n MapElement result = create(key, value);\n me.setNext(result);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n me = me.getNext();\n }\n }\n }\n }\n }", "private void storeObject(String name, Object obj)\r\n {\r\n objectNames.put(obj, name);\r\n\r\n if (!nameObjects.containsKey(name))\r\n nameObjects.put(name, new WeakReference(obj));\r\n }", "Object put(Object key, Object value) throws NullPointerException;", "void put(String key, Object value);", "@Override\n\tpublic void puts(String name, Map<Serializable, Serializable> objs)\n\t\t\tthrows CacheException {\n\t\t\n\t}", "@Override\n public synchronized boolean put(String key, String value) throws Exception {\n boolean inserted = this.putIntoCache(key, value);\n return inserted;\n }", "public Object putItem (String key, Object item);", "public boolean insert(String regionname, String regionid) {\r\n boolean result = false;\r\n int idRegion = Integer.valueOf(regionid);\r\n Region region = new Region(regionname, idRegion);\r\n result = rdao.insertRegion(region);\r\n return result;\r\n }", "public void put(Object key, Object value) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key)) {\n\t\t\t\tp.value = value; // overwrite value if key already present.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// if not present, add key-value pair in that slot/bucket.\n\t\tPair pair = new Pair(key, value);\n\t\ttable[index].add(pair);\n\t}", "void put(K id, V cacheable);", "public synchronized void registerObject(String name, Object object)\r\n throws IllegalArgumentException,\r\n NullPointerException\r\n {\r\n if (containsSubString(name, TIGHT_BINDING))\r\n {\r\n // user has used the wrong method to register this object.\r\n registerObject(object, name);\r\n }\r\n else\r\n {\r\n // check that name doesn't contain illegal characters\r\n if (!isValidName(name))\r\n {\r\n throw new IllegalArgumentException(\"ResourceManager.registerObject(): \"+\r\n \"name '\" +name+ \"' can not contain \"+\r\n \"the whitespace, or the characters \" +\r\n \" '\"+LOOSE_BINDING+\"', '\"+\r\n SINGLE_MATCH+ \"'\");\r\n }\r\n\r\n if (object == null)\r\n {\r\n throw new NullPointerException(\"ResourceManager.registerObject(): \"+\r\n \"object is null\");\r\n }\r\n\r\n // store this mapping\r\n storeObject(name, object);\r\n }\r\n }", "public void addRegion(com.hps.july.persistence.Region arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addRegion(arg0);\n }", "@Override\n public boolean put(K key, V object){\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n CacheObject<K, V> cacheObject = new CacheObject<>(key, object);\n this.cache.put(key, cacheObject);\n\n return true;\n }", "public void put(String key, Object value) {\n CacheObject cacheObject = new CacheObject(value, expirationTime);\n WeakReference<CacheObject> weakReference = new WeakReference<CacheObject>(cacheObject);\n cache.put(key, weakReference);\n }", "void register(String name, K key, V value);", "void setObjectKey(String objectKey);", "FutureSecureMap<KeyType, ValueType> create(String name);", "T put(T obj) throws DataElementPutException, RepositoryAccessDeniedException;", "@Override\n\tpublic CCSPutObjectResponse putObject(String bucketName, String ccsObjectPath, byte[] bytes) {\n\t\treturn null;\n\t}", "@Request(id = 19, retryable = false, response = ResponseMessageConst.BOOLEAN)\n Object putIfAbsent(String name, Data key, Data value, @Nullable Data expiryPolicy, int completionId);", "public boolean put(@Nonnull String key, @Nonnull V model) {\n\t\tPreconditions.checkNotNull(key);\n\t\tPreconditions.checkNotNull(model);\n\t\t// don't care if the file already exist, it will be replaced\n\t\tFile jsonFile = new File(mCacheLocation, key);\n\t\ttry {\n\t\t\tmObjectMapper.writeValue(jsonFile, model);\n\t\t} catch (IOException e) {\n\t\t\tLogUtils.logException(TAG, \"Exception when writing \" + key, e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void put(Object key, Object value) throws Exception {\n CacheEntry entry = (CacheEntry)_hash.get(key);\n if (entry != null) {\n entry.setValue(value);\n touchEntry(entry);\n } else {\n\n if (_hash.size() == _max) {\n // purge and recycle entry\n entry = purgeEntry();\n entry.setKey(key);\n entry.setValue(value);\n } else {\n entry = new CacheEntry(key, value);\n }\n addEntry(entry);\n _hash.put(entry.getKey(), entry);\n }\n }", "@Override\r\n public void add(IMObject object) {\r\n cache.add(object);\r\n }", "public void put(String param1, Cache.Entry param2) {\n }", "public V put(K key, V value) {\n if (null == key) {\n return isertNullKey(key, value);\n } else {\n // inserting other keys\n int location = hashFunction(key.hashCode());\n if (location / capacity >= loadFactor) {\n resize();\n }\n MyEntry<K, V> entry = null;\n entry = bucket[location];\n //if a value exists with same key, we are not overriding that value, just returning the same,\n //in hashMap they actually override the new value\n if (entry != null && key == entry.getKey()) {\n return entry.getValue();\n } else {\n MyEntry ent = new MyEntry();\n ent.setKey(key);\n ent.setValue(value);\n bucket[location] = ent;\n return value;\n }\n\n }\n }", "boolean nameExists(Key name);", "public void put(String platform, String key, File source) throws ExtenderClientException {\n File cachedFile = getCachedBuildFile(platform);\n File parentDir = cachedFile.getParentFile();\n\n if (!parentDir.exists()) {\n parentDir.mkdirs();\n }\n if (!parentDir.exists()) {\n throw new ExtenderClientException(String.format(\"Failed to create cache dir %s\", parentDir.getAbsolutePath()));\n }\n\n try {\n Files.copy(new FileInputStream(source), cachedFile.toPath(), REPLACE_EXISTING);\n } catch (IOException e) {\n throw new ExtenderClientException(String.format(\"Failed to copy %s to %s\", source.getAbsolutePath(), cachedFile.getAbsolutePath()), e);\n }\n\n this.persistentHashes.put(cachedFile.getAbsolutePath(), key);\n saveCache();\n }", "protected static void put(String name, Icon icon) \r\n\t{\r\n\t\tEntry\ttable[] = m_table;\r\n\t\tint\t\tindex;\r\n\r\n\t\tif (m_count >= m_threshold) {\r\n\t\t\t// Rehash the table if the threshold is exceeded\r\n\t\t\trehash();\r\n\t\t\ttable = m_table;\r\n\t\t} \r\n\t\t// Creates the new entry.\r\n\r\n\t\tindex = (name.hashCode() & 0x7FFFFFFF) % table.length;\r\n\t\ttable[index] = new Entry(name, icon, table[index]);;\r\n\t\t++m_count;\r\n }", "void put(MongoDBEntry<K, V> entry);", "public void storeObject( SharedObjectInterface sharedObject ) {\n SharedEntry key = new SharedEntry( sharedObject.getClass().getName(), sharedObject.getName() );\n objectsMap.put( key, sharedObject );\n }", "int saveOrUpdateName(Name name) ;", "void put(K key, V value, long expireMs);", "public com.amazon.s3.PutObjectResponse putObject(com.amazon.s3.PutObject putObject);", "@Override\r\n\tpublic void putObject(Object key, Object value) {\n\t\t\r\n\t}", "public void put(K key, V value) {\n int hash = getHash(key.hashCode());\n Entry<K, V> existing = buckets[hash];\n Entry<K, V> entry = new Entry<>(key, value);\n\n if (existing == null) {\n buckets[hash] = entry;\n } else { // using separating chaining collision resolution. Another way is open addressing, resizing the array to reducing collision.\n while(existing.next != null) {\n if (existing.key.equals(key)) {\n existing.value = value;\n return;\n }\n existing = existing.next;\n }\n if (existing.key.equals(key)) {\n existing.value = value;\n } else {\n existing.next = entry;\n }\n }\n }", "public void put(final Serializable key, final Serializable value) {\n Mutex lock = checkLockExistsForKey(key);\n try {\n if (value != null) {\n final Element element = new Element(key, value);\n cache.put(element);\n } else {\n cache.remove(key);\n }\n } finally {\n //Release the readlock here. This will have been acquired in the get, where the element was null\n lock.release();\n }\n }", "public void store(S3Object s3Object) throws S3Exception {\n\t\t\r\n\t}", "private void addRegionToSpriteProviders(final Region region, final String name) {\n for (final SpriteProvider sp : spriteProviders) {\n sp.addRegion(region, name);\n }\n }", "public void putCache(NamedCache cache, ClassLoader loader)\n {\n if (cache.isReleased())\n {\n throw new IllegalArgumentException(\"Storing a released cache is not allowed: \" + cache.getCacheName());\n }\n\n ConcurrentMap mapByName = m_mapByName;\n String sCacheName = cache.getCacheName();\n Map mapByLoader = (Map) mapByName.get(sCacheName);\n\n if (mapByLoader == null)\n {\n mapByLoader = new WeakHashMap();\n mapByName.put(sCacheName, mapByLoader);\n }\n\n if (ScopedServiceReferenceStore.isRemoteServiceType(cache.getCacheService().getInfo().getServiceType())\n && Security.SUBJECT_SCOPED)\n {\n SubjectScopedReference scopedRef = (SubjectScopedReference) mapByLoader.get(loader);\n\n if (scopedRef == null)\n {\n scopedRef = new SubjectScopedReference();\n mapByLoader.put(loader, scopedRef);\n }\n\n scopedRef.set(cache);\n }\n else\n {\n mapByLoader.put(loader, cache);\n }\n }", "void put(String key, int value) throws StorageException, ValidationException, KeyValueStoreException;", "private Future<Void> putObjectS3(final String aPath) {\n final Promise<Void> promise = Promise.promise();\n\n try {\n myAmazonS3.putObject(s3Bucket, IMAGE_JPX, new File(aPath));\n promise.complete();\n } catch (final AmazonServiceException details) {\n LOGGER.error(details.getErrorMessage());\n promise.fail(details.getErrorMessage());\n }\n\n return promise.future();\n }", "@Override\r\n\tpublic V put(K key, V value) {\r\n\t\tint index = key.hashCode() % numBuckets;\r\n\t\treturn ((Bucket) buckets[index]).put(key, value);\r\n\t}", "public static void putMethod(Object ob) throws Exception {\n if (ob != null) {\n String str = \"first\";\n region.put(ob, str);\n }\n }", "public DResult put(Put put, long startId, boolean locking) throws IOException;", "@Override\n\tpublic synchronized void put(String key, Entry entry) {\n\t\tpruneIfNeeded(entry.data.length);\n\t\tFile file = getFileForKey(key);\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tCacheHeader e = new CacheHeader(key, entry);\n\t\t\te.writeHeader(fos);\n\t\t\tfos.write(entry.data);\n\t\t\tfos.close();\n\t\t\tputEntry(key, e);\n\t\t\treturn;\n\t\t} catch (IOException e) {\n\t\t}\n\t\tboolean deleted = file.delete();\n\t\tif (!deleted) {\n\t\t\tVolleyLog.d(\"Could not clean up file %s\",\n\t\t\t\t\tfile.getAbsolutePath());\n\t\t}\n\t}", "@Override\n\tpublic void createBank(String bankName) {\n\t\tBank newBank = new Bank(bankName, new HashSet<Account>());\n\t\tcache.addToCache(newBank);\n\t\t\n\t}", "ValueType put(long key, ValueType entry);", "@Override\n public T put(String key, T value) {\n T old = null;\n // Do I have an entry for it already?\n Map.Entry<String, T> entry = entries.get(key);\n // Was it already there?\n if (entry != null) {\n // Yes. Just update it.\n old = entry.setValue(value);\n } else {\n // Add it to the map.\n map.put(prefix + key, value);\n // Rebuild.\n rebuildEntries();\n }\n return old;\n }", "public boolean put(String key, String value);", "public void put(String key, T value);", "Tag saveAndGet(final String name);", "public MapUtil put(String name, Object value) {\n\t\tif (value != null) {\n\t\t\tvalues.put(name, value);\n\t\t}\n\t\treturn this;\n\t}", "<T> void put(String key, T data);", "void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);", "void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);", "void put(@NonNull String key, @NonNull T value);", "@Test\n public void testPartitionResolverPartitionedRegion() throws Throwable {\n createCacheInAllVms();\n redundancy = 0;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n try {\n // Create Customer PartitionedRegion in All VMs\n regionName = CustomerPartitionedRegionName;\n colocatedWith = null;\n isPartitionResolver = Boolean.FALSE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Create Order PartitionedRegion in All VMs\n regionName = OrderPartitionedRegionName;\n colocatedWith = CustomerPartitionedRegionName;\n isPartitionResolver = Boolean.FALSE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // With same Key Based Partition Resolver\n accessor.invoke(new SerializableCallable(\"Create data, invoke exectuable\") {\n @Override\n public Object call() throws Exception {\n PartitionedRegion prForCustomer =\n (PartitionedRegion) basicGetCache().getRegion(CustomerPartitionedRegionName);\n assertNotNull(prForCustomer);\n DummyKeyBasedRoutingResolver dummy = new DummyKeyBasedRoutingResolver(1);\n prForCustomer.put(dummy, 100);\n assertEquals(prForCustomer.get(dummy), 100);\n LogWriterUtils.getLogWriter()\n .info(\"Key :\" + dummy.dummyID + \" Value :\" + prForCustomer.get(dummy));\n\n PartitionedRegion prForOrder =\n (PartitionedRegion) basicGetCache().getRegion(OrderPartitionedRegionName);\n assertNotNull(prForOrder);\n prForOrder.put(dummy, 200);\n assertEquals(prForOrder.get(dummy), 200);\n LogWriterUtils.getLogWriter()\n .info(\"Key :\" + dummy.dummyID + \" Value :\" + prForOrder.get(dummy));\n return null;\n }\n });\n } catch (Exception unexpected) {\n unexpected.printStackTrace();\n LogWriterUtils.getLogWriter().info(\"Unexpected Message: \" + unexpected.getMessage());\n fail(\"Test failed\");\n }\n }", "public void addKey(int par1, Object par2Obj)\n {\n this.keySet.add(Integer.valueOf(par1));\n int j = computeHash(par1);\n int k = getSlotIndex(j, this.slots.length);\n\n for (IntHashMapEntry inthashmapentry = this.slots[k]; inthashmapentry != null; inthashmapentry = inthashmapentry.nextEntry)\n {\n if (inthashmapentry.hashEntry == par1)\n {\n inthashmapentry.valueEntry = par2Obj;\n return;\n }\n }\n\n ++this.versionStamp;\n this.insert(j, par1, par2Obj, k);\n }", "ISObject put(String key, ISObject stuff) throws UnexpectedIOException;", "public void putItemByKey(String key, Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }", "public ObjectMap put(String key, String value) throws JsonException {\r\n\t\tobjectMap.put(check_Key(key), value);\r\n\t\treturn this;\r\n\t}", "@Override\n public boolean put(CacheObject<K, V> cacheObject){\n K key = cacheObject.getKey();\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n this.cache.put(key, cacheObject);\n\n return true;\n }", "public void putBucket(Bucket bucket, int number) throws IOException {\n // REDFLAG: remove debugging code?\n Integer index = new Integer(number);\n if (buckets.get(index) != null) {\n throw new IOException(\"You already put bucket: \" + number);\n }\n buckets.put(index, bucket);\n }", "public Artefact createArtefact(final String name) {\n\t\tfinal Artefact old = artefacts.get(name);\n\t\tif (old != null)\n\t\t\tthrow new IllegalArgumentException(\"Artefact '\" + name + \"' already exists: \" + old);\n\n\t\tfinal Artefact a = new Artefact(name);\n\t\tartefacts.put(a.getName(), a);\n\t\treturn a;\n\t}", "public Value put(Key key, Value thing) ;", "Object insert(String key, Object param);", "@Override\n\tpublic V add(K key, V value) {\n\t\tcheckNullKey(key);\n\t\tcheckNullValue(value);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.put(key, value);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public void interestCacheInsert(InterestCacheEntry e)\n\t{\n\t\tif ( interestCache_purgeTimer == null ){\n\t\t\tinterestCache_purgeTimer = new DiffTimer(DiffTimer.TIMEOUT_INTEREST_CACHE_PURGE, null) ;\n\t\t\tif ( interestCache_purgeTimer != null ){\n\t\t\t\tinterestCache_purgeTimer.handle = setTimeout(interestCache_purgeTimer, INTEREST_CACHE_PURGE_INTERVAL) ;\n\t\t\t}\n\t\t}\n\t\tinterestCache.put(e.getInterest().getTaskId(),e) ;\n\t}", "public V put(K key,V value) {\n\tif(key==null||value==null) {\n\t throw new NullPointerException();\n\t}\n\telse {\n\tMyEntry addvalue=new MyEntry();\n\taddvalue.key=key;\n\taddvalue.value=value;\n\t\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\t\n\t\n\t//what happens if the same key already exists\n\tfor(MyEntry i:table[bucket]) { \n\t if(i.key==key) {\n\t\tV previousvalue=i.value;\n\t\ttable[bucket].add(addvalue);\n\t\tsize++;\n\t\tif(((float)size/(float)capacity)>loadFactor) {\n\t\t resize();\n\t\t}\n\t\treturn previousvalue;\n\t }\n\t}\n\t\n\t//what happens if the key does not exist\n\ttable[bucket].add(addvalue);\n\tsize++;\n\tif(((float)size/(float)capacity)>loadFactor) {\n\t resize();\n\t}\n\treturn null;\n\t}\n }", "@Request(id = 24, retryable = false, response = ResponseMessageConst.DATA)\n Object replace(String name, Data key, @Nullable Data oldValue, Data newValue, @Nullable Data expiryPolicy, int completionId);", "public void put(K key, V value) {\n Entry<K, V> entry = segment.put(key, value);\n\n // Time-based eviction strategy is highly important, so creation time\n // tracking is a must. \n long time = System.currentTimeMillis();\n\n //{@see Ticker} is used to reuse timestamp\n // and save some CPU cycles for read opetion. \n ticker.setNextTick(time);\n\n // Update creation time in order to avoid entry removal\n entry.setCreationTime(time);\n\n // Perform a bit of a clean-up. Write performance is critical, so no \n // heavy lifting is supposed to happen here. \n cleanUp();\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }", "public abstract V put(K key, V value);", "public void secondaryAddRegion(com.hps.july.persistence.Region arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddRegion(arg0);\n }", "private Region creatRegion(String rName) {\n\t\tfor (Region region : listRegions) {\r\n\t\t\tif (region.getName().equals(rName)) {\r\n\t\t\t\treturn region;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public T put(int key, T value) {\n resizeTables(count);\n int bucketIndex = findBucketIndex(key, true /* returnLast */);\n\n if(bucketIndex != -1) {\n long bucket = buckets[bucketIndex];\n int bucketKey = extractKey(bucket);\n\n if(bucketKey == key) {\n // The same key has been found.\n T oldValue = (T)data[bucketIndex];\n data[bucketIndex] = value;\n return oldValue;\n }\n else {\n // A new entry must be added at the end of the bucket.\n int dataIndex = appendData(key, value);\n buckets[bucketIndex] = replaceNext(dataIndex, bucket);\n }\n }\n else {\n // No bucket is associated with the hash code yet.\n int dataIndex = appendData(key, value);\n int keyHash = computeHash(key);\n table[keyHash] = dataIndex;\n }\n\n return null;\n }", "public V put(K k, V v) {\n final int h = getHash(k), stripe = h % lockCount;\n synchronized (locks[stripe]) {\n final int hash = h % buckets.length;\n final ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n if (node != null) {\n V old = node.v;\n node.v = v;\n return old;\n } else {\n buckets[hash] = new ItemNode<K,V>(k, v, buckets[hash]);\n sizes[stripe]++;\n return null;\n }\n }\n }", "public synchronized V put(K k, V v) {\n final int h = getHash(k), hash = h % buckets.length;\n ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n if (node != null) {\n V old = node.v;\n node.v = v;\n return old;\n } else {\n buckets[hash] = new ItemNode<K,V>(k, v, buckets[hash]);\n cachedSize++;\n return null;\n }\n }", "public V put(K key, V value) throws InvalidKeyException;" ]
[ "0.61197317", "0.6012274", "0.5991191", "0.5957578", "0.588978", "0.5854693", "0.5681014", "0.5612636", "0.55829936", "0.5564056", "0.55281544", "0.5525411", "0.5472455", "0.5383728", "0.53656584", "0.5352085", "0.53516006", "0.52939284", "0.5288957", "0.5255824", "0.525548", "0.5248012", "0.518186", "0.5156059", "0.5148886", "0.5138167", "0.51200676", "0.5118695", "0.508383", "0.5069721", "0.50670546", "0.50609463", "0.5042754", "0.5040612", "0.50359684", "0.50207704", "0.5006986", "0.5002356", "0.50001556", "0.49871945", "0.49661696", "0.49610645", "0.4951362", "0.4944583", "0.4942872", "0.4931713", "0.49245414", "0.49145845", "0.4891918", "0.48826483", "0.4880009", "0.48713002", "0.486432", "0.48603728", "0.48603576", "0.4858342", "0.48559433", "0.48515335", "0.48500484", "0.48495188", "0.48469526", "0.48382127", "0.4828362", "0.48069838", "0.4798451", "0.47974855", "0.4781915", "0.4772518", "0.47717607", "0.47563908", "0.47548887", "0.47487763", "0.47396722", "0.47332808", "0.47327638", "0.4731257", "0.47224355", "0.47081962", "0.47049886", "0.47012973", "0.46970356", "0.46859547", "0.46846005", "0.4683097", "0.46826857", "0.46821886", "0.46799475", "0.467281", "0.46711555", "0.4666766", "0.46625224", "0.46613193", "0.46602333", "0.46577138", "0.46571508", "0.46549135", "0.46483228", "0.4647419", "0.46446007", "0.46441066" ]
0.5579448
9
Place a new object in the cache, associated with key name. If there is currently an object associated with name in the region it is replaced. Names are scoped to a region so they must be unique within the region they are placed.
@Override public void put( final K name, final V obj ) { // Call put with a copy of the contained caches default attributes. // the attributes are copied by the cacheControl put( name, obj, this.getCacheControl().getElementAttributes() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized static void store(Context context, String name, Object o) {\n for(Map.Entry<Object, String> e : cached.entrySet()) {\r\n if(e.getValue().contentEquals(name)) {\r\n // Found cached\r\n cached.remove(e.getKey());\r\n break;\r\n }\r\n }\r\n // Put new entry\r\n if(o != null)\r\n cached.put(o, name);\r\n // Post async update\r\n pending.put(name, o);\r\n apply(context);\r\n }", "protected abstract void put(CacheKey cacheKey);", "@Override\n\tpublic void put(String name, Serializable key, Serializable value) throws CacheException {\n\t\t\n\t}", "public Object put(String aName, Object anObj)\n{\n // If map shared, clone it for real\n if(_attrMap.isShared())\n _attrMap = _attrMap.cloneX();\n \n // Put value (or remove if null)\n return anObj!=null? _attrMap.put(aName, anObj) : _attrMap.remove(aName);\n}", "public abstract CacheKey put(Vector primaryKey, Object object, Object writeLockValue, long readTime);", "void put(String name, Object value);", "@Request(id = 24, retryable = false, response = ResponseMessageConst.DATA)\n Object replace(String name, Data key, @Nullable Data oldValue, Data newValue, @Nullable Data expiryPolicy, int completionId);", "public static Object put(String name, Object object) {\n // Make sure the name and object are both in persistent memory first\n object = makePersistentCopy(object);\n name = (String)makePersistentCopy(name);\n\n PersistentRootEntry entry = (PersistentRootEntry)Native.getPersistentMemoryTable();\n PersistentRootEntry unusedEntry = null;\n while (entry != null) {\n String ename = entry.name;\n if (ename != null) {\n if (ename.equals(name)) {\n Object o = entry.value;\n entry.value = object;\n return o;\n }\n } else if (unusedEntry == null) {\n // Re-use first available unused entry\n unusedEntry = entry;\n }\n entry = entry.next;\n }\n\n if (unusedEntry == null) {\n unusedEntry = new PersistentRootEntry();\n unusedEntry.value = object;\n unusedEntry.name = name;\n\n PersistentRootEntry table = (PersistentRootEntry)Native.getPersistentMemoryTable();\n if (table != null) {\n unusedEntry.next = table;\n }\n table = (PersistentRootEntry)makePersistentCopy(unusedEntry);\n Native.setPersistentMemoryTable(table);\n } else {\n // Must write object first as writing the name essentially\n // links this entry into the roots and therefore must be\n // atomic.\n unusedEntry.value = object;\n unusedEntry.name = name;\n }\n return null;\n }", "void put(K id, V cacheable);", "void put(String key, Object obj);", "void put(Object indexedKey, Object key);", "public void put(ResourceLocation name, Tag nbt) {\n data.put(name.toString(), nbt);\n }", "public void put(int key, String name){\n\t\tif(get(key)==null){\n\t\t\thashMap[key] = name;\n\t\t\tSystem.out.println(name + \" stored in map under this key \" + key);\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(key + \" is already in the map\");\n\t\treturn;\n\t}", "public boolean put( KEY key, OBJECT object );", "public void put(String key, Object value) {\n CacheObject cacheObject = new CacheObject(value, expirationTime);\n WeakReference<CacheObject> weakReference = new WeakReference<CacheObject>(cacheObject);\n cache.put(key, weakReference);\n }", "Object put(Object key, Object value);", "public void put(String param1, Cache.Entry param2) {\n }", "void put(String key, Object value);", "protected boolean putIntoCache(String key, String value) throws Exception {\n \t// Ensure the value is in cache. We want to avoid it being in the storage but not\n \t// the cache as this can lead to synchronization errors:\n \tboolean inserted = evictAndReplace(key);\n \t\n \t// Perform an insert:\n map.put(key, value);\n \tusageCounter.put(key, usageCounter.get(key) + 1);\n \t\n \treturn inserted;\n }", "void put(int partitionID, String key, String value);", "public void putCache(NamedCache cache, ClassLoader loader)\n {\n if (cache.isReleased())\n {\n throw new IllegalArgumentException(\"Storing a released cache is not allowed: \" + cache.getCacheName());\n }\n\n ConcurrentMap mapByName = m_mapByName;\n String sCacheName = cache.getCacheName();\n Map mapByLoader = (Map) mapByName.get(sCacheName);\n\n if (mapByLoader == null)\n {\n mapByLoader = new WeakHashMap();\n mapByName.put(sCacheName, mapByLoader);\n }\n\n if (ScopedServiceReferenceStore.isRemoteServiceType(cache.getCacheService().getInfo().getServiceType())\n && Security.SUBJECT_SCOPED)\n {\n SubjectScopedReference scopedRef = (SubjectScopedReference) mapByLoader.get(loader);\n\n if (scopedRef == null)\n {\n scopedRef = new SubjectScopedReference();\n mapByLoader.put(loader, scopedRef);\n }\n\n scopedRef.set(cache);\n }\n else\n {\n mapByLoader.put(loader, cache);\n }\n }", "@Request(id = 19, retryable = false, response = ResponseMessageConst.BOOLEAN)\n Object putIfAbsent(String name, Data key, Data value, @Nullable Data expiryPolicy, int completionId);", "public Object putItem (String key, Object item);", "void cache(String key, T value) throws IOException;", "@Override\n public void putSafe( final K key, final V value )\n {\n if ( this.getCacheControl().get( key ) != null )\n {\n throw new ObjectExistsException( \"putSafe failed. Object exists in the cache for key [\" + key\n + \"]. Remove first or use a non-safe put to override the value.\" );\n }\n put( key, value );\n }", "protected Object putElement(int key, Object value) {\n int index = key % capacity;\n if (index < 0) {\n index = -index;\n }\n if (map[index] == null) {\n //.... This is a new key since no bucket exists\n objectCounter++;\n map[index] = create(key, value);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n //.... A bucket already exists for this index: check whether \n // we already have a mapping for this key\n MapElement me = map[index];\n while (true) {\n if (me.getKey() == key) {\n return me.atInsert(value);\n } else {\n if (me.getNext() == null) {\n // No next element: so we have no mapping for this key\n objectCounter++;\n MapElement result = create(key, value);\n me.setNext(result);\n contents++;\n if (contents > maxLoad) {\n rehash();\n }\n return null;\n } else {\n me = me.getNext();\n }\n }\n }\n }\n }", "@Override\n public Symbol put(String key, Symbol value) {\n value.setIndex(this.local++);\n return super.put(key, value);\n }", "void put(K key, V value, long expireMs);", "void register(String name, K key, V value);", "@Request(id = 12, retryable = false, response = ResponseMessageConst.DATA)\n Object getAndReplace(String name, Data key, Data value, @Nullable Data expiryPolicy, int completionId);", "@Override\n public T put(String key, T value) {\n T old = null;\n // Do I have an entry for it already?\n Map.Entry<String, T> entry = entries.get(key);\n // Was it already there?\n if (entry != null) {\n // Yes. Just update it.\n old = entry.setValue(value);\n } else {\n // Add it to the map.\n map.put(prefix + key, value);\n // Rebuild.\n rebuildEntries();\n }\n return old;\n }", "public void put(Object key, Object value) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key)) {\n\t\t\t\tp.value = value; // overwrite value if key already present.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// if not present, add key-value pair in that slot/bucket.\n\t\tPair pair = new Pair(key, value);\n\t\ttable[index].add(pair);\n\t}", "private void addRegionToSpriteProviders(final Region region, final String name) {\n for (final SpriteProvider sp : spriteProviders) {\n sp.addRegion(region, name);\n }\n }", "@Override\n\tpublic void puts(String name, Map<Serializable, Serializable> objs)\n\t\t\tthrows CacheException {\n\t\t\n\t}", "public void put(K searchKey, V newValue) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\t\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> wc = itr.next();\n\t\t\tif (wc.myKey.equals(searchKey)) itr.remove();\n\t\t\t\n\t\t}\n\t\tmyBuckets.get(index).add(new WordCode<K, V>(searchKey, newValue));\n\t\t\t\n\t\tnumEntries++;\n\t}", "public abstract Object put(String oid, Object obj) throws OIDAlreadyExistsException, ObjectNotSupportedException;", "Object put(Object key, Object value) throws NullPointerException;", "@Override\n\tpublic synchronized void put(String key, Entry entry) {\n\t\tpruneIfNeeded(entry.data.length);\n\t\tFile file = getFileForKey(key);\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tCacheHeader e = new CacheHeader(key, entry);\n\t\t\te.writeHeader(fos);\n\t\t\tfos.write(entry.data);\n\t\t\tfos.close();\n\t\t\tputEntry(key, e);\n\t\t\treturn;\n\t\t} catch (IOException e) {\n\t\t}\n\t\tboolean deleted = file.delete();\n\t\tif (!deleted) {\n\t\t\tVolleyLog.d(\"Could not clean up file %s\",\n\t\t\t\t\tfile.getAbsolutePath());\n\t\t}\n\t}", "public Value put(Key key, Value thing) ;", "private Stack cacheStack(String ename) {\n\t\tStack s = pkCache.get(ename);\n\t\tif (s == null) {\n\t\t\ts = new Stack();\n\t\t\tpkCache.put(ename, s);\n\t\t}\n\t\treturn s;\n\t}", "private void storeObject(String name, Object obj)\r\n {\r\n objectNames.put(obj, name);\r\n\r\n if (!nameObjects.containsKey(name))\r\n nameObjects.put(name, new WeakReference(obj));\r\n }", "public V put(K key, V value) {\n if (null == key) {\n return isertNullKey(key, value);\n } else {\n // inserting other keys\n int location = hashFunction(key.hashCode());\n if (location / capacity >= loadFactor) {\n resize();\n }\n MyEntry<K, V> entry = null;\n entry = bucket[location];\n //if a value exists with same key, we are not overriding that value, just returning the same,\n //in hashMap they actually override the new value\n if (entry != null && key == entry.getKey()) {\n return entry.getValue();\n } else {\n MyEntry ent = new MyEntry();\n ent.setKey(key);\n ent.setValue(value);\n bucket[location] = ent;\n return value;\n }\n\n }\n }", "@Override\n public void put(String key, String value) {\n database.put(key, value);\n\n String cachedData = cache.get(key);\n if (cachedData != null && !cachedData.equals(value)) {\n this.cache.remove(key);\n }\n }", "@Test\n public void testPut_Existing() {\n map.put(\"Hello\", \"Old World\");\n configureAnswer();\n\n testObject.put(\"Hello\", \"World\");\n\n verify(helper).fireReplace(entry(\"Hello\", \"Old World\"), entry(\"Hello\", \"World\"));\n\n verifyNoMoreInteractions(helper);\n }", "<T> void put(String key, T data);", "public synchronized V put(K k, V v) {\n final int h = getHash(k), hash = h % buckets.length;\n ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n if (node != null) {\n V old = node.v;\n node.v = v;\n return old;\n } else {\n buckets[hash] = new ItemNode<K,V>(k, v, buckets[hash]);\n cachedSize++;\n return null;\n }\n }", "public Object put(String methodName, CallCacheArgs args, Object result) {\n Map<CallCacheArgs, Object> cacheArgs = this.cache.get(methodName);\n if (cacheArgs == null) {\n cacheArgs = new HashMap<>();\n this.cache.put(methodName, cacheArgs);\n }\n cacheArgs.put(args, result);\n return result;\n }", "public void put(final Serializable key, final Serializable value) {\n Mutex lock = checkLockExistsForKey(key);\n try {\n if (value != null) {\n final Element element = new Element(key, value);\n cache.put(element);\n } else {\n cache.remove(key);\n }\n } finally {\n //Release the readlock here. This will have been acquired in the get, where the element was null\n lock.release();\n }\n }", "void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;", "public void put(String platform, String key, File source) throws ExtenderClientException {\n File cachedFile = getCachedBuildFile(platform);\n File parentDir = cachedFile.getParentFile();\n\n if (!parentDir.exists()) {\n parentDir.mkdirs();\n }\n if (!parentDir.exists()) {\n throw new ExtenderClientException(String.format(\"Failed to create cache dir %s\", parentDir.getAbsolutePath()));\n }\n\n try {\n Files.copy(new FileInputStream(source), cachedFile.toPath(), REPLACE_EXISTING);\n } catch (IOException e) {\n throw new ExtenderClientException(String.format(\"Failed to copy %s to %s\", source.getAbsolutePath(), cachedFile.getAbsolutePath()), e);\n }\n\n this.persistentHashes.put(cachedFile.getAbsolutePath(), key);\n saveCache();\n }", "public synchronized Integer put(Integer key, Integer val) {\n Integer replacedVal = null;\n Node existing = cache.get(key);\n if (existing == null) { // new key\n if (cache.size() >= capacity) {\n existing = evict(key, val);\n } else {\n existing = new Node(key, val);\n addNewNodeToFront(existing);\n }\n cache.put(key, existing);\n } else { // replace exiting key\n replacedVal = existing.val;\n existing.key = key;\n existing.val = val;\n moveOldNodeToFront(existing);\n }\n return replacedVal;\n }", "@Override\n public synchronized boolean put(String key, String value) throws Exception {\n boolean inserted = this.putIntoCache(key, value);\n return inserted;\n }", "@Override\r\n\tpublic V put(K key, V value) {\r\n\t\tint index = key.hashCode() % numBuckets;\r\n\t\treturn ((Bucket) buckets[index]).put(key, value);\r\n\t}", "public V put(K k, V v) {\n final int h = getHash(k), stripe = h % lockCount;\n synchronized (locks[stripe]) {\n final int hash = h % buckets.length;\n final ItemNode<K,V> node = ItemNode.search(buckets[hash], k);\n if (node != null) {\n V old = node.v;\n node.v = v;\n return old;\n } else {\n buckets[hash] = new ItemNode<K,V>(k, v, buckets[hash]);\n sizes[stripe]++;\n return null;\n }\n }\n }", "public void put(K key, T value) {\n synchronized (cacheMap) {\n cacheMap.put(key, new CacheObject(value));\n }\n }", "public Object putCacheIfAbsent(NamedCache cache, ClassLoader loader)\n {\n if (cache.isReleased())\n {\n throw new IllegalArgumentException(\"Storing a released cache is not allowed: \" + cache.getCacheName());\n }\n\n SegmentedConcurrentMap mapByName = m_mapByName;\n\n String sCacheName = cache.getCacheName();\n Object oResult;\n Map mapByLoader;\n do\n {\n mapByLoader = (Map) mapByName.get(sCacheName);\n\n if (mapByLoader == null)\n {\n mapByLoader = new WeakHashMap();\n\n Map mapTmp = (Map) mapByName.putIfAbsent(sCacheName, mapByLoader);\n\n if (mapTmp != null)\n {\n mapByLoader = mapTmp;\n }\n }\n\n if (ScopedServiceReferenceStore.isRemoteServiceType(cache.getCacheService().getInfo().getServiceType())\n && Security.SUBJECT_SCOPED)\n {\n SubjectScopedReference scopedRef = new SubjectScopedReference();\n\n oResult = putLoaderIfAbsent(mapByLoader, loader, scopedRef);\n\n if (oResult != null)\n {\n scopedRef = (SubjectScopedReference) oResult;\n }\n\n oResult = scopedRef.putIfAbsent(cache);\n }\n else\n {\n oResult = putLoaderIfAbsent(mapByLoader, loader, cache);\n }\n }\n while (mapByName.get(sCacheName) != mapByLoader);\n\n return oResult;\n }", "public MapUtil put(String name, Object value) {\n\t\tif (value != null) {\n\t\t\tvalues.put(name, value);\n\t\t}\n\t\treturn this;\n\t}", "public void put(Object key, Object value) {\n Entry entry = this.cache.get(key);\n\n if (entry == null) {\n // cache is fully used\n if (currentSize >= cacheSize) {\n cache.remove(tail.key);\n removeLast();\n }\n else {\n currentSize++;\n }\n\n entry = new Entry();\n }\n\n // update the K/V in the Entry object\n entry.key = key;\n entry.value = value;\n cache.put(key, entry);\n\n // move to the head of list\n moveToHead(entry);\n }", "public void updateCacheKey(CacheKey cacheKey) {\n return;\n }", "void put(ThreadLocal<?> key, Object value) {\n cleanUp();\n\n // Keep track of first tombstone. That's where we want to go back\n // and add an entry if necessary.\n int firstTombstone = -1;\n\n for (int index = key.hash & mask;; index = next(index)) {\n Object k = table[index];\n\n if (k == key.reference) {\n // Replace existing entry.\n table[index + 1] = value;\n return;\n }\n\n if (k == null) {\n if (firstTombstone == -1) {\n // Fill in null slot.\n table[index] = key.reference;\n table[index + 1] = value;\n size++;\n return;\n }\n\n // Go back and replace first tombstone.\n table[firstTombstone] = key.reference;\n table[firstTombstone + 1] = value;\n tombstones--;\n size++;\n return;\n }\n\n // Remember first tombstone.\n if (firstTombstone == -1 && k == TOMBSTONE) {\n firstTombstone = index;\n }\n }\n }", "ValueType put(long key, ValueType entry);", "public static void cacheResult(\n de.fraunhofer.fokus.movepla.model.Region region) {\n getPersistence().cacheResult(region);\n }", "public void put(K key, V value) {\n int hash = getHash(key.hashCode());\n Entry<K, V> existing = buckets[hash];\n Entry<K, V> entry = new Entry<>(key, value);\n\n if (existing == null) {\n buckets[hash] = entry;\n } else { // using separating chaining collision resolution. Another way is open addressing, resizing the array to reducing collision.\n while(existing.next != null) {\n if (existing.key.equals(key)) {\n existing.value = value;\n return;\n }\n existing = existing.next;\n }\n if (existing.key.equals(key)) {\n existing.value = value;\n } else {\n existing.next = entry;\n }\n }\n }", "public void put(Object key, Object value) {\n \t\tLog.i(TAG, String.format(\"Cache put key: %s, value: %s\", key, value.toString()));\n \t\tcacheMap.put(key, value);\n \t}", "public void put(String key, T value);", "@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }", "public static boolean doPutOrCreate(LocalRegion rgn, EntryEventImpl ev, long lastMod) {\n try {\n boolean updated = false;\n boolean doUpdate = true; // start with assumption we have key and need value\n boolean invokeCallbacks = true;\n\n if (shouldDoRemoteCreate(rgn, ev)) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"doPutOrCreate: attempting to update or create entry\");\n }\n final long startPut = rgn.getCachePerfStats().getTime();\n final boolean isBucket = rgn.isUsedForPartitionedRegionBucket();\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().startApplyReplication();\n }\n try {\n // if the oldValue is the DESTROYED token and overwrite is disallowed,\n // then basicPut will set the blockedDestroyed flag in the event\n boolean overwriteDestroyed = ev.getOperation().isCreate();\n try {\n boolean firstBasicUpdateSuccess =\n rgn.basicUpdate(ev, true, false, lastMod, overwriteDestroyed, true, true);\n if (firstBasicUpdateSuccess) {\n rgn.getCachePerfStats().endPut(startPut, ev.isOriginRemote());\n // we did a create, or replayed a create event\n doUpdate = false;\n updated = true;\n } else {\n // already exists. If it was blocked by the DESTROYED token, then\n // do no update.\n doUpdate = checkIfToUpdateAfterCreateFailed(rgn, ev);\n }\n } catch (ConcurrentCacheModificationException ex) {\n invokeCallbacks = false;\n doUpdate = checkIfToUpdateAfterCreateFailed(rgn, ev);\n }\n } finally {\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().endApplyReplication(startPut);\n }\n }\n }\n\n // If we care about the region entry being updated, get its value\n // from this message.\n if (doUpdate) {\n if (!ev.isLocalInvalid()) {\n final long startPut = rgn.getCachePerfStats().getTime();\n boolean overwriteDestroyed = ev.getOperation().isCreate();\n final boolean isBucket = rgn.isUsedForPartitionedRegionBucket();\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().startApplyReplication();\n }\n try {\n boolean secondBasicUpdateSuccess;\n try {\n secondBasicUpdateSuccess =\n rgn.basicUpdate(ev, false, true, lastMod, overwriteDestroyed,\n invokeCallbacks, true);\n } catch (ConcurrentCacheModificationException ex) {\n secondBasicUpdateSuccess = false;\n invokeCallbacks = false;\n }\n if (secondBasicUpdateSuccess) {\n rgn.getCachePerfStats().endPut(startPut, ev.isOriginRemote());\n if (logger.isTraceEnabled()) {\n logger.trace(\"Processing put key {} in region {}\", ev.getKey(), rgn.getFullPath());\n }\n } else {\n // key not here, blocked by DESTROYED token or ConcurrentCacheModificationException\n // thrown during second update attempt\n if (rgn.isUsedForPartitionedRegionBucket()\n || (rgn.getDataPolicy().withReplication() && rgn.getConcurrencyChecksEnabled())) {\n ev.makeCreate();\n boolean thirdBasicUpdateSuccess =\n rgn.basicUpdate(ev, false, false, lastMod, true, invokeCallbacks, false);\n if (thirdBasicUpdateSuccess) {\n rgn.getCachePerfStats().endPut(startPut, ev.isOriginRemote());\n }\n } else {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\n \"While processing Update message, update not performed because this key is {}\",\n (ev.oldValueIsDestroyedToken() ? \"blocked by DESTROYED/TOMBSTONE token\"\n : \"not defined\"));\n }\n }\n }\n } finally {\n if (isBucket) {\n BucketRegion br = (BucketRegion) rgn;\n br.getPartitionedRegion().getPrStats().endApplyReplication(startPut);\n }\n }\n } else { // supplied null, must be a create operation\n if (logger.isTraceEnabled()) {\n logger.trace(\"Processing create with null value provided, value not put\");\n }\n }\n } else {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null\n && !ev.getVersionTag().isRecorded()) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n if (!updated) {\n if (logger.isDebugEnabled()) {\n logger.debug(\n \"While processing Update message, update not performed because key was created but mirroring keys only and value not in update message, OR key was not new for sender and has been destroyed here\");\n }\n }\n }\n return true;\n } catch (CacheWriterException e) {\n throw new Error(\"CacheWriter should not be called\", e);\n } catch (TimeoutException e) {\n throw new Error(\n \"DistributedLock should not be acquired\",\n e);\n }\n }", "FutureSecureMap<KeyType, ValueType> create(String name);", "void setObjectKey(String objectKey);", "void put(@NonNull String key, @NonNull T value);", "void putFlyweight(String type, String tag, Object flyweight) {\n\t\t\tcache.put(type + \".\" + tag, flyweight);\n\t\t}", "void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);", "void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);", "public static void putMethod(Object ob) throws Exception {\n if (ob != null) {\n String str = \"first\";\n region.put(ob, str);\n }\n }", "@Override\n public V put(K key, V value) {\n\n \tV tempValue = get(key);\n \t\n \tLinkedList<Entry> tempBucket = chooseBucket(key);\n \t\n \tif(tempValue != null) {\n \t\tfor(int i=0;i<tempBucket.size();i++) {\n\t \t\tEntry tempEntry = tempBucket.get(i);\n\t \t\t\n\t \t\tif(tempEntry.getKey() == key) {\n\t \t\t\tV returnValue = tempEntry.getValue();\n\t \t\t\ttempEntry.setValue(value);\n\t \t\t\treturn returnValue;\n\t \t\t}\n\t \t}\n \t} else {\n \t\tsize ++;\n \t\ttempBucket.add(new Entry(key, value));\n \t}\n \t\n \tif(size > buckets.length*ALPHA) {\n \t\trehash(GROWTH_FACTOR);\n \t}\n \t\n return tempValue;\n }", "private void putInCache(Module module){\n\t\tString key = getKey(module);\n\t\tcache.put(key, module);\n\t}", "Tag saveAndGet(final String name);", "public void owned(K key, GridCacheVersion ownerMapped) {\n if (owned == null)\n owned = new GridLeanMap<>(3);\n\n owned.put(key, ownerMapped);\n }", "@Override\n public boolean put(K key, V object){\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n CacheObject<K, V> cacheObject = new CacheObject<>(key, object);\n this.cache.put(key, cacheObject);\n\n return true;\n }", "@Override\r\n public void add(IMObject object) {\r\n cache.add(object);\r\n }", "public void interestCacheInsert(InterestCacheEntry e)\n\t{\n\t\tif ( interestCache_purgeTimer == null ){\n\t\t\tinterestCache_purgeTimer = new DiffTimer(DiffTimer.TIMEOUT_INTEREST_CACHE_PURGE, null) ;\n\t\t\tif ( interestCache_purgeTimer != null ){\n\t\t\t\tinterestCache_purgeTimer.handle = setTimeout(interestCache_purgeTimer, INTEREST_CACHE_PURGE_INTERVAL) ;\n\t\t\t}\n\t\t}\n\t\tinterestCache.put(e.getInterest().getTaskId(),e) ;\n\t}", "private void addCredentialToCache(String k, GoogleCredential v){\n\t\tcache.put(k, v);\n\t\tM_log.debug(\"Added entry to cache, key: \" + k +\", value: \" + v);\n \t}", "public boolean put(String key, String value);", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "public V put(K k, V v) {\n final int h = getHash(k), stripe = h % lockCount;\n final Holder<V> old = new Holder<V>();\n ItemNode<K,V>[] bs;\n int afterSize; \n synchronized (locks[stripe]) {\n bs = buckets;\n final int hash = h % bs.length;\n final ItemNode<K,V> node = bs[hash], \n newNode = ItemNode.delete(node, k, old);\n bs[hash] = new ItemNode<K,V>(k, v, newNode);\n // Write for visibility; increment if k was not already in map\n afterSize = sizes.addAndGet(stripe, newNode == node ? 1 : 0);\n }\n if (afterSize * lockCount > bs.length)\n reallocateBuckets(bs);\n return old.get();\n }", "@Override\r\n\tpublic void putObject(Object key, Object value) {\n\t\t\r\n\t}", "public abstract V put(K key, V value);", "protected abstract void _set(String key, Object obj, Date expires);", "void put(MongoDBEntry<K, V> entry);", "@Override\r\n public void store(long key, O object) throws OBException {\n }", "protected static void put(String name, Icon icon) \r\n\t{\r\n\t\tEntry\ttable[] = m_table;\r\n\t\tint\t\tindex;\r\n\r\n\t\tif (m_count >= m_threshold) {\r\n\t\t\t// Rehash the table if the threshold is exceeded\r\n\t\t\trehash();\r\n\t\t\ttable = m_table;\r\n\t\t} \r\n\t\t// Creates the new entry.\r\n\r\n\t\tindex = (name.hashCode() & 0x7FFFFFFF) % table.length;\r\n\t\ttable[index] = new Entry(name, icon, table[index]);;\r\n\t\t++m_count;\r\n }", "@Override\r\n protected void processUpdate(final ICacheElement<K, V> ce)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive; aborting put of key = {1}\",\r\n () -> logCacheName, ce::getKey);\r\n return;\r\n }\r\n\r\n log.debug(\"{0}: Storing element on disk, key: {1}\",\r\n () -> logCacheName, ce::getKey);\r\n\r\n // old element with same key\r\n IndexedDiskElementDescriptor old = null;\r\n\r\n try\r\n {\r\n IndexedDiskElementDescriptor ded = null;\r\n final byte[] data = getElementSerializer().serialize(ce);\r\n\r\n // make sure this only locks for one particular cache region\r\n storageLock.writeLock().lock();\r\n try\r\n {\r\n old = keyHash.get(ce.getKey());\r\n\r\n // Item with the same key already exists in file.\r\n // Try to reuse the location if possible.\r\n if (old != null && data.length <= old.len)\r\n {\r\n // Reuse the old ded. The defrag relies on ded updates by reference, not\r\n // replacement.\r\n ded = old;\r\n ded.len = data.length;\r\n }\r\n else\r\n {\r\n // we need this to compare in the recycle bin\r\n ded = new IndexedDiskElementDescriptor(dataFile.length(), data.length);\r\n\r\n if (doRecycle)\r\n {\r\n final IndexedDiskElementDescriptor rep = recycle.ceiling(ded);\r\n if (rep != null)\r\n {\r\n // remove element from recycle bin\r\n recycle.remove(rep);\r\n ded = rep;\r\n ded.len = data.length;\r\n recycleCnt++;\r\n this.adjustBytesFree(ded, false);\r\n log.debug(\"{0}: using recycled ded {1} rep.len = {2} ded.len = {3}\",\r\n logCacheName, ded.pos, rep.len, ded.len);\r\n }\r\n }\r\n\r\n // Put it in the map\r\n keyHash.put(ce.getKey(), ded);\r\n\r\n if (queueInput)\r\n {\r\n queuedPutList.add(ded);\r\n log.debug(\"{0}: added to queued put list. {1}\",\r\n () -> logCacheName, queuedPutList::size);\r\n }\r\n\r\n // add the old slot to the recycle bin\r\n if (old != null)\r\n {\r\n addToRecycleBin(old);\r\n }\r\n }\r\n\r\n dataFile.write(ded, data);\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n\r\n log.debug(\"{0}: Put to file: {1}, key: {2}, position: {3}, size: {4}\",\r\n logCacheName, fileName, ce.getKey(), ded.pos, ded.len);\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Failure updating element, key: {1} old: {2}\",\r\n logCacheName, ce.getKey(), old, e);\r\n }\r\n }", "protected abstract void put(K key, V value);", "public void setRegionname(java.lang.String newRegionname) {\n\tregionname = newRegionname;\n}", "@Override\n public void put(String name, Object value) {\n emulatedFields.put(name, value);\n }", "public boolean put(@Nonnull String key, @Nonnull V model) {\n\t\tPreconditions.checkNotNull(key);\n\t\tPreconditions.checkNotNull(model);\n\t\t// don't care if the file already exist, it will be replaced\n\t\tFile jsonFile = new File(mCacheLocation, key);\n\t\ttry {\n\t\t\tmObjectMapper.writeValue(jsonFile, model);\n\t\t} catch (IOException e) {\n\t\t\tLogUtils.logException(TAG, \"Exception when writing \" + key, e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public Object setCachedObject(String key, Object obj) {\n return cache.put(key, obj);\n }", "void replaceStorage(OStorage iNewStorage);", "@Override\n public void remove( final K name )\n {\n this.getCacheControl().remove( name );\n }", "public void put(String key, Object value, int time) {\n customCache.put(key, new TimeExpiredObject(value, time));\n }" ]
[ "0.6466659", "0.6304688", "0.61494386", "0.5954725", "0.58693975", "0.5866577", "0.58166546", "0.57392377", "0.5735884", "0.5713226", "0.5638902", "0.56205225", "0.5612101", "0.5574203", "0.5533492", "0.55097693", "0.5498955", "0.5361192", "0.5329482", "0.53014934", "0.529265", "0.52671456", "0.52550805", "0.52414244", "0.52311194", "0.52030486", "0.5202543", "0.51636535", "0.51629364", "0.5162475", "0.51594436", "0.5149686", "0.5133362", "0.5115744", "0.5114949", "0.5111753", "0.5108245", "0.5106483", "0.5105178", "0.51012987", "0.5096762", "0.50814974", "0.5080941", "0.50778425", "0.5061478", "0.5046969", "0.50462306", "0.50445366", "0.50359327", "0.50252354", "0.5019818", "0.5012986", "0.50088215", "0.5004279", "0.50007266", "0.49993053", "0.49851716", "0.4974205", "0.49667424", "0.496256", "0.49566168", "0.49557212", "0.49529526", "0.4952152", "0.4948575", "0.4948258", "0.49444294", "0.49434307", "0.4938837", "0.4923567", "0.49233216", "0.49155572", "0.49112463", "0.49099424", "0.48990563", "0.4898524", "0.48952967", "0.48896253", "0.48873955", "0.48870143", "0.4882028", "0.48810014", "0.48790357", "0.48749387", "0.48716527", "0.48651847", "0.48626244", "0.485988", "0.48597276", "0.48591462", "0.48542228", "0.4853772", "0.4850671", "0.48504382", "0.48443606", "0.4840922", "0.48356384", "0.48239508", "0.48226497", "0.48194888" ]
0.59240246
4
Constructs a cache element with these attributes, and puts it into the cache. If the key or the value is null, and InvalidArgumentException is thrown.
@Override public void put( final K key, final V val, final IElementAttributes attr ) { if ( key == null ) { throw new InvalidArgumentException( "Key must not be null" ); } if ( val == null ) { throw new InvalidArgumentException( "Value must not be null" ); } // Create the element and update. This may throw an IOException which // should be wrapped by cache access. try { final CacheElement<K, V> ce = new CacheElement<>( this.getCacheControl().getCacheName(), key, val ); ce.setElementAttributes( attr ); this.getCacheControl().update( ce ); } catch ( final IOException e ) { throw new CacheException( e ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public cacheEntry(int key, String value){\n int key;\n String value;\n cacheEntry(int key){\n this.key = key;\n this.value = value;\n }\n}", "public void put(final Serializable key, final Serializable value) {\n Mutex lock = checkLockExistsForKey(key);\n try {\n if (value != null) {\n final Element element = new Element(key, value);\n cache.put(element);\n } else {\n cache.remove(key);\n }\n } finally {\n //Release the readlock here. This will have been acquired in the get, where the element was null\n lock.release();\n }\n }", "void cache(String key, T value) throws IOException;", "public CacheTagImpl(String key) {\n this(key, ANY);\n }", "<W extends V> void addMeasurement(DataCache<K, W> cache, K key, W value);", "@Override\n public <T> void storeInItemCache(String key, CacheElement<T> cacheElement) {\n\n if (!isEnabled()) {\n return;\n }\n\n if (!cacheExists()) {\n LOG.error(\"Cache configuration is invalid! NOT Caching. Check EH Cache configuration.\");\n return;\n }\n\n // detect undeclared nulls, complain, and set to null\n if (!cacheElement.isNull() && cacheElement.getPayload() == null) {\n Exception exToLogToHaveStacktraceWhoCausedIt = new Exception();\n LOG.error(\"Detected undeclared null payload on element with key \" + key + \" at insert time!\",\n exToLogToHaveStacktraceWhoCausedIt);\n cacheElement.setNull(true);\n }\n cacheElement.setExpired(false);\n storeElement(key, cacheElement);\n }", "public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }", "public interface Cache<T> {\n\n /**\n * Put the object in the cache with the given <code>key</code>.\n * <p>\n * The object is stored for the default configured time, depending on the\n * cache implementation. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n void put(@NonNull String key, @NonNull T value);\n\n /**\n * Put the object in the cache with the given <code>key</code> for the\n * given <code>duration</code>.\n * <p>\n * The object is stored for the requested duration. See general remarks about cache evictions.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param duration The (not null) duration to store the object for.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull Duration duration);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for until\n * <code>expiresAt</code> has come.\n * <p>\n * The object is stored and should be removed when <code>expiresAt</code> had come.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n * @param expiresAt The (not null) expiry time.\n */\n void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);\n\n /**\n * Put the object in the cache with the given <code>key</code> for ever.\n * <p>\n * The object is stored and should never be removed. This should overrule configured default\n * expiry time for objects put in the cache. However, the object may still be evicted from\n * the cache, for instance for memory reasons.\n * <p>\n * This method calls Duration.ofMillis(Long.max()) and passes it to the put(key, value, Duration duration).\n * So this method does not persist eternally, but rather persists for a long time.\n *\n * @param key The (not null) key to store the object under.\n * @param value The (not null) object to store.\n */\n default void putEternally(@NonNull final String key, @NonNull final T value) {\n put(key, value, Duration.ofMillis(Long.MAX_VALUE));\n }\n\n /**\n * Retrieve the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The value, or <code>null</code> if the object is not found.\n */\n T get(@NonNull String key);\n\n /**\n * Retrieve an optional for the object stored under the <code>key</code>.\n *\n * @param key The (never null) key to retrieve the value with.\n * @return The <code>Optional</code> for the value.\n */\n default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }\n\n /**\n * Remove the value associate with the <code>key</code>.\n *\n * @param key The key to remove.\n */\n void remove(@NonNull String key);\n\n}", "Object put(Object key, Object value) throws NullPointerException;", "protected abstract void put(CacheKey cacheKey);", "public Cache() {\n this(null);\n }", "public interface Cache<K, V> {\n\n public V get(K key);\n\n public void put(K key, V value);\n\n public void remove(K key);\n\n}", "public interface Cache<K,V> {\n\t/**\n\t * Returns the object for the given id from cache, null if no object is in cache.\n\t *\n\t * @param id the id to retrieve\n\t * @return a V object.\n\t */\n\tV get(K id);\n\t\n\t/**\n\t * Puts the cacheable object in cache.\n\t *\n\t * @param id the object id\n\t * @param cacheable the object to cache.\n\t */\n\tvoid put(K id, V cacheable);\n\n\t/**\n\t * Removes an object from the cache.\n\t *\n\t * @param id cache object id.\n\t */\n\tvoid remove(K id);\n\t\n\t/**\n\t * Clears the cache.\n\t */\n\tvoid clear();\n\n\t/**\n\t * Returns the cache stats.\n\t *\n\t * @return a {@link net.anotheria.moskito.core.predefined.CacheStats} object.\n\t */\n\tCacheStats getCacheStats();\n\n /**\n * Return all elements from cache.\n *\n * @return collection\n */\n Collection<V> getAllElements();\n\t\n}", "public interface CustomCache<K, V> {\n\n /**\n * gets a value by key\n * returns null if key is expired\n *\n * @param key\n * @return\n */\n V get(K key);\n\n /**\n * puts into cache with given ttl\n *\n * @param key\n * @param value\n */\n void put(K key, V value);\n\n /**\n * averages out the non expired values in cache.\n * to be discussed in interview\n *\n * @return\n */\n double average();\n}", "public interface Cache {\n void put(String key, Object value);\n\n Object get(String key);\n}", "public CacheItem(String key) {\n setKey(key);\n setCreateTime(System.currentTimeMillis());\n }", "StoreResponse add(CACHE_ELEMENT e);", "private CachedBzlLoadData buildCachedData(BzlLoadValue.Key key, BzlLoadValue value) {\n cachedDataBuilder.setValue(value);\n cachedDataBuilder.setKey(key);\n return cachedDataBuilder.build();\n }", "public final synchronized void addElement(Object paramObject1, Object paramObject2)\r\n/* 21: */ {\r\n/* 22:111 */ Object localObject = this._table.get(paramObject1);\r\n/* 23:113 */ if (localObject != null)\r\n/* 24: */ {\r\n/* 25:118 */ GenericCacheEntry localGenericCacheEntry = (GenericCacheEntry)localObject;\r\n/* 26:119 */ localGenericCacheEntry._value = paramObject2;\r\n/* 27:120 */ localGenericCacheEntry._key = paramObject1; return;\r\n/* 28: */ }\r\n/* 29: */ int i;\r\n/* 30:126 */ if (!isFull())\r\n/* 31: */ {\r\n/* 32:127 */ i = this._numEntries;\r\n/* 33:128 */ this._numEntries += 1;\r\n/* 34: */ }\r\n/* 35: */ else\r\n/* 36: */ {\r\n/* 37:132 */ i = this.__curent;\r\n/* 38:134 */ if (++this.__curent >= this._cache.length) {\r\n/* 39:135 */ this.__curent = 0;\r\n/* 40: */ }\r\n/* 41:137 */ this._table.remove(this._cache[i]._key);\r\n/* 42: */ }\r\n/* 43:140 */ this._cache[i]._value = paramObject2;\r\n/* 44:141 */ this._cache[i]._key = paramObject1;\r\n/* 45:142 */ this._table.put(paramObject1, this._cache[i]);\r\n/* 46: */ }", "interface ICacheUtil {\n void put(Object key, Object value, long expiredTime, TimeUnit unit);\n Object get(Object key);\n void remove(Object key);\n void clear();\n boolean isExists(Object key);\n}", "@Override\n\tpublic V add(K key, V value) {\n\t\tcheckNullKey(key);\n\t\tcheckNullValue(value);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.put(key, value);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "StoreResponse append(CACHE_ELEMENT element);", "@Test\n public void simpleAPIWithGenericsAndNoTypeEnforcement() {\n\n MutableConfiguration config = new MutableConfiguration<String, Integer>();\n Cache<Identifier, Dog> cache = cacheManager.createCache(cacheName, config);\n\n\n //Types are restricted\n //Cannot put in wrong types\n //cache.put(1, \"something\");\n\n //can put in\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n\n //cannot get out wrong key types\n //assertNotNull(cache.get(1));\n assertNotNull(cache.get(pistachio.getName()));\n assertNotNull(cache.get(tonto.getName()));\n\n //cannot remove wrong key types\n //assertTrue(cache.remove(1));\n assertTrue(cache.remove(pistachio.getName()));\n assertTrue(cache.remove(tonto.getName()));\n\n }", "@Override\n\tpublic void put(String name, Serializable key, Serializable value) throws CacheException {\n\t\t\n\t}", "public interface Cache {\r\n\r\n public Object get( Object key);\r\n public void put( Object key, Object value);\r\n}", "DataElement getFromCache(String dataElementName);", "void put(K id, V cacheable);", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "public interface EzyerCache {\n class PersistentObject {\n public final byte[] mData;\n public final String mKey;\n public final long mExpireTimeMillis;\n\n public PersistentObject(byte[] data, String key, long expireTimeMillis) {\n mData = data;\n mKey = key;\n mExpireTimeMillis = expireTimeMillis;\n }\n }\n\n class ValueObject {\n public final byte[] mData;\n public final String mKey;\n public final boolean mIsExpired;\n\n public ValueObject(byte[] data, String key, boolean isExpired) {\n mData = data;\n mKey = key;\n mIsExpired = isExpired;\n }\n }\n\n ValueObject get(String key);\n\n List<ValueObject> get(String key, int start, int end);\n\n void set(PersistentObject po);\n\n void add(PersistentObject po);\n\n void remove(String key);\n\n boolean isExpired(String key);\n\n void clear();\n}", "public Builder addCached(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCachedIsMutable();\n cached_.add(value);\n onChanged();\n return this;\n }", "public void put(String param1, Cache.Entry param2) {\n }", "@Test\n public void testPutGet() {\n cache.put(\"A\", \"first\");\n cache.put(\"C\", \"second\");\n cache.put(\"C\", \"third\");\n \n assertEquals(\"first\", cache.get(\"A\"));\n assertEquals(\"third\", cache.get(\"C\"));\n }", "@Nullable\r\n public Object put(String key, @Nullable Object value) {\r\n Object res = attributeMap.put(key, value);\r\n fireStateChanged();\r\n return res;\r\n }", "public void set(int curtTime, int key, int value, int ttl) {\n int expire = ttl == 0 ? -1 : curtTime + ttl - 1;\n Element elem = new Element(value, expire);\n cache.put(key, elem);\n }", "@Override\n public void put( final K name, final V obj )\n {\n // Call put with a copy of the contained caches default attributes.\n // the attributes are copied by the cacheControl\n put( name, obj, this.getCacheControl().getElementAttributes() );\n }", "public MutableCachedNode mutable( NodeKey key ) throws NodeNotFoundException, UnsupportedOperationException;", "protected abstract boolean _setIfAbsent(String key, Object value, Date expires);", "@SuppressWarnings( \"unchecked\" )\n @Nonnull\n public ComputableValue<T> getComputableValue( @Nonnull final Object... args )\n {\n if ( Arez.shouldCheckApiInvariants() )\n {\n apiInvariant( () -> args.length == _argCount,\n () -> \"Arez-0162: MemoizeCache.getComputableValue called with \" + args.length +\n \" arguments but expected \" + _argCount + \" arguments.\" );\n }\n Map<Object, Object> map = _cache;\n final int size = args.length - 1;\n for ( int i = 0; i < size; i++ )\n {\n map = (Map<Object, Object>) map.computeIfAbsent( args[ i ], v -> new HashMap<>() );\n }\n ComputableValue<T> computableValue =\n (ComputableValue<T>) map.computeIfAbsent( args[ size ], v -> createComputableValue( args ) );\n if ( Disposable.isDisposed( computableValue ) )\n {\n computableValue = createComputableValue( args );\n map.put( args[ size ], computableValue );\n }\n return computableValue;\n }", "public int storeAttribute(String key, String value);", "@Test\n public void simpleAPINoGenericsAndNoTypeEnforcementStoreByValue() {\n\n MutableConfiguration config = new MutableConfiguration();\n Cache cache = cacheManager.createCache(cacheName, config);\n Identifier2 one = new Identifier2(\"1\");\n\n //can put different things in\n //But not non-serializable things\n //cache.put(one, \"something\");\n cache.put(1L, \"something\");\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n cache.put(bonzo.getName(), bonzo);\n cache.put(juno.getName(), juno);\n cache.put(talker.getName(), talker);\n\n try {\n cache.put(skinny.getName(), skinny);\n } catch(Exception e) {\n //not serializable expected\n }\n //can get them out\n assertNotNull(cache.get(1L));\n assertNotNull(cache.get(pistachio.getName()));\n\n //can remove them\n assertTrue(cache.remove(1L));\n assertTrue(cache.remove(pistachio.getName()));\n }", "public Cache createCache() throws Exception {\n return createCache(maxEntries, DEFAULT_CACHE_CLASSNAME);\n }", "public boolean addCacheElement(K key, V value) {\n\t\tif (cacheMap.containsKey(key)) {\n\t\t\telementHit(key);\n\t\t\tInputUtils.printConsoleMessage(\"Hit\");\n\t\t\treturn false;\n\t\t} else if (maxObjects > cacheMap.size()) {\n\t\t\tcacheMap.put(key, value);\n\t\t\thitMap.put(key, 0);\n\t\t\treturn true;\n\t\t} else {\n\t\t\tInputUtils.printConsoleMessage(\"Miss\");\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tK searchedKey = null;\n\t\t\tfor (K i : hitMap.keySet()) {\n\t\t\t\tint val = hitMap.get(i);\n\t\t\t\tif (min > val) {\n\t\t\t\t\tsearchedKey = i;\n\t\t\t\t\tmin = val;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcacheMap.remove(searchedKey);\n\t\t\thitMap.remove(searchedKey);\n\t\t\tcacheMap.put(key, value);\n\t\t\thitMap.put(key, 0);\n\t\t\treturn true;\n\t\t}\n\t}", "public interface Cache<K, V> {\n\n /**\n * 通过键值获取获取缓存值\n *\n * @param k k\n * @return\n */\n V get(K k);\n\n /**\n * 通过键值刷新缓存值\n *\n * @param k k\n */\n void refresh(K k);\n}", "public interface CacheManager {\n\n void init();\n\n void destroy();\n\n void del(String key);\n\n void set(String key, Object value);\n\n void set(String key, Object value, int expireTime);\n\n <T> T get(String key, Class<T> clazz);\n\n void hset(String key, String subKey, Object value);\n\n <T> T hget(String key, String subKey, Class<T> clazz);\n\n <T> Map<String, T> hget(String key, Class<T> clazz);\n\n void hrem(String key, String subKey);\n\n long hincr(String key, String subKey);\n\n void sadd(String key, Object val);\n\n boolean sisMember(String key, Object val);\n\n void srem(String key, Object val);\n\n Set<String> sget(String key);\n\n <T> Set<T> sget(String key, Class<T> clazz);\n\n void zadd(String key, Object val, double score);\n\n boolean zisMember(String key, Object val);\n\n void zrem(String key, Object val);\n\n void zrem(String key, double min, double max);\n\n void zreplace(String key, Object val, double score);\n\n double zincr(String key, Object val, double score);\n\n <T> Set<T> zget(String key, double min, double max, Class<T> clazz);\n\n Set<String> zget(String key, double min, double max);\n}", "StoreResponse prepend(CACHE_ELEMENT element);", "public IndexedDiskCache(final IndexedDiskCacheAttributes cacheAttributes)\r\n {\r\n this(cacheAttributes, null);\r\n }", "Builder withCacheConcurrency(int concurrency);", "public interface Cache<K,E> {\n\tpublic E getCacheEntry(K id);\n\t\n\tpublic boolean addCacheEntry(K id, E entry);\n\t\n\tpublic void removeCacheEntry(K id);\n\t\n\tpublic Stream<E> getAllEntries();\n}", "public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}", "void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);", "public JwkProviderBuilder cached(long cacheSize, long expiresIn, TimeUnit unit) {\n this.cached = true;\n this.cacheSize = cacheSize;\n this.expiresIn = expiresIn;\n this.expiresUnit = unit;\n return this;\n }", "public AbstractCache() {\n }", "public interface IBaseCache<T> {\n\n void setById(String id, T o);\n\n void setById(String id, T o, int timeout);\n\n void set(String key, T o);\n\n void set(String key, T o, int timeout);\n\n T getById(String id);\n\n T get(String key);\n\n void setList(List<T> list);\n\n void setList(List<T> list, int timeout);\n\n boolean hasList();\n\n List<T> getList();\n\n void setList(String key, List<T> list);\n\n void setList(String key, List<T> list, int timeout);\n\n boolean hasList(String key);\n\n List<T> getList(String key);\n\n boolean hasKeyById(String id);\n\n boolean hasKey(String key);\n\n void deleteKeyById(String id);\n\n void deleteKey(String key);\n\n void deleteList();\n\n void deleteList(String key);\n\n void deleteAllEntityKeys();\n\n\n}", "public void put(String key, Object value) {\n CacheObject cacheObject = new CacheObject(value, expirationTime);\n WeakReference<CacheObject> weakReference = new WeakReference<CacheObject>(cacheObject);\n cache.put(key, weakReference);\n }", "public <A> Result addAttr(TypedKey<A> key, A value) {\n return withAttrs(attrs.put(key, value));\n }", "void put(@NonNull String key, @NonNull T value, @NonNull ZonedDateTime expiresAt);", "private HashMap<String, Element> construireCacheDefElement() {\n cacheDefElement = new HashMap<String, Element>();\n cacheNomsElements = new HashMap<Element, String>();\n final NodeList lelements = racine_schema.getElementsByTagName(\"ELEMENT\");\n for (int i=0; i<lelements.getLength(); i++) {\n final Element el = (Element)lelements.item(i);\n final String nom = el.getAttribute(\"nom\");\n cacheDefElement.put(nom, el);\n cacheNomsElements.put(el, nom);\n }\n return(cacheDefElement);\n }", "public ConcurrentHashMapAllowNull() {\n super();\n }", "public Attribute fetchAttribute(String key, String value);", "interface Cache<T extends Parcelable, K> {\n void put(final T t, final K k);\n\n T getKey(int pos);\n\n /**\n * Returns a random key from key-value pairs stored in the cache.\n * @return a random quote\n */\n T getRandomKey();\n}", "StoreResponse set(CACHE_ELEMENT e);", "public final synchronized void addAttribute(String name, Object attr) {\n\t if ( m_cache == null)\n\t \tm_cache = new Hashtable<String, Object>();\n\t m_cache.put(name,attr);\n\t}", "public ClusteredElementEvictionData(final Store store, final TimestampedValue timestampedValue) {\n this.store = store;\n this.value = timestampedValue;\n }", "public DoNotCacheCondition(\n org.w3c.dom.Element doNotCacheConditionElement) \n throws SAMLException\n {\n Element elt = (Element)doNotCacheConditionElement;\n String eltName = elt.getLocalName();\n if (eltName == null) {\n if (SAMLUtilsCommon.debug.messageEnabled()) { \n SAMLUtilsCommon.debug.message(\"DoNotCacheCondition: \"\n + \"null condition \");\n }\n throw new SAMLRequesterException(SAMLUtilsCommon.bundle.getString(\n \"nullInput\"));\n }\n if (!(eltName.equals(\"DoNotCacheCondition\"))) {\n if (!(eltName.equals(\"Condition\"))) {\n if (SAMLUtilsCommon.debug.messageEnabled()) { \n SAMLUtilsCommon.debug.message(\"DoNotCacheCondition: \"\n + \"unsupported condition \");\n }\n throw new SAMLRequesterException(\n SAMLUtilsCommon.bundle.getString(\n \"unsupportedCondition\"));\n }\n }\n if (eltName.equals(\"Condition\")) { // seems like extension type\n String type = elt.getAttribute(\"xsi:type\");\n if (!(type.equals(\"DoNotCacheCondition\"))) {\n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\n \"DoNotCacheCondition: invalid condition\");\n }\n throw new SAMLRequesterException(\n SAMLUtilsCommon.bundle.getString(\"invalidElement\"));\n }\n } \n }", "protected CacheObject(T value) {\n this.value = value;\n }", "@Test\n public void genericsEnforcementAndStricterTypeEnforcementFromCaching() {\n\n //configure the cache\n MutableConfiguration config = new MutableConfiguration<>();\n config.setTypes(Identifier.class, Hound.class);\n Cache<Identifier, Dog> cache = cacheManager.createCache(cacheName, config);\n\n //Types are restricted and types are enforced\n //Cannot put in wrong types\n //cache.put(1, \"something\");\n\n //can put in\n cache.put(pistachio.getName(), pistachio);\n //can put in with generics but possibly not with configuration as not a hound\n try {\n cache.put(tonto.getName(), tonto);\n } catch (ClassCastException e) {\n //expected but not mandatory. The RI throws these.\n }\n\n //cannot get out wrong key types\n //assertNotNull(cache.get(1));\n assertNotNull(cache.get(pistachio.getName()));\n //not necessarily\n //assertNotNull(cache.get(tonto.getName()));\n\n //cannot remove wrong key types\n //assertTrue(cache.remove(1));\n assertTrue(cache.remove(pistachio.getName()));\n //not necessarily\n //assertTrue(cache.remove(tonto.getName()));\n }", "void put(K key, V value, long expireMs);", "void set(K key, V value, LocalDateTime expiresAt) throws CapacityExceededException;", "public boolean setIfAbsent(String namespace, String key, Object value, Date expires) {\n \t\tthis.init();\n \t\treturn this._setIfAbsent(this.getKey(namespace, key), value, expires);\n \t}", "public KeyValuePair () {\n key = null;\n value = null;\n }", "@Override\n public IElementAttributes getElementAttributes( final K name ) throws CacheException\n {\n IElementAttributes attr = null;\n\n try\n {\n attr = this.getCacheControl().getElementAttributes( name );\n }\n catch ( final IOException ioe )\n {\n throw new CacheException(\"Failure getting element attributes\", ioe);\n }\n\n return attr;\n }", "public AddressCacheImpl() {\n\t\tthis(CACHE_SIZE_DEFAULT, 0L);\n\t}", "public void setAttribute(Object key, Object value);", "CACHE_ELEMENT[] get(Key ... keys);", "public Object put(String aName, Object anObj)\n{\n // If map shared, clone it for real\n if(_attrMap.isShared())\n _attrMap = _attrMap.cloneX();\n \n // Put value (or remove if null)\n return anObj!=null? _attrMap.put(aName, anObj) : _attrMap.remove(aName);\n}", "public MapElement put(long key, long startCpuTime, long startSystemTime) {\r\n // pass in thread data to differentiate between indirect and direct \r\n putElement(key, null); \r\n MapElement elt = (MapElement) getElement(key);\r\n if (null != elt) {\r\n elt.setTimes(startCpuTime, startSystemTime);\r\n }\r\n return elt;\r\n }", "public Cache(final Element cacheInfo, final Byte version,\n\t\t\tfinal String indexdir) {\n\t\tif (version == 0) {\n\t\t\treadInfo0(cacheInfo, indexdir);\n\t\t} else if (version == 3) {\n\t\t\treadInfo3(cacheInfo, indexdir);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"unsupported version \" + version);\n\t\t}\n\t}", "protected void setAttributeCache(ShibbolethResolutionContext resolutionContext, String query, Map<String,BaseAttribute> resolvedAttributes) {\n String principal = resolutionContext.getAttributeRequestContext().getPrincipalName();\n Map<String, Map<String, BaseAttribute>> cache = dataCache.get(principal);\n if (cache == null) {\n cache = new HashMap<String, Map<String, BaseAttribute>>();\n dataCache.put(principal, cache);\n }\n cache.put(query, resolvedAttributes);\n }", "public Cache(Integer size) {\n this.size = size;\n recentlyUsed = new ArrayList<K>();\n cache = new HashMap<>();\n }", "public Builder setCached(\n int index, com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCachedIsMutable();\n cached_.set(index, value);\n onChanged();\n return this;\n }", "public interface CacheIndex {\n \n /**\n * Puts index on indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void put(Object indexedKey, Object key);\n \n /**\n * Removes the index from indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void remove(Object indexedKey, Object key);\n \n /**\n * Equals to.\n *\n * @param expectedValue the expected value\n * @return the list\n */\n List<Object> equalsTo(Object expectedValue);\n \n /**\n * Less than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThan(Object value);\n \n /**\n * Less than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThanOrEqualsTo(Object value);\n \n /**\n * Greater than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThan(Object value);\n \n /**\n * Greater than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThanOrEqualsTo(Object value);\n \n /**\n * Between.\n *\n * @param lowerBound the lower bound\n * @param upperBound the upper bound\n * @return the list\n */\n List<Object> between(Object lowerBound, Object upperBound);\n \n}", "@Override\r\n\tpublic V putElement(K key, V value) {\n\t\t\r\n\t\tif (capacity == 0)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tif (hashMap.isEmpty()) {\r\n\t\t\thashMap.put(key, value);\r\n\t\t\tque.add(key);\r\n\t\t\treturn value;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tV element = getElement(key);\r\n\t\tV returnValue = hashMap.get(que.get(0));\r\n\t\t\r\n\t\tif (element == null) {\r\n\t\t\tif (hashMap.size() == capacity){\r\n\t\t\t\tremoveElement(que.get(0));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\thashMap.put(key, value);\r\n\t\t\tque.add(key);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnValue;\r\n\t}", "public MetaDataCache() throws org.opensaml.xml.ConfigurationException {\r\n // Create a parser pool for later use\r\n parser = new BasicParserPool();\r\n // Choose to use the Bouncy Castle JCE provider most often\r\n Security.insertProviderAt(new BouncyCastleProvider(), 2);\r\n // Provide some default values\r\n setMetaTimeout(60000);\r\n setMetaFile(\"metadata-backing-file.xml\");\r\n setMetaUrl(\"http://127.0.0.1/metadata.xml\");\r\n}", "public SearchCache() {\n this(CAPACITY, new Ticker());\n }", "public Value put(Key key, Value thing) ;", "protected abstract void _set(String key, Object obj, Date expires);", "void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;", "public V getByKey(K key, Class<V> clazz) throws Exception {\n if (!cache.containsKey(key)){\n\n V value = clazz.getConstructor(key.getClass()).newInstance((K)key);\n cache.put(key,value);\n }\n return cache.get(key);\n //TODO add your code here\n }", "@Test\n public void genericsEnforcementAndStricterTypeEnforcement() {\n\n //configure the cache\n MutableConfiguration config = new MutableConfiguration<>();\n config.setTypes(Identifier.class, Hound.class);\n Cache<Identifier, Dog> cache = cacheManager.createCache(cacheName, config);\n\n //Types are restricted and types are enforced\n //Cannot put in wrong types\n //cache.put(1, \"something\");\n\n //can put in\n cache.put(pistachio.getName(), pistachio);\n //can put in with generics but possibly not with configuration as not a hound\n try {\n cache.put(tonto.getName(), tonto);\n } catch (ClassCastException e) {\n //expected but not mandatory. The RI throws these.\n }\n\n //cannot get out wrong key types\n //assertNotNull(cache.get(1));\n assertNotNull(cache.get(pistachio.getName()));\n //not necessarily\n //assertNotNull(cache.get(tonto.getName()));\n\n //cannot remove wrong key types\n //assertTrue(cache.remove(1));\n assertTrue(cache.remove(pistachio.getName()));\n //not necessarily\n //assertTrue(cache.remove(tonto.getName()));\n }", "@Test\n public void simpleAPINoGenericsAndNoTypeEnforcementStoreByReference() {\n\n MutableConfiguration config = new MutableConfiguration().setStoreByValue(false);\n Cache cache = cacheManager.createCache(cacheName, config);\n Identifier2 one = new Identifier2(\"1\");\n\n //can put different things in\n cache.put(one, \"something\");\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n cache.put(bonzo.getName(), bonzo);\n cache.put(juno.getName(), juno);\n cache.put(talker.getName(), talker);\n\n try {\n cache.put(skinny.getName(), skinny);\n } catch(Exception e) {\n //not serializable expected\n }\n //can get them out\n Identifier2 one_ = new Identifier2(\"1\");\n Assert.assertEquals(one, one_);\n Assert.assertEquals(one.hashCode(), one_.hashCode());\n assertNotNull(cache.get(one_));\n assertNotNull(cache.get(one));\n assertNotNull(cache.get(pistachio.getName()));\n\n //can remove them\n assertTrue(cache.remove(one));\n assertTrue(cache.remove(pistachio.getName()));\n }", "public ImcacheCacheManager() {\n this(CacheBuilder.heapCache());\n }", "@Override\n public void resetElementAttributes( final K name, final IElementAttributes attr )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n if ( element == null )\n {\n throw new InvalidHandleException( \"Object for name [\" + name + \"] is not in the cache\" );\n }\n\n // Although it will work currently, don't assume pass by reference here,\n // i.e. don't do this:\n // element.setElementAttributes( attr );\n // Another reason to call put is to force the changes to be distributed.\n\n put( element.getKey(), element.getVal(), attr );\n }", "public MRUCache(CacheDataFactory<K, V> fact) {\r\n this(DEFAULTSIZE, fact, null);\r\n }", "AtomicDataAttributes createAtomicDataAttributes();", "Object put(Object key, Object value);", "public CacheEntry(int theTag, int theAddress, int theWriteValue)\n\t{\n\t\tmyTag = theTag;\n\t\tmyAddress = theAddress;\n\t\tmyWriteValue = theWriteValue;\n\t\tmyMesiState = MesiStates.EXCLUSIVE;\n\t}", "@Override\n public V put(final K key, final V value) {\n if (key == null) {\n throw new NullPointerException(\"key\");\n }\n entries.add(new SimpleEntry<K,V>(key, value));\n size = UNKNOWN_SIZE;\n return null;\n }", "public Object createEntry(Object key) throws Exception {\n\r\n\t\t\r\n\t\t\r\n\t\tConnection connect = null;\r\n\t Statement st = null;\r\n\t ResultSet rs = null;\r\n\t String url = \"jdbc:mysql://localhost:3306/\";\r\n\t String db = \"ehcache\";\r\n\t String driver = \"com.mysql.jdbc.Driver\";\r\n\t String user = \"ehcache\";\r\n\t String pass = \"terracotta\";\r\n\t customer mc = new customer();\r\n\t \r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tClass.forName(driver);\r\n\t\t\tconnect = DriverManager\r\n\t\t\t .getConnection(url + db, user, pass);\r\n\t\t\t\r\n\t\t\tst = connect.createStatement();\r\n\t\t rs = st.executeQuery(\"select * from customers where ID='\" + key + \"'\");\r\n\t\t // rs = st.executeQuery(\"select * from customers where ID='1'\");\r\n\t\t \r\n\t\t System.out.println(\"(dbReadThrough) Retrieving customer \" + key + \" from DB ... \");\r\n\t\t \r\n\t\t while (rs.next()) {\r\n\t\t \t\r\n\t\t \t\r\n\t\t \tint ID = rs.getInt(\"ID\");\r\n\t\t \tString FIRSTNAME = rs.getString(\"FIRSTNAME\");\r\n\t\t \tString LASTNAME = rs.getString(\"LASTNAME\");\r\n\t\t \tString REGION = rs.getString(\"REGION\");\r\n\t\t \tString ADDRESS = rs.getString(\"ADDRESS\");\r\n\t\t \r\n\t\t \tSystem.out.println(\"(dbReadThrough) Found customer: \" + ID + \" -- \" + FIRSTNAME + \" \" + LASTNAME + \" \" + REGION + \" \" + ADDRESS);\r\n\t\t \t\t\t \t\r\n\t \t\tmc.setID(ID);\r\n\t \t\tmc.setFIRSTNAME(FIRSTNAME);\r\n\t \t\tmc.setLASTNAME(LASTNAME);\r\n\t \t\tmc.setREGION(REGION);\r\n\t \t\tmc.setADDRESS(ADDRESS); \t\r\n\t\t \t\t\t \t\r\n\t\t }\r\n\t\t \r\n\t\t System.out.println(\"(dbReadThrough) Writing object for customer \" + key + \" to the cache ... \");\r\n\t return mc;\r\n\t\t\r\n\t\t} finally {\r\n\t\t\tconnect.close();\r\n\t\t}\r\n\r\n\t}", "public IndexedDiskCache(final IndexedDiskCacheAttributes cattr, final IElementSerializer elementSerializer)\r\n {\r\n super(cattr);\r\n\r\n setElementSerializer(elementSerializer);\r\n\r\n this.cattr = cattr;\r\n this.maxKeySize = cattr.getMaxKeySize();\r\n this.isRealTimeOptimizationEnabled = cattr.getOptimizeAtRemoveCount() > 0;\r\n this.isShutdownOptimizationEnabled = cattr.isOptimizeOnShutdown();\r\n this.logCacheName = \"Region [\" + getCacheName() + \"] \";\r\n this.diskLimitType = cattr.getDiskLimitType();\r\n // Make a clean file name\r\n this.fileName = getCacheName().replaceAll(\"[^a-zA-Z0-9-_\\\\.]\", \"_\");\r\n this.keyHash = createInitialKeyMap();\r\n this.queuedPutList = new ConcurrentSkipListSet<>(Comparator.comparing(ded1 -> ded1.pos));\r\n this.recycle = new ConcurrentSkipListSet<>();\r\n\r\n try\r\n {\r\n initializeFileSystem(cattr);\r\n initializeKeysAndData(cattr);\r\n\r\n // Initialization finished successfully, so set alive to true.\r\n setAlive(true);\r\n log.info(\"{0}: Indexed Disk Cache is alive.\", logCacheName);\r\n\r\n // TODO: Should we improve detection of whether or not the file should be optimized.\r\n if (isRealTimeOptimizationEnabled && !keyHash.isEmpty())\r\n {\r\n // Kick off a real time optimization, in case we didn't do a final optimization.\r\n doOptimizeRealTime();\r\n }\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Failure initializing for fileName: {1} and directory: {2}\",\r\n logCacheName, fileName, this.rafDir.getAbsolutePath(), e);\r\n }\r\n }", "private static Cache<DHTKey, LruRetentionInfo> buildEmptyCacheWithCapacity(long capacityBytes) {\n return Caffeine.newBuilder().weigher(cacheWeigher).maximumWeight(capacityBytes).recordStats().build();\n }" ]
[ "0.63448673", "0.6285502", "0.59915817", "0.5910415", "0.58117515", "0.58004594", "0.5781948", "0.57437354", "0.56377363", "0.5585199", "0.5583977", "0.55822456", "0.5563239", "0.5558014", "0.5556002", "0.55532384", "0.5532388", "0.5503672", "0.54797894", "0.54765755", "0.5465782", "0.5449267", "0.54394716", "0.5425865", "0.5425265", "0.54213625", "0.53748065", "0.5363339", "0.5358229", "0.5351592", "0.53226566", "0.5316071", "0.53139544", "0.52949166", "0.5271373", "0.5263739", "0.5249101", "0.52488095", "0.5241834", "0.5240453", "0.5240073", "0.52257365", "0.52254826", "0.5218678", "0.5194184", "0.51915807", "0.51875854", "0.5187474", "0.516178", "0.5138211", "0.51181394", "0.51175004", "0.5087309", "0.5065047", "0.5061733", "0.503358", "0.5027188", "0.50127965", "0.5010985", "0.50013113", "0.4977421", "0.4974425", "0.49733815", "0.49623892", "0.49620607", "0.49517393", "0.49420646", "0.49390823", "0.4936969", "0.49281475", "0.49264282", "0.49229965", "0.49017373", "0.48974288", "0.4897179", "0.48932186", "0.48797417", "0.48757404", "0.48708013", "0.48645625", "0.48434463", "0.4843195", "0.48408797", "0.4837759", "0.4837713", "0.48325497", "0.48225537", "0.48195094", "0.48028988", "0.47938254", "0.47929022", "0.47896174", "0.4785991", "0.4779171", "0.47716823", "0.4771213", "0.4763418", "0.4759411", "0.47479886", "0.47473994" ]
0.6905307
0
Removes a single item by name.
@Override public void remove( final K name ) { this.getCacheControl().remove( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(String name);", "void remove(String name);", "void remove(String name);", "void remove(String name) throws Exception;", "public static void removeItem(String itemName)\n {\n inventory.remove(getItem(itemName));\n }", "public Objects removeObject(String itemName)\n {\n return items.remove(itemName);\n }", "boolean remove(String name);", "public abstract boolean remove(String name);", "Node safeRemoveNamedItem(String name) {\n return internalRemoveNamedItem(name, false);\n }", "public void remove(final String name) {\r\n\t\tremove(names.indexOf(name));\r\n\t}", "public T remove(String name) {\n\t\tint idx = indexOf(name, 0);\n\t\tif (idx != -1)\n\t\t\treturn remove(idx);\n\t\treturn null;\n\t}", "public Item dropItem(String itemName) {\n Item item = items.remove(itemName);\n if(item != null) {\n currentRoom.addItem(item);\n }\n return item;\n }", "public void removeByname(java.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public void removeItem(int id);", "public void remove(ResourceLocation name) {\n data.remove(name.toString());\n }", "public Node removeNamedItem(String name)\n throws DOMException {\n return internalRemoveNamedItem(name, true);\n }", "public void remove(String name) {\n\t\tfor (int i = vibrationList.size() - 1; i >= 0; i--) {\r\n\t\t\tVibration vibration = vibrationList.get(i);\r\n\t\t\tif(vibration.getName().equals(name)){\r\n\t\t\t\tvibrationList.remove(vibration);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public UUID remove(String name) {\n\t\tUUID id = getId(name);\n\t\tif (id != null) {\n\t\t\tnames.remove(name);\n\t\t\tE t = dict.get(id);\n\t\t\tif (t != null) {\n\t\t\t\tlist.remove(t);\n\t\t\t} else {\n\t\t\t\tExits.Log.logp(Exits.Level.Warning, Exits.Common.Name, Exits.Common.Warning, \"Failed to remove unknown id {0}\", id);\n\t\t\t}\n\t\t\tdict.remove(id);\n\t\t\tConfig.serialize();\n\t\t}\n\t\treturn id;\n\t}", "public Object removeItem (String key);", "@Override\n\tpublic Object remove(String name) {\n\t\tMap<String, Object> scope = threadLocal.get();\n\t\treturn scope.remove(name);\n\t}", "void removeMenuItem(int itemId, String itemName);", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "void removePathItem(String name);", "public void remove(String name)\n/* */ {\n/* 1177 */ for (int i = 0; i < this.attributes.size(); i++) {\n/* 1178 */ XMLAttribute attr = (XMLAttribute)this.attributes.elementAt(i);\n/* 1179 */ if (attr.getName().equals(name)) {\n/* 1180 */ this.attributes.removeElementAt(i);\n/* 1181 */ return;\n/* */ }\n/* */ }\n/* */ }", "public boolean remove(final String queueName, final String item);", "public native String removeItem(Number index);", "Object removeTemp(String name);", "public void removeEntry(String name) throws NotPresentException {\n\t\tString key = name.toUpperCase();\n\t\trequireKeyExists(key);\n\t\tentries.remove(key);\n\t}", "protected abstract void removeItem();", "@Override\r\n\tpublic void deleteByName(String name) {\n\t\tint del = name.toUpperCase().charAt(0) - 'A';\r\n\t\tfor (int i = 0; i < array[del].size(); i++) {\r\n\t\t\tif (array[del].get(i).name == name) {\r\n\t\t\t\tarray[del].remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "public Item pickUpItem(String itemName) {\n Item item = currentRoom.removeItem(itemName);\n if(item != null) {\n items.put(item.getName(), item);\n }\n return item;\n }", "public void deleteItem(String nomItem) {\r\n \t\titems.removeItem(nomItem);\r\n \t}", "public void remove(String name) {\n jobs.remove(name);\n }", "@Override\n\tpublic void deleteByName(String name) {\n\t\t\n\t}", "public void deleteByName(String name){\r\n repository.deleteByName(name);\r\n }", "private void removeItemFromList(String nameStr) {\n for (int i = 0; i < ingredientList.size(); i++) {\n if (ingredientList.get(i).getName().toLowerCase().equals(nameStr.toLowerCase())) {\n ingredientList.remove(i);\n return;\n }\n }\n }", "public void remove(String item) {\n synchronized(this) {\n _treeSet.remove(item);\n }\n }", "private void remove(GroceryItem itemObj, String itemName, double itemPrice) {\n\t\tif (!bag.remove(itemObj)) {\n\t\t\tSystem.out.println(\"Unable to remove, this item is not in the bag.\");\n\t\t} else {\n\t\t\tSystem.out.println(itemName + \" \" + itemPrice + \" removed.\");\n\t\t}\n\t}", "private void remove(String name) {\n if (team.getPokemon(name) != null) {\n System.out.println(\"You are going to remove \" + name);\n System.out.println(\"This process is inrevertable, are you sure? [y/n]\");\n String command = input.next();\n if (command.equals(\"y\") || command.equals(\"yes\")) {\n team.remove(name);\n System.out.println(name + \" has been removed form your team\");\n System.out.println(\"You currently have \" + team.count() + \" pokemons in your team\");\n }\n } else {\n System.out.println(name + \" is not found within your team\");\n }\n }", "public static Object remove(String name) {\n PersistentRootEntry entry = (PersistentRootEntry)Native.getPersistentMemoryTable();\n while (entry != null) {\n String ename = entry.name;\n if (ename != null && ename.equals(name)) {\n Object o = entry.value;\n entry.name = null;\n entry.value = null;\n return o;\n }\n entry = entry.next;\n }\n return null;\n }", "public CommandBase removeCmd(String name){\n\t\treturn cmds.remove(name.toLowerCase());\n\t}", "public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}", "public void removeMember (String name) {\r\n\t\tgetMemberList().remove(name);\r\n\t\tsaveMemberList();\r\n\t}", "public void delete(String name)\r\n\t{\r\n\t\tOntResource res = this.obtainOntResource(name);\r\n\t\tres.remove();\r\n\t}", "public void deleteItem(String string) {\n itemArrayList.remove(string);\n saveArrayList(itemArrayList, \"itemArrayList\");\n }", "public void remove(String name) throws PropException {\n if (lists.contains(name)) {\n lists.remove(name);\n } else throw new PropException(ErrorString.UNEXISTING_LIST);\n }", "public void removeItem(Item item) {\n _items.remove(item);\n }", "public void removeItem(String itemName, int Qty) {\n if (checkExist(itemName, Qty) == true) {\n int i;\n //System.out.println(checkExist(itemName));\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) removedItem.get(\"Amount\"));\n removedItem.put(\"Amount\", a - Qty);\n\n if (a - Qty < 1) {\n removedItem.put(\"Existence\", \"N\");\n }\n }\n }\n } else {\n System.out.println(\"Item \" + itemName + \" is not available.\");\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n System.out.println(\"Since item \" + itemName + \"'s amout is not enough, try less amount.\");\n }\n }\n }\n outPutFile();\n }", "public void remove(int index) {\n items.remove(index);\n }", "void removeClass(final String name);", "public void removeName(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$8, i);\n }\n }", "public void rmItem(Item item) {\n\t\titems.remove(item);\n\t}", "public void removeGroceryItem(String item){\n int position = findItem(item);\n if(position > 0)\n myGrocery.remove(position);\n }", "public void removeName(Name arg0) {\n\n\t}", "public void deleteItem(int index) {\n this.items.remove(index);\n }", "public void removeItem(Item e) {\n\t\tif (items.contains(e))\n\t\t\titems.remove(e);\n\t}", "@Override\n public Item removeItem(int itemNum) throws VendingMachinePersistenceException {\n loadItemFile();\n Item itemToRemove = itemMap.remove(itemNum);\n writeItemFile();\n\n return itemToRemove;\n }", "public void takeItem(String name, Player player)\n {\n int i=items.size()-1;\n while(i>=0){\n if(items.get(i).getName().equals(name))\n {\n player.addItem(items.get(i));\n System.out.println(\"You take the \"+items.get(i).getName()+\"!\");\n items.remove(i);\n return;\n }\n i--;\n }\n System.out.println(\"Action failed. Review your input and try again!\");\n }", "Node safeRemoveNamedItemNS(String namespaceURI, String name) {\n return internalRemoveNamedItemNS(namespaceURI, name, false);\n }", "public void remove(TradeItem newItem) {\n items.remove(newItem);\n }", "public void delete( String name) throws PhileNotFoundException {\n\t\tif (!fileList.containsKey(name)) {\n\t\t\tthrow new PhileNotFoundException(\"File doesn't exist\");\n\t\t}\n\t\telse {\n\t\t\tPhile phile = fileList.get(name);\n\t\t\tfileList.remove(name);\n\t\t\ttotalNumberOfFiles--;\n\t\t\tif (openFiles.contains(phile)) {\n\t\t\t\topenFiles.remove(phile);\n\t\t\t\tnumberOfOpenFiles--;\n\t\t\t}\n\t\t}\n }", "public String DELETE(String name){\n this.clientData.remove(name);\n\n return \"OK\";\n }", "public Weapon removeWeaponByName(String weaponName) {\n\n for (Weapon w : weaponList) {\n if (w.getWeaponName().equals(weaponName)) {\n weaponList.remove(w);\n return w;\n }\n }\n\n throw new RuntimeException(\"This weapon is not present in the weaponList\");\n\n }", "public Himmelskoerper remove(String name) {\r\n\t\tHimmelskoerper himmelskoerper = null;\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tif (hTemp.getName().equals(name)) {\r\n\t\t\t\thimmelskoerper = hTemp;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (himmelskoerper != null) {\r\n\t\t\tthis.aktuelleLast -= this.ladung.get(himmelskoerper).getGewicht();\r\n\t\t\tthis.ladung.remove(himmelskoerper);\r\n\t\t}\r\n\r\n\t\treturn himmelskoerper;\r\n\t}", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }", "@Override\n\tpublic void delete(String name) {\n\t\tdocument.removeChild(document.getElementsByTagName(name).item(0));\n\t\tsaveDocument();\n\t}", "public void removeRoomItem(Item seekItem )\n {\n // Gets the iterator of the currentRoom's item arraylist.\n for(Iterator<Item> it = currentRoom.getInventory().getItems().iterator();it.hasNext();){\n\n Item item = it.next();\n\n // if seekItem is found in the currentRoom's item arraylist.\n if(item.getName().equals(seekItem.getName())){\n\n it.remove(); // removes the item.\n }\n }\n }", "@Override\n\tpublic void remove(String name, Serializable key) throws CacheException {\n\t\t\n\t}", "public final void removeFromChest(String name) {\n chestCharacters.remove(name);\n }", "public void removeItemAt(int theIndex) {\n\t\tList<Item> keys = new ArrayList<Item>(inventory.keySet());\t\n\t\tItem item = keys.get(theIndex);\n\t\tinventory.remove(item);\t\t\n\t}", "@Override\n\tpublic void delete(String name) {\n\t}", "public void removeItem(int idx)\n\t{\n\t\titemList.remove(idx);\n\t\t\n\t}", "public void removePlayerItem(Item seekItem )\n {\n // Gets the iterator of the currentRoom's item arraylist.\n for(Iterator<Item> it = getPerson(PLAYER).getInventory().getItems().iterator();it.hasNext();){\n\n Item item = it.next();\n\n // if seekItem is found in the currentRoom's item arraylist.\n if(item.getName().equals(seekItem.getName())){\n\n it.remove(); // removes the item.\n }\n }\n }", "void removeMember(Item item) throws AccessManagementException;", "public Campus removeByname(java.lang.String name)\n\t\tthrows NoSuchCampusException;", "public void removeItem() {\n if (this.size() == 0) {\n System.out.println(\"Empty List.\");\n return;\n }\n this.print();\n String code;\n System.out.println(\"Enter the code of removed item: \");\n code = sc.nextLine().toUpperCase();\n int pos = find(code);\n if (pos < 0) {\n System.out.println(\"This code does not exist.\");\n } else {\n this.remove(pos);\n System.out.println(\"The item \" + code + \" has been removed.\");\n\n }\n }", "public Object removeValue(final String name) {\r\n return this.params.remove(name);\r\n }", "public void removeItem(int n)\n {\n items.remove(n);\n }", "public void searchAndRemove(ArrayList<String> list, String name) {\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (name.equals(list.get(i))) {\n\t\t\t\tlist.remove(i);\n\t\t\t}\n\t\t}\n\n\t}", "public void delete(String name) {\n\t\t\tset(name, \"-delete-\", -30);\n\t\t}", "void remove(String group, String name);", "public void deleteStock(String name){\n Log.d(TAG, \"deleteStock: \"+name);\n int cnt = database.delete(TABLE_NAME, STOCK_NAME + \" = ?\", new String[]{name});\n Log.d(TAG, \"deleteStock: \"+cnt);\n }", "public void remove(String key) throws IOException;", "void remove(String id);", "void remove(String id);", "void remove(String id);", "public void removeItem(Item item)\n\t{\n\t\tinventory.remove(item);\n\t}", "public Object remove(String key);", "public void deleteItem(String itemName) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSession session = factory.openSession();\r\n\r\n\t\t try\r\n\t\t {\r\n\t\t session.beginTransaction();\r\n\t\t Query query = session.createQuery(\"delete from Items where itemName = :itemName\");\r\n\t\t query.setParameter(\"itemName\", itemName);\r\n\t\t int id1= query.executeUpdate();\r\n\t\t if(id1==0)\r\n\t\t {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The Item Name isn't correct, you didn't delete anything\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t }\r\n\t\t session.getTransaction().commit();\r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t}\r\n\t\t } \r\n\t}", "@Override\n\tpublic void remove(String identifier) {\n\t}", "void removeCartItem(int cartItemId);", "public void removeType(String name) {\n String nameInLowerCase = Ascii.toLowerCase(name);\n Preconditions.checkState(!registered);\n Preconditions.checkArgument(types.containsKey(nameInLowerCase), \"missing key: %s\", name);\n types.remove(nameInLowerCase);\n }", "public boolean deleteItem(int index);", "@Override\n\t\tpublic Object removeAttribute(String name) {\n\t\t\treturn null;\n\t\t}", "@Request(id = 23, retryable = false, response = ResponseMessageConst.BOOLEAN)\n Object remove(String name, Data key, @Nullable Data currentValue, int completionId);", "@Override\r\n\tpublic void removeItem(String absPath) throws VersionException,\r\n\t\t\tLockException, ConstraintViolationException, AccessDeniedException,\r\n\t\t\tRepositoryException {\n\t\t\r\n\t}", "public void remove(int index)\n {\n numItems--;\n items[index] = null;\n }", "public E removeNonPersistent(String name) {\n\t\tUUID id = getId(name);\n\t\tE entry = null;\n\t\tif (id != null) {\n\t\t\t// remove enabled entry\n\t\t\tnames.remove(name);\n\t\t\tentry = dict.get(id);\n\t\t\tif (entry != null) {\n\t\t\t\tlist.remove(entry);\n\t\t\t}\n\t\t\tdict.remove(id);\n\t\t} else {\n\t\t\t// find disabled entry and remove it\n\t\t\tfor (Entry<UUID, E> pair : dict.entrySet()) {\n\t\t\t\tif (name.equals(pair.getValue().getName())) {\n\t\t\t\t\tid = pair.getKey();\n\t\t\t\t\tentry = pair.getValue();\n\t\t\t\t\tif (entry != null) {\n\t\t\t\t\t\tlist.remove(entry);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (id != null) {\n\t\t\t\tdict.remove(id);\n\t\t\t}\n\t\t}\n\t\treturn entry;\n\t}" ]
[ "0.8087199", "0.7977593", "0.7977593", "0.7748025", "0.77199113", "0.7575787", "0.7517576", "0.74688673", "0.7266344", "0.72420466", "0.72228473", "0.7100841", "0.7048764", "0.6978006", "0.69505304", "0.69309044", "0.6882004", "0.688004", "0.68463576", "0.6739348", "0.6739218", "0.670115", "0.668993", "0.6612378", "0.65943176", "0.6577412", "0.65716153", "0.65391606", "0.653208", "0.65303636", "0.651034", "0.650583", "0.649144", "0.6466289", "0.6454428", "0.64499426", "0.6445112", "0.6444685", "0.6426766", "0.64195096", "0.64003664", "0.63966584", "0.6382217", "0.6380779", "0.6374923", "0.63744414", "0.6353521", "0.6317729", "0.6308392", "0.63081217", "0.6270441", "0.62627727", "0.62586504", "0.62506974", "0.62478465", "0.6220426", "0.6217045", "0.62063986", "0.6195489", "0.6157455", "0.61497784", "0.6143178", "0.61326367", "0.6132055", "0.6130478", "0.61301494", "0.61258703", "0.61203504", "0.6120335", "0.61187166", "0.6114998", "0.6103873", "0.6100572", "0.60892284", "0.6082351", "0.60807574", "0.60686195", "0.60378695", "0.6035563", "0.6034325", "0.6020385", "0.60112154", "0.6009053", "0.6003113", "0.59930825", "0.5992775", "0.5992775", "0.5992775", "0.5989674", "0.59874064", "0.59731376", "0.5968508", "0.5964893", "0.5961827", "0.5955748", "0.5952702", "0.5951849", "0.59504706", "0.5950408", "0.5933112" ]
0.6232476
55
Reset attributes for a particular element in the cache. NOTE: this method is currently not implemented.
@Override public void resetElementAttributes( final K name, final IElementAttributes attr ) { final ICacheElement<K, V> element = this.getCacheControl().get( name ); if ( element == null ) { throw new InvalidHandleException( "Object for name [" + name + "] is not in the cache" ); } // Although it will work currently, don't assume pass by reference here, // i.e. don't do this: // element.setElementAttributes( attr ); // Another reason to call put is to force the changes to be distributed. put( element.getKey(), element.getVal(), attr ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void resetAttribute() {\n\t\t}", "public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}", "void resetCache();", "@Override\n\t\tprotected void resetAttribute(SVGItem item) {\n\t\t}", "public final synchronized void removeAllAttributes() {\n\t if ( m_cache != null)\n\t \tm_cache.clear();\n\t m_cache = null;\n\t}", "@Override\n\t\tprotected void resetAttribute() {\n\t\t\tsuper.resetAttribute();\n\t\t\tmissing = false;\n\t\t\tmalformed = false;\n\t\t}", "void resetCacheCounters();", "private void reset()\r\n {\r\n log.info(\"{0}: Resetting cache\", logCacheName);\r\n\r\n try\r\n {\r\n storageLock.writeLock().lock();\r\n\r\n if (dataFile != null)\r\n {\r\n dataFile.close();\r\n }\r\n\r\n final File dataFileTemp = new File(rafDir, fileName + \".data\");\r\n Files.delete(dataFileTemp.toPath());\r\n\r\n if (keyFile != null)\r\n {\r\n keyFile.close();\r\n }\r\n final File keyFileTemp = new File(rafDir, fileName + \".key\");\r\n Files.delete(keyFileTemp.toPath());\r\n\r\n dataFile = new IndexedDisk(dataFileTemp, getElementSerializer());\r\n keyFile = new IndexedDisk(keyFileTemp, getElementSerializer());\r\n\r\n this.recycle.clear();\r\n this.keyHash.clear();\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Failure resetting state\", logCacheName, e);\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n }", "public void reset() {\n\t\tfor (Entry<TileCoordinate, DijkstraNode> entry: this.cache.entrySet()) {\n\t\t\tentry.getValue().reset();\n\t\t}\n\t}", "@Override\n public void removeAttributes()\n {\n attributes.clear();\n }", "public void clearAttributes() {\n\t\t// Clear all attributes\n\t\tfor (BusinessObject child : getChildren()) {\n\t\t\tif (child.isAttribute()) {\n\t\t\t\tchild.clear();\n\t\t\t}\n\t\t}\n\t}", "private void resetCache () {\n synchronized (this) {\n resourcesCache = null;\n }\n support.firePropertyChange(PROP_RESOURCES, null, null);\n }", "public void resetCache() {\n\t\tlogicClassNames = new HashMap<String, String>();\n\t}", "public synchronized static void resetCache() {\n prefixes = null;\n jsonldContext = null;\n }", "private void invalidateCache() {\n\t}", "public abstract void clearCache();", "public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix.clear();\r\n \t}", "public void clearAttributeValues(String attrName) {\n NST attrDataNST = getAttrDataNST(attrName); // throws error if not found\n attrDataNST.deleteRows();\n }", "protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }", "public void dereferenceCache() {\n this.cache = null;\n }", "@Override\n\tpublic void removeAttribute(String arg0) {\n\n\t}", "@Override\n\tpublic void removeAttribute(String arg0) {\n\t\t\n\t}", "@Override\n\tpublic void removeAttribute(String arg0) {\n\t}", "public void reset() {\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n CacheData<K, V> pair = getCacheData(i);\r\n if (pair != null) {\r\n pair.reset();\r\n }\r\n }\r\n }", "public final synchronized Object removeAttribute(String name) {\n\t if ( m_cache == null)\n\t \treturn null;\n\t return m_cache.remove(name);\n\t}", "public void flushAttributeWriteCache() throws G2AccessException;", "public void clearCache();", "void invalidateCache();", "void clearCache();", "void clearCache();", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n int index = 0;\n for (int i = 0; i < _length; i++) {\n _data[index++] = atts.getURI(i);\n _data[index++] = atts.getLocalName(i);\n _data[index++] = atts.getQName(i);\n _data[index++] = atts.getType(i);\n _data[index++] = atts.getValue(i);\n index++;\n _toIndex[i] = false;\n _alphabets[i] = null;\n }\n }\n }", "public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }", "@Override\n public void clearCache() {\n }", "public void deleteAllAttributes() {\n Iterator attrNameIterator = getAttributeNames().iterator();\n while (attrNameIterator.hasNext()) {\n String attrName = (String) attrNameIterator.next();\n deleteAttribute(attrName);\n }\n }", "@Override\n\t\tpublic Object removeAttribute(String name) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic void removeAttribute(String name) {\n\t\t\t\n\t\t}", "public AttributeSet() {\n\n elements = new Hashtable();\n }", "public void changeAttrName() {\r\n }", "@Override\n\tpublic void removeAttribute(String arg0, int arg1) {\n\n\t}", "public boolean resetCache(String cacheKey) throws MediaAlbumException;", "public void setAttributes(org.xml.sax.Attributes r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void\");\n }", "public void reset() {\n noIndex= false;\n noFollow= false;\n noCache= false;\n baseHref= null;\n }", "private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }", "public void removeAttribute(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.removeAttribute(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.removeAttribute(int):void\");\n }", "@Override\r\n\t\tpublic Attr removeAttributeNode(Attr oldAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\tpublic <E> Attr<E> remove(String attrName) {\n\t\treturn null;\n\t}", "public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}", "@Override\n public IElementAttributes getElementAttributes( final K name ) throws CacheException\n {\n IElementAttributes attr = null;\n\n try\n {\n attr = this.getCacheControl().getElementAttributes( name );\n }\n catch ( final IOException ioe )\n {\n throw new CacheException(\"Failure getting element attributes\", ioe);\n }\n\n return attr;\n }", "public void reclaim(final AttributeSet a) {\n }", "@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}", "@Override\n\tpublic void removeAttribute(String name) {\n\t\t\n\t}", "private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}", "public void clearCache() {\n\tmyCachedCrum = null;\n\tmyCachedRoot = null;\n\tmyCachedPath = MuSet.make();\n/*\nudanax-top.st:13116:CanopyCache methodsFor: 'operations'!\n{void} clearCache\n\t\"Clear the cache because the canopy has\n\t changed. This ought to destroy the cachedPath. \n\t This must be cleared after every episode!!!!!!\"\n\tmyCachedCrum _ NULL.\n\tmyCachedRoot _ NULL.\n\tmyCachedPath _ MuSet make.!\n*/\n}", "@Override\r\n\t\tpublic Attr setAttributeNode(Attr newAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void RemoveAttributeByIndex(int i){\r\n\t\tthis.attributes.remove(i);\t\r\n\t}", "public void reset() {\n\t\tlocalName = \"\";\n\t\turi = \"\";\n\t\tdata = null;\n\t\tchars = null;\n\t\tcharCount = 0;\n\t\tline = 0;\n\t\tcolumn = 0;\n\t\tleaf = true;\n\t}", "public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }", "AdditionalAttributes removeAttribute(String name);", "public Builder clearAttributes() {\n if (attributesBuilder_ == null) {\n attributes_ = null;\n onChanged();\n } else {\n attributes_ = null;\n attributesBuilder_ = null;\n }\n\n return this;\n }", "public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }", "StoreResponse set(CACHE_ELEMENT e);", "public void removeAllAttributeMaps()\n {\n checkState();\n super.removeAllAttributeMaps();\n }", "public void removeAttribute(TLAttribute attribute);", "void setAttributes(String attributeName, String attributeValue);", "public Builder clearSetAttribute() {\n if (setAttributeBuilder_ == null) {\n setAttribute_ = alluxio.proto.journal.File.SetAttributeEntry.getDefaultInstance();\n onChanged();\n } else {\n setAttributeBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x08000000);\n return this;\n }", "public void removeAttribute(String key) {\n attributes.remove(key);\n }", "@Override\n protected void onNullNonKeyAttribute(String attributeName) {\n if (getLocalSaveBehavior() == DynamoDBMapperConfig.SaveBehavior.UPDATE_SKIP_NULL_ATTRIBUTES\n || getLocalSaveBehavior() == DynamoDBMapperConfig.SaveBehavior.APPEND_SET) {\n return;\n } else {\n /* Delete attributes that are set as null in the object. */\n getAttributeValueUpdates()\n .put(attributeName,\n new AttributeValueUpdate()\n .withAction(\"DELETE\"));\n }\n }", "private void clearCache() {\r\n for (int i = 1; i < neurons.length; i++) {\r\n for (int j = 0; j < neurons[i].length; j++) {\r\n neurons[i][j].clearCache();\r\n }\r\n }\r\n }", "public void setCached() {\n }", "@Override\n\tpublic void setAttributes(AttributeMap arg0) {\n\t\tdefaultEdgle.setAttributes(arg0);\n\t}", "public ResetInstanceAttributeResponse resetInstanceAttribute(ResetInstanceAttribute resetInstanceAttribute) {\n \t\treturn null;\r\n \t}", "public JsStatement removeAttr(String key)\n\t{\n\t\tchain(AttributesHelper.removeAttr(key));\n\t\treturn this;\n\t}", "private void resetMarked() {\n if(!data.isEmpty()) {\n data.getFirst().reset();\n }\n for(IoBuffer buf : resetCache) {\n buf.reset();\n data.addFirst(buf);\n }\n resetCache.clear();\n }", "private void setState(Element element, State state)\n\t{\n\t\tif (element != null) {\n\t\t\tif (state == State.FULL || state == null)\n\t\t\t\telement.removeAttribute(STATE_ATTR_NAME);\n\t\t\telse\n\t\t\t\telement.setAttribute(STATE_ATTR_NAME, state.toString());\n\t\t}\n\t}", "private void copyAttributesToElement(NamedNodeMap attributes, Element element) {\n for (int i = 0; i < attributes.getLength(); ++i) {\n Attr toCopy = (Attr) attributes.item(i);\n element.setAttribute(toCopy.getName(), toCopy.getValue());\n }\n }", "public void unsetId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ID$6);\n }\n }", "public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}", "public void unsetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ID$24);\n }\n }", "public void clearCache() {\n reflectorCache.clear();\n }", "private void removeFromCache() {\n int i = 0;\n int removeItem = random.nextInt(cache.size());\n for (ScopePath className : cache.keySet()) {\n if (i == removeItem) {\n cache.remove(className);\n break;\n }\n ++i;\n }\n }", "public void cleanDescriptorCache() {\n _descriptorCache = new DescriptorCacheImpl();\n }", "public Result removeAttr(TypedKey<?> key) {\n return withAttrs(attrs.remove(key));\n }", "StoreResponse replace(CACHE_ELEMENT e);", "public static void clearCache() {\n\t\tclassNamesToPersistIds = null;\n\t\tclassesToPersistIds = null;\n\t}", "public void unsetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ID$12);\n }\n }", "public void unsetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ID$12);\n }\n }", "public void removeAttribute(Execution exec, String name);", "@Override\n public AttributeList setAttributes(AttributeList attributes) {\n return null;\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "boolean renameElementAttribute(XmlElement element, String attributeName) {\n\t\tfor (int i = 0; i < element.getAttributes().size(); i++) {\n\t\t\tAttribute attribute = element.getAttributes().get(i);\n\t\t\tif (attributeName.equals(attribute.getName())) {\n\t\t\t\telement.getAttributes().set(i, modelProperties.renameAttribute(element.getAttributes().get(i)));\n\t\t\t\telement.getAttributes().set(i, mapperProperties.renameAttribute(element.getAttributes().get(i)));\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "protected void resetActionsCache() {\r\n\t\tactionsCache.clear();\r\n\t}", "private void storeAttribute(final Attr attribute) {\n if (attribute.getNamespaceURI() != null\r\n && attribute.getNamespaceURI().equals(\r\n XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) {\r\n // Default namespace xmlns=\"uri goes here\"\r\n if (attribute.getNodeName().equals(XMLConstants.XMLNS_ATTRIBUTE)) {\r\n putInCache(DEFAULT_NS, attribute.getNodeValue());\r\n } else {\r\n // The defined prefixes are stored here\r\n putInCache(attribute.getLocalName(), attribute.getNodeValue());\r\n }\r\n }\r\n }", "@Override\n\tpublic Object getAttribute(String arg0, int arg1) {\n\t\treturn null;\n\t}", "public void updateDietParametersCache()\n {\n _dietParameters = null;\n getDietParameters();\n }", "public void unsetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(METADATA$0, 0);\n }\n }", "public void removeAttribute(String nodeType, int index)\r\n {\r\n\tfinal NodeTypeHolder nt = ntMap.get(nodeType);\r\n\tfinal Attributes attrs = nt.getAttributes();\r\n\tfinal String fieldName = attrs.getAttribute(index).getName();\r\n\r\n\tattrs.remove(index);\r\n\r\n\t// Synchronize all Nodes of this type to remove the field.\r\n\tfor (final Node node : nt.getNodes())\r\n\t node.removeValue(index);\r\n\r\n\t// Now remove AttributeMetaInfo entries (if any) for the\r\n\t// specified Attribute.\r\n\tnt.clearMetaInfo(fieldName);\r\n }", "AgentPolicyBuilder setClearCache(boolean clearCache);", "private void clearCache(T Cache) {\r\n\t\t\r\n\t\tcache.clear();\r\n\t\t\r\n\t}", "public void reset () {\n\t\topen();\n\t\ttry {\n\t\t\tcontainer.setLength(0);\n\t\t\treservedBitMap.setLength(0);\n\t\t\tupdatedBitMap.setLength(0);\n\t\t\tfreeList.setLength(0);\n\t\t\tsize = 0;\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}" ]
[ "0.688685", "0.6458088", "0.63815105", "0.6331642", "0.6178327", "0.6165513", "0.60072106", "0.60034823", "0.59229136", "0.5883789", "0.57919836", "0.5761558", "0.5741206", "0.5686023", "0.5569992", "0.55002946", "0.5495542", "0.54740447", "0.5473821", "0.54565376", "0.54510385", "0.5450466", "0.54468095", "0.54323345", "0.5421962", "0.5420941", "0.5403683", "0.53926873", "0.5374172", "0.5374172", "0.5371466", "0.5365672", "0.5358475", "0.535795", "0.5341326", "0.53349745", "0.53286767", "0.53157866", "0.53111315", "0.5286807", "0.5285355", "0.52682817", "0.5256441", "0.5255857", "0.52538687", "0.52496046", "0.52490675", "0.5237798", "0.52366847", "0.52314824", "0.52273256", "0.5223938", "0.52089596", "0.52037996", "0.51994485", "0.51919806", "0.51877046", "0.51780695", "0.51733387", "0.51495594", "0.51441276", "0.5132885", "0.5125683", "0.512557", "0.51147825", "0.5105473", "0.5103338", "0.50926936", "0.50887275", "0.50834423", "0.50679374", "0.5058581", "0.5049238", "0.5042491", "0.5037578", "0.5032488", "0.5023243", "0.50182307", "0.50156456", "0.5012844", "0.5005914", "0.4991017", "0.49867707", "0.4974933", "0.4966633", "0.49641204", "0.49641204", "0.4958295", "0.49568012", "0.49550155", "0.49520168", "0.49509537", "0.4945315", "0.4942758", "0.4938282", "0.49348208", "0.49343237", "0.49341735", "0.4930961", "0.4917745" ]
0.7497461
0
GetElementAttributes will return an attribute object describing the current attributes associated with the object name. The name object must override the Object.equals and Object.hashCode methods.
@Override public IElementAttributes getElementAttributes( final K name ) throws CacheException { IElementAttributes attr = null; try { attr = this.getCacheControl().getElementAttributes( name ); } catch ( final IOException ioe ) { throw new CacheException("Failure getting element attributes", ioe); } return attr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getAttribute(String name);", "public String getAttribute(String name);", "Attributes getAttributes();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "IAttributes getAttributes();", "public HbAttributeInternal getAttribute(String name);", "public AttributeList getAttribute(String name) {\n for (AttributeList a = atts ; a != null ; a = a.next) {\n if (a.name.equals(name)) {\n return a;\n }\n }\n return null;\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public VAttribute getAttribute(String name) throws VlException\n {\n if (name==null)\n return null;\n\n // Check Non-mutable attributes first! \n VAttribute attr=this.getNonmutableAttribute(name); \n \n if (attr!=null)\n return attr; \n\n // ===\n // VAttribute Interface for remote invokation\n // ===\n else if (name.compareTo(ATTR_ISCOMPOSITE) == 0)\n return new VAttribute(name, (this instanceof VComposite));\n else if (name.compareTo(ATTR_RESOURCE_CLASS) == 0)\n return new VAttribute(name, this.getClass().getCanonicalName());\n \n else if (name.compareTo(ATTR_RESOURCE_TYPES) == 0)\n {\n if (this instanceof VComposite)\n {\n String types[]=((VComposite)this).getResourceTypes(); \n StringList list=new StringList(types);\n return new VAttribute(name,list.toString(\",\")); \n }\n else\n return null; \n } \n else if (name.compareTo(ATTR_ISEDITABLE) == 0)\n {\n if (this instanceof VEditable)\n return new VAttribute(name,((VEditable)this).isEditable());\n else\n return new VAttribute(name,false); \n }\n else if (name.compareTo(ATTR_ATTRIBUTE_NAMES) == 0)\n {\n StringList attrL=new StringList(this.getAttributeNames());\n return new VAttribute(name,attrL.toString(\",\"));\n }\n \n return null; \n }", "public Object get(String aName) { return _attrMap.get(aName); }", "final public Object getObjectAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr.Object;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public java.util.Collection getAttributes();", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public org.python.Object __getattribute__(java.lang.String name);", "Map<String, String> getAttributes();", "@Override\n public List<ConfigurationNode> getAttributes(String name)\n {\n return attributes.getSubNodes(name);\n }", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "public VAttribute[] getAttributes() throws VlException \n {\n return getAttributes(getAttributeNames());\n }", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "@Override\n\t\tpublic Object getAttribute(String name) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getAttribute(String name) {\n\t\t\treturn null;\n\t\t}", "public String [] getNames () { \n return this.listAttributes(); \n }", "java.util.List<tendermint.abci.EventAttribute> \n getAttributesList();", "public Attribute getAttribute(String name) {\n return getAttribute(name, \"\");\n }", "public Attributes getAttributes() { return this.attributes; }", "ArrayList getAttributes();", "default List<String> getAttributeNames() {\n\t\treturn getAttributes().stream().map(v -> v.getName()).collect(Collectors.toList());\n\t}", "com.google.protobuf.ByteString getAttributeBytes();", "public final native JsArray<Attribute> getAttributes() /*-{\n\t\t\treturn this.attributes;\n\t\t}-*/;", "java.lang.String getAttribute();", "tendermint.abci.EventAttribute getAttributes(int index);", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public WSLAttributeList getAttributes() {return attributes;}", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public abstract Map<String, Object> getAttributes();", "public static Object getAttribute(String name) {\n\t\treturn GPortalExecutionContext.getRequest().getSessionContext().getAttribute(name);\n\t}", "public Map<String, String> getAttributes();", "protected Map<String, String> getElementAttributes() {\n // Preserve order of attributes\n Map<String, String> attrs = new HashMap<>();\n\n if (this.getName() != null) {\n attrs.put(\"name\", this.getName());\n }\n if (this.getValue() != null) {\n attrs.put(\"value\", this.getValue());\n }\n\n return attrs;\n }", "@Override\r\n\tpublic Object getAttribute(String name) {\n\t\treturn null;\r\n\t}", "public String[] getAttributeNames()\n {\n return attributeNames;\n }", "public String getAttributeName() {\n/* 85 */ return this.attributeName;\n/* */ }", "public List<TLAttribute> getAttributes();", "String getAttribute();", "Attribute getAttribute();", "public Attribute[] getAttributes()\n {\n return _attrs;\n }", "public List<String> getAttributeNames() {\n\t\treturn new ArrayList<>(attributes.keySet());\n\t}", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "@Override\n\tpublic Object getAttribute(String name) {\n\t\treturn null;\n\t}", "public AttributeList getAttributeByValue(String name) {\n for (AttributeList a = atts ; a != null ; a = a.next) {\n if ((a.values != null) && a.values.contains(name)) {\n return a;\n }\n }\n return null;\n }", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "static public XmlAttributeInfo eltXmlAttributeInfo (String name)\r\n {\r\n return new XmlAttributeInfo(name,null,_ELT_CONTENT);\r\n }", "public List getAttributeNames() {\n log.debug(\"getAttributeNames()\");\n ResultSet resultSet = attrNST.selectRows(\"name\");\n return resultSet.toStringList(1);\n }", "public abstract Map getAttributes();", "public ConcurrentHashMap<String, Attribute> getAttributes() {\n\t\treturn list;\n\t}", "public final String[] getAttributes() {\n return this.attributes;\n }", "public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}", "public String getAttribute(String name) {\n if (_lastTag == null)\n return null;\n return _lastTag.getAttribute(name);\n }", "Object getAttribute(int attribute);", "@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}", "trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes();", "Object getAttribute(String key);", "Object getAttribute(String key);", "private List<String> getAttributes(ModuleURN inURN) throws Exception {\r\n MBeanInfo beanInfo = getMBeanServer().getMBeanInfo(inURN.toObjectName());\r\n List<String> attribs = new ArrayList<String>();\r\n for(MBeanAttributeInfo info: beanInfo.getAttributes()) {\r\n attribs.add(info.getName());\r\n }\r\n return attribs;\r\n }", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "List<Attribute<T, ?>> getAttributes();", "public VAttribute[] getAttributes(String names[]) throws VlException \n {\n VAttribute[] attrs = new VAttribute[names.length];\n\n for (int i = 0; i < names.length; i++)\n {\n if (names[i]!=null)\n attrs[i] = getAttribute(names[i]);\n else\n attrs[i]=null; \n }\n\n return attrs;\n }", "@Override\r\n\tpublic String[] getAttributeNames() {\n\t\treturn null;\r\n\t}", "public Attribute getAttribute(String sName)\n {\n ensureLoaded();\n return (Attribute) m_tblAttribute.get(sName);\n }", "public native final String attr(final String name)\n\t/*-{\n\t\treturn this.attr(name);\n\t}-*/;", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "public List<Attribute> getAttribute() {\n\t if (attribute==null) {\n\t attribute = new ArrayList<>();\n\t }\n\n\t return attribute;\n\t}", "public List<Attribute> getAttributes() {\r\n return attributes;\r\n }", "public TLAttribute getAttribute(String attributeName);", "public String getAttributeName() {\n return this.attributeName;\n }", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public Map<String, Object> getAttributeValues()\n\t{\n\t\tMap<String, Object> retval = new TreeMap<>();\n\t\t\n\t\tfor (ClassAttribute attribute : attributes.keySet())\n\t\t{\n\t\t\tretval.put(attribute.shortName, attributes.get(attribute));\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "public Attributes getAttributes() {\n\t\treturn null;\r\n\t}", "@Override\n public int getAttributeCount(String name)\n {\n return getAttributes(name).size();\n }", "@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}", "Object getAttribute( String attrName ) throws FileSystemException;", "@java.lang.Override\n public google.maps.fleetengine.v1.VehicleAttribute getAttributes(int index) {\n return attributes_.get(index);\n }" ]
[ "0.6960066", "0.6864731", "0.68122345", "0.6730286", "0.6730286", "0.6730286", "0.6713349", "0.6572651", "0.65264803", "0.6514581", "0.6502712", "0.6475714", "0.6459028", "0.6444104", "0.638925", "0.638925", "0.638925", "0.63685703", "0.63361484", "0.6330348", "0.6322975", "0.6317009", "0.6282351", "0.6266949", "0.6261473", "0.6230786", "0.6228325", "0.6228325", "0.62229794", "0.62229794", "0.62213874", "0.62191725", "0.6203747", "0.61913645", "0.6183006", "0.6180075", "0.6152307", "0.61453116", "0.6143091", "0.61346966", "0.613364", "0.6131437", "0.61248666", "0.61217695", "0.6118837", "0.61158967", "0.609419", "0.60877943", "0.6072541", "0.6067347", "0.6064133", "0.60550725", "0.6037819", "0.6017675", "0.60024446", "0.59786206", "0.59722507", "0.5968886", "0.59312546", "0.5915904", "0.5887782", "0.58614695", "0.5853504", "0.5853031", "0.5849574", "0.5848942", "0.5847345", "0.58334166", "0.5823482", "0.58228326", "0.58201385", "0.5816304", "0.5805798", "0.5805449", "0.5799861", "0.5799861", "0.5799329", "0.57933134", "0.5789021", "0.57884073", "0.5778229", "0.57693774", "0.57657117", "0.5761141", "0.5758662", "0.5750084", "0.5738798", "0.5737243", "0.57352674", "0.5721474", "0.57035846", "0.5685017", "0.5685017", "0.5681914", "0.5677087", "0.5673608", "0.56659067", "0.56652296", "0.5640905", "0.5639456" ]
0.70820194
0
TODO Autogenerated method stub
public static void main(String[] args) { List<Integer> l1=Arrays.asList(1,2,3); System.out.println("displaying the Integer values"); addNumbers(l1); List<Number> l2=Arrays.asList(1.1,2.0,3.0); System.out.println("displaying the Number values"); addNumbers(l2); }
{ "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
Altera o status do titulo via AJAX
@RequestMapping(method = RequestMethod.GET, path = "/{id}/receber") public @ResponseBody String receber(@PathVariable("id") Long id) { return this.service.receber(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setStatus(CharSequence subTitle) {\n getSupportActionBar().setSubtitle(subTitle);\n //textViewStatus.setText(subTitle);\n }", "void setStatus(String status);", "void setStatus(java.lang.String status);", "@Override\n\tpublic void setStatusText (String text) {\n\t}", "@Override\n public void setStatusText(String text) {\n status.setText(text);\n }", "public void modificarTitulo( String pTitulo )\n {\n borde.setTitle( pTitulo );\n }", "private void setStatus(int resId) {\n\n getSupportActionBar().setSubtitle(resId);\n //textViewStatus.setText(resId);\n\n }", "void setStatus(int status);", "public void setStatus(String status) { this.status = status; }", "public void setStatus(String text) {\n labelStatus.setText(text);\n }", "private void changeStatusBar(String status)\r\n {\r\n jStatusBar.setText(status);\r\n }", "public void setStatus(String status) {\n statusLabel.setText(status);\n }", "void setStatus(STATUS status);", "public void setStatus(int status);", "public void setStatus(int status);", "public void setStatusText(String text) {\r\n\t\tthis.status_text.setText(text);\r\n\t}", "public void setStatus(String stat)\n {\n status = stat;\n }", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(java.lang.String status) {\r\n this.status = status;\r\n }", "public void setStatusText(java.lang.String statusText) {\n this.statusText = statusText;\n }", "@Override\n\tpublic void setStatus(int status);", "public void setStatusText(String statusText) {\r\n\t\tcheckHeaderGeneration();\r\n\t\tthis.statusText = statusText;\r\n\t}", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}", "public void setStatus(String status) {\n mBundle.putString(KEY_STATUS, status);\n }", "@Override\n public void setStatus(int arg0) {\n\n }", "public void setStatus(final boolean statusConta) {\r\n this.status = statusConta;\r\n }", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void SetStatus(int id, String Status){\n\t\ttry {\n\t\tHttpResponse<String> response = Unirest.post(\"https://painel.dcc.ufmg.br/midea/edit/\" + Integer.toString(id))\n\t\t\t\t .header(\"origin\", \"https://painel.dcc.ufmg.br\")\n\t\t\t\t .header(\"upgrade-insecure-requests\", \"1\")\n\t\t\t\t .header(\"content-type\", \"application/x-www-form-urlencoded\")\n\t\t\t\t .header(\"user-agent\", \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36\")\n\t\t\t\t .header(\"x-devtools-emulate-network-conditions-client-id\", \"dfc781d4-4de5-4a54-a230-12b081f0187d\")\n\t\t\t\t .header(\"accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\")\n\t\t\t\t .header(\"referer\", \"https://painel.dcc.ufmg.br/midea/edit/197\")\n\t\t\t\t .header(\"accept-encoding\", \"gzip, deflate, br\")\n\t\t\t\t .header(\"accept-language\", \"pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7\")\n\t\t\t\t .header(\"cookie\", Cookie)\n\t\t\t\t .header(\"cache-control\", \"no-cache\")\n\t\t\t\t \n\t\t\t\t //Comando que liga ou desliga o ar\n\t\t\t\t .field(\"ligado\", Status)\n\t\t\t\t .asString();\n\t\t}catch(UnirestException e) {\n\t\t\tSystem.out.println(\"Failed to set Status\");\n\t\t}\n\t\t\n\t}", "protected void setStatus(String status) {\n Message msg = mHandler.obtainMessage(DIALOG_UPDATE, status);\n mHandler.sendMessage(msg);\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "@Override\n public void statusChanged(String text) {\n fireStatusChanged(text);\n }", "private void setStatus(int resId) {\n actionBar.setSubtitle(resId);\n }", "@Override\n public void setStatus(int arg0, String arg1) {\n\n }", "public void setStatus(final String status) {\n this.status = status;\n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(java.lang.CharSequence value) {\n this.status = value;\n }", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus (java.lang.String status) {\r\n\t\tthis.status = status;\r\n\t}", "void setDataStatus(String dataStatus);", "public void setStatusName(String statusName);", "public void setStatus(Short status) {\n this.status = status;\n }", "public void setStatus(Boolean s){ status = s;}", "void setStatus(TaskStatus status);", "private void setStatus(HttpRequest request, HttpResponse response) {\r\n\r\n\t\tString msg = \"OK\";\r\n\t\tint statusCode = 200;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tGridStatus status = GridStatus.fromString(request.getQueryParameter(\"status\"));\r\n\t\r\n\t\t\tif (GridStatus.ACTIVE.equals(status) || GridStatus.INACTIVE.equals(status)) {\r\n\t\t\t\tgetRegistry().getHub().getConfiguration().custom.put(STATUS, status.toString());\r\n\t\t\t} else {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (RemoteProxy proxy : getRegistry().getAllProxies().getSorted()) {\r\n\t\t\t\tNodeStatusServletClient nodeStatusClient = ((CustomRemoteProxy)proxy).getNodeStatusClient();\r\n\t\t\t\tnodeStatusClient.setStatus(status);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tmsg = \"you must provide a 'status' parameter (either 'active' or 'inactive')\";\r\n\t\t\tstatusCode = 500;\r\n\t\t} catch (UnirestException | SeleniumGridException e) {\r\n\t\t\tmsg = String.format(\"Error while forwarding status to node: %s\", e.getMessage());\r\n\t\t\tstatusCode = 500;\r\n\t\t}\r\n\r\n\t\tresponse.setHeader(\"Content-Type\", MediaType.JSON_UTF_8.toString());\r\n\t\tresponse.setStatus(statusCode);\r\n\t\ttry {\r\n\t\t\tresponse.setContent(msg.getBytes(UTF_8));\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow new GridException(e.getMessage());\r\n\t\t}\r\n\t}", "public void setStatus(String _status) {\n this._status = _status;\n }", "public void setStatus(boolean newStatus);", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(String status)\n {\n setValue(\"status\", status);\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setStatus(int status) {\n STATUS = status;\n }", "private static void setStatus(CharSequence subTitle, Activity activity) {\n\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatusBar(String status) {\n this.statusBar.setText(status);\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public abstract void setStatus(String message);", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "private static void setStatus(int resId, Activity activity) {\n\n\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }", "private void setStatus(int resId) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }", "private void setStatus(int resId) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }" ]
[ "0.6537507", "0.6460333", "0.64333844", "0.6387166", "0.6357181", "0.631802", "0.62789375", "0.62557065", "0.62492305", "0.6234885", "0.6207859", "0.6201078", "0.6192266", "0.61806494", "0.61806494", "0.6167717", "0.6082937", "0.6044555", "0.6044555", "0.60434085", "0.60434085", "0.60331863", "0.60297805", "0.59992695", "0.5984041", "0.59742033", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.596211", "0.5955507", "0.5955507", "0.59524214", "0.59508216", "0.59508216", "0.5950282", "0.59344065", "0.5920113", "0.59128654", "0.5898442", "0.588932", "0.58892953", "0.58871263", "0.5878237", "0.58664846", "0.58654195", "0.5860507", "0.58465797", "0.5838793", "0.5833172", "0.5833172", "0.5833172", "0.5833172", "0.5833172", "0.58305204", "0.58283377", "0.5817735", "0.5814617", "0.5802067", "0.5800615", "0.57969314", "0.57924265", "0.579139", "0.5786739", "0.57856023", "0.57839495", "0.5769279", "0.5755713", "0.5748511", "0.5748511", "0.5748511", "0.5748511", "0.5747828", "0.5747828", "0.5746288", "0.5746288", "0.5746288", "0.5746288", "0.5746288", "0.57415396", "0.5737165", "0.5737165", "0.57363605", "0.57312727", "0.57310617", "0.57193303", "0.5717182", "0.5717182", "0.5702433" ]
0.0
-1
Retorna todos os meus enuns num array dinamicamente
@ModelAttribute("todosStatusTitulo") // Define o nome que eu quero chamar lá na View com o thymeleaf public List<TituloStatusEnum> todosStatusTitulo() { return Arrays.asList(TituloStatusEnum.values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }", "public static int[] getNumeros() {\n\t\treturn numeros;\n\t}", "public int[] numbers();", "public Object[][] getNumeros(int cantidad) {\r\n Object[][] numeros = new Object[2][cantidad];\r\n\r\n double xi = this.seed;\r\n\r\n for (int i = 0; i < cantidad; i++) {\r\n xi = (a * xi + c) % m;\r\n numeros[0][i] = (long) xi;\r\n numeros[1][i] = xi / (m - 1);\r\n }\r\n return numeros;\r\n }", "public Complejo[][] getNumeros(){\n\t\treturn numeros;\n\t}", "public ArrayList<Integer> getNumeros(){\r\n\t\treturn numeros;\r\n\t}", "@Override\n\tpublic int[] numbers() {\n\t\tint length = squarelotron.length;\n\t\t//sets the first count to 0\n\t\tint count = 0;\n\t\t//loops through each outer and then inner variable in the squarelotron and records a count for each\n\t\tfor(int i = 0; i < length; i++){\n\t\t\tfor(int j = 0; j < squarelotron[i].length; j++){\n\t\t\t\tcount = count +1;\n\t\t\t}\n\t\t}\n\t\t//sets count2 as zero, this will do the same thing as the original count but use it as an index marker for the array\n\t\tint count2 = 0;\n\t\t//defines a new array having the length of the total number of variables\n\t\tint[] array = new int[count];\n\t\t//loops through the squarelotron and stores each variable in the array\n\t\tfor(int a = 0; a < length; a++){\n\t\t\tfor(int j = 0; j < squarelotron[a].length; j++){\n\t\t\t\tint d = squarelotron[a][j];\n\t\t\t\tarray[count2]=d;\n\t\t\t\tcount2 = count2 + 1;\n\t\t\t}\n\t\t}\n\t\treturn array;\n\t}", "private static ArrayList<String>[] buildArrayNumbers(int size,int numbers) {\n\n\t\tString digits = Integer.toString(numbers);\n\t\tArrayList<String>[] digitsArreglo= new ArrayList[digits.length()];\n\n\t\tfor (int i = 0; i < digitsArreglo.length; i++) {\n\t\t\tString[] plantilla1=getTemplate(Integer.parseInt(digits.charAt(i)+\"\"));\n\t\t\tArrayList<String> resultado;\n\t\t\tif(size==1){\n\t\t\t\tresultado=transmit(plantilla1);\n\t\t\t\tdigitsArreglo[i]=resultado;\n\t\t\t}else {\n\t\t\t\tresultado=expandColumns(size,plantilla1);\n\t\t\t\tresultado=expandRows(size, resultado);\n\t\t\t\tdigitsArreglo[i]=resultado;\n\t\t\t}\n\t\t}\n\t\treturn digitsArreglo;\n\t}", "private static int[] buildArray(int num) {\n\t\t// TODO build an array with num elements\n\t\tif(num ==0) return null;\n\t\t\n\t\tint[] array = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\t\n\t\t\tarray[i] = (int)(Math.random()*15);\n\t\t}\n\t\t\n\t\treturn array;\n\t}", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "public int[] elegirnumerosdelarray(int[] lista, int numerosaevaluar) {\r\n\t\t\t\r\n\t\t int[] numeroselegidos= new int[numerosaevaluar];\r\n\r\n\t\t for(int i =0; i<numerosaevaluar; i++) {\r\n\t\t\t numeroselegidos[i]= lista[i];\r\n\t\t\t \r\n\t\t }\r\n\t\t return numeroselegidos;\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t }", "private int[] buscarMenores(ArrayList<ArbolCod> lista){\n int temp;\n int m1=1;\n int m2=0;\n float vm1,vm2,aux;\n \n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n if (vm1<=vm2){\n temp=m1;\n m1=m2;\n m2=temp;\n } \n for (int i=2;i<lista.size();i++){\n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n aux=lista.get(i).getProbabilidad();\n if (aux<=vm2){\n m1=m2;\n m2=i;\n } \n else if (aux<=vm1){\n m1=i;\n }\n }\n int[] res=new int[2];\n res[0]=m1;\n res[1]=m2;\n return res;\n }", "public String[] getAllnumbers() {\r\n\t\tif(morenumbers==null)\r\n\t\t\treturn null;\r\n\t\tArrayList<String> al =new ArrayList<String>();\r\n\t\t al.add(phoneNum);\r\n\t\t for(String s:morenumbers){\r\n\t\t\t al.add(s);\r\n\t\t }\r\n\t\t String[] array = al.toArray(new String[0]);\r\n\t\treturn array;\r\n\t}", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "private static int[] enterNumbers() {\n\t\tint[] numbers = new int[2];\n\t\tSystem.out.print(\"Geben Sie die erste Zahl ein: \");\n\t\tnumbers[0] = readInt();\n\t\tSystem.out.print(\"Geben Sie die zweite Zahl ein: \");\n\t\tnumbers[1] = readInt();\n\t\treturn numbers;\n\t}", "public String[] verNumerosDeCuetas (){\r\n\t\tString[] cuentasPersona = new String[0];\r\n\t\tfor(int i =0;i<cuentas.length;i++){\r\n\t\t\tcuentasPersona=Arrays.copyOf(cuentasPersona, cuentasPersona.length+1);\r\n\t\t\tcuentasPersona[i]=cuentas[i].getNumeroCuenta();\r\n\t\t}\r\n\t\treturn cuentasPersona;\r\n\t}", "private void getArr()\r\n {\r\n // Create array of '0'\r\n Random rand = new Random();\r\n arr = new int[Integer.parseInt(SizeField.getText())];\r\n\r\n // InOrder creates a list in ascending order\r\n if (InOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n // AlmostOrder creates a list which is 50% sorted and 50% unsorted\r\n } else if (AlmostOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length / 2; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n for (int i = arr.length / 2; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n\r\n // ReverseOrder creates list in descending order\r\n } else if (ReverseOrderRadio.isSelected())\r\n {\r\n for (int i = arr.length, j = 0; i > 0; i--, j++)\r\n {\r\n arr[j] = i;\r\n }\r\n\r\n // RandomOrder creates 100% unsorted list\r\n } else\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n }\r\n }", "public String [ ] getNombresProteinas() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Proteina) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }", "public static int[] generaValoresAleatorios() {\n\t\treturn new Random().ints(100, 0, 1000).toArray();\n\t}", "public String [ ] getNombresGranos() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Grano) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }", "public ArrayList getNumberCaroserii() {\n c = db.rawQuery(\"select caroserie_id from statistici\" , new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int id=c.getInt(0);\n lista.add(id);\n }\n return lista;\n }", "long getNombreElements();", "public String[] ListarDPIMedicos(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Medico) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIMedicos= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Medico) {\r\n DPIMedicos[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIMedicos;\r\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\r\n\t\tString[] maeletras = new String[18];\r\n\t\tint[] maenumero = new int[18];\r\n\t\tString[][] matletras = new String[18][2];\r\n\t\tint[][] matnumero = new int[18][2];\r\n\r\n//####################################################\r\n\r\n//\tArrayList\r\n//\r\n\t\tArrayList listaNums = new ArrayList();\r\n\t\tlistaNums.add(8);\r\n\t\tlistaNums.add(3);\r\n\t\tlistaNums.add(5);\r\n\t\tSystem.out.println(\"Lista de numeros: \" + listaNums);\r\n\t\tSystem.out.println(\"Numero posicion 2:\" + listaNums.get(2));\r\n\t\tSystem.out.println(\"Numero posicion 1:\" + listaNums.get(1));\r\n\t\tlistaNums.set(0, 15);\r\n\t\tSystem.out.println(\"Lista de numeros: \" + listaNums);\r\n\t\t\r\n\t\t// Declaración de un ArrayList de \"String\". Puede ser de cualquier otro Elemento u Objeto (float, Boolean, Object, ...)\r\n\t\tArrayList<String> nombreArrayList = new ArrayList<String>();\r\n\t\t// Añade el elemento al ArrayList\r\n\t\tnombreArrayList.add(\"Elemento\");\r\n\t\t// Añade el elemento al ArrayList en la posición 'n'\r\n\t\tint n = 4;\r\n\t\tnombreArrayList.add(n, \"Elemento 2\");\r\n\t\t// Devuelve el numero de elementos del ArrayList\r\n\t\tnombreArrayList.size();\r\n\t\t// Devuelve el elemento que esta en la posición '2' del ArrayList\r\n\t\tnombreArrayList.get(2);\r\n\t\t// Comprueba se existe del elemento ('Elemento') que se le pasa como parametro\r\n\t\tnombreArrayList.contains(\"Elemento\");\r\n\t\t// Devuelve la posición de la primera ocurrencia ('Elemento') en el ArrayList \r\n\t\tnombreArrayList.indexOf(\"Elemento\");\r\n\t\t// Devuelve la posición de la última ocurrencia ('Elemento') en el ArrayList \r\n\t\tnombreArrayList.lastIndexOf(\"Elemento\");\r\n\t\t// Borra el elemento de la posición '5' del ArrayList \r\n\t\tnombreArrayList.remove(5); \r\n\t\t// Borra la primera ocurrencia del 'Elemento' que se le pasa como parametro. \r\n\t\tnombreArrayList.remove(\"Elemento\");\r\n\t\t//Borra todos los elementos de ArrayList \r\n\t\tnombreArrayList.clear();\r\n\t\t// Devuelve True si el ArrayList esta vacio. Sino Devuelve False \r\n\t\tnombreArrayList.isEmpty(); \r\n\t\t// Copiar un ArrayList \r\n\t\tArrayList arrayListCopia = (ArrayList) nombreArrayList.clone(); \r\n\t\t// Pasa el ArrayList a un Array \r\n\t\tObject[] array = nombreArrayList.toArray(); \r\n\r\n\t\t// ####################################################\r\n\r\n//\t\tBurbuja\r\n\r\n\t\tint arreglo[] = { 8, 6, 7, 2, 1, 8, 6, 8, 7, 1, 9, 10, 2, 1 };\r\n\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tfor (int j = 0; j < arreglo.length - 1; j++) {\r\n\t\t\t\tif (arreglo[j] > arreglo[j + 1]) {\r\n\t\t\t\t\tint tmp = arreglo[j + 1];\r\n\t\t\t\t\tarreglo[j + 1] = arreglo[j];\r\n\t\t\t\t\tarreglo[j] = tmp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tSystem.out.print(arreglo[i] + \"\\n\");\r\n\t\t}\r\n\r\n//##################################################\r\n\t\tString par2 = \"S\";\r\n\t\tint opcion = 0;\r\n\t\twhile (par2.contentEquals(\"S\")) {\r\n\t\t\topcion = 0;\r\n\t\t\ttry {\r\n\t\t\t\topcion = 2;\r\n\t\t\t} catch (InputMismatchException e) {\r\n\t\t\t\topcion = 5;\r\n\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t}\r\n\r\n\t\t\tswitch (opcion) {\r\n\t\t\tcase 1:\r\n\t\t\t\tSystem.out.println(\"Calculando digito verificador personas\");\r\n\t\t\t\tSystem.out.println(\" \");\r\n\r\n//\t\t\t\tvalidaRutPersona llamada1 = new validaRutPersona();\r\n//\t\t\t\tllamada1.validaRutPersona();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 2:\r\n\t\t\t\tSystem.out.println(\"Opción 2: Calculando digito verificador Patentes antiguas.\");\r\n\t\t\t\tSystem.out.println(\" \");\r\n\r\n//\t\t\t\tvalidaPatenteAntigua llamada2 = new validaPatenteAntigua();\r\n//\t\t\t\tllamada2.validaPatenteAntigua();\r\n\t\t\t\tpar2 = \"N\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(\"Opción 3: Calcula digito verificador Patentes nuevas.\");\r\n\t\t\t\tSystem.out.println(\" \");\r\n\r\n//\t\t\t\tvalidaPatenteNueva llamada3 = new validaPatenteNueva();\r\n//\t\t\t\tllamada3.validaPatenteNueva();\r\n\t\t\t\tpar2 = \"N\";\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 4:\r\n\t\t\t\tSystem.out.println(\"Opción 4: Pruebas.\");\r\n\t\t\t\tSystem.out.println(\" \");\r\n\r\n//\t\t\t\tpruebas llamada4 = new pruebas();\r\n//\t\t\t\tllamada4.pruebas();\r\n\t\t\t\tpar2 = \"N\";\r\n\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t\tif (opcion == 9) {\r\n\t\t\t\t\tSystem.out.println(\"Fin del proceso...\");\r\n\t\t\t\t\tpar2 = \"N\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"No se pudo determinar opción. Elija otra...: \");\r\n//\t\t\t\t\tentrada.next();\r\n\t\t\t\t\tpar2 = \"S\";\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n//##################################################\r\n\r\n//\t Ingreso de textos\r\n//\r\n\t\tSystem.out.println(\"Ingrese un número...: \");\r\n\t\tint b = 0;\r\n\t\twhile (!s.hasNextInt())\r\n\t\t\ts.next();\r\n\r\n\t\tb = s.nextInt();\r\n\t\tSystem.out.println(b);\r\n\r\n\t\tSystem.out.println(\"Ingrese un texto...: \");\r\n\t\tString c = \"\";\r\n\t\twhile (!s.hasNext())\r\n\t\t\ts.next();\r\n\r\n\t\tc = s.next();\r\n\t\tSystem.out.println(c);\r\n\r\n\t\tSystem.out.println(\"Ingrese un double...: \");\r\n\t\tdouble d = 0;\r\n\t\twhile (!s.hasNextDouble())\r\n\t\t\ts.nextDouble();\r\n\r\n\t\td = s.nextDouble();\r\n\t\tSystem.out.println(d);\r\n\r\n//\t\tSystem.out.println(\"Ingrese un boolean...: \");\r\n//\t\tboolean e = true;\r\n//\t\twhile (!s.hasNextBoolean())\r\n//\t\t\ts.nextBoolean();\r\n//\t\t\t\t\r\n//\t\te = s.nextBoolean();\r\n//\t\tSystem.out.println(e);\r\n\r\n// Manejo de String\r\n\r\n//\t\tchar charAt(int index): Devuelve el carácter que está en esa posición\r\n\t\tString primero = \"primero\";\r\n\t\tString segundo = \"segundo\";\r\n\t\tint dif = primero.compareTo(segundo);\r\n\t\tif (dif == 0) {\r\n\t\t\tSystem.out.println(\"primero \" + primero + \" gual a \" + segundo);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"primero \" + primero + \" distinto a \" + segundo);\r\n\t\t}\r\n\r\n\t\tprimero = \"primero\";\r\n\t\tsegundo = \"PriMEo\";\r\n\t\tdif = primero.compareToIgnoreCase(segundo);\r\n\t\tif (dif == 0) {\r\n\t\t\tSystem.out.println(\"primero \" + primero + \" gual a \" + segundo);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"primero \" + primero + \" distinto a \" + segundo);\r\n\t\t}\r\n\r\n\t\tprimero = \" hola como estas ...todo bien??? \";\r\n\t\tsegundo = primero.trim();\r\n\t\tSystem.out.println(\"asi es primero \" + primero);\r\n\t\tSystem.out.println(\"primero quedo como: \" + segundo);\r\n\r\n\t\tprimero = \"33\";\r\n\t\tint a = Integer.parseInt(primero); // a vale 33\r\n\t\tSystem.out.println(\"primero es numerico...: : \" + a);\r\n\r\n//\t\tClase Math\r\n\r\n//\t\tClase especial que contiene funciones y constantes matemáticas.\r\n//\t\tSe usa poniendo Math.<metodo>\r\n//\t\tAtributos: Math.E y Math.PI\r\n//\t\tstatic int abs(int a): Devuelve el valor absoluto del número pasado como parámetro. También se puede usar con cualquier otro tipo numérico (si le damos un double devolverá un double, etc.)\r\n//\t\tstatic long round(double a): Redondea el número pasado como parámetro. Si el número es double devuelve long, si es float devuelve int.\r\n//\t\tstatic double ceil(double a): Trunca el número hacia arriba (Math.ceil(3.2) devuelve 4.0), ¡ojo devuelve un double!\r\n//\t\tstatic double floor(double a): Trunca el número, ¡ojo devuelve un double!\r\n//\t\tstatic double sin(double a): Devuelve el seno del ángulo a (a debe estar en radianes). También hay cos, tan, asin, acos, atan,sinh, cosh, tanh\r\n//\t\tstatic int max (int a,int b): Devuelve el máximo de los dos números. También hay versiones para los otros tipos numéricos. También existe min (int a, int b).\r\n//\t\tstatic double log(double a): Devuelve el logaritmo neperiano de a, para el logaritmo decimal se usa log10(double a)\r\n//\t\tstatic double pow(double a, double b): Eleva a a b\r\n//\t\tstatic double exp(double a): Eleva el número e a a\r\n//\t\tstatic double sqrt(double a): Raíz cuadrada\r\n//\t\tstatic double cbrt(double a): Raíz cúbica\r\n//\t\tstatic double random(): Devuelve un número aleatorio entre 0.0 (incluido) y 1.0 (no incluido)\t\r\n\r\n\t\tdouble num1 = 5;\r\n\t\tdouble num2 = 7;\r\n\t\tdouble num3 = 0;\r\n\r\n\t\tSystem.out.println(\" \");\r\n\r\n\t\tnum3 = Math.exp(num1);\r\n\t\tSystem.out.println(\"exponencial \" + num3);\r\n\r\n\t\tnum3 = Math.sqrt(num1);\r\n\t\tSystem.out.println(\"raiz \" + num3);\r\n\r\n\t\tnum3 = Math.random();\r\n\t\tSystem.out.println(\"random \" + num3);\r\n\r\n//\t\tJOption\r\n//\t\t#################################################\r\n\t\tSystem.out.println(\"aqui voy \");\r\n\r\n\t\tJOptionPane.showMessageDialog(null, \"Pruebas JOption\");\r\n\r\n\t\tString[] optionsX = { \"Opcion A\", \"Opcion B\", \"Opcion C\", \"Opcion D\" };\r\n\t\tint seleccion = JOptionPane.showOptionDialog(null, \"Es necesario que seleccione una opcion\", \"Titulo\",\r\n\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, optionsX, optionsX[0]);\r\n\r\n\t\tSystem.out.println(\"Seleccion \" + seleccion);\r\n\r\n\t\tJOptionPane.showMessageDialog(null, \"Operación realizada correctamente\");\r\n\r\n\t\tJOptionPane.showMessageDialog(null, \"Hello World\");\r\n\r\n\t\ttry {\r\n\t\t\tString firstNumber = JOptionPane.showInputDialog(\"Input <First Integer>\");\r\n\t\t\tString secondNumber = JOptionPane.showInputDialog(\"Input <Second Integer>\");\r\n\r\n\t\t\tnum1 = Integer.parseInt(firstNumber);\r\n\t\t\tnum2 = Integer.parseInt(secondNumber);\r\n\t\t\tdouble sum = num1 + num2;\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Sum is \" + sum, \"Sum of two Integers\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t} catch (Exception e) {\r\n\t\t\tObject[] options = { \"OK\", \"CANCEL\" };\r\n\t\t\tJOptionPane.showOptionDialog(null, \"Debe ingresar valores numericos\", \"Warning\", JOptionPane.DEFAULT_OPTION,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE, null, options, options[0]);\r\n\t\t}\r\n\r\n\t\tJOptionPane.showMessageDialog(null, \"Hello World\");\r\n\r\n\t\tString name = JOptionPane.showInputDialog(\"Type your name please\");\r\n\t\tJOptionPane.showMessageDialog(null, \"Hello \" + name);\r\n\r\n\t\tJOptionPane.showConfirmDialog(null, \"Desea comentar??\", \"Seleccion camino\", JOptionPane.YES_NO_OPTION);\r\n\r\n\t\tObject[] options = { \"OK\", \"CANCEL\" };\r\n\t\tJOptionPane.showOptionDialog(null, \"Debe ingresar toda la información solicitada\", \"Warning\",\r\n\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]);\r\n\r\n\t\tString inputValue = JOptionPane.showInputDialog(\"Ingrese un valor\");\r\n\t\tinputValue = inputValue.toUpperCase();\r\n\t\tJOptionPane.showMessageDialog(null, inputValue);\r\n\r\n\t\tObject[] possibleValues = { \"Valida Rut\", \"Patante Antigua\", \"Patente Nueva\" };\r\n\t\tObject selectedValue = JOptionPane.showInputDialog(null, \"Seleccione\", \"Menu principal\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);\r\n\r\n//\t\tShow an error dialog that displays the message, 'alert':\r\n\t\tJOptionPane.showMessageDialog(null, \"alert\", \"alert\", JOptionPane.ERROR_MESSAGE);\r\n\r\n//\t\t\tShow an internal information dialog with the message, 'information':\r\n//\t\t\tJOptionPane.showInternalMessageDialog(frame, \"information\",\r\n//\t\t\t\"information\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\tString msj = \"prueba de mensaje\";\r\n\t\tJOptionPane.showMessageDialog(null, msj, // Mensaje\r\n\t\t\t\t\"Mensaje Plano\", // Título\r\n\t\t\t\tJOptionPane.PLAIN_MESSAGE); // Tipo de mensaje\r\n\r\n\t\tJOptionPane.showMessageDialog(null, msj, // Mensaje\r\n\t\t\t\t\"Mensaje Informativo\", // Título\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE); // Tipo de mensaje\r\n\r\n\t\tJOptionPane.showMessageDialog(null, msj, // Mensaje\r\n\t\t\t\t\"Mensaje de Pregunta\", // Título\r\n\t\t\t\tJOptionPane.QUESTION_MESSAGE); // Tipo de mensaje\r\n\r\n\t\tJOptionPane.showMessageDialog(null, msj, // Mensaje\r\n\t\t\t\t\"Mensaje de Error\", // Título\r\n\t\t\t\tJOptionPane.ERROR_MESSAGE); // Tipo de mensaje\r\n\r\n\t\tJOptionPane.showMessageDialog(null, msj, // Mensaje\r\n\t\t\t\t\"Mensaje de Advertencia\", // Título\r\n\t\t\t\tJOptionPane.WARNING_MESSAGE); // Tipo de mensaje\r\n\r\n\t\tString nl = System.getProperty(\"line.separator\");\r\n\t\t// Lanzamos el mensaje:\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"Soy un mensaje\" + nl + \"de varias líneas...\" + nl + \"Y esto es todo .....\");\r\n\r\n\t}", "void createArray(int n) {\n numbers = new int[n];\n for ( int i = 0; i < n; i++){\n numbers[i] = random.nextInt(1000);\n }\n }", "public void llamarMusicos(int numMusicos){\r\n\t\tString auxNota=this.getNotaRand();\r\n\t\tintegrante=new ArrayList<Musico>();\r\n\t\tfor(int i=0;i<numMusicos;i++){\r\n\t\t\tthis.contratar_musicos(new Musico(i), insParalabanda.get((int) (new Random().nextDouble()* insParalabanda.size()) ));\r\n\t\t\tintegrante.get(i).getMiInstrumento().afinar(auxNota);\r\n\t\t}\r\n\t}", "private static int[] calculateLotto() {\r\n int [] lotto = new int[LOTTERY_JACKPOT];\r\n int [] numbers = new int[LOTTERY_END];\r\n\r\n for (int i = 0; i < LOTTERY_END; i++) {\r\n numbers[i] = i;\r\n }\r\n\r\n int index = Math.getRandom(0, numbers.length - 1);\r\n\r\n for (int i = 0; i < lotto.length; i++) {\r\n lotto[i] = numbers[index];\r\n\r\n numbers = Arrays.removeIndex(numbers, index);\r\n\r\n index = Math.getRandom(0, numbers.length - 1);\r\n }\r\n\r\n return lotto;\r\n }", "public static int[] generateSuperLottoNumbers() \n\t{\n\t\t// create an array that allocates only 6 integer slots.\n\t\tint[] ticketNumbers = new int[6];\n\t\t\n\t\t//generateSuperLottoNumbers() as an argument [1 pts]\n\t\t// Hint: numbers[i] = (int) (10 * Math.random()) + 1; // will assign your array element to a random number from 1 to 10\n\t\t// The first 5 numbers must be from the range 1 to 47 [1 pt]\n\t\t//we want to run the iteration 5 times so we use for loop knowing how many iterations are needed.\n\t\tfor (int i = 0; i < 5; i++) \n\t\t{\n\t\t\tticketNumbers[i] = (int) (47 * Math.random()) + 1; // random method in the Math class will only give number between 0 and 1 not including 1 (0-.99) \t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// so we add plus 1 to avoid the error we have to account for 0 and 47.\n\t\t}\n\t\t\n\t\t// The 6th number (the MEGA) must be from 1 to 27. [1 pt]\n\t\tticketNumbers[5] = (int) (27 * Math.random()) + 1;\n\n\t\treturn ticketNumbers;\n\t}", "public List<Short> getNumbers() { return numbers; }", "public static void createArrays() {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tint size = rand.nextInt(5) + 5;\r\n\t\t\tTOTAL += size;\r\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\r\n\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\tint value = rand.nextInt(1000) + 1;\r\n\t\t\t\tnumList.add(value);\r\n\t\t\t}\r\n\t\t\tCollections.sort(numList);\r\n\t\t\tarrayMap.put(i + 1, numList);\r\n\t\t}\r\n\t}", "public int[] problema(int nsimo) {\n\t\tint[] problema = null;\n\t\t if (nsimo<problemas.size()) {\n\t\t\t ArrayList<Integer> arraylist = problemas.get(new Integer(nsimo));\n\t\t\t problema = new int[arraylist.size()];\n\t\t\t for(int i=0; i<arraylist.size(); i++) {\n\t\t\t\t problema[i] = arraylist.get(i).intValue();\n\t\t\t }\n\t\t }\n\t\t return problema;\n\t}", "public List<Pair<Integer, Integer>> getArray(){\n return qtadePorNum;\n }", "@Transaction()\n public NumberQueryResult[] queryAllNumbers(final Context ctx) {\n ChaincodeStub stub = ctx.getStub();\n\n final String startKey = \"NUM0\";\n final String endKey = \"NUM999\";\n List<NumberQueryResult> queryResults = new ArrayList<NumberQueryResult>();\n\n QueryResultsIterator<KeyValue> results = stub.getStateByRange(startKey, endKey);\n\n for (KeyValue result: results) {\n Number num = genson.deserialize(result.getStringValue(), Number.class);\n queryResults.add(new NumberQueryResult(result.getKey(), num));\n }\n\n NumberQueryResult[] response = queryResults.toArray(new NumberQueryResult[queryResults.size()]);\n\n return response;\n }", "public List<Integer> luckyNumbers (int[][] matrix) {\n return null;\n }", "public void numeros() {\r\n \tint[] lista= new int[3001];\r\n\r\n\t\tFile crear = new File (\"Numerosaleatorios.txt\");\r\n \r\n\t\tFileWriter escribir = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tescribir = new FileWriter (crear);\r\n\t\t\tBufferedWriter escribir1 = new BufferedWriter (escribir);\r\n\t\t\tint linea;\r\n\t\t\tRandom aleatorios = new Random();\r\n\t\t\tfor (int i =0; i<3000; i++) {\r\n\t\t\t\tlinea = aleatorios.nextInt(1000);\r\n\t\t\t\tlista[i]= aleatorios.nextInt(1000);\r\n\t\t\t\tescribir1.write(linea + \"\\n\");\r\n\t\t}\r\n\t\t\r\n\t\tescribir.close();\r\n\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);\r\n\t}\r\n\t}", "public void fillNumbers() {\n this.numbers = new String[8];\n this.numbers[0] = \"seven\";\n this.numbers[1] = \"eight\";\n this.numbers[2] = \"nine\";\n this.numbers[3] = \"ten\";\n this.numbers[4] = \"jack\";\n this.numbers[5] = \"queen\";\n this.numbers[6] = \"king\";\n this.numbers[7] = \"ass\";\n }", "public void makeArray(int num)\n {\n \tmakeArray(num,0);\n }", "public String [ ] getNombresIngredientes() {\n String arreglo[] = new String[this.ingredientes.size()];\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }", "static int[] singleArrayGenerator(int num){\n int[] arr = new int[num];\n for(int i = 0; i < num; i++)\n arr[i] = new Random().nextInt(100);\n return arr;\n }", "public Double[] getNumbers() throws IOException {\n List<String> numbersStrs= Files.readAllLines(Paths.get(\"C:\\\\Users\\\\user\\\\Desktop\\\\Software construction git repo\\\\calculator\\\\src\\\\java\\\\com\\\\kelaniya\\\\uni\\\\numbers.txt\"));\n double number1=Integer.parseInt(numbersStrs.get(0));\n double number2=Integer.parseInt(numbersStrs.get(1));\n return new Double[] {number1,number2};\n\n }", "private static int [] getRandomNumbers (int sizearray) {\n // create the array of the specified size\n int [] numberarray = new int[sizearray];\n // create the Java random number generator \n Random randomGenerator = new Random();\n \n // for each element of the array, get the next random number \n for (int index = 0; index < sizearray; index++)\n {\n numberarray[index] = randomGenerator.nextInt(100); \n }\n \n return numberarray; \n }", "public static int[] selecciona_numeros(int cant, int max) {\n int[] arr = new int[cant];\n int numeroAleatorio;\n \n for(int i = 0; i < max; i++) {\n do {\n numeroAleatorio = numero_aleatorio(max);\n } while(esta_en_seleccion(numeroAleatorio, arr));\n \n anadir_a_seleccion(numeroAleatorio, arr);\n }\n \n return arr;\n }", "int[] retrieveAllData();", "private static void imprimirNumeros(int... numeros) {\n for (int i = 0; i < numeros.length; i++) {\n System.out.println(\"elemento: \" + numeros[i]);\n }\n }", "public int[] getnGramNumbers(){\r\n\t\treturn nGramPerLen;\r\n\t}", "public int[] getMinimos()\n {\n return brazo.getMinimos();\n }", "public List<NumeroMega> listar() {\n List<NumeroMega> lista = new ArrayList<NumeroMega>();\n\n // Definicao da instrucao SQL\n String sql = \"Select NumeroMega from \" +TABELA+ \" order by id\";\n\n // Objeto que recebe os registros do banco de dados\n Cursor cursor = getReadableDatabase().rawQuery(sql, null);\n\n try {\n while (cursor.moveToNext()) {\n // Criacao de nova referencia\n NumeroMega numeroMega = new NumeroMega();\n // Carregar os atributos com dados do BD\n\n numeroMega.setNumeroMega(cursor.getString(0));\n\n // Adicionar novo a lista\n lista.add(numeroMega);\n }\n } catch (SQLException e) {\n Log.e(TAG, e.getMessage());\n } finally {\n cursor.close();\n }\n return lista;\n }", "private Countable[] generateArray(int rank){\n var numbers = new Countable[rank];\n for (int i = 0; i < rank; i++) {\n numbers[i] = getRandomCountable();\n }\n return numbers;\n }", "public abstract ArrayList<Integer> getSudokuNumbersList();", "public int megaO(int num)\n\t{\n\n\t\treturn megaN.get(num);\n\t}", "public static String[][] leerTotales() {\n //saco el total de registros\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][12];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n //leo los registros y los guardo cada uno en un renglon de la matriz \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n reporte[cont][11] = result.getString(12);\n\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "private static List<Integer> initLista(int tamanho) {\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < tamanho; i++) {\r\n\t\t\tlista.add(rand.nextInt(tamanho - (tamanho / 10) + 1)\r\n\t\t\t\t\t+ (tamanho / 10));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public String[] ListarDPIEnfermeras(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Enfermera) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIEnfermeras= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Enfermera) {\r\n DPIEnfermeras[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIEnfermeras;\r\n }", "public static int[] generaNumeros(int dimension, int desde, int hasta) {\r\n\t\tint[] arreglo = new int[dimension];\r\n\t\t\r\n\t\tfor(int i = 0; i < arreglo.length; i++) {\r\n\t\t\tarreglo[i] = generaAleatorio(desde, hasta);\r\n\t\t}\r\n\t\treturn arreglo;\r\n\t}", "public int[] getCarte() {\n\t\tint[] carte = new int[6];\n\t\tcarte[0] = numAGRICOLI;\n\t\tcarte[1] = numARIDI;\n\t\tcarte[2] = numFIUMI;\n\t\tcarte[3] = numFORESTE;\n\t\tcarte[4] = numMONTAGNE;\n\t\tcarte[5] = numPRATI;\n\t\treturn carte;\n\t}", "public List<String> getNumbers(){\n\t\treturn this.numberList;\n\t}", "private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n else\r\n i--;\r\n }\r\n return array;\r\n }", "public static Object[] getArrayDeObjectosMon(int codigo,String nombre,String fabricante,float precio, String stock, int tam, String resolucion){\r\n Object[] v = new Object[7];\r\n \r\n v[0] = codigo;\r\n v[1] = nombre;\r\n v[2] = fabricante;\r\n v[3] = precio;\r\n v[4] = stock;\r\n v[5] = tam;\r\n v[6] = resolucion;\r\n\r\n return v;\r\n }", "public ArrayList<String> obtenerNombresMedicos() {\n ArrayList<String> nombres = new ArrayList<String>();\n for (int i = 0; i < medicos.length; i++) {\n if (medicos[i] != null) {\n nombres.add(medicos[i].getNombre());\n }\n }\n return nombres;\n }", "public int[] getMatchNumbers(){\n\t\tint[] numbers = new int[matches.size()];\n\t\tfor(int i = 0; i < matches.size(); i++){\n\t\t\tnumbers[i] = matches.get(i).number;\n\t\t}\n\t\treturn numbers;\n\t}", "public TumpukanInteger(int kapasitas){\r\n elemen = new int[kapasitas];\r\n }", "public Mazzo(int numcarte) {\n this.numcarte = numcarte;\n\n //creo e dimensiono l'array \"mazzo\" dichiarato in precedenza\n mazzo = new Carta[numcarte];\n\n //qui dovrò creare tot carte ed inserirle nel mazzo\n String semicarta[] = {\"\", \"Picche\", \"Fiori\", \"Quadri\", \"Cuori\"};\n int valore = 1;\n int seme = 1;\n\n for (int i = 1; i <= numcarte; i++) {\n\n String nomicarta = valore + \" di \" + semicarta[seme];\n Carta carta = new Carta(valore, seme, nomicarta);\n mazzo[i - 1] = carta;\n valore++;\n\n //valore e semi correnti\n //se l'elemento corrente (i) è sulla decina (10, 20, 30, etc) resetto i valori e cambio il seme\n //ad esempio quando sono a 10 rimetto il valore ad 1 ed aumento di 1 il seme\n if (i % (numcarte / 4) == 0) {\n seme++;\n valore = 1;\n }\n\n }\n }", "public void qtadeDeNumeros(){\n for(int i = 0; i < 9; i++){\n qtadePorNum.add(i, new Pair(i+1, numeroDeElementos(i+1)));\n }\n }", "public static void Ejemplo2() {\n System.out.println(\"Introduzca el numero de valores a leer\");\r\n Scanner sc = new Scanner(System.in);\r\n int num = sc.nextInt();\r\n int[] frecuencias = new int[101];\r\n\r\n int numero;\r\n for (int i = 0; i < num; i++) {\r\n\r\n System.out.println(\"Introduzca un numero:\");\r\n boolean correcto;\r\n do {\r\n numero = sc.nextInt();\r\n\r\n if (numero < 1 || numero > 100) {\r\n System.out.println(\"Error el numero introducido tiene que pertencer al intervalo (0,100)\");\r\n correcto = false;\r\n } else {\r\n correcto = true;\r\n }\r\n } while (!correcto);\r\n\r\n frecuencias[numero]++;\r\n }\r\n\r\n for (int i = 0; i <= 100; i++) {\r\n if (frecuencias[i] != 0) {\r\n System.out.print(i + \" : \");\r\n for (int j = 0; j < frecuencias[i]; j++) {\r\n System.out.print(\"*\");\r\n }\r\n System.out.println(\"\");\r\n }\r\n }\r\n }", "public Integer[] getTeamSizeArray() {\n Integer numOfStudentsInATeam[];\n int numOfStudents = ProjectManager.studentsNotInATeam.size();\n int numOfTempTeams = numOfStudents / 4;\n int numOfExtraStudents = numOfStudents % 4; // extra students\n int i;\n if (numOfExtraStudents == 0) {\n numOfStudentsInATeam = new Integer[numOfTempTeams];\n } else {\n numOfStudentsInATeam = new Integer[numOfTempTeams + 1];\n }\n\n if (numOfExtraStudents == 3) {\n\n for (i = 0; i < numOfTempTeams; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n numOfStudentsInATeam[i] = 3;\n } else if (numOfExtraStudents == 2) {\n\n for (i = 0; i < numOfTempTeams; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n numOfStudentsInATeam[i] = 2;\n } else if (numOfExtraStudents == 1) {\n\n for (i = 0; i < numOfTempTeams - 1; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n numOfStudentsInATeam[i] = 3;\n numOfStudentsInATeam[i + 1] = 2;\n } else {\n for (i = 0; i < numOfTempTeams; i++) {\n numOfStudentsInATeam[i] = 4;\n }\n }\n return numOfStudentsInATeam;\n }", "public String [ ] getNombresAlmidones() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Almidon) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }", "static ArrayList<Integer> getMajortiy(int arr[]){\n int num1=-1, num2=-1, count1=0, count2=0;\n for(int i:arr){\n if(i==num1) count1++;\n else if(i ==num2) count2++;\n else if(count1==0){\n num1=i;\n count1=1;\n }\n else if(count2==0){\n num2=i;\n count2=1;\n }\n else{\n count1--;\n count2--;\n }\n }\n count1=0; count2=0;\n for(int i:arr){\n if(i==num1) count1++;\n if(i==num2) count2++;\n }\n ArrayList<Integer>res= new ArrayList<>();\n if(count1>arr.length/3) res.add(num1);\n if(count2>arr.length/3) res.add(num2);\n return res;\n\n }", "public int[] createArray(int num_amount) {\n // create array\n int[] lottoDraw = new int[num_amount];\n // randomly assign number up to 40 in each section of array w for loop\n for (int index = 0; index < num_amount; index ++) {\n // while loop\n // create number\n potentialNum = (int) (Math.random() * (LOTTO_LIMIT + 1));\n // check number isnt in array using method\n boolean repeat = checkForNum(potentialNum, lottoDraw);\n \n // if method resturns true, loop until unique number is found\n while (repeat) {\n potentialNum = (int) (Math.random() * (LOTTO_LIMIT + 1));\n repeat = checkForNum(potentialNum, lottoDraw);\n }\n \n // add to array\n lottoDraw[index] = potentialNum;\n }\n return lottoDraw;\n }", "public static int[] nhapMang() {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Nhap so luong phan tu: \");\n int n = Integer.parseInt(scanner.nextLine());\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(scanner.nextLine());\n }\n return arr;\n }", "private static int[] createArray(int n) {\n\t \tint[] array = new int[n];\n\t \tfor(int i=0; i<n; i++){\n\t \t\tarray[i] = (int)(Math.random()*10);\n\t \t}\n\t\t\treturn array;\n\t\t}", "public int getCount () {\n return numsBaby;\n }", "private static void AskNumbers() {\r\n for (int i = 0; i < userLotto.length; i++) {\r\n\r\n }\r\n for (int i = 0; i < userLotto.length; i++) {\r\n int tmp = MyConsole.readInt(1, ArrayMax, \"Please give number\", \"Please give unique number between [1, 40]\");\r\n\r\n if (!Arrays.contains(tmp, userLotto)) {\r\n userLotto[i] = tmp;\r\n } else {\r\n System.out.println(\"Not unique number!\");\r\n i--;\r\n }\r\n }\r\n }", "java.util.List<java.lang.Integer> getBlockNumbersList();", "public static void main(String[] args) {\n\n Random gerador = new Random();\n int[] numeros = new int[10];\n int soma = 0;\n\n for (int i = 0; i < numeros.length; i++) {\n numeros[i] = gerador.nextInt(9) + 1;\n soma += numeros[i];\n System.out.println(\"Elemento numero: \" + (i + 1) + \": \" + numeros[i]);\n }\n System.out.println(\"A soma dos elementos do array �: \" + soma);\n }", "public int[] getStatInts(int no) {\r\n \tList values = new LinkedList();\r\n \tIterator i = miscInfo.iterator();\r\n \twhile (i.hasNext()) {\r\n \t Selection selection = (Selection) i.next();\r\n \t if (selection.contains(no)) {\r\n \t\tEnumeration e = selection.get(no);\r\n \t\twhile (e.hasMoreElements()) values.add(e.nextElement());\r\n \t }\r\n \t}\r\n \tint[] stats = new int[values.size()];\r\n \ti = values.iterator();\r\n \tfor (int j=0; j < stats.length; j++) {\r\n \t stats[j] = ((Integer) i.next()).intValue();\r\n \t}\r\n \treturn stats;\r\n }", "public void getnumber() {\n\r\n\t\tnumberofticket[numberposition] = number;\r\n\t\tticketnumber[numberposition] = numberresult;\r\n\t\ttickettype[numberposition] = ticketname[btn_menu1_int];\r\n\t\tnumberposition++;\r\n\r\n\t}", "public int[] puntajes(){\n return partida.puntajes();\n }", "public int[] coldM(ArrayList<LottoDay> list)\n\t{\n\t\tint counter=0; //counts occurrences\n\t\tint low=200; //sets low to 200\n\t\tint [] megaF = new int [28]; //creates an array to store occurrences of mega numbers\n\t\tint[] check = new int [5]; //creates an array to store lowest mega numbers\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get object\n\t\t\tmega= one.getMega();//get the mega number of the object\n\t\t\tfor(int j=0; j<megaF.length;j++)\n\t\t\t{\n\t\t\t\t//if mega number equals index\n\t\t\t\tif(mega==j)\n\t\t\t\t{\n\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\tmegaF[j]=counter+megaF[j]; //add one to occurrence\n\t\t\t\t\tcounter=0; //reset counter\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\tlow=200;//resets low\n\t\t//looks for the lowest number in the mega number array\n\t\tfor(int j=0; j<check.length;j++)\n\t\t{\n\t\t\tfor(int i=0; i<megaF.length;i++)\n\t\t\t{\n\t\t\t\t//if mega number is not zero and the occurrence is lower than low\n\t\t\t\tif(megaF[i]<low &&megaF[i]!=0)\n\t\t\t\t{\n\t\t\t\t\tlow = megaF[i]; //occurrence becomes new low\n\t\t\t\t\tindex=i;//store index\n\t\t\t\t\tcheck[j]=i;//store the mega number\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tlow=200;//reset low\n\t\t\tmegaF[index]=0;//set occurrence of the number to zero\n\t\t}\n\t\t//return 5 lowest mega numbers\n\t\treturn check;\n\t}", "public String[] listadoJugadoresEnMesa() {\n\n\t\tString[] listado = new String[this.jugadoresEnMesa.size()];\n\n\t\tfor (int i = 0; i < this.jugadoresEnMesa.size(); i++)\n\t\t\tlistado[i] = String.format(\"%d - %s\", (i + 1), this.jugadoresEnMesa.get(i).info());\n\n\t\treturn listado;\n\t}", "public int getNumTotal() {\n return nucleiSelected.size();\n }", "int getBlockNumbers(int index);", "public int[] threeLuckyNumbers() {\n\t\tint[] intArray = new int[3];\n\t\tRandom rand = new Random(); \n\t\tint rand_int1 = rand.nextInt(101);\n\t\tint rand_int2 = rand.nextInt(101);\n\t\tint rand_int3 = rand.nextInt(101);\n\t\tintArray[0] = rand_int1;\n\t\tintArray[1] = rand_int2;\n\t\tintArray[2] = rand_int3;\n\t\t\n\t\t\n\t\t\n\t\treturn intArray;\n\t}", "private static void eligeJugadores() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Elige el numero de jugadores [2,6]: \");\r\n\t\t\teleccion = Teclado.leerInt();\r\n\t\t} while (eleccion < 2 || eleccion > 6);\r\n\t\tnJugadores = eleccion;\r\n\t\tjugadores = new JugadorM[nJugadores];\r\n\t\tjugadores[0] = new JugadorM(\"Jugador\", true);\r\n\t\tfor (int i = 1; i < jugadores.length; i++)\r\n\t\t\tjugadores[i] = new JugadorM(\"Maquina\" + i, false);\r\n\t}", "@Override\r\n\tpublic int[] getMonthPeople() {\n\t\tint[] result = new int[12];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tDate dateStart = DateUtil.getFirstDay(date);\r\n\t\tDate dateEnd = DateUtil.getLastDay(date);\r\n\t\tresult[0] = cinemaConditionDao.getCount(dateStart, dateEnd);\r\n\t\tfor(int i=0;i<11;i++){\r\n\t\t\tdate = DateUtil.getMonthBefroe(dateStart);\r\n\t\t\tdateStart = DateUtil.getFirstDay(date);\r\n\t\t\tdateEnd = DateUtil.getLastDay(date);\r\n\t\t\tresult[i+1] = cinemaConditionDao.getCount(dateStart, dateEnd);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public int[] reset() {\r\n return nums;\r\n }", "private void getPinchazos(){\n mPinchazos = estudioAdapter.getListaPinchazosSinEnviar();\n //ca.close();\n }", "public int[] hotM(ArrayList<LottoDay> list)\n\t{\n\t\tint [] megaF = new int [28]; //stores number of occurrences for each mega number\n\t\tint[] check = new int [5]; //stores the highest mega numbers\n\t\tint counter =0; //counts occurrences\n\t\tint high=0; //checks for the highest mega numbers\n\n\t\t//fill megaF with the number of occurrences\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i);//get the object\n\t\t\tmega= one.getMega();//get the mega number of that object\n\t\t\tfor(int j=0; j<megaF.length;j++)\n\t\t\t{\n\n\t\t\t\tif(mega==j)\n\t\t\t\t{\n\t\t\t\t\tcounter++; //add one to counter\n\t\t\t\t\tmegaF[j]=counter+megaF[j]; //store occurrence\n\t\t\t\t\tcounter=0; //reset counter\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\thigh=0;//reset high\n\t\tfor( int j=0; j<check.length;j++)\n\t\t{\n\t\t\tfor(int i=0; i<megaF.length;i++)\n\t\t\t{\n\t\t\t\t//if occurrence beats high\n\t\t\t\tif(megaF[i]>high)\n\t\t\t\t{\n\t\t\t\t\thigh = megaF[i];//occurrence becomes new high\n\t\t\t\t\tcheck[j]=i;//store the index of highest occurrence\n\t\t\t\t\tindex=i;//store index\n\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\thigh=0;//reset high\n\t\t\tmegaF[index]=0;//set highest index to zero \n\t\t}\n\n\n\t\treturn check; //return 5 highest mega numbers\n\n\n\t}", "public String [ ] getNombresFrutas() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Fruta) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }", "public List<PrimeNr> getAllPrimeNrs(){\n Cursor cursor = database.query(PrimeNrBaseHelper.TABLE,null, null, null, null\n , null, PrimeNrBaseHelper.PRIME_NR);\n\n List<PrimeNr> primeNrList = new ArrayList<>();\n\n try {\n cursor.moveToFirst();\n while(!cursor.isAfterLast()){\n Long pnr = cursor.getLong(cursor.getColumnIndex(PrimeNrBaseHelper.PRIME_NR));\n String foundOn = cursor.getString(cursor.getColumnIndex(PrimeNrBaseHelper.FOUND_ON));\n primeNrList.add(new PrimeNr(pnr, foundOn));\n cursor.moveToNext();\n }\n } finally {\n cursor.close();\n }\n\n return primeNrList;\n }", "public ArrayList<Float> leerMapaDesdeBaseDeDatos() {\n listaNumeros.add(2.0f);\r\n listaNumeros.add(3.0f);\r\n listaNumeros.add(4.0f);\r\n listaNumeros.add(5.0f);\r\n listaNumeros.add(1.0f);\r\n return listaNumeros;\r\n }", "public List<Tipo> getTiposOrdenadosNumerosEventosDecrescente() {\n\t\tList<Tipo> listaOrdenada = new ArrayList<Tipo>();\n\n\t\ttry {\n\t\t\tverificaTiposOrdenados(listaOrdenada);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERRO] Arquivo não encontrado no caminho: '\" + ARQUIVO_CSV + \"'\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERRO] Erro ao ler arquivo csv.\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tfechaBuffer();\n\t\t}\n\t\treturn listaOrdenada;\n\t}", "public double[] getVentasXMes() {\r\n double vMes[] = new double[nm];\r\n int j;\r\n for (j = 0; j < nm; j++) {\r\n vMes[j] = getVentasMes(j);\r\n }\r\n return vMes;\r\n }", "int getNumItems();", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public int[] reset() {\n return nums;\n }", "public void popular(){\n DAO dao = new DAO();\n modelo.setNumRows(0);\n\n for(Manuais m: dao.selecTudoManuaisVenda()){\n modelo.addRow(new Object[]{m.getId(),m.getNome(),m.getClasse(),m.getEditora(),m.getPreco()+\".00 MZN\"});\n \n }\n }" ]
[ "0.66912925", "0.66769713", "0.6456145", "0.64501166", "0.64399666", "0.643438", "0.63874495", "0.6283553", "0.61965346", "0.6163529", "0.61590713", "0.61317205", "0.6063316", "0.60293734", "0.60081476", "0.5986871", "0.5917065", "0.5895443", "0.58937085", "0.5886276", "0.58577794", "0.57687753", "0.57241094", "0.57194644", "0.5691745", "0.5690363", "0.5668087", "0.5618703", "0.5611153", "0.56052476", "0.56030136", "0.55942196", "0.5591445", "0.55817515", "0.556883", "0.55441225", "0.55388016", "0.5538484", "0.5536626", "0.55310774", "0.55228597", "0.55121064", "0.5510776", "0.55063397", "0.5502179", "0.54991597", "0.5493861", "0.54937756", "0.54935044", "0.54888225", "0.54795307", "0.5474799", "0.5469508", "0.5463137", "0.54559106", "0.54557997", "0.5454428", "0.54511577", "0.5450549", "0.54465634", "0.5444724", "0.5443391", "0.54393137", "0.5438506", "0.54288054", "0.5427858", "0.5425346", "0.5410314", "0.5403906", "0.5397028", "0.53861827", "0.53810954", "0.53716797", "0.53704196", "0.5358096", "0.5357841", "0.5350329", "0.5337056", "0.5333365", "0.53315955", "0.5324598", "0.53238887", "0.5321934", "0.53210086", "0.5316748", "0.531602", "0.53148067", "0.53080654", "0.53078145", "0.5306692", "0.5302941", "0.5298765", "0.52883524", "0.5285364", "0.5285364", "0.5285364", "0.5285364", "0.5285364", "0.5285364", "0.5285364", "0.52780795" ]
0.0
-1
Create a new JMXPoller.
protected JMXPoller(List<InetSocketAddress> jmxEndpoints, long queryTimeout, String serviceUrlTemplate) { this.jmxEndpoints = jmxEndpoints; this.queryTimeout = queryTimeout; this.connectors = new ConcurrentHashMap<InetSocketAddress, JMXConnector>(jmxEndpoints.size()); this.serviceUrlTemplate = serviceUrlTemplate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startPollingThread() {\n pool = ThreadUtil.startThread(polling);\n }", "Monitor createMonitor();", "public NetworkTableListenerPoller(NetworkTableInstance inst) {\n m_inst = inst;\n m_handle = NetworkTablesJNI.createListenerPoller(inst.getHandle());\n }", "@Bean(name = StreamSpanReporter.POLLER)\r\n\tPollerMetadata customPoller() {\r\n\t\tPollerMetadata poller = new PollerMetadata();\r\n\t\tpoller.setMaxMessagesPerPoll(500);\r\n\t\tpoller.setTrigger(new PeriodicTrigger(5000L));\r\n\t\treturn poller;\r\n\t}", "public WorkerMonitor() {\n }", "public WatchListMonitorTask()\r\n {\r\n debug(\"WatchListMonitorTask() - Constructor \");\r\n }", "private void createMBeanNotificationListener(ObjectName mBeanName, NotificationListener listener) {\n log.debug(\"Adding notification listener for JMXClient \" + url.getURLPath());\n try {\n mbsc.addNotificationListener(mBeanName, listener, null, null);\n } catch (InstanceNotFoundException | IOException e) {\n log.error(\"Unable to add notification listener\", e);\n }\n }", "RemoteActuator createRemoteActuator();", "public int getPollInterval();", "private void createMBeanProxy(Class<? extends MBeanInf> mbeanClass, String objectName) {\n ObjectName mbeanName = null;\n try {\n mbeanName = new ObjectName(objectName);\n } catch (MalformedObjectNameException e) {\n log.error(\"Unable to create object name from \" + objectName, e);\n return;\n }\n\n MBeanInf mBean = JMX.newMBeanProxy(mbsc, mbeanName, mbeanClass, true);\n\n ClientListener listener = new ClientListener(url);\n createMBeanNotificationListener(mbeanName, listener);\n beans.add(mBean);\n }", "public Poller(Registry registry) {\n this.registry = registry;\n registry.getUILifecycle().addHandler(e -> {\n if (e.getUiLifecycle().isTerminated()) {\n stop();\n }\n });\n }", "private SunOneHttpJmxConnectorFactory() {\n }", "HeartbeatMonitor<O> createHeartbeatMonitor(\n ResourceID resourceID,\n HeartbeatTarget<O> heartbeatTarget,\n ScheduledExecutor mainThreadExecutor,\n HeartbeatListener<?, O> heartbeatListener,\n long heartbeatTimeoutIntervalMs,\n int failedRpcRequestsUntilUnreachable);", "public interface Pollable extends WComponent {\n\n\t/**\n\t * Default polling timeout of 120 seconds.\n\t */\n\tint DEFAULT_POLLING_TIMEOUT = 120;\n\n\t/**\n\t * @return the root container that holds the polling components\n\t */\n\tWDiv getContentHolder();\n\n\t/**\n\t * The AJAX targets that will be refreshed when the polling is complete.\n\t *\n\t * @return the extra AJAX targets\n\t */\n\tList<AjaxTarget> getAjaxTargets();\n\n\t/**\n\t * Add an AJAX target to be refreshed when the polling is complete.\n\t *\n\t * @param target the extra AJAX target to add\n\t */\n\tvoid addAjaxTarget(final AjaxTarget target);\n\n\t/**\n\t * Start AJAX polling manually.\n\t */\n\tvoid doManualStart();\n\n\t/**\n\t * Put the panel in a retry mode.\n\t */\n\tvoid doShowRetry();\n\n\t/**\n\t * Retry the polling action.\n\t */\n\tvoid doRetry();\n\n\t/**\n\t * Reset to start polling again.\n\t */\n\tvoid doRefreshContent();\n\n\t/**\n\t * @return the AJAX polling interval in milli seconds\n\t */\n\tint getPollingInterval();\n\n\t/**\n\t * @return the service status\n\t */\n\tPollingStatus getPollingStatus();\n\n\t/**\n\t * @return the text displayed while polling\n\t */\n\tString getPollingText();\n\n\t/**\n\t *\n\t * @param interval the AJAX polling interval in milli seconds\n\t */\n\tvoid setPollingInterval(final int interval);\n\n\t/**\n\t * @param pollingStatus the panel status\n\t */\n\tvoid setPollingStatus(final PollingStatus pollingStatus);\n\n\t/**\n\t * @param text the text displayed while polling\n\t */\n\tvoid setPollingText(final String text);\n\n\t/**\n\t * @return the retry button.\n\t */\n\tWButton getRetryButton();\n\n\t/**\n\t * @return the start button\n\t */\n\tWButton getStartButton();\n\n\t/**\n\t * @return the start type\n\t */\n\tPollingStartType getStartType();\n\n\t/**\n\t *\n\t * @param startType the start type\n\t */\n\tvoid setStartType(final PollingStartType startType);\n\n\t/**\n\t *\n\t * @return the polling timeout interval (in seconds) or 0 for no timeout.\n\t */\n\tint getPollingTimeout();\n\n\t/**\n\t *\n\t * @param pollingTimeout the polling timeout in seconds or 0 for no timeout\n\t */\n\tvoid setPollingTimeout(final int pollingTimeout);\n\n\t/**\n\t *\n\t * @param useRetryOnError true if display retry button on error\n\t */\n\tvoid setUseRetryOnError(final boolean useRetryOnError);\n\n\t/**\n\t *\n\t * @return true if display retry button on error\n\t */\n\tboolean isUseRetryOnError();\n\n\t/**\n\t * @return the progress bar used while polling\n\t */\n\tWProgressBar getProgressBar();\n\n}", "@Transactional\n public abstract OnmsDistPoller createDistPollerIfNecessary(String dpName, String dpAddr);", "public ClientMBean() {\n }", "public void startPolling() {\n\n if (wContext == null) {\n wContext = WebContextFactory.get();\n }\n if (t == null) {\n t = new DateUpdater();\n t.setPriority(Thread.MIN_PRIORITY);\n t.setDaemon(true);\n t.start();\n }\n\n }", "public ServiceExampleWorker() {\n super(\"ServiceExampleWorker\");\n shouldExecute = true;\n messageBinder = new IMessageBinder.Stub() {\n private List<ISubscriber> subscriberList = new ArrayList<>();\n\n @Override\n public void addSubscriber(ISubscriber subscriber) throws RemoteException {\n subscriberList.add(subscriber);\n }\n\n @Override\n public void removeSubscriber(ISubscriber subscriber) throws RemoteException {\n subscriberList.remove(subscriber);\n }\n\n @Override\n public void sendUpdate(String data) throws RemoteException {\n for (ISubscriber subscriber : subscriberList) {\n subscriber.send(data);\n }\n }\n\n @Override\n public void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat, double aDouble, String aString) throws RemoteException {\n\n }\n };\n }", "Duration getDefaultPollInterval();", "public AmazonPushListenerService() {\n super(AmazonPushListenerService.class.getName());\n // Measure singleton\n if(MEASURE_ACTIVE) {\n getMeasureProcessing();\n }\n }", "public PaymentStatusPoll() {\n }", "public PvaClientNTMultiMonitor createNTMonitor()\n {\n return createNTMonitor(\"value,alarm,timeStamp\");\n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "private static BufferPoolMXBean createBufferPoolMXBean(BufferPool paramBufferPool)\n/* */ {\n/* 227 */ new BufferPoolMXBean() {\n/* */ private volatile ObjectName objname;\n/* */ \n/* */ public ObjectName getObjectName() {\n/* 231 */ ObjectName localObjectName = this.objname;\n/* 232 */ if (localObjectName == null) {\n/* 233 */ synchronized (this) {\n/* 234 */ localObjectName = this.objname;\n/* 235 */ if (localObjectName == null) {\n/* 236 */ localObjectName = Util.newObjectName(\"java.nio:type=BufferPool,name=\" + this.val$pool\n/* 237 */ .getName());\n/* 238 */ this.objname = localObjectName;\n/* */ }\n/* */ }\n/* */ }\n/* 242 */ return localObjectName;\n/* */ }\n/* */ \n/* */ public String getName() {\n/* 246 */ return this.val$pool.getName();\n/* */ }\n/* */ \n/* */ public long getCount() {\n/* 250 */ return this.val$pool.getCount();\n/* */ }\n/* */ \n/* */ public long getTotalCapacity() {\n/* 254 */ return this.val$pool.getTotalCapacity();\n/* */ }\n/* */ \n/* */ public long getMemoryUsed() {\n/* 258 */ return this.val$pool.getMemoryUsed();\n/* */ }\n/* */ };\n/* */ }", "public SimplePollerConfiguration(SimplePollerConfiguration pollerConfiguration) {\n this(pollerConfiguration.getConfigurationTimestamp(), pollerConfiguration.getPolledServices());\n }", "public void createTimer()\n {\n if (timer != null )\n return;\n \n logger.trace(\"Creating rss timer and task.\");\n RssTimerRefreshFeed refresh = new RssTimerRefreshFeed(this);\n this.timer = new Timer();\n this.timer.scheduleAtFixedRate(refresh, 100, PERIOD_REFRESH_RSS);\n \n logger.trace(\"Done.\");\n }", "ManagementLockObject create();", "private static GenericContainer jmxService() {\n GenericContainer container = new GenericContainer<>(\"testserver:latest\")\n .withExposedPorts(4567, 7199)\n .withEnv(\"JAVA_OPTS\", \"-Dcom.sun.management.jmxremote.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.rmi.port=7199 \" +\n \"-Dcom.sun.management.jmxremote.local.only=false\" +\n \"-Djava.rmi.server.hostname=0.0.0.0 \" +\n \"-Dcom.sun.management.jmxremote=true \" +\n \"-Dcom.sun.management.jmxremote.authenticate=false \" +\n \"-Dcom.sun.management.jmxremote.ssl=false \");\n container.setPortBindings(Arrays.asList(\"7199:7199\", \"4567:4567\"));\n Slf4jLogConsumer logConsumer = new Slf4jLogConsumer(LoggerFactory.getLogger(\"TESTCONT\"));\n container.setLogConsumers(Collections.singletonList(logConsumer));\n return container;\n }", "public ThreadedListenerManager() {\n\t\tmanagerNumber = MANAGER_COUNT.getAndIncrement();\n\t\tBasicThreadFactory factory = new BasicThreadFactory.Builder()\n\t\t\t\t.namingPattern(\"listenerPool\" + managerNumber + \"-thread%d\")\n\t\t\t\t.daemon(true)\n\t\t\t\t.build();\n\t\tThreadPoolExecutor defaultPool = (ThreadPoolExecutor) Executors.newCachedThreadPool(factory);\n\t\tdefaultPool.allowCoreThreadTimeOut(true);\n\t\tthis.pool = defaultPool;\n\t}", "public Timer() {}", "public static JMXConnectorServer createJMXServer(int port, boolean local)\r\n throws IOException\r\n {\r\n Map<String, Object> env = new HashMap<>();\r\n\r\n String urlTemplate = \"service:jmx:rmi://%1$s/jndi/rmi://%1$s:%2$d/jmxrmi\";\r\n InetAddress serverAddress = null;\r\n if (local)\r\n {\r\n serverAddress = InetAddress.getLoopbackAddress();\r\n System.setProperty(\"java.rmi.server.hostname\", serverAddress.getHostAddress());\r\n }\r\n\r\n // Configure the RMI client & server socket factories, including SSL config.\r\n env.putAll(configureJmxSocketFactories(serverAddress));\r\n\r\n String url = String.format(urlTemplate, (serverAddress != null ? serverAddress.getHostAddress() : \"0.0.0.0\"), port);\r\n LocateRegistry.createRegistry(port,\r\n (RMIClientSocketFactory) env.get(RMIConnectorServer.RMI_CLIENT_SOCKET_FACTORY_ATTRIBUTE),\r\n (RMIServerSocketFactory) env.get(RMIConnectorServer.RMI_SERVER_SOCKET_FACTORY_ATTRIBUTE));\r\n\r\n // Configure authn, using a JMXAuthenticator which either wraps a set log LoginModules configured\r\n // via a JAAS configuration entry, or one which delegates to the standard file based authenticator.\r\n // Authn is disabled if com.sun.management.jmxremote.authenticate=false\r\n env.putAll(configureJmxAuthentication());\r\n\r\n // Configure authz - if a custom proxy class is specified an instance will be returned.\r\n // If not, but a location for the standard access file is set in system properties, the\r\n // return value is null, and an entry is added to the env map detailing that location\r\n // If neither method is specified, no access control is applied\r\n MBeanServerForwarder authzProxy = configureJmxAuthorization(env);\r\n\r\n // Make sure we use our custom exporter so a full GC doesn't get scheduled every\r\n // sun.rmi.dgc.server.gcInterval millis (default is 3600000ms/1 hour)\r\n env.put(RMIExporter.EXPORTER_ATTRIBUTE, new Exporter());\r\n\r\n JMXConnectorServer jmxServer =\r\n JMXConnectorServerFactory.newJMXConnectorServer(new JMXServiceURL(url),\r\n env,\r\n ManagementFactory.getPlatformMBeanServer());\r\n\r\n // If a custom authz proxy was created, attach it to the server now.\r\n if (authzProxy != null)\r\n jmxServer.setMBeanServerForwarder(authzProxy);\r\n\r\n logger.info(\"Configured JMX server at: {}\", url);\r\n return jmxServer;\r\n }", "public static ConverterRunner createInstance() { return new ConverterRunner(); }", "public ConnectionMonitorSource() {\n }", "SwSchedulableResource createSwSchedulableResource();", "private JiraManagementService getJiraManagementServicePort() throws JiraManagerException {\r\n try {\r\n return serviceClient.getJiraManagementServicePort();\r\n } catch (WebServiceException e) {\r\n Util.logError(log, e);\r\n throw new JiraManagerException(\"Unable to create JiraManagementService proxy.\", e);\r\n }\r\n }", "private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}", "private void createAndListen() {\n\n\t\t\n\t}", "public SessionPoll() {\n\t\tthis(\"session_poll\", null);\n\t}", "private void initListener()\n {\n listenerTimer = new Timer();\n listenerTimer.schedule(new RemoteListner(this), 1000, 2000);\n }", "SwTimerResource createSwTimerResource();", "public static IPublishManager create() {\n\t\treturn null;\r\n\t}", "public NotificationReceiverService() {\n }", "public static NodeMonitoring createSingletonInstance(String implementation, String myHostname,\n List<String> allHostnames, int port,\n NodeStateChangeHandler nodeStateChangeHandler, Logger logger,\n Properties config) {\n if(implementation.equals(\"zeromq\")) {\n if(singleton_ == null)\n singleton_ = new NodeMonitoringZeroMQ(myHostname, allHostnames, port, nodeStateChangeHandler, logger, config);\n else\n logger.warn(\"Returning an already created instance, the instance will not represent \" +\n \"the new passed parameters!\");\n return singleton_;\n } else\n throw new IllegalArgumentException(\"Unknown implementation name: \" + implementation);\n }", "protected abstract Object createJvmThreadingMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);", "public CalMonitor() {\r\n }", "public static synchronized IocMonitor createAndStartMonitor() {\n\t\tstopAndDisposeIocMonitor();\n\t\tiocMonitor = new IocMonitor();\n\t\ticsTracker = new InterconnectionServerTracker(iocMonitor);\n\t\t\n\t\tsessionServiceTracker = new ServiceTracker(\n\t\t\t\tActivator.getDefault().getBundleContext(),\n\t\t\t\tISessionService.class.getName(), null) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object addingService(ServiceReference reference) {\n\t\t\t\tObject service = super.addingService(reference);\n\t\t\t\ticsTracker.bindService((ISessionService) service);\n\t\t\t\treturn service;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void removedService(ServiceReference reference,\n\t\t\t\t\tObject service) {\n\t\t\t\ticsTracker.unbindService((ISessionService) service);\n\t\t\t\tsuper.removedService(reference, service);\n\t\t\t}\n\t\t};\n\t\tsessionServiceTracker.open();\n\t\treturn iocMonitor;\n\t}", "@SuppressWarnings({\"UnusedDeclaration\"})\n private ThrottleManager() {\n }", "public CreateRemoteClassic<Msg, Ref> create();", "public void startPolling() {\n\t\tThread poller = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tif (consumerTopics.isEmpty()) {\n\t\t\t\t\t\tthrow new Exception(DomainLocalizer.instance().getErrorString(\"kafka.no.consumer.topics\"));\n\t\t\t\t\t}\n\n\t\t\t\t\t// subscribe to topics\n\t\t\t\t\tconsumer.subscribe(consumerTopics);\n\n\t\t\t\t\t// print the topic name\n\t\t\t\t\tconsumerTopics.forEach(topic -> logger\n\t\t\t\t\t\t\t.info(\"Subscribed to topic \" + topic + \", polling at \" + pollingInterval + \" msec\"));\n\n\t\t\t\t\t// polling loop\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t// collection of records\n\t\t\t\t\t\tConsumerRecords<String, String> records = consumer.poll(Duration.ofMillis(pollingInterval));\n\n\t\t\t\t\t\trecords.forEach(consumerRecord -> {\n\t\t\t\t\t\t\tif (listener != null) {\n\t\t\t\t\t\t\t\t// serialize to ApplicationMessage\n\t\t\t\t\t\t\t\tString json = consumerRecord.value();\n\n\t\t\t\t\t\t\t\tif (logger.isInfoEnabled()) {\n\t\t\t\t\t\t\t\t\tlogger.info(\"Received message: \\n\" + json);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tApplicationMessage appMessage = null;\n\n\t\t\t\t\t\t\t\tif (json.contains(MessageType.EQUIPMENT_EVENT.name())) {\n\t\t\t\t\t\t\t\t\t// equipment event\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.EQUIPMENT_EVENT, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.COMMAND.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.COMMAND, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.STATUS.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.STATUS, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.NOTIFICATION.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.NOTIFICATION, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.RESOLVED_EVENT.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.RESOLVED_EVENT, json);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlogger.error(\"Unable to handle message!\");\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlistener.onKafkaMessage(appMessage);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// commits the records assuming that the listeners are\n\t\t\t\t\t\t// successful in handling the messages\n\t\t\t\t\t\tconsumer.commitAsync();\n\t\t\t\t\t}\n\t\t\t\t} catch (WakeupException e) {\n\t\t\t\t\t// expected\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Unexpected error\", e);\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (consumer != null) {\n\t\t\t\t\t\t\tconsumer.commitSync();\n\t\t\t\t\t\t}\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (logger.isInfoEnabled()) {\n\t\t\t\t\t\t\tlogger.info(\"Stopped polling\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tpoller.start();\n\t}", "Millimeter createMillimeter();", "public MonitoredData() {}", "private ServiceMonitoringStatusInterpreter() { /* do nothing */ }", "public JobManager(){\n //Initialize the job manager for use of the system\n }", "public JamonMonitorFactory(final SimpleProfileMonitor rootMonitor) {\n\t\tsuper(rootMonitor);\n\t}", "public NewUserMBean() {\r\n }", "private CardReaderMonitorFactory() {\t\t\n\t}", "public GroovyShellService() {\n \t\tthis(6789);\n \t}", "Reference_Monitor createReference_Monitor();", "public StopWatch() {\n }", "Communicator createCommunicator();", "ProcessorThread(SsmDataManager processor,\n String minDurationInMillis)\n {\n log.info(\"Begin ProcessorThread constructor\");\n this.processor = processor;\n\n try\n {\n this.minDurationInMillis = Long.parseLong(minDurationInMillis);\n log.debug(\"this.minDurationInMillis = \" + this.minDurationInMillis + \" milliseconds\");\n }\n catch (NumberFormatException e)\n {\n log.warn(\"Unable to parse minDurationInMillis = '\" +\n minDurationInMillis +\n \"'; using default value of \" + this.minDurationInMillis + \" milliseconds\");\n }\n\n instance = processor.getInstance();\n nextStartTime = System.currentTimeMillis();\n log.info(\"End ProcessorThread constructor\");\n }", "@Override\n\tpublic void startMonitoring(int interval, String hostname) {\n\n\t\tString key = hostname + \":\" + interval;\n\t\tlogger.debug(\"started monitoring host: \" + hostname);\n\t\ttimer.scheduleAtFixedRate(new MyTimerTask(paysafeUrl, restTemplate, monitoredHosts, key), new Date(),\n\t\t\t\tinterval * 1000);\n\n\t}", "FileSystemWatcher(FileExtractor fileExtractor) {\r\n\t\tthis.pool = Executors.newSingleThreadScheduledExecutor(tFactory);\r\n\t\tthis.fileExtractor = fileExtractor;\r\n\t}", "public LpsClient() {\n super();\n }", "public static synchronized SimpleTimer getInstance(AccumuloConfiguration conf) {\n int threadPoolSize;\n if (conf != null) {\n threadPoolSize = conf.getCount(Property.GENERAL_SIMPLETIMER_THREADPOOL_SIZE);\n } else {\n threadPoolSize = DEFAULT_THREAD_POOL_SIZE;\n }\n return getInstance(threadPoolSize);\n }", "private void init() {\n healthCheckTimer.newTimeout(\n new TimerTask() {\n @Override\n public void run(Timeout timeout) throws Exception {\n if (!isStop) {\n List<BrpcChannel> newHealthyInstances = new ArrayList<BrpcChannel>();\n Iterator<BrpcChannel> iter = unhealthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (isHealthy) {\n newHealthyInstances.add(instance);\n }\n }\n\n List<BrpcChannel> newUnhealthyInstances = new ArrayList<BrpcChannel>();\n iter = healthyInstances.iterator();\n while (iter.hasNext()) {\n BrpcChannel instance = iter.next();\n boolean isHealthy = isInstanceHealthy(instance.getIp(), instance.getPort());\n if (!isHealthy) {\n newUnhealthyInstances.add(instance);\n }\n }\n\n healthyInstances.addAll(newHealthyInstances);\n unhealthyInstances.removeAll(newHealthyInstances);\n\n healthyInstances.removeAll(newUnhealthyInstances);\n unhealthyInstances.addAll(newUnhealthyInstances);\n notifyInvalidInstance(newUnhealthyInstances);\n\n healthCheckTimer.newTimeout(this,\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }\n\n }\n },\n rpcClient.getRpcClientOptions().getHealthyCheckIntervalMillis(),\n TimeUnit.MILLISECONDS);\n }", "@Override\n public Receive<Command> createReceive() {\n return newReceiveBuilder()\n .onMessageEquals(Start.INSTANCE, this::onStart) //Call onStart when Start.INSTANCE is received\n .onMessage(SendPrimesFound.class, this::onSendPrimesFound) //Call onSendPrimesFound when SendPrimesFound class is received\n .onMessage(SetNumbersToSearchAndNumberOfWorkers.class, this::onSetNumbersToSearchAndNumberOfWorkers) //Call onSetNumbersToSearchAndNumberOfWorkers when SetNumbersToSearchAndNumberOfWorkers is received\n .build();\n\n }", "default void createMonitoredProject(\n com.google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateMonitoredProjectMethod(), responseObserver);\n }", "MeterProvider create();", "public NotificationService() {\n super(\"NotificationService\");\n }", "public final void init() throws Exception {\n // Get the Platform MBean Server\n mbs = MBeanServerFactory.createMBeanServer();\n\n // Construct the ObjectName for the Hello MBean\n name = new ObjectName(\n \"org.apache.harmony.test.func.api.javax.management:type=Hello\");\n\n // Create the Hello MBean\n hello = new Hello();\n\n // Register the Hello MBean\n mbs.registerMBean(hello, name);\n\n // Add notification listener\n mbs.addNotificationListener(name, this, null, \"handback\");\n\n // Wait until the notification is received.\n freeze(3000);\n\n // Invoke sayHello method\n mbs.invoke(name, \"sayHello\", new Object[0], new String[0]);\n }", "ExternalActuator createExternalActuator();", "public JiraManagerWebServiceDelegate() {\r\n this(DEFAULT_CONFIG_PATH, DEFAULT_NAMESPACE);\r\n }", "public Stopwatch(String msg) {\n\t\tthis.msg = msg;\n\t\tstart();\n\t}", "private static O11y create(\n Context context, CounterFactory counterFactory, DistributionFactory distributionFactory) {\n return new O11y(\n // throttlingMs is a special counter used by dataflow. When we are having to throttle,\n // we signal to dataflow that fact by adding to this counter.\n // Signaling to dataflow is important so that a bundle isn't categorised as hung.\n counterFactory.get(context.getNamespace(), \"throttlingMs\"),\n // metrics specific to each rpc\n counterFactory.get(context.getNamespace(), \"rpc_failures\"),\n counterFactory.get(context.getNamespace(), \"rpc_successes\"),\n counterFactory.get(context.getNamespace(), \"rpc_streamValueReceived\"),\n distributionFactory.get(context.getNamespace(), \"rpc_durationMs\"),\n // qos wide metrics\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_latencyPerDocumentMs\"),\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_batchCapacityCount\"));\n }", "public ConnectionManager() {\r\n\t\tthis(DEFAULT_PORT, true, true);\r\n\t}", "public ServerMonitor(boolean publish) {\r\n\t\tthis.domain = JMX_DOMAIN_NAME;\r\n\t\tthis.type = JMX_TYPE_NAME;\r\n\t\t\r\n\t\tif(publish) {\r\n\t\t\tregister();\r\n\t\t}\r\n\t\t\r\n\t\tstartTime = System.currentTimeMillis();\r\n\t\tversion = getClass().getPackage().getImplementationVersion();\r\n\t\tallRequestsTracker = new RequestsTracker();\r\n\t\trecentRequestsTracker = new RequestsTracker();\r\n\t\texeService = Executors.newSingleThreadScheduledExecutor();\r\n\t\tmeter = MeterMetric.newMeter(exeService, \"requests\", TimeUnit.SECONDS);\r\n\t}", "@Override\n public void start() {\n try {\n hostname = InetAddress.getLocalHost().getHostName().split(\"\\\\.\")[0];\n }catch (Exception ex2) {\n logger.warn(\"Unknown error occured\", ex2);\n }\n \n collectorRunnable.server = this;\n if (service.isShutdown() || service.isTerminated()) {\n service = Executors.newSingleThreadScheduledExecutor();\n }\n service.scheduleWithFixedDelay(collectorRunnable, 0,\n pollFrequency, TimeUnit.SECONDS);\n\n }", "public MessageDispatcher ()\n\t{\n\t\tthis (new MessageThreadFactory ());\n\t}", "public void start()\n throws Exception\n { \n log.info(\"Reading resource: \\\"\" + this.monitoredObjectsResName + \"\\\"\");\n \n // Organise the handle to the subscription definition resource\n InputStreamReader in = null;\n \n try {\n in = new InputStreamReader(\n this.getClass().getResourceAsStream(this.monitoredObjectsResName));\n }\n catch (Exception e) {\n log.error(\"Accessing resource \\\"\" + this.monitoredObjectsResName + \"\\\"\", e);\n throw e;\n }\n \n // Parse and read-in the resource file\n MonitoredObjList monitoredObjList = null;\n \n try {\n monitoredObjList = MonitoredObjList.unmarshal(in);\n }\n catch (Exception e) {\n log.error(\"Parsing resource \\\"\" + this.monitoredObjectsResName + \"\\\"\", e);\n throw e;\n }\n \n log.info(\"\\\"\" + this.monitoredObjectsResName + \"\\\" \" + \n (monitoredObjList.isValid() ? \"valid\" : \"invalid\") +\n \". Read \" + monitoredObjList.getMonitoredObjCount() + \n \" monitored objects\");\n \n log.info(\"Executing resource: \\\"\" + this.monitoredObjectsResName + \"\\\"\");\n \n // Organise enough space to store the subscribed object names\n this.monitoredObjectsCache =\n new ArrayList(monitoredObjList.getMonitoredObjCount());\n \n // Iterate over the read monitoredObjects and act upon them \n for (int i = 0; i < monitoredObjList.getMonitoredObjCount(); i++) {\n \n // Get monitored object\n MonitoredObj s = monitoredObjList.getMonitoredObj(i);\n \n // Get target object name\n String targetName = s.getObjectName();\n \n if (log.isDebugEnabled())\n log.debug(\"Object \" + i + \" target: \\\"\" + targetName + \"\\\"\");\n \n // Get event types that are of interest and fill in the notification\n // filter\n RegExpNotificationFilterSupport filter =\n new RegExpNotificationFilterSupport();\n \n for (int j = 0; j < s.getNotificationTypeCount(); j++) {\n String eventType = s.getNotificationType(j);\n \n try {\n filter.enableType(eventType);\n \n if (log.isDebugEnabled())\n log.debug(\"Event type \" + (j+1) + \": \\\"\" + eventType + \"\\\"\"); \n }\n catch (REException e) {\n log.warn(\"Error compiling monitored object #\" + i + \n \": Event type \\\"\" + eventType + \"\\\"\", e);\n } \n }\n \n try {\n // Subscribe the notification collector to the monitored object\n ObjectName targetObjectName = new ObjectName(targetName);\n \n server.addNotificationListener(\n targetObjectName, \n listener, \n filter, \n listener.toString());\n \n // Record the object that has been subscribed to \n this.monitoredObjectsCache.add(targetObjectName); \n } \n catch (Exception e) {\n log.warn(\"Error executing monitored object directive #\" + i, e);\n }\n }\n log.info(\"Subscription manager done\");\n }", "Actuator createActuator();", "public ThreadedListenerManager(ExecutorService pool) {\n\t\tmanagerNumber = MANAGER_COUNT.getAndIncrement();\n\t\tthis.pool = pool;\n\t}", "private CNWatch() {\n }", "StartPort createStartPort();", "public NotificationHubWorkItemHandler() {}", "public final static RuntimeMonitor createMonitor(String monitorName) {\r\n ReflectionFactory rf = new ReflectionFactory();\r\n \r\n List<String> packagePath = new ArrayList<String>();\r\n packagePath.add(\"simulator.elevatorcontrol.\");\r\n packagePath.add(\"simulator.elevatormodules.\");\r\n \r\n RuntimeMonitor monitor = null;\r\n try {\r\n monitor = (RuntimeMonitor)rf.createObject(monitorName, packagePath);\r\n } catch (Exception ex) {\r\n throw new RuntimeException(\"Exception while creating runtime monitor: \" + ex, ex);\r\n }\r\n return monitor;\r\n }", "public interface CallMultiplexerFactory {\n <T> T createCallMultiplexer(Class<T> clazz, DispatchExceptionHandler h, T[] delegates) throws Exception;\n}", "public ReceivingMonitoringBean() {\n serviceVessel=new ServiceVessel();\n }", "public SubscriptionManager() {\n subscribers = new ArrayList<>();\n pendingUpdates = new ArrayBlockingQueue<>(1024);\n executionThread = null;\n\n System.out.println(\"SUBSCRIPTION MANAGER INITIALIZED!\");\n }", "public TrafficCounter(ScheduledExecutorService executor, String name, long checkInterval)\r\n/* 113: */ {\r\n/* 114:254 */ if (name == null) {\r\n/* 115:255 */ throw new NullPointerException(\"name\");\r\n/* 116: */ }\r\n/* 117:258 */ this.trafficShapingHandler = null;\r\n/* 118:259 */ this.executor = executor;\r\n/* 119:260 */ this.name = name;\r\n/* 120: */ \r\n/* 121:262 */ init(checkInterval);\r\n/* 122: */ }", "private PumpManager() { }", "public static TCPSocketManager getSocketManager(String host, int port, int delay, boolean immediateFail, Layout<? extends Serializable> layout) {\n/* 99 */ if (Strings.isEmpty(host)) {\n/* 100 */ throw new IllegalArgumentException(\"A host name is required\");\n/* */ }\n/* 102 */ if (port <= 0) {\n/* 103 */ port = 4560;\n/* */ }\n/* 105 */ if (delay == 0) {\n/* 106 */ delay = 30000;\n/* */ }\n/* 108 */ return (TCPSocketManager)getManager(\"TCP:\" + host + \":\" + port, new FactoryData(host, port, delay, immediateFail, layout), FACTORY);\n/* */ }", "public PingImpl() throws RemoteException {\n super(); //cria no rmi\n }", "@Override\n\tprotected IOIOLooper createIOIOLooper() {\n\t\treturn new looper();\n\t}", "private PSStartServerFactory() {\n if(instance == null)\n instance = new PSStartServerFactory();\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "UDPInstance() {\n this(null, null, null, null);\n }", "private void launchPongManagerThread() {\n \t\tPongManager pongManager = new PongManager(this, listenAddress);\n \t\tfinal Thread t = this.listenChannel.getThreadFactory().newThread(pongManager);\n \t\tt.setName(\"Pong Server Manager\");\n \t\tt.start();\n \t}", "public RESTWorkItemHandler() {\n\t}", "public static synchronized SimpleTimer getInstance(int threadPoolSize) {\n if (instance == null) {\n instance = new SimpleTimer(threadPoolSize);\n SimpleTimer.instanceThreadPoolSize = threadPoolSize;\n } else {\n if (SimpleTimer.instanceThreadPoolSize != threadPoolSize) {\n log.warn(\"Asked to create SimpleTimer with thread pool size {}, existing instance has {}\",\n threadPoolSize, instanceThreadPoolSize);\n }\n }\n return instance;\n }" ]
[ "0.5507583", "0.5361708", "0.5170371", "0.5138572", "0.51143175", "0.49932012", "0.49903655", "0.49411583", "0.4934835", "0.48817095", "0.48779783", "0.4858458", "0.4833963", "0.4826357", "0.4787023", "0.4783018", "0.47823796", "0.4780309", "0.47535175", "0.4729719", "0.47287422", "0.47101307", "0.4703284", "0.46971077", "0.46863326", "0.46836695", "0.46551338", "0.4649421", "0.4628754", "0.46233463", "0.4621106", "0.4616175", "0.460649", "0.46060327", "0.4604811", "0.45820096", "0.45777643", "0.45729154", "0.4568212", "0.456104", "0.4545926", "0.45407787", "0.45381966", "0.45050898", "0.4488387", "0.44706592", "0.44670263", "0.44647616", "0.44577503", "0.4456005", "0.44510055", "0.44508362", "0.44398233", "0.44397363", "0.44370082", "0.44356608", "0.442565", "0.44190007", "0.4402537", "0.43974403", "0.43912274", "0.43893272", "0.4385775", "0.43845877", "0.4362302", "0.43616062", "0.43592197", "0.4357607", "0.4350796", "0.4348273", "0.4340246", "0.43396646", "0.43384892", "0.43273774", "0.43254822", "0.43244007", "0.43239826", "0.43169674", "0.43142515", "0.43127492", "0.4311724", "0.4305791", "0.43052194", "0.42991486", "0.42961192", "0.4288131", "0.428677", "0.4286331", "0.42749053", "0.42733145", "0.42707717", "0.4260121", "0.4254953", "0.4254512", "0.42459452", "0.42402592", "0.42399216", "0.42386255", "0.4237912", "0.42312977" ]
0.6171087
0
Override to poll for certain JMX attributes.
protected abstract Object pollNode(MBeanServerConnection connection, String nodeName, int nodeIdx) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DeviceGatewayMonitorJMXMBean {\n\t/**\n\t * @return current tunnel connection count\n\t */\n\tint getTunnelConnectionCount();\n\n\t/**\n\t * @return heartbeat request times in last second\n\t */\n\tlong getHeartbeatCount();\n\n\t/**\n\t * @return list message request times in last second\n\t */\n\tlong getListRequestCount();\n\n\t/**\n\t * @return list message request successful times in last second\n\t */\n\tlong getListSuccessCount();\n\n\t/**\n\t * @return list message service unavailable times in last second\n\t */\n\tlong getListServiceUnavailableCount();\n\n\t/**\n\t * @return register request times in last second\n\t */\n\tlong getRegisterRequestCount();\n\n\t/**\n\t * @return register request successful times in last second\n\t */\n\tlong getRegisterSuccessCount();\n\n\t/**\n\t * @return register service unavailable times in last second\n\t */\n\tlong getRegisterServiceUnavailableCount();\n\n\t/**\n\t * @return auth request times in last second\n\t */\n\tlong getAuthRequestCount();\n\n\t/**\n\t * @return auth request successful times in last second\n\t */\n\tlong getAuthSuccessCount();\n\n\t/**\n\t * @return auth service unavailable times in last second\n\t */\n\tlong getAuthServiceUnavailableCount();\n\n\t/**\n\t * @return count request times in last second\n\t */\n\tlong getCountRequestCount();\n\n\t/**\n\t * @return count request successful times in last second\n\t */\n\tlong getCountSuccessCount();\n\n\t/**\n\t * @return Count service unavailable times in last second\n\t */\n\tlong getCountServiceUnavailableCount();\n\n\t/**\n\t * @return update request times in last second\n\t */\n\tlong getUpdateRequestCount();\n\n\t/**\n\t * @return update request successful times in last second\n\t */\n\tlong getUpdateSuccessCount();\n\n\t/**\n\t * @return update service unavailable times in last second\n\t */\n\tlong getUpdateServiceUnavailableCount();\n\n\t/**\n\t * @return bind request times in last second\n\t */\n\tlong getBindRequestCount();\n\n\t/**\n\t * @return bind request successful times in last second\n\t */\n\tlong getBindSuccessCount();\n\n\t/**\n\t * @return bind service unavailable times in last second\n\t */\n\tlong getBindServiceUnavailableCount();\n\n\t/**\n\t * @return unbind request times in last second\n\t */\n\tlong getUnbindRequestCount();\n\n\t/**\n\t * @return unbind request successful times in last second\n\t */\n\tlong getUnbindSuccessCount();\n\n\t/**\n\t * @return unbind service unavailable times in last second\n\t */\n\tlong getUnbindServiceUnavailableCount();\n\n\t/**\n\t * @return list message request times in last second\n\t */\n\tlong getAckListRequestCount();\n\n\t/**\n\t * @return list message request successful times in last second\n\t */\n\tlong getAckListSuccessCount();\n\n\t/**\n\t * @return list message service unavailable times in last second\n\t */\n\tlong getAckListServiceUnavailableCount();\n}", "public interface ServerMonitorMXBean extends Statistic {\n\n String getHostName();\n\n int getPort();\n\n String getStartupAt();\n\n /**\n * The block IPs\n */\n Set<String> getBlackList();\n}", "boolean isMonitoringEnabled();", "public interface TestMBean {\n\n /**\n * Returns the value of a string attribute.\n * \n * @return String\n */\n public String getStringAttribute();\n\n /**\n * Returns the value of a double attribute.\n * \n * @return Double\n */\n public Double getDoubleAttribute();\n\n /**\n * Returns the value of a float attribute.\n * \n * @return Float\n */\n public Float getFloatAttribute();\n\n /**\n * Returns the value of a long integer attribute.\n * \n * @return Long\n */\n public Long getLongAttribute();\n\n /**\n * Returns the value of a integer attribute.\n * \n * @return Integer\n */\n public Integer getIntegerAttribute();\n\n /**\n * Returns the value of a short attribute.\n * \n * @return Short\n */\n public Short getShortAttribute();\n\n /**\n * Returns the value of a byte attribute.\n * \n * @return Byte\n */\n public Byte getByteAttribute();\n\n /**\n * Returns the value of a big integer attribute.\n * \n * @return BigInteger\n */\n public BigInteger getBigIntegerAttribute();\n\n /**\n * Returns the value of a big decimal attribute.\n * \n * @return BigDecimal\n */\n public BigDecimal getBigDecimalAttribute();\n\n /**\n * Returns the value of a boolean attribute.\n * \n * @return Boolean\n */\n public Boolean getBooleanAttribute();\n\n /**\n * Returns a structured data attribute.\n * \n * @return StructuredData\n */\n public StructuredData getStructuredDataAttribute();\n\n /**\n * Returns an attribute with a data type that is invalid for the check_jmx plugin.\n * \n * @return String[]\n */\n public String[] getInvalidAttribute();\n\n /**\n * Returns an attribute with an invalid numeric type.\n * \n * @return Fraction\n */\n public Fraction getInvalidNumberAttribute();\n\n /**\n * Returns a null attribute value.\n * \n * @return String\n */\n public String getNullAttribute();\n\n /**\n * Operation that can be called as part of the check_jmx plugin flow.\n */\n public void testOperation();\n\n}", "@Override\n public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException {\n if (attribute.equals(\"UpTime\")) {\n return upTime();\n }\n return null;\n }", "boolean isMonitoring();", "boolean isMonitoring();", "@Test\n @ConnectionConfiguration(user = \"stranger\", password = \"1234567\")\n public void testQueryBean() throws MalformedObjectNameException, IOException {\n MBeanServerConnection con = connectionRule.getMBeanServerConnection();\n Set<ObjectInstance> objects =\n con.queryMBeans(ObjectName.getInstance(ResourceConstants.OBJECT_NAME_ACCESSCONTROL), null);\n assertThat(objects.size()).isEqualTo(0); // no AccessControlMBean in the query result\n\n objects = con.queryMBeans(ObjectName.getInstance(\"GemFire:service=CacheServer,*\"), null);\n assertThat(objects.size()).isEqualTo(1);\n }", "protected void reloadMBeanNames()\n {\n try\n {\n GraphDatabaseService genericDb = NeoServer.INSTANCE.database();\n\n if ( genericDb instanceof EmbeddedGraphDatabase )\n {\n EmbeddedGraphDatabase db = (EmbeddedGraphDatabase) genericDb;\n\n // Grab relevant jmx management beans\n ObjectName neoQuery = db.getManagementBean( Kernel.class ).getMBeanQuery();\n String instance = neoQuery.getKeyProperty( \"instance\" );\n String baseName = neoQuery.getDomain() + \":instance=\"\n + instance + \",name=\";\n\n primitivesName = new ObjectName( baseName\n + JMX_NEO4J_PRIMITIVE_COUNT );\n storeSizesName = new ObjectName( baseName\n + JMX_NEO4J_STORE_FILE_SIZES );\n transactionsName = new ObjectName( baseName\n + JMX_NEO4J_TRANSACTIONS );\n memoryMappingName = new ObjectName( baseName\n + JMX_NEO4J_MEMORY_MAPPING );\n kernelName = new ObjectName( baseName + JMX_NEO4J_KERNEL );\n lockingName = new ObjectName( baseName + JMX_NEO4J_LOCKING );\n cacheName = new ObjectName( baseName + JMX_NEO4J_CACHE );\n configurationName = new ObjectName( baseName\n + JMX_NEO4J_CONFIGURATION );\n xaResourcesName = new ObjectName( baseName\n + JMX_NEO4J_XA_RESOURCES );\n }\n\n }\n catch ( MalformedObjectNameException e )\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n catch ( NullPointerException e )\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n catch ( org.neo4j.webadmin.domain.DatabaseBlockedException e )\n {\n e.printStackTrace();\n }\n }", "public boolean getPropertyAlive();", "private void parseJMXConfigXML(String jmxXmlPath) {\n /**\n * Parse the following file\n *\n <JMX xmlns=\"http://wso2.org/projects/carbon/jmx.xml\">\n <StartRMIServer>true</StartRMIServer>\n <HostName>localhost</HostName>\n <RMIRegistryPort>9995</RMIRegistryPort>\n <RMIServerPort>1112</RMIServerPort>\n </JMX>\n *\n */\n String hostName = \"localhost\";\n try {\n hostName = NetworkUtils.getLocalHostname();\n } catch (SocketException ignored) {\n }\n boolean startServer = false;\n int rmiRegistryPort;\n int rmiServerPort;\n try {\n\n DocumentBuilderFactory docBuilderFactory = getSecuredDocumentBuilder();\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n Document doc = docBuilder.parse(new File(jmxXmlPath));\n\n Node jmx = doc.getElementsByTagName(\"JMX\").item(0);\n if (jmx == null) {\n throw new RuntimeException(\"JMX element not found\");\n }\n\n Element jmxEle = (Element) jmx;\n\n if (jmxEle.getElementsByTagName(START_RMI_SERVER).getLength() > 0) {\n Node startRMIServer = jmxEle.getElementsByTagName(START_RMI_SERVER).item(0);\n if (startRMIServer != null) {\n Node item = startRMIServer.getChildNodes().item(0);\n if (item != null) {\n startServer = Boolean.parseBoolean(item.getNodeValue().trim());\n if (!startServer) {\n jmxProperties.setStartServer(false);\n return; // If RMI server is not to be started, then we can simply return\n }\n }\n }\n }\n\n if (jmxEle.getElementsByTagName(JMX_HOST_NAME).getLength() > 0) {\n Node item = jmxEle.getElementsByTagName(JMX_HOST_NAME).item(0);\n if (item != null) {\n item = item.getChildNodes().item(0);\n if (item != null) {\n hostName = item.getNodeValue().trim();\n }\n }\n }\n\n rmiRegistryPort = getPort(JMX_RMI_REGISTRY_PORT, jmxEle);\n rmiServerPort = getPort(JMX_RMI_SERVER_PORT, jmxEle);\n\n jmxProperties.setHostName(hostName);\n jmxProperties.setStartServer(startServer);\n jmxProperties.setRmiRegistryPort(rmiRegistryPort);\n jmxProperties.setRmiServerPort(rmiServerPort);\n } catch (Throwable t) {\n log.fatal(\"Failed to parse jmx.xml\", t);\n }\n\n }", "@SneakyThrows\n @Test\n @Disabled\n public void test() {\n JMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://localhost:9840/jmxrmi\");\n\n JMXConnector jmxc = JMXConnectorFactory.connect(url, null);\n MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();\n Set<ObjectName> names =\n new TreeSet<>(mbsc.queryNames(null, null));\n for (ObjectName name : names) {\n log.debug(\"ObjectName = \" + name);\n }\n\n ObjectName mbeanName = new ObjectName(\"org.apache.commons.dbcp2:name=dataSource,type=BasicDataSource\");\n GenericObjectPoolMXBean mxBean = JMX.newMBeanProxy(mbsc, mbeanName, GenericObjectPoolMXBean.class, true);\n log.debug(\"numActive:{}\", mxBean.getNumActive());\n }", "public abstract MBeanNotificationInfo[] getNotificationInfo();", "public abstract ModuleMonitoring monitoring();", "public void readCpuStat() {\n\t\ttry {\n\t\t\t// monitor total and idle cpu stat of certain process\n\t\t\tRandomAccessFile cpuInfo = new RandomAccessFile(\"/proc/stat\", \"r\");\n\t\t\tString[] toks = cpuInfo.readLine().split(\"\\\\s+\");\n\t\t\tidleCpu = Long.parseLong(toks[4]);\n\t\t\ttotalCpu = Long.parseLong(toks[1]) + Long.parseLong(toks[2])\n\t\t\t\t\t+ Long.parseLong(toks[3]) + Long.parseLong(toks[4])\n\t\t\t\t\t+ Long.parseLong(toks[6]) + Long.parseLong(toks[5])\n\t\t\t\t\t+ Long.parseLong(toks[7]);\n\t\t\tcpuInfo.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t} catch (IOException e) {\n\t\t}\n\t}", "public interface ServerSocketMXBean {\r\n\r\n /**\r\n * Returns all live server-socket IDs. Some server-socket included in the\r\n * returned array may have been terminated when this method returns.\r\n * \r\n * @return an array of <tt>long</tt>, each is a server-socket ID.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n long[] getAllServerSocketIds();\r\n\r\n /**\r\n * Returns the total number of server-sockets opened since the Java virtual\r\n * machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalServerSocketsCount();\r\n\r\n /**\r\n * Returns the peak open server-socket count since the Java virtual machine\r\n * started or the peak was reset.\r\n * \r\n * @return the peak live server-socket count.\r\n */\r\n int getPeakServerSocketCount();\r\n\r\n /**\r\n * Returns the current number of open server-sockets.\r\n * \r\n * @return the current number of open server-sockets.\r\n */\r\n int getServerSocketCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by all server-sockets since\r\n * the Java virtual machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by a server-socket with the\r\n * specified <tt>id</tt>.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount(long id);\r\n\r\n /**\r\n * Returns the server-socket info for a server-socket of the specified\r\n * <tt>id</tt>.\r\n * <p>\r\n * This method returns a <tt>ServerSocketInfo</tt> object representing the\r\n * server-socket information for the server-socket of the specified ID. If a\r\n * server-socket of the given ID is not open or does not exist, this method\r\n * will return <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return a {@link ServerSocketInfo}object for the server-socket of the\r\n * given ID; <tt>null</tt> if the server-socket of the given ID is\r\n * not open or it does not exist.\r\n * @throws IllegalArgumentException if <tt>id &lt= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo getServerSocketInfo(long id);\r\n\r\n /**\r\n * Returns the server-socket info for each server-socket whose ID is in the\r\n * input array <tt>ids</tt>.\r\n * <p>\r\n * This method returns an array of the <tt>ServerSocketInfo</tt> objects.\r\n * If a server-socket of a given ID is not open or does not exist, the\r\n * corresponding element in the returned array will contain <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param ids an array of server-socket IDs\r\n * @return an array of the {@link ServerSocketInfo}objects, each containing\r\n * information about a server-socket whose ID is in the\r\n * corresponding element of the input array of IDs.\r\n * @throws IllegalArgumentException if any element in the input array\r\n * <tt>ids</tt> is <tt>&lt= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo[] getServerSocketInfo(long[] ids);\r\n\r\n /**\r\n * Resets the peak server-socket count to the current number of open\r\n * server-sockets.\r\n * \r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"control\").\r\n * @see #getPeakServerSocketCount\r\n * @see #getServerSocketCount\r\n */\r\n void resetPeakServerSocketCount();\r\n}", "int getMonitors();", "@KSOAP @Cacheable public Boolean getCPUHotPlugEnabled();", "private Object readAttributeUsingPattern(MBeanServerConnection mbeanServer, Map<String, ?> context,\n ObjectInstance observation) throws StatsCollectionFailedException {\n return readAttributeUsingPattern(mbeanServer, context, observation, getAttributeName(), isOptional());\n }", "public static void monitoring(){\n\t\tWebSelector.click(Xpath.monitoring);\n\t}", "protected boolean hasMonitoringPermissions() {\r\n\t\tfinal Jenkins jenkins = Jenkins.getInstance();\r\n\t\treturn jenkins != null && jenkins.hasPermission(Jenkins.ADMINISTER);\r\n\t}", "private void StatisticProperties(HttpServletRequest request, HttpServletResponse response) throws IOException {\n XMLTree tree;\n String statisticNodeToCheck = request.getParameter(\"element\");\n statisticNodeToCheck = statisticNodeToCheck.replace(XML_STATISTICLISTENER + \" \", \"\");\n tree = XMLTree.getInstance();\n response.getWriter().write(tree.getStatisticProperties(statisticNodeToCheck));\n }", "@Override\n public MBeanInfo getMBeanInfo() {\n mBeanInfo = super.getMBeanInfo();\n return mBeanInfo;\n }", "public interface OdlOpenFlowStats2MBean {\n\n /**\n * Getter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public String getOdlOpenflowFlowstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void setOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void checkOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowStatus2\" variable.\n */\n public String getOdlOpenflowStatus2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowStatus2\" variable.\n */\n public void setOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowStatus2\" variable.\n */\n public void checkOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public String getOdlOpenflowManufacturer2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void setOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void checkOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public String getOdlOpenflowMacAddress2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void setOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void checkOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowInterface2\" variable.\n */\n public String getOdlOpenflowInterface2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowInterface2\" variable.\n */\n public void setOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowInterface2\" variable.\n */\n public void checkOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowNode2\" variable.\n */\n public String getOdlOpenflowNode2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowNode2\" variable.\n */\n public void setOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowNode2\" variable.\n */\n public void checkOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public String getOdlOpenflowMeterstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void setOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void checkOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n}", "public boolean isMonitored() {\n return monitored;\n }", "public boolean isMonitoringEnabled(){\n return (selectorThread != null ?\n selectorThread.isMonitoringEnabled() : false);\n }", "public MBeanInfo getMBeanInfo() {\n buildDynamicMBeanInfo();\n return dMBeanInfo;\n }", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public BasicServerMetricsListener() {\n myServerMetrics = new ConcurrentHashMap<String, BasicServerMetrics>();\n }", "private void getDynamicProfie() {\n getDeviceName();\n }", "public Properties getStatusForMgs(List listOfResourceIDs, List listOfAttributeIDs)\n/* */ {\n/* 2183 */ return FaultUtil.getStatus(listOfResourceIDs, listOfAttributeIDs);\n/* */ }", "public static void main(String[] args) {\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n ApplicationContext context = new ClassPathXmlApplicationContext(\"appContext.xml\");\n\n\n try {\n ObjectName objectName = new ObjectName(\"com.thoughtworks.recordplayback:name=RecordPlayBackRunMode\");\n\n MBeanInfo runModeInfo = mbs.getMBeanInfo(objectName);\n\n for (MBeanOperationInfo operationInfo : runModeInfo.getOperations()) {\n System.out.println(operationInfo.getName());\n }\n\n Thread.sleep(60000 * 3);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static void main(String[] args) throws InstanceNotFoundException, AttributeNotFoundException, MalformedObjectNameException, ReflectionException, MBeanException {\r\n \r\n MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();\r\n Object attribute = mBeanServer.getAttribute(new ObjectName(\"java.lang\",\"type\",\"OperatingSystem\"), \"TotalPhysicalMemorySize\");\r\n Object attribute2 = mBeanServer.getAttribute(new ObjectName(\"java.lang\",\"type\",\"OperatingSystem\"), \"FreePhysicalMemorySize\");\r\n System.out.println(\"Total memory: \"+ (double) Long.parseLong(attribute.toString()) / 1024/1024/1024 + \" gigabytes\");\r\n System.out.println(\"Free memory: \"+ (double) Long.parseLong(attribute2.toString()) / 1024/1024/1024 + \" gigabytes\");\t\r\n\r\n }", "public boolean probe() {\r\n List<String> sql = new ArrayList<String>(3);\r\n sql.add(\"SELECT type_id, css, name, description, format, config \" +\r\n \" FROM PropertyTypes\");\r\n sql.add(\"SELECT group_id, parent_group, group_type \" +\r\n \" FROM PropertyGroups\");\r\n sql.add(\"SELECT vprop_id, group_id, type_id, prop_value, enabled \" +\r\n \" FROM VisualProperties\");\r\n sql.add(\"SELECT vprop_id, prop_value, enabled, units, minimum, \" +\r\n \" maximum, on_value, off_value, options_only, regex, regext \" +\r\n \" FROM PropertyConfigurations\"); \r\n sql.add(\"SELECT vprop_id, option_value \" +\r\n \" FROM ConfigurationOptions\");\r\n \r\n return probe(sql);\r\n \r\n }", "private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }", "private List<String> getAttributes(ModuleURN inURN) throws Exception {\r\n MBeanInfo beanInfo = getMBeanServer().getMBeanInfo(inURN.toObjectName());\r\n List<String> attribs = new ArrayList<String>();\r\n for(MBeanAttributeInfo info: beanInfo.getAttributes()) {\r\n attribs.add(info.getName());\r\n }\r\n return attribs;\r\n }", "public void listen() {\n DeviceManager cpuUsage = new CPUUsageManager();\n cpuUsage.printStatus();\n \n }", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "protected <T extends HelixProperty> T pollForProperty(Class<T> clazz, HelixDataAccessor accessor,\n PropertyKey key, boolean shouldExist) throws InterruptedException {\n final int POLL_TIMEOUT = 5000;\n final int POLL_INTERVAL = 50;\n T property = accessor.getProperty(key);\n int timeWaited = 0;\n while (((shouldExist && property == null) || (!shouldExist && property != null))\n && timeWaited < POLL_TIMEOUT) {\n Thread.sleep(POLL_INTERVAL);\n timeWaited += POLL_INTERVAL;\n property = accessor.getProperty(key);\n }\n return property;\n }", "public abstract boolean getProperty(String propertyName);", "@Test\n public void testInvokeStatsValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n double result = CSJmxStats.invokeStatsValueMethod();\n //Result should be greater than 0\n assertEquals(true, result > 0);\n }", "public CachetMetricList getMetrics() {\n throw new RuntimeException(\"Method not implemented.\");\n }", "@Override\n\tpublic String jobType() {\n\t\treturn \"productMonitorStat\";\n\t}", "public Map<String, NodeAttribute> getRefreshAttributes() throws Exception;", "private void initJMX() throws Exception{\n\t\tMap env = new HashMap<String, Object>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\"com.sun.jndi.rmi.registry.RegistryContextFactory\");\r\n\t\tenv.put(RMIConnectorServer.JNDI_REBIND_ATTRIBUTE, \"true\");\r\n\t\tJMXServiceURL url = new JMXServiceURL(\"service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\tObjectName objectName=ObjectName.getInstance(\"test:name=test\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new AdminAgent(),objectName), objectName);\r\n\t\t\r\n\t\tRegion region=CacheFactory.getAnyInstance().getRegion(\"/CHECK\");\t\r\n\t\tObjectName regionObjectName=ObjectName.getInstance(\"region:name=region\");\r\n\t\tManagementFactory.getPlatformMBeanServer().registerMBean(MBeanHandler.createJMXMBean(new RegionAgent(region),regionObjectName), regionObjectName);\r\n\t\tJMXConnectorServer connectorServer = JMXConnectorServerFactory\r\n\t\t.newJMXConnectorServer(url, env, ManagementFactory.getPlatformMBeanServer());\r\n connectorServer.start();\r\n\t\t\r\n//\t\tMBeanHandler.createJMXMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n//\t\tjmxserver.registerMBean(new AdminAgent(), ObjectNameFactory.resolveFromClass(AdminAgent.class));\r\n\t\tSystem.out.println(\"JMX connection is established on: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/server\");\r\n\t\t\r\n\t}", "public MBeanNotificationInfo[] getNotificationInfo(){\n return new MBeanNotificationInfo[] {new MBeanNotificationInfo(new String[] {AttributeChangeNotification.ATTRIBUTE_CHANGE}, AttributeChangeNotification.class.getName(), \"Attribute changed\")};\n }", "public net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors getGetStatusAllMonitors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors target = null;\r\n target = (net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors)get_store().find_element_user(GETSTATUSALLMONITORS$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readDeviceInfo() {\n\t\tboolean flag = oTest.readDeviceInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean getUseTimings()\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(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(USETIMINGS$22);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "boolean hasMetric();", "boolean hasMetric();", "io.netifi.proteus.admin.om.Metrics getMetrics();", "public interface GeocodeWsStatisticsMBean {\n\n long getTotalGoodRequests();\n\n long getTotalBadRequests();\n\n long getTotalServedFromCache();\n\n long getTotalServedFromDatabase();\n\n long getTotalPoliticalHits();\n\n long getTotalEezHits();\n\n long getTotalNoResults();\n\n long getWithing5KmHits();\n\n double getAverageResultSize();\n\n void resetStats();\n}", "javax.management.ObjectName getStateManager();", "public interface SimpleEventBusStatisticsMXBean {\n\n /**\n * Returns the amount of registered listeners.\n *\n * @return long representing the amount of registered listeners\n */\n long getListenerCount();\n\n /**\n * Returns a list of simple class names (class name without its package) of the registered listeners. Multiple\n * listeners with the same name are supported\n *\n * @return List of string representing the names of the registered listeners\n */\n List<String> getListenerTypes();\n\n /**\n * Returns the amount of received events.\n *\n * @return long representing the amount of received events\n */\n long getReceivedEventsCount();\n\n /**\n * resets the amount of events received.\n */\n void resetReceivedEventsCount();\n}", "public default boolean hasMonitor() {\n\t\treturn false;\n\t}", "public void testWatcherUsageStatsTests() {\n long watchCount = randomLongBetween(5, 20);\n for (int i = 0; i < watchCount; i++) {\n watcherClient().preparePutWatch(\"_id\" + i).setSource(watchBuilder()\n .trigger(schedule(cron(\"0/5 * * * * ? 2050\")))\n .input(simpleInput())\n .addAction(\"_id\", loggingAction(\"whatever \" + i)))\n .get();\n }\n\n XPackUsageRequest request = new XPackUsageRequest();\n XPackUsageResponse usageResponse = client().execute(XPackUsageAction.INSTANCE, request).actionGet();\n Optional<XPackFeatureSet.Usage> usage = usageResponse.getUsages().stream()\n .filter(u -> u instanceof WatcherFeatureSetUsage)\n .findFirst();\n assertThat(usage.isPresent(), is(true));\n WatcherFeatureSetUsage featureSetUsage = (WatcherFeatureSetUsage) usage.get();\n\n long activeWatchCount = (long) ((Map) featureSetUsage.stats().get(\"count\")).get(\"active\");\n assertThat(activeWatchCount, is(watchCount));\n }", "javax.management.ObjectName getMessageCache();", "public String getPollProperties() {\n return getXproperty(BwXproperty.pollProperties);\n }", "public interface FilterServiceManagementMBean {\n\n\t/**\n\t * Return all registered filters\n\t * \n\t * @return a list of known filters\n\t */\n\tList<String> getFilters();\n\n\t/**\n\t * Return all active with higher priority filter by service\n\t * \n\t * @return a list of used filters\n\t */\n\tList<String> getActiveFilters();\n\n\t/**\n\t * Launch the reinitialization of the filter list (relaod form disk)\n\t * \n\t * @throws IOException\n\t * if an error while reading the file system\n\t */\n\tvoid reinitFilters() throws IOException;\n\n}", "protected Object[] get_ComponentInfo()\n {\n return new Object[]\n {\n \"ReporterMBean contains settings and statistics for the Coherence JMX Reporter.\",\n \"com.bea.owner=Context,com.bea.VisibleToPartitions=ALWAYS\",\n };\n }", "public int getPollInterval();", "public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}", "void startStatisticsMonitor();", "@CalledByNative\n private static void getMeasurementApiStatus() {\n ThreadUtils.assertOnBackgroundThread();\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {\n AttributionOsLevelManagerJni.get().onMeasurementStateReturned(0);\n return;\n }\n if (ContextUtils.getApplicationContext().checkPermission(\n PERMISSION_ACCESS_ADSERVICES_ATTRIBUTION, Process.myPid(), Process.myUid())\n != PackageManager.PERMISSION_GRANTED) {\n // Permission may not be granted when embedded as WebView.\n AttributionOsLevelManagerJni.get().onMeasurementStateReturned(0);\n return;\n }\n MeasurementManagerFutures mm =\n MeasurementManagerFutures.from(ContextUtils.getApplicationContext());\n if (mm == null) {\n AttributionOsLevelManagerJni.get().onMeasurementStateReturned(0);\n return;\n }\n\n ListenableFuture<Integer> future = null;\n try {\n future = mm.getMeasurementApiStatusAsync();\n } catch (IllegalStateException ex) {\n // An illegal state exception may be thrown for some versions of the underlying\n // Privacy Sandbox SDK.\n Log.i(TAG, \"Failed to get measurement API status\", ex);\n }\n\n if (future == null) {\n AttributionOsLevelManagerJni.get().onMeasurementStateReturned(0);\n return;\n }\n\n Futures.addCallback(future, new FutureCallback<Integer>() {\n @Override\n public void onSuccess(Integer status) {\n AttributionOsLevelManagerJni.get().onMeasurementStateReturned(status);\n }\n @Override\n public void onFailure(Throwable thrown) {\n Log.w(TAG, \"Failed to get measurement API status\", thrown);\n AttributionOsLevelManagerJni.get().onMeasurementStateReturned(0);\n }\n }, ContextUtils.getApplicationContext().getMainExecutor());\n }", "void updateMetrics(boolean isSuspended);", "@GET\n @Path(\"/metrics\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getStatus(@Context HttpServletRequest request) {\n try {\n BlahguaSession.ensureAdmin(request);\n return RestUtilities.make200OkResponse(SystemManager.getInstance().processMetrics(false));\n } catch (ResourceNotFoundException e) {\n return RestUtilities.make404ResourceNotFoundResponse(request, e);\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n }\n }", "String[] getPropertyNames(String opName) throws RemoteException;", "@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Collection<MetricInfo> listMetrics() {\n if (!registeredMetrics.isEmpty()) {\n return registeredMetrics.values();\n }\n return null;\n }", "public static boolean isMonitoring(){\n\t\treturn ZMonitorManager.getInstance().getMonitorLifecycle().isMonitorStarted();\n\t}", "boolean hasMetricControl();", "public interface PaxosMBeanInfo {\n /**\n * @return a string identifying the MBean \n */\n public String getName();\n /**\n * If isHidden returns true, the MBean won't be registered with MBean server,\n * and thus won't be available for management tools. Used for grouping MBeans.\n * @return true if the MBean is hidden.\n */\n public boolean isHidden();\n}", "public Object getProperty(String attName);", "boolean hasMetrics();", "boolean hasMetrics();", "public static void systemPropertyTest() {\n\n Properties properties = System.getProperties();\n properties.list(System.out);\n }", "protected void registerPlatformBeans() {\n Set<String> platformDomains = new HashSet<String>(Arrays.asList(mBeanServer.getDomains()));\n for (Map.Entry<ObjectName, ObjectNode> beanEntry : settings.beans.entrySet()) {\n // check if mBean is registered\n MBeanInfo mBeanInfo = null;\n ObjectName objectName = beanEntry.getKey();\n if (!platformDomains.contains(objectName.getDomain())) {\n continue;\n }\n try {\n mBeanInfo = mBeanServer.getMBeanInfo(objectName);\n } catch (Exception e) {\n log.warn(\"Exception while looking up mbean name {} - {}\",objectName.toString(),e.getMessage());\n continue;\n }\n\n handleAttributes(mBeanInfo, objectName, beanEntry.getValue());\n }\n if (settings.logIgnoredAttributes) {\n Set<ObjectName> objectNames = mBeanServer.queryNames(null, null);\n for (ObjectName objectName : objectNames) {\n ObjectNode jsonNodes = settings.beans.get(objectName);\n if (jsonNodes==null) {\n try {\n logAllAttributes(objectName, mBeanServer.getMBeanInfo(objectName));\n } catch (JMException e) {\n log.warn(\"\",e);\n }\n }\n }\n }\n }", "public abstract CustomMetric[] getCustomMetrics();", "boolean isNodesMonitoringDisabled() {\n\t\treturn Boolean.parseBoolean(System.getProperty(\"javamelody.nodes-monitoring-disabled\"));\r\n\t}", "@Generated\n @Selector(\"isBatteryMonitoringEnabled\")\n public native boolean isBatteryMonitoringEnabled();", "private static void listCounters(String pid) {\n VmIdentifier vmId = null;\n try {\n vmId = new VmIdentifier(pid);\n } catch (URISyntaxException e) {\n System.err.println(\"Malformed VM Identifier: \" + pid);\n return;\n }\n try {\n MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost(vmId);\n MonitoredVm monitoredVm = monitoredHost.getMonitoredVm(vmId, -1);\n JStatLogger logger = new JStatLogger(monitoredVm);\n logger.printSnapShot(\"\\\\w*\", // all names\n new AscendingMonitorComparator(), // comparator\n false, // not verbose\n true, // show unsupported\n System.out);\n monitoredHost.detach(monitoredVm);\n } catch (MonitorException ex) {\n ex.printStackTrace();\n }\n }", "public boolean isSetProcStat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PROCSTAT$16) != 0;\n }\n }", "public boolean isSetUseTimings()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(USETIMINGS$22) != null;\n }\n }", "private void addDefaultMonitoredPools() {\n\t\tfor (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans()) {\n\t\t\tif (pool.isUsageThresholdSupported()) {\n\t\t\t\tmonitoredPools.add(pool);\n\t\t\t\tif (CoreMoSyncPlugin.getDefault().isDebugging()) {\n\t\t\t\t\tCoreMoSyncPlugin.trace(\"Monitoring memory pool {0}\", pool.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void retreiveNotificationManagerProperties() {\r\n\r\n\t\tfinal EventManager evtMgr = EventManager.getInstance();\r\n\r\n\t\t// setting the path of the xmlfile for reading the file.\r\n\t\tfinal String sFileNameWithPath = evtMgr.getConfigXMLFilePath() != null ? evtMgr.getConfigXMLFilePath()\r\n\t\t\t\t: EventConstants.DEF_XMLFILE_PATH;\r\n\t\tfinal StringBuffer sbFileNamePath = new StringBuffer();\r\n\r\n\t\tif (sFileNameWithPath.endsWith(File.separator)) {\r\n\t\t\tsbFileNamePath.append(sFileNameWithPath);\r\n\t\t\tsbFileNamePath.append(EventConstants.XMLFILENAME);\r\n\t\t} else {\r\n\t\t\tsbFileNamePath.append(sFileNameWithPath);\r\n\t\t\tsbFileNamePath.append(File.separator);\r\n\t\t\tsbFileNamePath.append(EventConstants.XMLFILENAME);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t// parsing the xml fil\r\n\t\t\t// XMLReader parser =\r\n\t\t\t// XMLReaderFactory.createXMLReader(EventConstants.XMLPARSER);\r\n\t\t\t// parser.setContentHandler(this);\r\n\t\t\t// parser.parse(new InputSource(new InputStreamReader(new\r\n\t\t\t// BufferedInputStream(new\r\n\t\t\t// FileInputStream(sbFileNamePath.toString())), \"UTF-8\")));\r\n\t\t\tStaticUtilities.parseXML(this, new File(sbFileNamePath.toString()));\r\n\t\t} catch (final Exception ex) {\r\n\t\t\tfinal StringBuffer sbException = new StringBuffer(RM.getString(\"VALUE_ERROR_PARSING_MSG\")); //$NON-NLS-1$\r\n\t\t\tsbException.append(sbFileNamePath.toString());\r\n\t\t\tsbException.append(\" file:\\n\"); //$NON-NLS-1$\r\n\t\t\tsbException.append(ex.toString());\r\n\r\n\t\t\tthrow new RuntimeException(sbException.toString());\r\n\t\t}\r\n\t}", "private void refreshLimits() throws IOException, PrivilegedActionException {\n try (InputStream newInputStream = AccessController.doPrivileged(new PrivilegedExceptionAction<InputStream>() {\n @Override\n public InputStream run() throws Exception {\n return delegate.newInputStream(configPath, StandardOpenOption.READ);\n }\n })) {\n Properties properties = new Properties();\n properties.load(newInputStream);\n total = Long.parseLong(properties.getProperty(\"total\"));\n remaining = Long.parseLong(properties.getProperty(\"remaining\"));\n }\n }", "public Boolean liveStreamMetrics() {\n return this.liveStreamMetrics;\n }", "private void buildDynamicMBeanInfo() {\n Logger[] loggers = getLoggers();\n if (this.numChannels == loggers.length) {\n return; // no change -> no need to refresh meta informations\n }\n\n boolean isReadable = true;\n boolean isWritable = true;\n boolean isIs = false; // true if we use \"is\" getter\n\n this.numChannels = loggers.length;\n\n //String[] levels = { \"ERROR\", \"WARN\", \"INFO\", \"CALL\", \"TIME\", \"TRACE\", \"DUMP\", \"PLAIN\" };\n /*\n String[] levels = { \"severe\", \"warning\", \"info\", \"call\", \"trace\", \"dump\" };\n String[] comments = { \"Critical xmlBlaster server error\",\n \"Warning of wrong or problematic usage\",\n \"Informations about operation\",\n \"Tracing functon calls\",\n \"Tracing program executioin\",\n \"Dump internal states\" };\n ArrayList tmp = new ArrayList();\n for (int i= 0; i < arr.length; i++) {\n String name = arr[i].getChannelKey();\n for (int j=0; j<levels.length; j++) {\n tmp.add(new MBeanAttributeInfo(\"logging/\"+name, // trace/core, info/queue, etc.\n \"java.lang.String\",\n comments[j],\n isReadable,\n isWritable,\n isIs));\n }\n }\n */\n ArrayList tmp = new ArrayList();\n for (int i= 0; i < loggers.length; i++) {\n String name = loggers[i].getName();\n tmp.add(new MBeanAttributeInfo(\"logging/\"+name, // trace/core, info/queue, etc.\n \"java.lang.String\",\n \"log level for a specific category\",\n isReadable,\n isWritable,\n isIs));\n }\n\n dAttributes = (MBeanAttributeInfo[])tmp.toArray(new MBeanAttributeInfo[tmp.size()]);\n\n Constructor[] constructors = this.getClass().getConstructors();\n dConstructors[0] = new MBeanConstructorInfo(\"JmxLogLevel(): Constructs a JmxLogLevel object\",\n constructors[0]);\n\n\n MBeanOperationInfo[] dOperations = new MBeanOperationInfo[1];\n MBeanParameterInfo[] params = null; \n dOperations[0] = new MBeanOperationInfo(\"reset\",\n \"reset(): reset log levels to default state\",\n params , \n \"java.common.String\",\n MBeanOperationInfo.ACTION);\n\n dMBeanInfo = new MBeanInfo(dClassName,\n \"Exposing the logging environment.\",\n dAttributes,\n dConstructors,\n dOperations,\n new MBeanNotificationInfo[0]);\n log.debug(\"Created MBeanInfo with \" + tmp.size() + \" attributes\");\n }", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "@Override\n public boolean knownProperty(final QName tag) {\n if (propertyNames.get(tag) != null) {\n return true;\n }\n\n // Not ours\n return super.knownProperty(tag);\n }", "protected Object getMetricValue(ObjectName metricObjectName)\n {\n Object metricValue;\n try\n {\n try\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Value\");\n }\n catch (AttributeNotFoundException ignored)\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Count\");\n }\n }\n catch (Exception e)\n {\n throw new RuntimeException(e);\n }\n return metricValue;\n }", "protected Object getMetricValue(ObjectName metricObjectName)\n {\n Object metricValue;\n try\n {\n try\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Value\");\n }\n catch (AttributeNotFoundException ignored)\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Count\");\n }\n }\n catch (Exception e)\n {\n throw new RuntimeException(e);\n }\n return metricValue;\n }", "@Test\n\tpublic void handlesAttributeWithEmptyLeafNamesProperly() throws Exception {\n\t\tMBeanWithEmptyLeafName bean = new MBeanWithEmptyLeafName();\n\t\tDynamicMBean mbean = createDynamicMBeanFor(bean);\n\n\t\tMBeanAttributeInfo[] attributesInfoArr = mbean.getMBeanInfo().getAttributes();\n\t\tMap<String, MBeanAttributeInfo> nameToAttr = nameToAttribute(attributesInfoArr);\n\n\t\tassertEquals(1, nameToAttr.size());\n\t\tassertTrue(nameToAttr.containsKey(\"pojo\"));\n\t\tassertEquals(10, mbean.getAttribute(\"pojo\"));\n\t}", "public boolean isMonitoringDisabled() {\r\n\t\treturn monitoringDisabled;\r\n\t}", "RakudoObject get_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint);", "List<CacheHealth> getCacheHealth();", "private void checkAndScheduleHealthThresholdMonitor() {\n int healthThresholdPercent = YarnServiceConf.getInt(\n CONTAINER_HEALTH_THRESHOLD_PERCENT,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_PERCENT,\n componentSpec.getConfiguration(), scheduler.getConfig());\n // Validations\n if (healthThresholdPercent == CONTAINER_HEALTH_THRESHOLD_PERCENT_DISABLED) {\n LOG.info(\"No health threshold monitor enabled for component {}\",\n componentSpec.getName());\n return;\n }\n // If threshold is set to outside acceptable range then don't enable monitor\n if (healthThresholdPercent <= 0 || healthThresholdPercent > 100) {\n LOG.error(\n \"Invalid health threshold percent {}% for component {}. Monitor not \"\n + \"enabled.\",\n healthThresholdPercent, componentSpec.getName());\n return;\n }\n // Determine the threshold properties\n long window = YarnServiceConf.getLong(CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_WINDOW_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n long initDelay = YarnServiceConf.getLong(\n CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_INIT_DELAY_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n long pollFrequency = YarnServiceConf.getLong(\n CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC,\n DEFAULT_CONTAINER_HEALTH_THRESHOLD_POLL_FREQUENCY_SEC,\n componentSpec.getConfiguration(), scheduler.getConfig());\n // Validations\n if (window <= 0) {\n LOG.error(\n \"Invalid health monitor window {} secs for component {}. Monitor not \"\n + \"enabled.\",\n window, componentSpec.getName());\n return;\n }\n if (initDelay < 0) {\n LOG.error(\"Invalid health monitor init delay {} secs for component {}. \"\n + \"Monitor not enabled.\", initDelay, componentSpec.getName());\n return;\n }\n if (pollFrequency <= 0) {\n LOG.error(\n \"Invalid health monitor poll frequency {} secs for component {}. \"\n + \"Monitor not enabled.\",\n pollFrequency, componentSpec.getName());\n return;\n }\n LOG.info(\n \"Scheduling the health threshold monitor for component {} with percent \"\n + \"= {}%, window = {} secs, poll freq = {} secs, init-delay = {} \"\n + \"secs\",\n componentSpec.getName(), healthThresholdPercent, window, pollFrequency,\n initDelay);\n // Add 3 extra seconds to initial delay to account for the time taken to\n // request containers before the monitor starts calculating health.\n this.scheduler.executorService.scheduleAtFixedRate(\n new ComponentHealthThresholdMonitor(this, healthThresholdPercent,\n window),\n initDelay + 3, pollFrequency, TimeUnit.SECONDS);\n setHealthThresholdMonitorEnabled(true);\n }", "@Test\n public void testInvokeAbsoluteStatsValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n double result = CSJmxStats.invokeAbsoluteStatsValueMethod();\n //Result should be greater than 0\n assertEquals(true, result > 0);\n }" ]
[ "0.5649131", "0.5625463", "0.5294299", "0.52489555", "0.51867664", "0.5115863", "0.5115863", "0.50516385", "0.5040431", "0.5018714", "0.4999777", "0.49963722", "0.48691422", "0.485563", "0.4849472", "0.48247704", "0.48211187", "0.4808356", "0.48012203", "0.47985587", "0.47791708", "0.4753932", "0.47398603", "0.47373322", "0.47359502", "0.47214147", "0.47160262", "0.47154215", "0.4702576", "0.46984684", "0.46933582", "0.46859455", "0.46755546", "0.46698123", "0.4622058", "0.4618087", "0.46174818", "0.459646", "0.4588505", "0.4586384", "0.45845285", "0.45782188", "0.45738372", "0.45688936", "0.45515493", "0.45447144", "0.45443937", "0.4532456", "0.4531794", "0.4512443", "0.4512443", "0.45082426", "0.44944626", "0.44938606", "0.44932824", "0.4492413", "0.44915685", "0.44909063", "0.44869244", "0.44842738", "0.44823775", "0.4481657", "0.44642377", "0.44522464", "0.44513124", "0.44509673", "0.44500008", "0.44449982", "0.44448894", "0.44400692", "0.44367042", "0.44356182", "0.44078305", "0.44065714", "0.44013748", "0.4388446", "0.4388446", "0.43817717", "0.43812436", "0.43800533", "0.4378694", "0.43706694", "0.43674424", "0.43673536", "0.43633643", "0.43574038", "0.4352935", "0.43483546", "0.43476602", "0.43466786", "0.43433213", "0.43433213", "0.43417075", "0.43417075", "0.43392113", "0.43380776", "0.4332834", "0.4328931", "0.43242684", "0.431382" ]
0.5266092
3
Initialize the contents of the frame.
private void initialize() throws IOException { frame = new JFrame(); frame.setBounds(100, 100, 483, 336); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JLabel lblPlayerView = new JLabel("Player view"); lblPlayerView.setBounds(10, 11, 96, 14); frame.getContentPane().add(lblPlayerView); teamName = new JTextField(); teamName.setBounds(287, 102, 86, 20); frame.getContentPane().add(teamName); teamName.setColumns(10); JLabel lblTeamStatistics = new JLabel("Team statistics"); lblTeamStatistics.setBounds(10, 155, 96, 14); frame.getContentPane().add(lblTeamStatistics); JLabel lblEnterTheName = new JLabel("Enter the name of the team you wish to view:"); lblEnterTheName.setBounds(10, 91, 256, 42); frame.getContentPane().add(lblEnterTheName); JTextArea teamStatistics = new JTextArea(); teamStatistics.setFont(new Font("Monospaced", Font.PLAIN, 10)); teamStatistics.setBounds(10, 180, 173, 106); frame.getContentPane().add(teamStatistics); JButton btnSearch = new JButton("Search"); btnSearch.setBounds(287, 133, 89, 23); frame.getContentPane().add(btnSearch); btnSearch.addActionListener(new ActionListener() { /* * Upon the 'Search' button being clicked, the value of the teamName JTextField * is converted into a String with an appropriate variable name so that it can * be passed as a parameter into the 'viewTeamStatistics' method. Additionally, * the JTextArea of 'teamStatistics' is passed into the method * 'viewTeamStatistics' in order for the information to know where it is going * to be written to. In addition to this I have caught a few exceptions being; * IOException, HeadlessException and SQLException. */ @Override public void actionPerformed(ActionEvent arg0) { try { String teamNameString = teamName.getText(); viewTeamStatistics(teamStatistics, teamNameString); } catch (IOException e) { e.printStackTrace(); } catch (HeadlessException e) { JOptionPane.showMessageDialog(null, "Error"); e.printStackTrace(); } catch (SQLException e) { JOptionPane.showMessageDialog(null, "Error"); e.printStackTrace(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
/ Upon the 'Search' button being clicked, the value of the teamName JTextField is converted into a String with an appropriate variable name so that it can be passed as a parameter into the 'viewTeamStatistics' method. Additionally, the JTextArea of 'teamStatistics' is passed into the method 'viewTeamStatistics' in order for the information to know where it is going to be written to. In addition to this I have caught a few exceptions being; IOException, HeadlessException and SQLException.
@Override public void actionPerformed(ActionEvent arg0) { try { String teamNameString = teamName.getText(); viewTeamStatistics(teamStatistics, teamNameString); } catch (IOException e) { e.printStackTrace(); } catch (HeadlessException e) { JOptionPane.showMessageDialog(null, "Error"); e.printStackTrace(); } catch (SQLException e) { JOptionPane.showMessageDialog(null, "Error"); e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() throws IOException {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 483, 336);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJLabel lblPlayerView = new JLabel(\"Player view\");\n\t\tlblPlayerView.setBounds(10, 11, 96, 14);\n\t\tframe.getContentPane().add(lblPlayerView);\n\n\t\tteamName = new JTextField();\n\t\tteamName.setBounds(287, 102, 86, 20);\n\t\tframe.getContentPane().add(teamName);\n\t\tteamName.setColumns(10);\n\n\t\tJLabel lblTeamStatistics = new JLabel(\"Team statistics\");\n\t\tlblTeamStatistics.setBounds(10, 155, 96, 14);\n\t\tframe.getContentPane().add(lblTeamStatistics);\n\n\t\tJLabel lblEnterTheName = new JLabel(\"Enter the name of the team you wish to view:\");\n\t\tlblEnterTheName.setBounds(10, 91, 256, 42);\n\t\tframe.getContentPane().add(lblEnterTheName);\n\n\t\tJTextArea teamStatistics = new JTextArea();\n\t\tteamStatistics.setFont(new Font(\"Monospaced\", Font.PLAIN, 10));\n\t\tteamStatistics.setBounds(10, 180, 173, 106);\n\t\tframe.getContentPane().add(teamStatistics);\n\n\t\tJButton btnSearch = new JButton(\"Search\");\n\t\tbtnSearch.setBounds(287, 133, 89, 23);\n\t\tframe.getContentPane().add(btnSearch);\n\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\n\t\t\t/*\n\t\t\t * Upon the 'Search' button being clicked, the value of the teamName JTextField\n\t\t\t * is converted into a String with an appropriate variable name so that it can\n\t\t\t * be passed as a parameter into the 'viewTeamStatistics' method. Additionally,\n\t\t\t * the JTextArea of 'teamStatistics' is passed into the method\n\t\t\t * 'viewTeamStatistics' in order for the information to know where it is going\n\t\t\t * to be written to. In addition to this I have caught a few exceptions being;\n\t\t\t * IOException, HeadlessException and SQLException.\n\t\t\t */\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\ttry {\n\t\t\t\t\tString teamNameString = teamName.getText();\n\t\t\t\t\tviewTeamStatistics(teamStatistics, teamNameString);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (HeadlessException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t}", "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 }", "public void viewTeamStatistics(JTextArea teamStatistics, String teamNameString)\n\t\t\tthrows IOException, HeadlessException, SQLException {\n\n\t\tif (findTeam(teamNameString)) {\n\n\t\t\tteamStatistics.setText(null);\n\n\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:sqlite:users\");\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tString SQL = \"select GoalsScored from leaguestandings where TeamName = '\" + teamNameString + \"';\";\n\n\t\t\tResultSet goalsScoredResult = stmt.executeQuery(SQL);\n\t\t\tString gsr = null;\n\t\t\tif (goalsScoredResult.next()) {\n\t\t\t\tgsr = goalsScoredResult.getString(\"GoalsScored\");\n\t\t\t}\n\n\t\t\tint currentGoalsScored = Integer.valueOf(gsr);\n\n\t\t\tString goalsScoredString = String.valueOf(currentGoalsScored);\n\n\t\t\tString goalsConceded = \"select GoalsConceded from leaguestandings where TeamName = '\" + teamNameString\n\t\t\t\t\t+ \"';\";\n\n\t\t\tResultSet goalsConcededResult = stmt.executeQuery(goalsConceded);\n\t\t\tString gcr = null;\n\t\t\tif (goalsConcededResult.next()) {\n\t\t\t\tgcr = goalsConcededResult.getString(\"GoalsConceded\");\n\t\t\t}\n\n\t\t\tint currentGoalsConceded = Integer.valueOf(gcr);\n\n\t\t\tString goalsConcededString = String.valueOf(currentGoalsConceded);\n\n\t\t\tint overallGoalDifference = currentGoalsScored - currentGoalsConceded;\n\n\t\t\tteamStatistics.setText(\"Total goals scored: \" + goalsScoredString + \"\\n\" + \"Total goals conceded: \"\n\t\t\t\t\t+ goalsConcededString + \"\\n\" + \"Overall goal difference: \" + overallGoalDifference);\n\n\t\t} else {\n\t\t\tteamStatistics.setText(null);\n\t\t\tJOptionPane.showMessageDialog(null, \"Team does not exist\");\n\t\t}\n\n\t}", "public searchResultsDisplay(User user) throws IOException, ParseException {\n\n //actionListener that lets the user returns the user to their list\n returntoUserPageButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : returntoUser) {\n listener.stateChanged(event);\n }\n }\n });\n //actionListener that adds the selected game to their list\n m_addGameButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n try {\n m_fileManager = new FileManager();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n m_row = m_gameTable.getSelectedRow(); //gets row of the game that the user wants to add\n String m_title = (String) m_gameTable.getValueAt(m_row, 0);\n String m_rating = scoreTextField.getText(); // gets the rating from the textbox\n\n\n\n for(Game g : (Iterable<Game>) m_searchResult){\n if(g.getTitle().equals(m_title)){\n if(!(m_rating.equals(\"\") || m_rating == null)){ // if the rating is not empty\n g.setRating(m_rating);\n }\n else{\n g.setRating(\"N/A\");\n }\n user.getGameLists().get(0).addGame(g); //adds the game to the user's list\n try {\n m_fileManager.saveUserData(user); //saves the data from the newly added game into the user's own list\n JOptionPane.showMessageDialog(null, \"Game Added!\", \"Success!\", JOptionPane.INFORMATION_MESSAGE);\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : m_addGame) {\n listener.stateChanged(event);\n }\n break;\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }\n }\n }\n });\n\n //ActionListener on searchButton that searches the com.cs_group.objects.Game file again to find another game\n searchButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //gets the title from the textbox\n m_testGame.setTitle(searchGameText.getText());\n try {\n if(m_fileManager1.isGameInList(m_testGame)){ // if the game is in the file\n m_NewSearchResult = m_fileManager1.gamesSearchResult(m_testGame); //makes a new com.cs_group.objects.GameList with the search Result\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : m_addAnotherGame) {\n listener.stateChanged(event);\n }\n }else { JOptionPane.showMessageDialog(null, \"GAME NOT FOUND\", \"ERROR\", JOptionPane.ERROR_MESSAGE);}\n } catch (IOException | ParseException ioException) {\n ioException.printStackTrace();\n }\n }\n });\n }", "private void btnSearch_Clicked() {\n\t\tString input_id=txtStuNum.getText();\n\t\tif(studao.ReturnScore(input_id)!=null) {\n\t\t\tJOptionPane.showMessageDialog(this,\"学生\"+input_id+\",您的成绩是:\"+studao.ReturnScore(input_id));\n\t\t}\n\t\telse if(studao.ReturnScore(input_id)==null){\n\t\t\tJOptionPane.showMessageDialog(this, \"输入栏为空或您还没有考试\");\n\t\t}\n\t}", "private void displaySearch() throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"\\nPlease enter the name of the club you would \" +\r\n \"like to search for or 'back' to return to initial prompt:\");\r\n \r\n // club name that user searches for\r\n String club = in.nextLine();\r\n \r\n // exit if user chooses to do so, otherwise search database\r\n if (\"back\".equalsIgnoreCase(club))\r\n displayOpen();\r\n else\r\n searchClub(club);\r\n }", "private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {\n if (!txtSearch.getText().equals(\"\")) {\n Flights x = new Flights();\n Flights returned = x.searchFlight(txtSearch.getText());\n if (returned.getFlightID().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Not Found\");\n } else {\n SetData(returned);\n \n }\n } else {\n JOptionPane.showMessageDialog(null, \"Enter Data\");\n }\n }", "public static void SearchAction() {\r\n\t\r\n \r\n ActionListener actionListener = new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n \t try {\r\n\t\t\tConnection con=DriverManager.getConnection( \r\n\t\t\t \t\t\"jdbc:mysql://localhost:3306/Test\",\"root\",\"Tdd&08047728\");\r\n\t\t\tString c = SearchField.getText();\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t String query[] = {\r\n\t\t \"SELECT * FROM capstonedatabase5.employees\", \r\n\t\t \"select EmployeeName from capstonedatabase5.employees where EmployeeName like'\" + c +\"_'\" \r\n\t\t \r\n\t\t };\r\n\t\t \r\n\t\t for(String q : query) {\r\n\t\t ResultSet r = stmt.executeQuery(q);\r\n\t\t System.out.println(\"Names for query \"+q+\" are\");\r\n\t\t \r\n\t\t while (r.next()) {\r\n\t\t String name = r.getString(\"EmployeeName\");\r\n\t\t System.out.print(name+\" \");\r\n\t\t }\r\n\t\t System.out.println();\r\n\t\t }\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n \r\n }\r\n };\r\n\r\n SearchButton2.addActionListener(actionListener);\r\n }", "private static void displayStatistics(){\n\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Please enter Club Name: \");\n String clubName = scanner.nextLine();\n leagueManager.displayStatistics(clubName);\n }", "public void displayEvent(String name, String club, PrintWriter out, Connection con) {\n\n ResultSet rs = null;\n\n int year = 0;\n int month = 0;\n int day = 0;\n int act_hr = 0;\n int act_min = 0;\n int signUp = 0;\n int max = 0;\n int size = 0;\n int guests = 0;\n //int teams = 0;\n int c_month = 0;\n int c_day = 0;\n int c_year = 0;\n int c_time = 0;\n int c_hr = 0;\n int c_min = 0;\n\n String format = \"\";\n String pairings = \"\";\n String memcost = \"\";\n String gstcost = \"\";\n String itin = \"\";\n String c_ampm = \"\";\n String act_ampm = \"\";\n\n //\n // Locate the event and display the content\n //\n try {\n\n PreparedStatement stmt = con.prepareStatement (\n \"SELECT * FROM events2b \" +\n \"WHERE name = ?\");\n\n stmt.clearParameters(); // clear the parms\n stmt.setString(1, name);\n rs = stmt.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n year = rs.getInt(\"year\");\n month = rs.getInt(\"month\");\n day = rs.getInt(\"day\");\n act_hr = rs.getInt(\"act_hr\");\n act_min = rs.getInt(\"act_min\");\n signUp = rs.getInt(\"signUp\");\n format = rs.getString(\"format\");\n pairings = rs.getString(\"pairings\");\n size = rs.getInt(\"size\");\n max = rs.getInt(\"max\");\n guests = rs.getInt(\"guests\");\n memcost = rs.getString(\"memcost\");\n gstcost = rs.getString(\"gstcost\");\n c_month = rs.getInt(\"c_month\");\n c_day = rs.getInt(\"c_day\");\n c_year = rs.getInt(\"c_year\");\n c_time = rs.getInt(\"c_time\");\n itin = rs.getString(\"itin\");\n\n } else { // name not found - try filtering it\n\n name = SystemUtils.filter(name);\n\n stmt.clearParameters(); // clear the parms\n stmt.setString(1, name);\n rs = stmt.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n year = rs.getInt(\"year\");\n month = rs.getInt(\"month\");\n day = rs.getInt(\"day\");\n act_hr = rs.getInt(\"act_hr\");\n act_min = rs.getInt(\"act_min\");\n signUp = rs.getInt(\"signUp\");\n format = rs.getString(\"format\");\n pairings = rs.getString(\"pairings\");\n size = rs.getInt(\"size\");\n max = rs.getInt(\"max\");\n guests = rs.getInt(\"guests\");\n memcost = rs.getString(\"memcost\");\n gstcost = rs.getString(\"gstcost\");\n c_month = rs.getInt(\"c_month\");\n c_day = rs.getInt(\"c_day\");\n c_year = rs.getInt(\"c_year\");\n c_time = rs.getInt(\"c_time\");\n itin = rs.getString(\"itin\");\n }\n }\n stmt.close();\n\n //\n // Create time values\n //\n act_ampm = \"AM\";\n\n if (act_hr == 0) {\n\n act_hr = 12; // change to 12 AM (midnight)\n\n } else {\n\n if (act_hr == 12) {\n\n act_ampm = \"PM\"; // change to Noon\n }\n }\n if (act_hr > 12) {\n\n act_hr = act_hr - 12;\n act_ampm = \"PM\"; // change to 12 hr clock\n }\n\n c_hr = c_time / 100;\n c_min = c_time - (c_hr * 100);\n\n c_ampm = \"AM\";\n\n if (c_hr == 0) {\n\n c_hr = 12; // change to 12 AM (midnight)\n\n } else {\n\n if (c_hr == 12) {\n\n c_ampm = \"PM\"; // change to Noon\n }\n }\n if (c_hr > 12) {\n\n c_hr = c_hr - 12;\n c_ampm = \"PM\"; // change to 12 hr clock\n }\n\n //\n // Build the html page\n //\n out.println(SystemUtils.HeadTitle(\"Member Event Information\"));\n out.println(\"<body bgcolor=\\\"#FFFFFF\\\" text=\\\"#000000\\\">\");\n out.println(\"<font face=\\\"Arial, Helvetica, Sans-serif\\\"><center>\");\n\n out.println(\"<table border=\\\"0\\\" valign=\\\"top\\\">\"); // table for main page\n out.println(\"<tr><td align=\\\"center\\\" valign=\\\"top\\\">\");\n out.println(\"<font size=\\\"3\\\">\");\n out.println(\"Event: <b>\" + name + \"</b>\");\n out.println(\"</font></td></tr>\");\n out.println(\"<tr><td align=\\\"left\\\">\");\n out.println(\"<font size=\\\"2\\\"><br><br>\");\n out.println(\"<b>Date:</b>&nbsp;&nbsp; \" + month + \"/\" + day + \"/\" + year);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n if (act_min < 10) {\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":0\" + act_min + \" \" + act_ampm);\n } else {\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":\" + act_min + \" \" + act_ampm);\n }\n out.println(\"<br><br>\");\n\n out.println(\"<b>Format:</b>&nbsp;&nbsp; \" + format + \"<br><br>\");\n out.println(\"<b>Pairings by:</b>&nbsp;&nbsp; \" + pairings);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b># of Teams:</b>&nbsp;&nbsp; \" + max);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Team Size:</b>&nbsp;&nbsp; \" + size + \"<br><br>\");\n out.println(\"<b>Guests per Member:</b>&nbsp;&nbsp;\" + guests);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Cost per Guest:</b>&nbsp;&nbsp;\" + gstcost);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Cost per Member:</b>&nbsp;&nbsp;\" + memcost + \"<br><br>\");\n\n if (signUp != 0) { // if members can sign up\n\n if (c_min < 10) {\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":0\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\n } else {\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\n }\n out.println(\"<br><br>\");\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\n\n out.println(\"<br><br>\");\n out.println(\"To register for this event click on the <b>Events</b> tab after closing this window.<br>\");\n\n } else {\n\n if (!club.equals( \"inverness\" )) { // if NOT Inverness\n\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\n out.println(\"<br><br>\");\n }\n out.println(\"Online sign up was not selected for this event.\");\n }\n out.println(\"</font></td></tr>\");\n out.println(\"<tr><td align=\\\"center\\\">\");\n out.println(\"<font size=\\\"2\\\">\");\n //\n // End of HTML page\n //\n out.println(\"<p align=\\\"center\\\"><br><form>\");\n out.println(\"<input type=\\\"button\\\" value=\\\"CLOSE\\\" onClick='self.close();'>\");\n out.println(\"</form></p>\");\n out.println(\"</font></td>\");\n out.println(\"</tr></table>\");\n out.println(\"</center></font></body></html>\");\n out.close();\n\n }\n catch (Exception exc) {\n out.println(SystemUtils.HeadTitle(\"Database Error\"));\n out.println(\"<BODY><CENTER>\");\n out.println(\"<BR><BR><H3>Database Access Error</H3>\");\n out.println(\"<BR><BR>Sorry, we are unable to access the database at this time.\");\n out.println(\"<BR>Error:\" + exc.getMessage());\n out.println(\"<BR><BR>Please try again later.\");\n out.println(\"<BR><BR>If problem persists, contact your golf shop (provide this information).\");\n out.println(\"<br><br><form>\");\n out.println(\"<input type=\\\"button\\\" value=\\\"Close\\\" onClick='self.close();'>\");\n out.println(\"</form>\");\n out.println(\"</center></font></body></html>\");\n out.close();\n }\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 }", "private void findClubEvent () {\n \n findClubEvent (\n findButton.getText(), \n findText.getText().trim(), \n true);\n \n if (findText.getText().trim().length() == 0) {\n findText.grabFocus();\n statusBar.setStatus(\"Enter a search string\");\n }\n }", "public void actionPerformed(ActionEvent e) {\n displayInfoText(\" \");\n // Turn the search string into a Query\n String queryString = queryWindow.getText().toLowerCase().trim();\n query = new Query(queryString);\n // Take relevance feedback from the user into account (assignment 3)\n // Check which documents the user has marked as relevant.\n if (box != null) {\n boolean[] relevant = new boolean[box.length];\n for (int i = 0; i < box.length; i++) {\n if (box[i] != null)\n relevant[i] = box[i].isSelected();\n }\n query.relevanceFeedback(results, relevant, engine);\n }\n // Search and print results. Access to the index is synchronized since\n // we don't want to search at the same time we're indexing new files\n // (this might corrupt the index).\n long startTime = System.currentTimeMillis();\n synchronized (engine.indexLock) {\n results = engine.searcher.search(query, queryType, rankingType);\n }\n long elapsedTime = System.currentTimeMillis() - startTime;\n // Display the first few results + a button to see all results.\n //\n // We don't want to show all results directly since the displaying itself\n // might take a long time, if there are many results.\n if (results != null) {\n displayResults(MAX_RESULTS, elapsedTime / 1000.0);\n } else {\n displayInfoText(\"Found 0 matching document(s)\");\n\n if (engine.speller != null) {\n startTime = System.currentTimeMillis();\n SpellingOptionsDialog dialog = new SpellingOptionsDialog(50);\n String[] corrections = engine.speller.check(query, 10);\n elapsedTime = System.currentTimeMillis() - startTime;\n System.err.println(\"It took \" + elapsedTime / 1000.0 + \"s to check spelling\");\n if (corrections != null && corrections.length > 0) {\n String choice = dialog.show(corrections, corrections[0]);\n if (choice != null) {\n queryWindow.setText(choice);\n queryWindow.grabFocus();\n\n this.actionPerformed(e);\n }\n }\n }\n }\n }", "public static void viewOutcomeOfPlayedFixtures() throws IOException\n\t{\n\t\tString leagueName = getInputFromEndUser(\"Enter the name of the league/division/tournament (case sensitive) to display its current results.\",\n\t\t\t\"View results of played fixtures.\");\n\t\tif (leagueName.equals(\"\"))\n\t\t\treturn;\n\t\telse\n\t\t{\n\t\t\tFile allLeaguesFile = new File(\"AllDivisionsTournamentsLeagues.txt\");\n\t\t\tif (!allLeaguesFile.exists())\n\t\t\t\tJOptionPane.showMessageDialog(null, \"There are no divisions/tournaments/leagues to load.\", \"Error\", 2);\n\t\t\telse\n\t\t\t{\n\t\t\t\tFileReader allLeaguesReader = new FileReader(\"AllDivisionsTournamentsLeagues.txt\");\n\t\t\t\tScanner allLeaguesScanner = new Scanner(allLeaguesReader);\n\t\t\t\tString lineFromAllLeagues = \"\";\n\t\t\t\twhile (allLeaguesScanner.hasNext() && !lineFromAllLeagues.contains(leagueName))\n\t\t\t\t\tlineFromAllLeagues = allLeaguesScanner.nextLine();\n\t\t\t\tallLeaguesScanner.close();\tallLeaguesReader.close();\n\t\t\t\tif (!lineFromAllLeagues.contains(leagueName))\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Division/Tournament/League \\\"\"+leagueName+\"\\\" not found.\" +\n\t\t\t\t\t\t\"\\n\\nPlease check that you typed the name correctly.\", \"Error\", 2);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tFileReader resultsReader = new FileReader(leagueName+\"Results.txt\");\n\t\t\t\t\tScanner resultsScanner = new Scanner(resultsReader);\n\t\t\t\t\tString lineFromResults = \"\";\n\t\t\t\t\tString[] results;\n\t\t\t\t\tFileReader fixturesReader = new FileReader(leagueName+\"Fixtures.txt\");\n\t\t\t\t\tScanner fixturesScanner = new Scanner(fixturesReader);\n\t\t\t\t\tString lineFromFixtures = \"\";\n\t\t\t\t\tString[] fixtures;\n\t\t\t\t\tint fixtureNumber, homeTeamNumber, awayTeamNumber, homeTeamScore, awayTeamScore;\n\t\t\t\t\tString homeTeamName = \"\", awayTeamName = \"\";\n\t\t\t\t\twhile (resultsScanner.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tlineFromResults = resultsScanner.nextLine();\n\t\t\t\t\t\tresults = lineFromResults.split(\",\");\n\t\t\t\t\t\tlineFromFixtures = fixturesScanner.nextLine();\n\t\t\t\t\t\tfixtures = lineFromFixtures.split(\",\");\n\t\t\t\t\t\tfixtureNumber = Integer.parseInt(results[0]);\n\t\t\t\t\t\thomeTeamNumber = Integer.parseInt(fixtures[1]);\n\t\t\t\t\t\tawayTeamNumber = Integer.parseInt(fixtures[2]);\n\t\t\t\t\t\thomeTeamName = getTeamName(homeTeamNumber, leagueName);\n\t\t\t\t\t\tawayTeamName = getTeamName(awayTeamNumber, leagueName);\n\t\t\t\t\t\thomeTeamScore = Integer.parseInt(results[1]);\n\t\t\t\t\t\tawayTeamScore = Integer.parseInt(results[2]);\n\t\t\t\t\t\tSystem.out.printf(\"%-5s%20s\", fixtureNumber+\".\", homeTeamName+\" \"+homeTeamScore+\" v \"+awayTeamScore+\" \"+awayTeamName+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tfixturesScanner.close();\tfixturesReader.close();\n\t\t\t\t\tresultsScanner.close();\t\tresultsReader.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n statisticspane = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n driver_no = new javax.swing.JTextField();\n name = new javax.swing.JTextField();\n nationality = new javax.swing.JTextField();\n gpwins = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n insertbutton = new javax.swing.JButton();\n updatebutton = new javax.swing.JButton();\n deletebutton = new javax.swing.JButton();\n displaybutton = new javax.swing.JButton();\n clearbutton = new javax.swing.JButton();\n exitbutton = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n team_no = new javax.swing.JTextField();\n team = new javax.swing.JTextField();\n engine = new javax.swing.JTextField();\n base_op = new javax.swing.JTextField();\n driver1 = new javax.swing.JTextField();\n driver2 = new javax.swing.JTextField();\n principal = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n teams_insert = new javax.swing.JButton();\n teams_update = new javax.swing.JButton();\n teams_delete = new javax.swing.JButton();\n teams_display = new javax.swing.JButton();\n teams_clear = new javax.swing.JButton();\n teams_exit = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n raceid = new javax.swing.JTextField();\n gpname = new javax.swing.JTextField();\n circuit = new javax.swing.JTextField();\n location = new javax.swing.JTextField();\n date_of_race = new javax.swing.JTextField();\n no_of_laps = new javax.swing.JTextField();\n lap_length = new javax.swing.JTextField();\n winning_driver = new javax.swing.JTextField();\n winning_team = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n gps_ins = new javax.swing.JButton();\n gps_upd = new javax.swing.JButton();\n gps_del = new javax.swing.JButton();\n gps_disp = new javax.swing.JButton();\n gps_clear = new javax.swing.JButton();\n gps_exit = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jLabel21 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n drivstandings = new javax.swing.JTextArea();\n jLabel22 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n teamstandings = new javax.swing.JTextArea();\n drivchampbutton = new javax.swing.JButton();\n jScrollPane3 = new javax.swing.JScrollPane();\n drivchamp = new javax.swing.JTextArea();\n teamchampbutton = new javax.swing.JButton();\n jScrollPane4 = new javax.swing.JScrollPane();\n teamchamp = new javax.swing.JTextArea();\n jLabel23 = new javax.swing.JLabel();\n gpnamestat = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n gpdatestat = new javax.swing.JTextField();\n jLabel25 = new javax.swing.JLabel();\n gpwinningdriver = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n gpwinningteam = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jScrollPane5 = new javax.swing.JScrollPane();\n drivraceswon = new javax.swing.JTextArea();\n drivname = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n findracedrivwon = new javax.swing.JButton();\n jLabel29 = new javax.swing.JLabel();\n statfinddetails = new javax.swing.JButton();\n jLabel30 = new javax.swing.JLabel();\n stateamname = new javax.swing.JTextField();\n jLabel31 = new javax.swing.JLabel();\n jScrollPane6 = new javax.swing.JScrollPane();\n statraceswonteam = new javax.swing.JTextArea();\n teamraceswon = new javax.swing.JButton();\n clearstat = new javax.swing.JButton();\n exitstat = new javax.swing.JButton();\n standingsdisp = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Driver No\");\n\n jLabel2.setText(\"Name\");\n\n jLabel3.setText(\"Nationality\");\n\n jLabel4.setText(\"GP Wins\");\n\n insertbutton.setText(\"Insert\");\n\n updatebutton.setText(\"Update\");\n\n deletebutton.setText(\"Delete\");\n\n displaybutton.setText(\"Display\");\n\n clearbutton.setText(\"Clear\");\n\n exitbutton.setText(\"Exit\");\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 .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(clearbutton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(exitbutton))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(insertbutton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(updatebutton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(deletebutton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(displaybutton))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(160, 160, 160)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(driver_no)\n .addComponent(name, javax.swing.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE)\n .addComponent(nationality)\n .addComponent(gpwins))))\n .addContainerGap(724, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(driver_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(nationality, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(gpwins, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(31, 31, 31)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(insertbutton)\n .addComponent(updatebutton)\n .addComponent(deletebutton)\n .addComponent(displaybutton))\n .addGap(35, 35, 35)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(clearbutton)\n .addComponent(exitbutton))\n .addContainerGap(163, Short.MAX_VALUE))\n );\n\n statisticspane.addTab(\"Drivers\", jPanel1);\n\n jLabel5.setText(\"Team No\");\n\n jLabel6.setText(\"Team\");\n\n jLabel7.setText(\"Engine\");\n\n jLabel8.setText(\"Base Of Operations\");\n\n jLabel9.setText(\"Driver1\");\n\n jLabel10.setText(\"Driver2\");\n\n jLabel11.setText(\"Principal\");\n\n teams_insert.setText(\"Insert\");\n\n teams_update.setText(\"Update\");\n\n teams_delete.setText(\"Delete\");\n\n teams_display.setText(\"Display\");\n\n teams_clear.setText(\"Clear\");\n\n teams_exit.setText(\"Exit\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(teams_clear)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(teams_exit))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(teams_insert)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(teams_update)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(teams_delete)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(teams_display))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11))\n .addGap(131, 131, 131)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(principal, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(team, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(team_no, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(engine, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(base_op, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(driver1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(driver2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(713, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel5)\n .addGap(4, 4, 4))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(team_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jLabel6))\n .addComponent(team, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(engine, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(base_op, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(driver1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(driver2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(principal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teams_insert)\n .addComponent(teams_update)\n .addComponent(teams_delete)\n .addComponent(teams_display))\n .addGap(35, 35, 35)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teams_clear)\n .addComponent(teams_exit))\n .addContainerGap(125, Short.MAX_VALUE))\n );\n\n statisticspane.addTab(\"Teams\", jPanel2);\n\n jLabel12.setText(\"Race ID\");\n\n jLabel13.setText(\"GP Name\");\n\n jLabel14.setText(\"Circuit\");\n\n jLabel15.setText(\"Location\");\n\n jLabel16.setText(\"Date\");\n\n jLabel17.setText(\"Laps\");\n\n jLabel18.setText(\"Lap Length\");\n\n jLabel19.setText(\"Winning Driver\");\n\n jLabel20.setText(\"Winning Team\");\n\n gps_ins.setText(\"Insert\");\n\n gps_upd.setText(\"Update\");\n\n gps_del.setText(\"Delete\");\n\n gps_disp.setText(\"Display\");\n\n gps_clear.setText(\"Clear\");\n\n gps_exit.setText(\"Exit\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(gps_clear)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(gps_exit))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(gps_ins)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(gps_upd)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(gps_del)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(gps_disp))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12)\n .addComponent(jLabel13)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17)\n .addComponent(jLabel18)\n .addComponent(jLabel19)\n .addComponent(jLabel20))\n .addGap(120, 120, 120)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(gpname, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(winning_team, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)\n .addComponent(winning_driver, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lap_length)\n .addComponent(raceid, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(circuit, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(location, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(date_of_race, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(no_of_laps, javax.swing.GroupLayout.Alignment.LEADING)))))\n .addContainerGap(648, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(raceid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(gpname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(circuit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(location, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(date_of_race, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(no_of_laps, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lap_length, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(winning_driver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(winning_team, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(gps_ins)\n .addComponent(gps_upd)\n .addComponent(gps_del)\n .addComponent(gps_disp))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(gps_clear)\n .addComponent(gps_exit))\n .addContainerGap(108, Short.MAX_VALUE))\n );\n\n statisticspane.addTab(\"GPs\", jPanel3);\n\n jLabel21.setText(\"Drivers Standings\");\n\n drivstandings.setColumns(20);\n drivstandings.setRows(5);\n jScrollPane1.setViewportView(drivstandings);\n\n jLabel22.setText(\"Teams Standings\");\n\n teamstandings.setColumns(20);\n teamstandings.setRows(5);\n jScrollPane2.setViewportView(teamstandings);\n\n drivchampbutton.setText(\"Find Drivers Champion(s)\");\n drivchampbutton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n drivchampbuttonActionPerformed(evt);\n }\n });\n\n drivchamp.setColumns(20);\n drivchamp.setRows(5);\n jScrollPane3.setViewportView(drivchamp);\n\n teamchampbutton.setText(\"Find Teams Champion(s)\");\n teamchampbutton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teamchampbuttonActionPerformed(evt);\n }\n });\n\n teamchamp.setColumns(20);\n teamchamp.setRows(5);\n jScrollPane4.setViewportView(teamchamp);\n\n jLabel23.setText(\"Enter GP Name\");\n\n jLabel24.setText(\"Date\");\n\n jLabel25.setText(\"Winning Driver\");\n\n jLabel26.setText(\"Winning Team\");\n\n jLabel27.setText(\"Enter Driver Name\");\n\n drivraceswon.setColumns(20);\n drivraceswon.setRows(5);\n jScrollPane5.setViewportView(drivraceswon);\n\n jLabel28.setText(\"Races Won\");\n\n findracedrivwon.setText(\"Find Races Won\");\n findracedrivwon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n findracedrivwonActionPerformed(evt);\n }\n });\n\n statfinddetails.setText(\"Find Details\");\n statfinddetails.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n statfinddetailsActionPerformed(evt);\n }\n });\n\n jLabel30.setText(\"Enter Team Name\");\n\n jLabel31.setText(\"Races Won\");\n\n statraceswonteam.setColumns(20);\n statraceswonteam.setRows(5);\n jScrollPane6.setViewportView(statraceswonteam);\n\n teamraceswon.setText(\"Find Races Won\");\n teamraceswon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teamraceswonActionPerformed(evt);\n }\n });\n\n clearstat.setText(\"Clear All\");\n clearstat.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n clearstatActionPerformed(evt);\n }\n });\n\n exitstat.setText(\"Exit\");\n exitstat.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitstatActionPerformed(evt);\n }\n });\n\n standingsdisp.setText(\"Display Standings\");\n standingsdisp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n standingsdispActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE)\n .addComponent(jScrollPane1)\n .addComponent(jLabel21, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(clearstat)\n .addGap(29, 29, 29)\n .addComponent(exitstat)\n .addGap(18, 18, 18)\n .addComponent(standingsdisp)))\n .addGap(30, 30, 30)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(drivchampbutton)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane3))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(teamchampbutton)\n .addGap(22, 22, 22)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27)\n .addComponent(jLabel28))\n .addGap(74, 74, 74)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(findracedrivwon)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane5)\n .addComponent(drivname)))))\n .addGap(31, 31, 31)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23)\n .addComponent(jLabel24)\n .addComponent(jLabel25)\n .addComponent(jLabel26)\n .addComponent(jLabel29)\n .addComponent(jLabel30)\n .addComponent(jLabel31))\n .addGap(48, 48, 48)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(statfinddetails)\n .addComponent(gpnamestat)\n .addComponent(gpdatestat)\n .addComponent(gpwinningdriver)\n .addComponent(gpwinningteam)\n .addComponent(stateamname, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE))\n .addComponent(teamraceswon))\n .addContainerGap(44, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(drivchampbutton))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(80, 80, 80)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(teamchampbutton))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jLabel27))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(drivname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stateamname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel30))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel31)))))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel23)\n .addGap(27, 27, 27)\n .addComponent(jLabel24)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel25))\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabel26)\n .addGap(30, 30, 30)\n .addComponent(jLabel29)))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(0, 24, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(findracedrivwon)\n .addComponent(teamraceswon)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(clearstat)\n .addComponent(exitstat)\n .addComponent(standingsdisp))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(gpnamestat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(gpdatestat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(gpwinningdriver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(gpwinningteam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(statfinddetails)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n statisticspane.addTab(\"Statistics\", jPanel4);\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(statisticspane)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(statisticspane, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n pack();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(300, 300, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\ttxtEnterTheObservatory = new JTextField();\n\t\ttxtEnterTheObservatory.setBounds(103, 54, 204, 35);\n\t\tframe.getContentPane().add(txtEnterTheObservatory);\n\t\ttxtEnterTheObservatory.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Search \");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSpecifiedStatsDisplay.comparingValue = Integer.parseInt(txtEnterTheObservatory.getText());\n\t\t\t\tSpecifiedStatsDisplay specifiedStatsDisplay = new SpecifiedStatsDisplay();\n\t\t\t\tspecifiedStatsDisplay.frame.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(162, 100, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Search for records greater than:\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\tlblNewLabel.setBounds(39, 11, 356, 32);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Back \");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tStatisticsGUI statisticsGUI = new StatisticsGUI();\n\t\t\t\tstatisticsGUI.frame.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(335, 227, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n m_testGame.setTitle(searchGameText.getText());\n try {\n if(m_fileManager1.isGameInList(m_testGame)){ // if the game is in the file\n m_NewSearchResult = m_fileManager1.gamesSearchResult(m_testGame); //makes a new com.cs_group.objects.GameList with the search Result\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : m_addAnotherGame) {\n listener.stateChanged(event);\n }\n }else { JOptionPane.showMessageDialog(null, \"GAME NOT FOUND\", \"ERROR\", JOptionPane.ERROR_MESSAGE);}\n } catch (IOException | ParseException ioException) {\n ioException.printStackTrace();\n }\n }", "public void searchPerson() {\r\n\r\n\t/*get values from text filed*/\r\n\tname = tfName.getText();\r\n\r\n\t/*clear contents of arraylist if there are any from previous search*/\r\n\tpersonsList.clear();\r\n\r\n // intialize recordNumber to zero\r\n\trecordNumber = 0;\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to search.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*get an array list of searched persons using PersonDAO*/\r\n\t\tpersonsList = pDAO.searchPerson(name);\r\n\r\n\t\tif(personsList.size() == 0)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No record found.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/*downcast the object from array list to PersonInfo*/\r\n\t\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\t\ttfName.setText(person.getName());\r\n\t\t\ttfAddress.setText(person.getAddress());\r\n\t\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\t\ttfEmail.setText(person.getEmail());\r\n\t\t}\r\n\t}\r\n\r\n }", "public void actionPerformed(ActionEvent event) {\n\t\tString menuName = event.getActionCommand();\n\t\t//If the Menu option = search then search for the specific box object\n\t\tif (menuName.equals(\"Search\")) {\n\t\t\tif(Project3.sorted_boxes == null) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose a file first\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tString input = JOptionPane.showInputDialog(null, \"Please input the dimensions of the box with the following format: x,y,z\");\n\t\t\t//StringTokenizer to break up the input string to get each individual parameter for the Box object.\n\t\t\tStringTokenizer tokens = new StringTokenizer(input, \",\");\n\t\t\tif (tokens.countTokens() != 3) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter 3 dimensions of the box in order to search.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tint length, width, height;\n\t\t\ttry {\n\t\t\t\t//change the numbers in the string into integers to be used.\n\t\t\t\tlength = Integer.parseInt(tokens.nextToken());\n\t\t\t\twidth = Integer.parseInt(tokens.nextToken());\n\t\t\t\theight = Integer.parseInt(tokens.nextToken());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter 3 valid dimensions of the box.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (length < 1 || width < 1 || height < 1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"The dimensions of the box cannot be less than 1.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//Find the volume of the searched box\n\t\t\tint volume = length * width * height;\n\t\t\t//Create a new JFrame in order to display the result.\n\t\t\tJFrame result = new JFrame();\n\t\t\tresult.setTitle(\"Boxes that are able to fit with the common volume of: \" + volume);\n\t\t\tresult.setSize(400, 400);\n\t\t\tresult.setLocation(800, 200);\n\t\t\tTextArea resultArea = new TextArea();\n\t\t\tresult.getContentPane().add(resultArea);\n\t\t\t\n\t\t\t//Show to results found that are greater than the box searched.\n\t\t\tBoxNode rNode = Project3.sorted_boxes.first.next;\n\t\t\twhile (rNode != null) {\n\t\t\t\tif (rNode.data.volume() >= volume) {\n\t\t\t\t\tresultArea.append(rNode.data.toString() + \"\\n\");\n\t\t\t\t}\n\t\t\t\trNode = rNode.next;\n\t\t\t}\n\t\t\tresult.setVisible(true);\n\t\t}\n\t}", "public void executeDisplaySearch(String indexfile, String queryString) {\n\t\tif (queryString.trim().length() < 1) {\n\t\t\tJOptionPane.showMessageDialog(this, \"No text given to seach!\", \"Search issues\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//System.out.println(\"going to open: \" + indexfile);\n\n\t\t\n\t\t\n\t\t//lets see if it exists at all:\n\t\tFile test = new File(indexfile);\n\t\tif (!test.exists()) {\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"No such index file present\\nAre you sure you have created an index file?\", \"Missing Index\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\tString minDate = new String(\"2020-11-11\");\n\t\tString MaxDate = new String(\"0000-00-00\");\n\t\tBusyWindow bw = new BusyWindow(\"Setup\", \"Adding results\",true);\n\t\ttry {\n\t\t\tSearcher searcher = new IndexSearcher(indexfile);\n\t\t\t//standardanalyser\n\t\t\tQueryParser qp = new QueryParser(\"contents\", analyzer);\n\t\t\tQuery query = qp.parse(queryString);\n\t\t\tSystem.out.println(\"Searching for: \" + query.toString(\"contents\"));\n\t\t\tdatecal.clear();\n\t\t\tresultHits = searcher.search(query);\n\t\t\tSystem.out.println(resultHits.length() + \" total matching documents\");\n\n\t\t\tbw.setMax(resultHits.length());\n\t\t\tbw.setVisible(true);\n\t\t\t// reset the table length\n\n\t\t\tresultTableModel.setRowCount(0);\n\n\t\t\tfor (int i = 0; i < resultHits.length(); i++) {\n\t\t\t\tbw.progress(i);\n\t\t\t\tVector rowvalue = new Vector();\n\t\t\t\tDocument doc = resultHits.doc(i);\n\t\t\t\tfloat score = resultHits.score(i);\n\t\t\t\tString path = doc.get(\"path\");\n\t\t\t\tString curDate = doc.get(\"Date\");\n\t\t\t\tdatecal.addDate(curDate);\n\t\t\t\tif (path != null) {\n\t\t\t\t\trowvalue.add(\"\" + score);\n\n\t\t\t\t\t// we need to get the date and subject from the db\n\t\t\t\t\t// based on the mailref encode in the path with a space\n\t\t\t\t\t// afterwards\n\t\t\t\t\tString mailref = doc.get(\"Mailref\");\n\t\t\t\t\trowvalue.add(curDate);\n\t\t\t\t\tif (compareDatesString(MaxDate, curDate) < 0) {\n\t\t\t\t\t\tMaxDate = curDate;\n\t\t\t\t\t} else if (compareDatesString(minDate, curDate) > 0) {\n\t\t\t\t\t\tminDate = curDate;\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tString data[][] = DBConnect.getSQLData(\"select subject from email where mailref = '\" + mailref\n\t\t\t\t\t\t\t\t+ \"'\");\n\n\t\t\t\t\t\tif (data.length > 0) {\n\t\t\t\t\t\t\trowvalue.add(data[0][0]);\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (SQLException see) {\n\t\t\t\t\t\tsee.printStackTrace();\n\n\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t}\n\n\t\t\t\t\trowvalue.add(mailref);\n\t\t\t\t\t// System.out.println(i + \". =\"+score+\"= \" +\n\t\t\t\t\t// doc.get(\"contents\").substring(0,20));//path );\n\t\t\t\t} else {\n\t\t\t\t\tString url = doc.get(\"url\");\n\t\t\t\t\tif (url != null) {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + url);\n\t\t\t\t\t\tSystem.out.println(\" - \" + doc.get(\"title\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + \"No path nor URL for this document\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\trowvalue.add(-1);\n\t\t\t\trowvalue.add(i);\n\t\t\t\tresultTableModel.addRow(rowvalue);\n\t\t\t}\n\n\t\t} catch (ParseException pe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem with query \" + queryString);\n\t\t\tpe.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem opening \" + indexfile);\n\t\t\tioe.printStackTrace();\n\n\t\t}\n\t\tbw.setVisible(false);\n\t\t// System.out.println(\"Max:\" + MaxDate + \" Min:\"+ minDate);\n\n\t\tm_status.setText(\"Number of results: \" + resultHits.length() + \" From \" + minDate + \" to \" + MaxDate);\n\n\t\tdatecal.setDateRange(minDate, MaxDate);\n\t\tdatecal.paintComponent(datecal.getGraphics());\n\n\t}", "private static void setupFinals(GridPane gp, int numTeams) {\n //final 2 teams\n finalLabel1 = new Label(\"TBD\");\n finalLabel2 = new Label(\"TBD\");\n championLabel = new Label(\"\");\n secondLabel = new Label(\"\");\n thirdLabel = new Label(\"\");\n\n \n \n //finals score input field for left side winner\n finalTextField1 = new TextField();\n finalTextField1.setEditable(false);\n finalTextField1.setMaxSize(60, 10);\n finalTextField1.setPromptText(\"Score\");\n \n //finals score input field for rigth side winner\n finalTextField2 = new TextField();\n finalTextField2.setEditable(false);\n finalTextField2.setMaxSize(60, 10);\n finalTextField2.setPromptText(\"Score\");\n \n //button used to submit the scores\n finalsButton = new Button(\"Submit\");\n finalsButton.setMaxSize(80, 10);\n \n //this figures out what to do when user hits \"submit\"\n finalsButton.addEventHandler(MouseEvent.MOUSE_CLICKED, \n (evt) -> {\n try { \n \n int score1 = Integer.parseInt(finalTextField1.getText());\n int score2 = Integer.parseInt(finalTextField2.getText());\n \n //checks if inputs are legal\n if (score1 < 0 || score2 < 0 || score1 == score2) {\n throw new IllegalArgumentException();\n }\n \n String champ = score1 > score2 ? finalLabel1.getText() : finalLabel2.getText();\n String second = score1 > score2 ? finalLabel2.getText() : finalLabel1.getText();\n \n int lostScore1 = semiFinals.get(0).lostTeam.getScore();\n int lostScore2 = semiFinals.get(1).lostTeam.getScore();\n String third = lostScore1 > lostScore2 ? semiFinals.get(0).lostTeam.getName() : semiFinals.get(1).lostTeam.getName();\n champion.setText(champ);\n \n championLabel.setText(\"Champion: \" + champ);\n secondLabel.setText(\"Second: \" + second);\n thirdLabel.setText(\"Third: \" + third);\n \n finalTextField1.setEditable(false);\n finalTextField2.setEditable(false);\n \n }\n catch (Exception ex) {\n if (ex instanceof IllegalArgumentException || ex instanceof NumberFormatException) {\n finalTextField1.clear();\n finalTextField2.clear();\n System.out.println(\"Please enter only valid Integers as scores.\");\n } \n }\n });\n \n champion = new Label(\"TBD\");\n \n //add all labels and buttons to the gridPane\n gp.add(championLabel, 9, 16);\n gp.add(secondLabel, 9, 17);\n gp.add(thirdLabel, 9, 18);\n gp.add(finalLabel1, 7, 6);\n gp.add(finalLabel2, 12, 6);\n gp.add(finalTextField1, 7, 7);\n gp.add(finalTextField2, 12, 7);\n gp.add(champion, 9, 7);\n gp.add(finalsButton, 9, 6);\n \n }", "@Override\n public void actionPerformed(final ActionEvent evt)\n {\n final String txt = searchBox.getText();\n\n /* Only do something if they user has entered some text */\n if (!txt.trim().isEmpty())\n {\n Actor u = new Actor(txt);\n\n /* Create our GetParameter to do the search */\n GetParameter gp = new GetParameter(u.getKey(), u.getType());\n\n /* Now lets search for content */\n JSocialKademliaStorageEntry val = null;\n try\n {\n val = ConnectionAddPanel.this.systemObjects.getDataManager().get(gp);\n u = (Actor) new Actor().fromSerializedForm(val.getContent());\n ConnectionAddPanel.this.setResult(u);\n }\n catch (ContentNotFoundException | IOException ex)\n {\n System.err.println(\"Ran into a prob when searching for person. Message: \" + ex.getMessage());\n }\n\n if (val != null)\n {\n\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\t\tinstr.setText(\"Click anywhere on the canvas to open the search dialog.\");\r\n\t\t\tdefaultVar(canvas);\r\n\t\t\tJFrame addQuery = new JFrame(\"Find a value\");\r\n\t\t\tString insertPlace = JOptionPane.showInputDialog(addQuery, \"What integer are you looking for?\");\r\n\t\t\tif (insertPlace != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint index = Integer.valueOf(insertPlace);\r\n\t\t\t\t\tcanvas.arrSearch(index);\r\n\t\t\t\t} catch(NumberFormatException error) {\r\n\t\t\t\t\tJFrame frame2 = new JFrame(\"\");\r\n\t\t\t\t\t// Warning\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame2,\r\n\t\t\t\t\t\t\t\"Searched value is not a valid number\",\r\n\t\t\t\t\t\t\t\"Input Warning\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "private void searchBoxUsed(String txt){\n\t\t\tJFrame frame = new JFrame();\n\t\t\tArrayList<location> simLoc = dataBase.search(txt);\n\t\t\tif (simLoc == null) JOptionPane.showMessageDialog(frame, \"'\" + txt + \"' not found.\");\n\t\t\telse if (simLoc.size() == 1){\n\t\t\t\tlocation searchedLoc = simLoc.get(0);\n\t\t\t\tapp.addLocation(searchedLoc);\n\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\trefreshPanels();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString [] possibilities = new String[simLoc.size()];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < simLoc.size(); i ++){\n\t\t\t\t\tpossibilities[i] = i + 1 + \". \" + simLoc.get(i).getName() + \", \" + simLoc.get(i).getCountryCode() + \" Lat: \" \n\t\t\t\t\t\t\t+ simLoc.get(i).getLatitude() + \" Long: \" + simLoc.get(i).getLongitude();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString response = (String) JOptionPane.showInputDialog(frame, \"Which '\" + txt + \"' did you mean?\", \"Search Location\", \n\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, null, possibilities, \"Titan\");\n\t\t\t\n\t\t\t\tif (response != null) {\n\t\t\t\t\t\tlocation searchedLoc = simLoc.get(Integer.parseInt(response.substring(0, response.indexOf('.'))) - 1);\n\t\t\t\t\t\tString[] temp = response.split(\" \");\n\t\t\t\t\t\tint length = app.getMyLocations().length;\n\t\t\t\t\t\tboolean add = true;\n\t\t\t\t\t\tfor (int i = 0; i < length; i ++){\n\t\t\t\t\t\t\tlocation checkLoc = app.getMyLocations()[i];\n\t\t\t\t\t\t\tif (checkLoc.getCityID() == searchedLoc.getCityID())\n\t\t\t\t\t\t\t\tadd = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (add) {\n\t\t\t\t\t\t\tapp.addLocation(searchedLoc);\n\t\t\t\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\t\t\trefreshPanels();\n\t\t\t\t }\n\t\t\t}\n\t\t}", "private static void search_by_name() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project Name: \");\r\n\t\t\tString project_name = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_name, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project name cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(!lockSettings_toggleButton.isSelected()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please lock settings first\", \"Search Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(searchValue_txtfield.getText().trim().isEmpty()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please provide a search value\", \"Search Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tresults.clear();\n\t\t\t\toutput_txtarea.setText(\"\");\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tclient = new MongoClient(host_txtfield.getText(), Integer.parseInt(port_txtfield.getText()));\n\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\toutput_txtarea.setText(e1.getMessage());\n\t\t\t\t} catch (UnknownHostException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\toutput_txtarea.setText(e1.getMessage());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint outputType = 0, inputType;\n\t\t\t\t\n\t\t\t\toutputType = \toutputTypes_dropDown.getSelectedItem().equals(\"PackageDataSet\")? ReadUtility.OUTPUT_PACKAGEDATASET : \n\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"PackageFamily\")? ReadUtility.OUTPUT_PACKAGEFAMILY :\n\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"File\")? ReadUtility.OUTPUT_FILE :\n\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"Package\")? ReadUtility.OUTPUT_PACKAGE :\n\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"ParentFile\")? ReadUtility.OUTPUT_PARENTFILE :\n\t\t\t\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"Source\")? ReadUtility.OUTPUT_SOURCE : -1;\n\t\t\t\t\n\t\t\t\tinputType = \tinputTypes_dropDown.getSelectedItem().equals(\"Object ID\")? ReadUtility.INPUT_OBJECTID :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"PackageDataSet ID\")? ReadUtility.INPUT_PACKAGEDATASETID :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"PackageFamily ID\")? ReadUtility.INPUT_PACKAGEFAMILYID :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"File ID\")? ReadUtility.INPUT_FILEID :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Package ID\")? ReadUtility.INPUT_PACKAGEID :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"ParentFile ID\")? ReadUtility.INPUT_PARENTFILEID :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Source ID\")? ReadUtility.INPUT_SOURCEID :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Processing Start - Date\")? ReadUtility.INPUT_PROCESSINGSTARTED :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Vendor Name\")? ReadUtility.INPUT_VENDORNAME :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Tag\")? ReadUtility.INPUT_TAG :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"md5\")? ReadUtility.INPUT_MD5 :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"sha1\")? ReadUtility.INPUT_SHA1 :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"First Seen - Date\")? ReadUtility.INPUT_FIRSTSEEN :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Last Processed - Date\")? ReadUtility.INPUT_LASTPROCESSED :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Last Retrieved - Date\")? ReadUtility.INPUT_LASTRETRIEVED :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"PackageFamily Name\")? ReadUtility.INPUT_FAMILYNAME :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Name Relation\")? ReadUtility.INPUT_NAMERELATION :\n\t\t\t\t\t\t\t\tinputTypes_dropDown.getSelectedItem().equals(\"Last Modified - Date\")? ReadUtility.INPUT_LASTMODIFIED : -1;\n\t\t\t\t\n\t\t\t\tutil = new ReadUtility(client);\n\t\t\t\t\n\t\t\t\tutil.setDB(dbname_txtfield.getText());\n\t\t\t\t\n\t\t\t\tresults = util.search(outputType, inputType, searchValue_txtfield.getText());\n\t\t\t\t\n\t\t\t\tresult_label.setText(results.size() + \"\");\n\t\t\t\tJOptionPane.showMessageDialog(null, results.size());\n\t\t\t\t\n\t\t\t}", "public void searchAndDisplay(Connection con) throws SQLException, NumberFormatException {\r\n //Declare and initialize all the variables\r\n //Get all the data from the fields and edit format with helper method\r\n String strCourseName = SearchHelper.searchHelper(getName());\r\n String strCourseTitle = SearchHelper.searchHelper(getTitle());\r\n String strCourseDepartment = SearchHelper.searchHelper(getDepartment());\r\n int intSID = getSID();\r\n String strSchoolName = SearchHelper.searchHelper(getSchoolName());\r\n\r\n ResultSet rsResults;\r\n JTable jtbResult;\r\n int intWidth;\r\n\r\n if (intSID == 0) {\r\n rsResults = Queries.searchCourse(con, strCourseName, strCourseTitle, strCourseDepartment, strSchoolName);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(150);\r\n jtbResult.getColumnModel().getColumn(10).setPreferredWidth(50);\r\n intWidth = 975;\r\n } else {\r\n rsResults = Queries.searchCourseWithSID(con, strCourseName, strCourseTitle, strCourseDepartment, intSID);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(50);\r\n intWidth = 825;\r\n }\r\n new PopUp(new JScrollPane(jtbResult), \"Results\", intWidth, 300);\r\n }", "public SearchPanel() {\n\t\t\t fs = new Font [3];\n\t\t\t fs[0] = new Font(\"Lato\", Font.BOLD, 36);\n\t\t\t fs[1] = new Font(\"Open Sans\", 0 , 20);\n\t\t\t fs[2] = new Font(\"Open Sans\", 0 , 12);\n\t\t\t enterSB = new JButton(\"Search\");\n\t\t\t backB = new JButton(\"Return\");\n\t\t\t menuL = new JLabel (\"Search Feature\");\n\t\t\t tF = new JTextField ();\n\t\t\t tA = new JTextArea ();\n\t\t\t enterSB.setFont(fs[1]);\n\t\t\t backB.setFont(fs[2]);\n\t\t\t menuL.setFont(fs[0]);\n\t\t\t tF.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t //tA.setPreferredSize(new Dimension( 200, 24 ));\n\t\t\t tA.setEditable(false);\n\t\t\t tA.setLineWrap(true);\n\t\t\t \n\t\t\t // loads UI elements in view\n\t\t\t add(menuL, BorderLayout.PAGE_START);\n\t\t\t add(tF, BorderLayout.LINE_START);\n\t\t\t add(enterSB, BorderLayout.CENTER);\t \n\t\t\t add(tA, BorderLayout.LINE_END);\n\t\t\t add(backB, BorderLayout.PAGE_END);\n\t\t\t enterSB.addActionListener( new ActionListener()\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e) // if search is clicked\n\t\t\t {\n\t\t\t \t tA.setText(\"Loading...\");\n\t\t\t \t City city = Search.search(Main.cities, tF.getText()); // search the city by name\n\t\t\t \t \n\t\t\t \t if (city == null){\n\t\t\t \t\t tA.setText(\"Couldn't find city!\");\n\t\t\t \t }\n\t\t\t \t else{\n\t\t\t \t\t tA.setText(mainGui.toString(city.getCond()));\n\t\t\t \t }\n\t\t\t }\n\t\t\t });\n\t\t\t backB.addActionListener( new ActionListener() // if back is clicked\n\t\t\t {\n\t\t\t @Override\n\t\t\t public void actionPerformed(ActionEvent e)\n\t\t\t {\n\t\t\t mainGui.paneSwitch(0); // go back to main menu\n\t\t\t }\n\t\t\t });\n\t\t }", "@Override\n public void actionPerformed(ActionEvent e) {\n JButton b = (JButton)e.getSource();\n String output = \"\";\n //For each type of question, append to output\n try{\n if(b.getText().equals(\"Question 1\")){\n String prodCompany = q1Field.getText();\n ArrayList<MovieInfo> info = movies.question1(prodCompany);\n for(MovieInfo movie:info){\n output += movie.toString();\n }\n }\n else if(b.getText().equals(\"Question 2\")){\n String movieTitle = q2Field.getText();\n ArrayList<PersonInfo> writers = movies.question2(movieTitle);\n for(PersonInfo person:writers)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 3\")){\n String role = q3Field.getText(); \n ArrayList<PersonInfo> actors = movies.question3(role);\n for(PersonInfo person:actors)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 4\")){\n int year = 0;\n try{\n year = Integer.parseInt(q4Field.getText()); \n }\n catch(NumberFormatException exc){\n outputArea.setText(\"Year must be formatted properly\");\n }\n ArrayList<PersonInfo> actresses = movies.question4(year);\n for(PersonInfo person:actresses)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 5\")){\n int awardCount = 0;\n try{\n awardCount = Integer.parseInt(q5Field.getText()); \n }\n catch(NumberFormatException exc){\n outputArea.setText(\"Number must be formatted properly\");\n }\n ArrayList<PersonInfo> directors = movies.question5(awardCount);\n for(PersonInfo person:directors)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 6\")){\n PersonInfo country = movies.question6();\n output+=country.toString();\n }\n else if(b.getText().equals(\"Question 7\")){\n String awardType = q7AField.getText();\n String starringActor = q7BField.getText();\n ArrayList<MovieInfo> films = movies.question7(awardType, starringActor);\n for(MovieInfo movie:films)\n output+=movie.toString();\n }\n else if(b.getText().equals(\"Question 8\")){\n ArrayList<MovieInfo> films = movies.question8();\n for(MovieInfo movie:films)\n output+=movie.toString() + \"\\n\";\n }\n else if(b.getText().equals(\"Question 9\")){\n String actress = q9Field.getText();\n PersonInfo act = movies.question9(actress);\n output += act.toString();\n }\n else if(b.getText().equals(\"Question 10\")){\n int year = 0;\n MovieInfo film = null;\n try{//Need year to be formatted properly\n year = Integer.parseInt(q10Field.getText());\n film = movies.question10(year);\n }\n catch(NumberFormatException exc){\n outputArea.setText(\"Year must be formatted properly\");\n }\n output+=film.toString();\n }\n }\n catch(IOException exc){\n //If the web page was not accessed properly\n exc.printStackTrace();\n }\n \n //User input was invalid\n if(output.equals(\"\"))\n output += \"Your input did not return any results\";\n \n outputArea.setText(output);\n }", "@Override\n\tpublic void actionPerformed(ActionEvent ae) {\n\t\tString ActionPerformed = ae.getActionCommand();\n\t\tif(ActionPerformed.equals(\"SUBMIT\"))\n\t\t{\n\t\t\tString name = t1.getText();\n\t\t\tString usn = t2.getText();\n\t\t\tString email = t3.getText();\n\t\t\tString per = t4.getText();\n\t\t\tint p=Integer.parseInt(per);\n\t\t\tString groupp= t8.getText();\n\t\t\tString age= t9.getText();\n\t\t\tint ag=Integer.parseInt(age);\n\t\t\tString fatherName = t10.getText();\n\t\t\tString MotherName = t11.getText();\n\t\t\tString sports = t12.getText();\n try\n {\n \tConnection connection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/openended\",\"root\",\"19mar1999\");\n \t//Insert\n \tString query1=\"insert into student1(name,usn,email,percenatge,gr,age,fathername,mothername,sports)\"+\"values(?,?,?,?,?,?,?,?,?)\";\n \tPreparedStatement ps=connection.prepareStatement(query1);\n ps.setString(1, name); \n ps.setString(2, usn);\n ps.setString(3, email);\n ps.setInt(4, p);\n ps.setString(5, groupp);\n ps.setInt(6, ag);\n ps.setString(7, fatherName);\n ps.setString(8, MotherName);\n ps.setString(9, sports);\n ps.execute();\n }\n catch(Exception e)\n {\n \tSystem.out.println(\"connection fails\"+e);\n }\n dispose();\n new mainframe(sports, sports);\n\t }\n\t\tif(ActionPerformed.equals(\"GETDETAILS\"))\n\t\t{\n\t\t\tString name = t6.getText();\n\t\t\tString usn = t7.getText();\n\t\t\ttry\n\t\t\t{\n\t\t\t\t Statement stmt = null;\n\t\t\t\t Connection conn=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/openended\",\"root\",\"19mar1999\");\n\t\t\t\t stmt = conn.createStatement();\n\t\t\t\t ResultSet rs = null;\n\t\t\t\t stmt.execute(\"select * from student1 where gr='\"+proctorname+\"'\");\n\t\t\t\t rs = stmt.getResultSet();\n\t\t\t\t String sname,susn,semail,sfn,smn,sgp,ssp,sspo;\n\t\t\t\t int sper,sage1;\n\t\t\t\t int count=0;\n\t\t\t\t while(rs.next())\n\t\t\t\t {\n\t\t\t\t\t sname = rs.getString(\"name\");\n\t\t\t\t\t susn= rs.getString(\"usn\");\n\t\t\t\t\t semail= rs.getString(\"email\");\n\t\t\t\t\t sfn= rs.getString(\"fathername\");\n\t\t\t\t\t smn= rs.getString(\"mothername\");\n\t\t\t\t\t sgp= rs.getString(\"gr\");\n\t\t\t\t\t sspo= rs.getString(\"sports\");\n\t\t\t\t\t sage1= rs.getInt(\"age\");\n\t\t\t\t\t sper=rs.getInt(\"percenatge\");\n\t\t\t\t\t if(sname.equals(name) && susn.equals(usn))\n {\n\t\t\t\t\t\t count=1;\n\t\t\t\t\t\t dispose();\n\t\t\t\t\t\t new setpage(sname,susn,semail,sper,sfn,sage1,smn,sgp,sspo,proctorname,proctorpswd);\n }\n \n\t\t\t\t }\n\t\t\t\t if(count==0)\n\t\t\t\t {\n\t\t\t\t\t JOptionPane.showMessageDialog(this, \"INVALID username or password\",\"error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t }\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t}\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}", "private void getSearchButtonSemantics() {\n //TODO implement method\n searchView.getResultsTextArea().setText(\"\");\n if (searchView.getFieldComboBox().getSelectedItem() == null) {\n JOptionPane.showMessageDialog(new JFrame(), \"Please select a field!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getFieldComboBox().requestFocus();\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"SKU\")) {\n Optional<Product> skuoptional = inventoryModel.searchBySku(searchView.getSearchValueTextField().getText());\n if (skuoptional.isPresent()) {//check if there is an inventory with that SKU\n searchView.getResultsTextArea().append(skuoptional.get().toString());\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified SKU was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Name\")) {\n List<Product> name = inventoryModel.searchByName(searchView.getSearchValueTextField().getText());\n if (!name.isEmpty()) {\n for (Product nameproduct : name) {\n searchView.getResultsTextArea().append(nameproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified name was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Wholesale price\")) {\n try {\n List<Product> wholesaleprice = inventoryModel.searchByWholesalePrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!wholesaleprice.isEmpty()) {//check if there is an inventory by that wholesale price\n for (Product wholesalepriceproduct : wholesaleprice) {\n searchView.getResultsTextArea().append(wholesalepriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Retail price\")) {\n try {\n List<Product> retailprice = inventoryModel.searchByRetailPrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!retailprice.isEmpty()) {\n for (Product retailpriceproduct : retailprice) {\n searchView.getResultsTextArea().append(retailpriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Quantity\")) {\n try {\n List<Product> quantity = inventoryModel.searchByQuantity(Integer.parseInt(searchView.getSearchValueTextField().getText()));\n if (!quantity.isEmpty()) {\n for (Product quantityproduct : quantity) {\n searchView.getResultsTextArea().append(quantityproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n }\n }", "private void searchPatient() {\r\n String lName, fName;\r\n lName = search_lNameField.getText();\r\n fName = search_fNameField.getText();\r\n // find patients with the Last & First Name entered\r\n patientsFound = MainGUI.pimsSystem.search_patient(lName, fName);\r\n\r\n // more than one patient found\r\n if (patientsFound.size() > 1) {\r\n\r\n // create String ArrayList of patients: Last, First (DOB)\r\n ArrayList<String> foundList = new ArrayList<String>();\r\n String toAdd = \"\";\r\n // use patient data to make patient options to display\r\n for (patient p : patientsFound) {\r\n toAdd = p.getL_name() + \", \" + p.getF_name() + \" (\" + p.getDob() + \")\";\r\n foundList.add(toAdd);\r\n }\r\n int length;\r\n // clear combo box (in case this is a second search)\r\n while ((length = selectPatient_choosePatientCB.getItemCount()) > 0) {\r\n selectPatient_choosePatientCB.removeItemAt(length - 1);\r\n }\r\n // add Patient Options to combo box\r\n for (int i = 0; i < foundList.size(); i++) {\r\n selectPatient_choosePatientCB.addItem(foundList.get(i));\r\n }\r\n\r\n // display whether patients found or not\r\n JOptionPane.showMessageDialog(this, \"Found More than 1 Result for Last Name, First Name: \" + lName + \", \" + fName\r\n + \".\\nPress \\\"Ok\\\" to select a patient.\",\r\n \"Search Successful\", JOptionPane.DEFAULT_OPTION);\r\n\r\n selectPatientDialog.setVisible(true);\r\n }\r\n\r\n // one patient found\r\n else if (patientsFound.size() == 1) {\r\n\r\n JOptionPane.showMessageDialog(this, \"Found one match for Last Name, First Name: \" + lName + \", \" + fName,\r\n \"Search Successful\", JOptionPane.DEFAULT_OPTION);\r\n // display patient data\r\n currentPatient = patientsFound.get(0);\r\n search_fillPatientFoundData(currentPatient);\r\n }\r\n // no patient found\r\n else {\r\n\r\n JOptionPane.showMessageDialog(this, \"No Results found for Last Name, First Name:\" + lName + \", \" + fName,\r\n \"Search Failed\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public void friendSearchClick(ActionEvent event) throws Exception{\r\n displayAddFriendresults();\r\n }", "public void editTeam(ActionEvent actionEvent) throws IOException, SQLException {\n teamNameEditField.setText(teamCombobox.getValue().getTeamName());\n abbrevationEditField.setText(teamCombobox.getValue().getAbbrevation());\n\n chooseAgeGroup.getSelectionModel().select(teamCombobox.getValue().getAgeGroup());\n chooseCityBox.getSelectionModel().select(teamCombobox.getValue().getCity());\n\n if (teamCombobox.getValue().getTeamLogo() != null) {\n logoChangeImage.setImage(teamCombobox.getValue().getTeamLogo().getImage());\n uploadTeamLogoButton.setText(\"Change Photo\");\n }\n\n editTeamPane.setDisable(false);\n editTeamPane.setVisible(true);\n darkPane.setDisable(false);\n darkPane.setVisible(true);\n\n chooseLeagueTeamBox.getItems().clear();\n chooseLeagueBox.getItems().clear();\n\n ObservableList<String> leagueList = DatabaseManager.getLeagues(user, chooseCityBox.getValue().toString(), chooseAgeGroup.getValue());\n chooseLeagueBox.getSelectionModel().clearSelection();\n chooseLeagueBox .setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose League\");\n } else {\n setText(item);\n }\n }\n });\n if(leagueList.size() != 0){\n chooseLeagueBox.getItems().addAll(leagueList);\n }\n\n chooseLeagueBox.getSelectionModel().select(teamCombobox.getValue().getLeagueName());\n\n ObservableList<String> teamList = DatabaseManager.getLeagueTeams(user, chooseCityBox.getValue().toString(), chooseAgeGroup.getValue(), chooseLeagueBox.getValue().toString());\n chooseLeagueTeamBox.getSelectionModel().clearSelection();\n chooseLeagueTeamBox.setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose Team\");\n } else {\n setText(item);\n }\n }\n });\n if(teamList.size() != 0){\n chooseLeagueTeamBox.getItems().addAll(teamList);\n }\n //chooseLeagueTeamBox.getSelectionModel().select();\n // TODO\n }", "private void search_fillPatientFoundData(patient toDisplay) {\r\n if (toDisplay != null) {\r\n JOptionPane.showMessageDialog(this, \"Filling in Information for Patient Found\",\r\n \"Filling in Info\", JOptionPane.DEFAULT_OPTION);\r\n\r\n // true = yes, false = no policy\r\n String policy;\r\n if (toDisplay.isPolicy())\r\n policy = \"Yes\";\r\n else\r\n policy = \"No\";\r\n\r\n // Appointment Tab\r\n app_lookUpAppointmentTextField.setText(MainGUI.pimsSystem.lookUpAppointmentDate(toDisplay));\r\n app_patientNameTextField.setText(toDisplay.getL_name() + \", \" + toDisplay.getF_name());\r\n\r\n // Patient Info Tab\r\n pInfo_lastNameTextField.setText(toDisplay.getL_name());\r\n pInfo_firstNameTextField.setText(toDisplay.getF_name());\r\n pInfo_middleNameTextField.setText(toDisplay.getM_name());\r\n pInfo_ssnTextField.setText(Integer.toString(toDisplay.getSSN()));\r\n pInfo_dobTextField.setText(toDisplay.getDob());\r\n pInfo_phoneNumberTextField.setText(toDisplay.getP_number());\r\n pInfo_addressTextField.setText(toDisplay.getAddress());\r\n pInfo_cityTextField.setText(toDisplay.getCity());\r\n pInfo_zipCodeTextField.setText(Integer.toString(toDisplay.getZip()));\r\n pInfo_stateComboBox.setSelectedItem(toDisplay.getState());\r\n pInfo_userField.setText(toDisplay.getUser_name());\r\n pInfo_pwField.setText(toDisplay.getPassword());\r\n pInfo_policyComboBox.setSelectedItem(policy);\r\n\r\n // Billing Tab\r\n billing_fullNameField.setText(toDisplay.getL_name() + \", \" + toDisplay.getF_name());\r\n billing_ssnField.setText(Integer.toString(toDisplay.getSSN()));\r\n billing_policyField.setText(policy);\r\n billing_policyField.setEditable(false);\r\n printHistory(toDisplay);\r\n\r\n selectPatientDialog.setVisible(false);\r\n\r\n repaint();\r\n revalidate();\r\n\r\n } else\r\n JOptionPane.showMessageDialog(this, \"No Patient to Select. Make a search first\",\r\n \"Filling in Info\", JOptionPane.DEFAULT_OPTION);\r\n\r\n }", "public UITeam(Object[] data, Account account){\n\n super(account);\n\n list = data;\n\n // Team Location Team Name\n // Manager: \"manager name\"\n // Win/Loss Ratio: xx/xx (xx wins)\n // Players\n // ....\n\n this.account=account;\n\n int rows = 12 + data.length;\n setLayout(new GridLayout(rows,1));\n\n setTitle(\"NHL Analyzer\");\n setSize(400,40*rows);\n\n Panel pnlText = new Panel();\n pnlText.setLayout(new FlowLayout());\n infoBar = new Label(data[1]+\" \"+data[0]);\n pnlText.add(infoBar);\n\n add(pnlText);\n\n Panel pnlText1 = new Panel();\n pnlText1.setLayout(new FlowLayout());\n infoBar1 = new Label(\"Manager: \"+data[2]);\n pnlText1.add(infoBar1);\n\n add(pnlText1);\n\n\n Panel pnlText3 = new Panel();\n pnlText3.setLayout(new FlowLayout());\n infoBar3 = new Label(\"Win/Loss Ratio: \"+data[4]+\" (\"+data[3]+\" wins)\");\n pnlText3.add(infoBar3);\n\n add(pnlText3);\n\n\n Panel pnlText4 = new Panel();\n pnlText4.setLayout(new FlowLayout());\n infoBar4 = new Label(\"Players\");\n pnlText4.add(infoBar4);\n\n add(pnlText4);\n\n buttonList1= new ArrayList<Button>();\n for(int i = 5; i < data.length; i++){\n Object[] player = (Object[])data[i];\n\n Panel pnlPlayer = new Panel();\n pnlPlayer.setLayout(new FlowLayout());\n Label infoBarP = new Label(player[0].toString());\n pnlPlayer.add(infoBarP);\n\n Button btnPlayer = new Button(\"View\");\n\n buttonList1.add(btnPlayer);\n btnPlayer.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n int i = buttonList1.indexOf(evt.getSource());\n playerPress(false,i);\n }\n });\n pnlPlayer.add(btnPlayer);\n\n\n add(pnlPlayer);\n\n }\n\n btnBack = new Button(\"Back\");\n btnBack.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n backPress();\n }\n });\n add(btnBack);\n\n\n addWindowListener(this);\n\n setVisible(true);\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "public BelowAverageComputer() {\n\n name = JOptionPane.showInputDialog(\"Enter The Name Of The Below \"\n + \"Average Computer: \") ;\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tint counter = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < textFieldHolder.size(); i++){//if field isn't empty\n\t\t\t\t\t\tif(!textFieldHolder.get(i).getText().equals(\"\")){\n\t\t\t\t\t\t\t//game.addTeamToGame(textFieldHolder.get(i).getText()); // adds team to game\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"teams: \"+ textFieldHolder.get(i).getText());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(host.isSelected()){\n\t\t\t\t\t\tString portStr = portText.getText();\n\t\t\t\t\t\tSystem.out.println(\"port # : \" + portStr);\n\t\t\t\t\t\t\n\t\t\t\t\t\tint portInt = Integer.parseInt(portStr);\n\t\t\t\t\t\t\n\t\t\t\t\t\tint sliderValue = hostSlider.getValue();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tgameData = new Jeopardy_Game(fileName, teamsFromUser, gameType);\n\t\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnew GameServer(portInt, sliderValue, gameData);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnew GameClient(portInt, hostUN.getText());\n\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\telse if(joinGame.isSelected()){\n\t\t\t\t\t\tString portStr = joinPort.getText();\n\t\t\t\t\t\tSystem.out.println(\"port # : \" + portStr);\n\t\t\t\t\t\tString ipStr = ip.getText();\n\t\t\t\t\t\tint portInt = Integer.parseInt(portStr);\n\t\t\t\t\t\tnew GameClient(portInt, joinName.getText());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{ //if \"not networked\" is selected\n\t\t\t\t\t\tdisplayGB();\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t}", "protected void lbl_searchEvent() {\n\t\tif(text_code.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票代码\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_code.getText().length()!=6||!Userinfochange.isNumeric(text_code.getText())){\n\t\t\tlbl_notice.setText(\"*股票代码为6位数字\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tif(text_place.getText().isEmpty()){\n\t\t\tlbl_notice.setText(\"*请输入股票交易所\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(!text_place.getText().equals(\"sz\") && !text_place.getText().equals(\"sh\")){\n\t\t\tlbl_notice.setText(\"*交易所填写:sz或sh\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tString[] informationtemp = null ;\n\t\ttry {\n\n\t\t\tinformationtemp = Internet.share.Internet.getSharedata(text_place.getText(), text_code.getText());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \"网络异常或者不存在该只股票\", \"异常\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\n\t\t}\n\t\tString name = informationtemp[0];\n\t\tif (name == null) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\tString[] names = new String[2];\n\t\tSystem.out.println(\"搜索出的股票名:\" + name + \"(Dia_buy 297)\");\n\t\tnames = name.split(\"\\\"\");\n\t\tname = names[1];\n\t\tif (name.length() == 0) {\n\t\t\tlbl_notice.setText(\"*不存在的股票\");\n\t\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tinformation = informationtemp;\n\t\tplace = text_place.getText();\n\t\tcode=text_code.getText();\n\t\t\n\t\ttrade_shortsell();//显示文本框内容\n\t\t\n\t\tlbl_notice.setText(\"股票信息获取成功!\");\n\t\tlbl_notice.setForeground(SWTResourceManager.getColor(SWT.COLOR_GREEN));\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n\n jLabel1.setText(\"ResultSet Functionalities\");\n\n jLabel2.setText(\"Player-ID\");\n\n jLabel3.setText(\"Player-Name\");\n\n jLabel4.setText(\"Player-Age\");\n\n jTextField1.setText(\"jTextField1\");\n\n jTextField2.setText(\"jTextField2\");\n\n jTextField3.setText(\"jTextField3\");\n\n jButton1.setText(\"Show\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Search\");\n\n jButton3.setText(\"Insert\");\n\n jButton4.setText(\"Save\");\n\n jButton5.setText(\"Clear\");\n\n jButton6.setText(\"Delete\");\n\n jLabel5.setText(\"Player-Location\");\n\n jTextField4.setText(\"jTextField4\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(220, 220, 220)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(112, 112, 112)\n .addComponent(jButton1)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(112, 112, 112)\n .addComponent(jButton5))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 80, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton2)\n .addComponent(jButton4)\n .addComponent(jButton6))\n .addGap(52, 52, 52))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 297, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(196, 196, 196))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(68, 68, 68)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3)\n .addComponent(jButton4))\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5)\n .addComponent(jButton6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(50, 50, 50))\n );\n }", "private void initialize() {\n\t\t\n\t\t\n\t\tfinal Color twitterDarkBlue = new Color(0,132,180); //From Twitter's Color Palette\n\t\t\n\t\tfrmTweetAnalyser = new JFrame();\n\t\tfrmTweetAnalyser.setTitle(\"SmartTweet Analytics\");\n\t\tfrmTweetAnalyser.setBounds(100, 100, 723, 483);\n\t\tfrmTweetAnalyser.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmTweetAnalyser.getContentPane().setLayout(new FlowLayout());\n\t\tfrmTweetAnalyser.getContentPane().setBackground(new Color(192, 222, 237));\t\n\t\t\n\t\tJLabel lblTag = new JLabel(\"Choose option:\");\n\t\tlblTag.setBounds(25, 22, 46, 14);\n\t\tfrmTweetAnalyser.getContentPane().add(lblTag);\n\t\t\n\t\tcomboBox_2 = new JComboBox();\n\t\tcomboBox_2.setModel(new DefaultComboBoxModel(new String[] {\"@JeeveSobs\" }));\n\t\tcomboBox_2.setBounds(51, 47, 17, 10);\n\t\tfrmTweetAnalyser.getContentPane().add(comboBox_2);\n\t\t\t\t\n\t\tcomboBox = new JComboBox();\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"General Hashtag Data\",\"Most used hashtags\",\"Most used phrases\" }));\n\t\tcomboBox.setBounds(81, 77, 37, 20);\n\t\tfrmTweetAnalyser.getContentPane().add(comboBox);\n\t\t\t\t\n\t\tJButton btnSearch = new JButton(\"Search\");\n\t\tbtnSearch.setBounds(357, 48, 109, 43);\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\t\t\tHiveDatabaseQuery hq=new HiveDatabaseQuery();\n\t\t\t\n\t\t\tString queries_2[]={ \"SELECT YEAR(created_at) as year, MONTH (created_at) as month, entities.hashtags.text[0] as hashtag, COUNT (*) as TweetCount, count(retweeted_status.id) as RetweetCount from tweets WHERE entities.hashtags.text[0] is not null GROUP BY YEAR(created_at), MONTH(created_at), entities.hashtags.text[0] ORDER BY year DESC limit 30\",\n\t\t\t\t\t \"SELECT LOWER(hashtags.text) as Hashtag, COUNT(*) AS total_count FROM tweets LATERAL VIEW EXPLODE(entities.hashtags) t1 AS hashtags GROUP BY LOWER(hashtags.text) ORDER BY total_count DESC limit 30\",\n\t\t\t\t\t \"SELECT explode(ngrams(sentences(lower(text)), 5, 25)) AS x FROM tweets\"};\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry \n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\ttable = new JTable();\n\t\t\t\t\ttable.setOpaque(true);\n\t\t\t\t\ttable.setFillsViewportHeight(true);\n\t\t\t\t\ttable.setBackground(Color.WHITE);\n\t\t\t\t\ttable.setForeground(Color.BLACK);\n\t\t\t\t\ttable.setFont(new Font(\"Serif\", Font.PLAIN, 15));\n\t\t\t\t\tfrmTweetAnalyser.getContentPane().add(table);\n\t\t\t\t\tfinal DefaultTableModel dm=new DefaultTableModel();\n\t\t\t\t\t//table.repaint();\n\t\t\t\t\t\n\t\t\t\t\tint itemIndex = comboBox.getSelectedIndex();\n\t\t\t\t\t\n\t\t\t\t\tResultSet res;\n\t\t\t\t\t\n\t\t\t\t\t\tres = hq.QueryME( queries_2[ itemIndex ] );\n\t\t\t\t\tResultSetMetaData rsmd=res.getMetaData();\n\t\t\t\t\tint cols=rsmd.getColumnCount();\n\t\t\t String c[]=new String[cols];\n\t\t\t for(int i=0;i<cols;i++){\n\t\t\t\t c[i]=rsmd.getColumnName(i+1);\n\t\t\t\t dm.addColumn(c[i]);\n\t\t\t }\n\t\t\t \n\t\t\t Object row[]=new Object[cols];\n\t\t\t String month[] = { \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"June\", \"July\", \"Aug\", \"Sept\", \"Nov\", \"Dec\"};\n\t\t\t while(res.next())\n\t\t\t {\n\t\t\t \t for(int i=0;i<cols;i++){\n\t\t row[i]=res.getString(i+1);\n\t\t String s = res.getString(i+1);\n\t\t \t \n\t\t if(itemIndex == 2) {\n\t\t \t String[] temp;\n\t\t\t temp = s.split(\"\\\"\");\n\t\t\t \n\t\t\t String ans = \"\";\n\t\t\t for(int ii =3; ii < temp.length -2; ii++) {\n\t\t\t \t \n\t\t\t \t ans=ans+temp[ii]+\" \";\n\t\t\t }\n\t\t\t String freq = \"\";\n\t\t\t for(int ii=temp.length - 2; ii < temp.length; ii ++) {\n\t\t\t \t freq = freq + temp[ii];\n\t\t\t }\n\t\t\t \n\t\t\t String freqS[] = freq.split(\":\");\n\t\t\t \t\t\t \n\t\t\t String ans_final=\"\";\n\t\t\t for(int x =0; x < ans.length(); x++) {\n\t\t\t \t if(ans.charAt(x) !=',' && ans.charAt(x) != ']')\n\t\t\t \t\t ans_final = ans_final + ans.charAt(x);\n\t\t\t }\n\t\t\t \n\t\t\t String ekdumFinal = \"Phrase: \\\"\" + ans_final + \"\\n\\t\\\" Frequency: \" + freqS[1]; \n\t\t\t \n\t\t\t row[i] = ekdumFinal;\n\t\t\t //row[i] = ans_final\n\t\t }\n\t\t if(itemIndex == 0 && i == 1) {\n\t\t \t int mon = s.charAt(0) - '0';\n\t\t \t row[i] = month[mon];\n\t\t }\n\t\t\t \t }\n\t\t\t \t dm.addRow(row);\n\t\t\t }\n\t\t\t table.setModel(dm);\n\t \n\t\t\t \n\t\t\t /*\n\t\t\t * Uncomment for auto resize of table, based on coloumn value width.\n\t\t\t */\n\t\t\t /*table.setAutoResizeMode( JTable.AUTO_RESIZE_OFF );\n\t\t\t for (int column = 0; column < table.getColumnCount(); column++)\n\t\t\t {\n\t\t\t javax.swing.table.TableColumn tableColumn = table.getColumnModel().getColumn(column);\n\t\t\t int preferredWidth = tableColumn.getMinWidth();\n\t\t\t int maxWidth = tableColumn.getMaxWidth();\n\t\t\n\t\t\t for (int roww = 0; roww < table.getRowCount(); roww++)\n\t\t\t {\n\t\t\t TableCellRenderer cellRenderer = table.getCellRenderer(roww, column);\n\t\t\t Component cc = table.prepareRenderer(cellRenderer, roww, column);\n\t\t\t int width = cc.getPreferredSize().width + table.getIntercellSpacing().width;\n\t\t\t preferredWidth = Math.max(preferredWidth, width);\n\t\t\n\t\t\t // We've exceeded the maximum width, no need to check other rows\n\t\t\n\t\t\t if (preferredWidth >= maxWidth)\n\t\t\t {\n\t\t\t preferredWidth = maxWidth;\n\t\t\t break;\n\t\t\t }\n\t\t\t }\n\t\t\t if( preferredWidth > 100)\n\t\t\t tableColumn.setPreferredWidth( preferredWidth );\n\t\t\t else\n\t\t\t \t tableColumn.setPreferredWidth( 100 );\n\t\t\t \t}*/\n\t\t\t \tJScrollPane sp=new JScrollPane(table);\n\t\t\t\t sp.setSize(table.WIDTH, table.HEIGHT);\n\t\t\t\t frmTweetAnalyser.getContentPane().add(sp, BorderLayout.CENTER);\n\t \n\t\t\t\t} \n\t\t\t\tcatch (Exception e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\t \n\t }\n\t\t});\n\t\tfrmTweetAnalyser.getContentPane().add(btnSearch);\n\t}", "private void showSponsorSearch(){\r\n String sponsorCode;\r\n// boolean replaceInfo = false;\r\n try{\r\n edu.mit.coeus.search.gui.CoeusSearch coeusSearch =\r\n new edu.mit.coeus.search.gui.CoeusSearch(dlgWindow,\r\n \"sponsorSearch\",1);\r\n coeusSearch.showSearchWindow();\r\n edu.mit.coeus.search.gui.SearchResultWindow resWindow =\r\n coeusSearch.getResultWindow();\r\n if (!coeusSearch.getSelectedValue().equals(null) ){\r\n txtSponsorCode.setText(coeusSearch.getSelectedValue());\r\n txtSponsorCode.requestFocusInWindow();\r\n sponsorCode = txtSponsorCode.getText();\r\n getSponsorInfo(sponsorCode);\r\n }\r\n }catch(Exception e) {\r\n }\r\n }", "private void initPanel(){\n setBackground(Color.decode(\"#D9E4E8\"));\n unmatchedLilsTextField = new UnmatchedTextArea(\"littles\", new JTextArea());\n unmatchedBigsTextField = new UnmatchedTextArea(\"bigs\", new JTextArea());\n\n scoresLabel = new JLabel();\n\n littlesRanksTitleLabel = new JLabel(\"Select a little to see her preferences:\");\n littlesRanksTitleLabel.setPreferredSize(new Dimension(400,20));\n littlesRankingsBox = new JComboBox<>();\n littlesRankingsBox.setAlignmentX(Component.LEFT_ALIGNMENT);\n littlesRankingsResultsLabel = new JTextArea();\n\n\n bigsRanksTitleLabel = new JLabel(\"Select a big to see her preferences:\");\n bigsRanksTitleLabel.setPreferredSize(new Dimension(400,20));\n bigsRankingsBox = new JComboBox<>();\n bigsRankingsResultsLabel = new JTextArea();\n\n whoRanksLittleTitleLabel = new JLabel (\"Select a Little to see who ranked her:\");\n whoRanksLittleTitleLabel.setPreferredSize(new Dimension(400,20));\n whoRanksLittleBox = new JComboBox<String>();\n whoRanksLittleResultsLabel = new JTextArea();\n\n whoRanksBigTitleLabel = new JLabel (\"Select a Big to see who ranked her:\");\n whoRanksBigTitleLabel.setPreferredSize(new Dimension(400,20));\n whoRanksBigBox = new JComboBox<String>();\n whoRanksBigResultsLabel = new JTextArea();\n\n// got rid of this button for now so I could improve its functionality\n// button = new JButton(\"Click to display computed matches\");\n// button.setPreferredSize(new Dimension(300,20));\n\n setLayout(new FlowLayout());\n// add(button);\n add(scoresLabel);\n add(unmatchedLilsTextField);\n add(unmatchedBigsTextField);\n add(littlesRanksTitleLabel);\n add(littlesRankingsBox);\n add(littlesRankingsResultsLabel);\n add(bigsRanksTitleLabel);\n add(bigsRankingsBox);\n add(bigsRankingsResultsLabel);\n add(whoRanksLittleTitleLabel);\n add(whoRanksLittleBox);\n add(whoRanksLittleResultsLabel);\n add(whoRanksBigTitleLabel);\n add(whoRanksBigBox);\n add(whoRanksBigResultsLabel);\n setPreferredSize(new Dimension(500,700));\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 jLabel1 = new javax.swing.JLabel();\n ClubSearch = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n jButton2 = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTable2 = new javax.swing.JTable();\n jButton3 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n SeasonCombo = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\" Search For A Club\");\n\n ClubSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ClubSearchActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Search\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Filter By Tournament\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"English Premier League\", \"La Liga\", \"Champions League\" }));\n\n jButton2.setText(\"Reset Filter\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTable2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Club Name\", \"Coach Name\", \"Played\", \"Win\", \"Loss\"\n }\n ));\n jScrollPane2.setViewportView(jTable2);\n\n jButton3.setText(\"Back\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Filter By Season\");\n\n SeasonCombo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Select Season\", \"2017-18\", \"2018-19\" }));\n SeasonCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SeasonComboActionPerformed(evt);\n }\n });\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 .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(11, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(SeasonCombo, 0, 130, Short.MAX_VALUE))\n .addGap(55, 55, 55)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 485, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ClubSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 200, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)\n .addComponent(ClubSearch)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 11, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(5, 5, 5)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(SeasonCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addGap(35, 35, 35)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(37, 37, 37)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(242, 242, 242))\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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "void searchUI();", "private void pInfo_updateExisting() {\r\n\r\n // currentPatient is the one who is searched\r\n // does not search for patient again, in case Last name or SSN are changed\r\n\r\n // values to test if there are no input errors\r\n boolean emptyFields = true, illegalFields = true;\r\n\r\n //UIManager.put(\"OptionPane.minimumSize\",new Dimension(500,300));\r\n String errorMessage = \"Must Enter\";\r\n if (String.valueOf(pInfo_firstNameTextField.getText()).equals(\"\")) {\r\n errorMessage += \" First Name,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_lastNameTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Last Name,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_ssnTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Social Security #,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_dobTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Date of Birth,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_phoneNumberTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Phone Number,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_addressTextField).equals(\"\")) {\r\n errorMessage += \" Street,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_cityTextField).equals(\"\")) {\r\n errorMessage += \" City,\";\r\n emptyFields = false;\r\n }\r\n\r\n if (String.valueOf(pInfo_zipCodeTextField).equals(\"\")) {\r\n errorMessage += \" Zip Code,\";\r\n emptyFields = false;\r\n }\r\n\r\n // if there's no middle name, the text field\r\n // is set to \"N/A\"\r\n String middleName;\r\n if (String.valueOf(pInfo_middleNameTextField.getText()).equals(\"\"))\r\n middleName = \"N/A\";\r\n else middleName = pInfo_middleNameTextField.getText();\r\n\r\n // throws error if last name has characters other than letters\r\n if (pInfo_lastNameTextField.getText().length() > 0) {\r\n for (int i = 0; i < pInfo_lastNameTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_lastNameTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Last Name Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if first name has characters other than letters\r\n if (pInfo_firstNameTextField.getText().length() > 0) {\r\n for (int i = 0; i < pInfo_firstNameTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_firstNameTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"First Name Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if middle name has characters other than letters\r\n if (pInfo_middleNameTextField.getText().length() > 0 &&\r\n !String.valueOf(pInfo_middleNameTextField.getText()).equals(\"N/A\")) {\r\n for (int i = 0; i < middleName.length(); i++) {\r\n if (!Character.isLetter(middleName.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Middle Name Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if SSN has characters other than numbers, or has less/more than 4 digits\r\n if (pInfo_ssnTextField.getText().length() > 0 && pInfo_ssnTextField.getText().length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n illegalFields = false;\r\n } else if (pInfo_ssnTextField.getText().length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(pInfo_ssnTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if DOB isn't formatted correctly - \"MM/DD/YYYY\"\r\n if (pInfo_dobTextField.getText().length() > 0 && pInfo_dobTextField.getText().length() != 10) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Date of Birth must be formatted \\\"MM/DD/YYYY\\\"\");\r\n illegalFields = false;\r\n } else if (pInfo_dobTextField.getText().length() == 10) {\r\n if (!dobParser(pInfo_dobTextField.getText())) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Date of Birth must be formatted \\\"MM/DD/YYYY\\\"\");\r\n illegalFields = false;\r\n }\r\n }\r\n\r\n // throws error if phone number isn't formatted correctly - \"###-###-####\"\r\n if (pInfo_phoneNumberTextField.getText().length() > 0 && pInfo_phoneNumberTextField.getText().length() != 12) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Phone Number Must be formatted \\\"###-###-####\\\"\");\r\n illegalFields = false;\r\n } else if (pInfo_phoneNumberTextField.getText().length() == 12) {\r\n if (!phoneNumberParser(pInfo_phoneNumberTextField.getText())) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Phone Number Must be formatted \\\"###-###-####\\\"\");\r\n illegalFields = false;\r\n }\r\n }\r\n\r\n // throws error if address has characters other than letters and numbers\r\n if (pInfo_addressTextField.getText().length() > 0) {\r\n for (int i = 0; i < pInfo_addressTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_addressTextField.getText().charAt(i)) &&\r\n !Character.isDigit(pInfo_addressTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Address Must Have Only Numbers and Letters\");\r\n illegalFields = false;\r\n }\r\n }\r\n }\r\n\r\n // throws error if city has characters other than letters\r\n if (pInfo_cityTextField.getText().length() > 0) {\r\n for (int i = 1; i < pInfo_cityTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_cityTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"City Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if zip code has characters other than numbers, or has less/more than 4 digits\r\n if (pInfo_zipCodeTextField.getText().length() > 0 && pInfo_zipCodeTextField.getText().length() != 5) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Zip Code Must Have 5 Characters\");\r\n illegalFields = false;\r\n } else if (pInfo_zipCodeTextField.getText().length() == 5) {\r\n for (int i = 0; i < 5; i++) {\r\n if (!Character.isDigit(pInfo_zipCodeTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Zip Code Must Have Only Numbers\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // checks if there are no input errors\r\n if (emptyFields && illegalFields && currentPatient != null) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Information Updated\");\r\n currentPatient.setL_name(pInfo_lastNameTextField.getText());\r\n currentPatient.setF_name(pInfo_firstNameTextField.getText());\r\n currentPatient.setM_name(middleName);\r\n currentPatient.setSSN(Integer.parseInt(pInfo_ssnTextField.getText()));\r\n currentPatient.setDob(pInfo_dobTextField.getText());\r\n currentPatient.setP_number(pInfo_phoneNumberTextField.getText());\r\n currentPatient.setAddress(pInfo_addressTextField.getText());\r\n currentPatient.setCity(pInfo_cityTextField.getText());\r\n currentPatient.setState(String.valueOf(pInfo_stateComboBox.getSelectedItem()));\r\n currentPatient.setZip(Integer.parseInt(pInfo_zipCodeTextField.getText()));\r\n currentPatient.setUser_name(pInfo_userField.getText());\r\n currentPatient.setPassword(pInfo_pwField.getText());\r\n\r\n String policy = (String) pInfo_policyComboBox.getSelectedItem();\r\n\r\n if (policy.equals(\"Yes\"))\r\n currentPatient.setPolicy(true);\r\n else\r\n currentPatient.setPolicy(true);\r\n\r\n\r\n } else if (!String.valueOf(errorMessage).equals(\"Must Enter\"))\r\n JOptionPane.showMessageDialog(null, errorMessage);\r\n\r\n else if (currentPatient == null)\r\n JOptionPane.showMessageDialog(null, \"Error\");\r\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 }", "private void performSearch() {\n try {\n final String searchVal = mSearchField.getText().toString().trim();\n\n if (searchVal.trim().equals(\"\")) {\n showNoStocksFoundDialog();\n }\n else {\n showProgressDialog();\n sendSearchResultIntent(searchVal);\n }\n }\n catch (final Exception e) {\n showSearchErrorDialog();\n logError(e);\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n numElementsBtnGroup = new javax.swing.ButtonGroup();\n sortStatusBtnGroup = new javax.swing.ButtonGroup();\n numElementsLbl = new javax.swing.JLabel();\n hunElementsRadioBtn = new javax.swing.JRadioButton();\n thouElementsRadioBtn = new javax.swing.JRadioButton();\n tenThouElementsRadioBtn = new javax.swing.JRadioButton();\n sortStatusLbl = new javax.swing.JLabel();\n inOrderRadioBtn = new javax.swing.JRadioButton();\n randomOrderRadioBtn = new javax.swing.JRadioButton();\n sortsChosenLbl = new javax.swing.JLabel();\n searchesComboBox = new javax.swing.JComboBox<>();\n outputLbl = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n outputTxtArea = new javax.swing.JTextArea();\n outputResultsBtn = new javax.swing.JButton();\n backBtn = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n searchForTxtField = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Searching Window\");\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n windowClosingEvt(evt);\n }\n });\n\n numElementsLbl.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n numElementsLbl.setText(\"Number of Elements:\");\n numElementsLbl.setToolTipText(\"The number of elements the implementation structure will have.\");\n\n numElementsBtnGroup.add(hunElementsRadioBtn);\n hunElementsRadioBtn.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n hunElementsRadioBtn.setText(\"100\");\n hunElementsRadioBtn.setToolTipText(\"Structure will have 100 elements.\");\n\n numElementsBtnGroup.add(thouElementsRadioBtn);\n thouElementsRadioBtn.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n thouElementsRadioBtn.setText(\"1,000\");\n thouElementsRadioBtn.setToolTipText(\"Structure will have 1,000 elements.\");\n\n numElementsBtnGroup.add(tenThouElementsRadioBtn);\n tenThouElementsRadioBtn.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n tenThouElementsRadioBtn.setText(\"10,000\");\n tenThouElementsRadioBtn.setToolTipText(\"Structure will have 10,000 elements.\");\n\n sortStatusLbl.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n sortStatusLbl.setText(\"Sort Status:\");\n sortStatusLbl.setToolTipText(\"Whether the structure the sort will be applied on is sorted in some way.\");\n\n sortStatusBtnGroup.add(inOrderRadioBtn);\n inOrderRadioBtn.setText(\"In-Order\");\n inOrderRadioBtn.setToolTipText(\"The structure will be pre-sorted in ascending order.\");\n inOrderRadioBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n inOrderRadioBtnActionPerformed(evt);\n }\n });\n\n sortStatusBtnGroup.add(randomOrderRadioBtn);\n randomOrderRadioBtn.setText(\"Random-Order\");\n randomOrderRadioBtn.setToolTipText(\"The structure will have values in a random order.\");\n randomOrderRadioBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n randomOrderRadioBtnActionPerformed(evt);\n }\n });\n\n sortsChosenLbl.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n sortsChosenLbl.setText(\"Searches Available:\");\n sortsChosenLbl.setToolTipText(\"The name of the search.\");\n\n searchesComboBox.setToolTipText(\"A list of all of the searches that can be chosen.\");\n\n outputLbl.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n outputLbl.setText(\"Output:\");\n outputLbl.setToolTipText(\"The contents of the stored data\");\n\n outputTxtArea.setEditable(false);\n outputTxtArea.setColumns(20);\n outputTxtArea.setLineWrap(true);\n outputTxtArea.setRows(5);\n outputTxtArea.setToolTipText(\"Displaying the contents of the data previously chosen\");\n outputTxtArea.setWrapStyleWord(true);\n jScrollPane1.setViewportView(outputTxtArea);\n\n outputResultsBtn.setText(\"Output Results\");\n outputResultsBtn.setToolTipText(\"Shows the results of the sort in the output box.\");\n outputResultsBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n outputResultsBtnActionPerformed(evt);\n }\n });\n\n backBtn.setText(\"Back\");\n backBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backBtnActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel1.setText(\"Search For:\");\n\n searchForTxtField.setText(\"[Enter Value]\");\n searchForTxtField.setToolTipText(\"Prompt for entering the value to search for.\");\n searchForTxtField.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtFieldFocusGainedEvt(evt);\n }\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 .addGroup(layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(numElementsLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(hunElementsRadioBtn)\n .addGap(18, 18, 18)\n .addComponent(thouElementsRadioBtn)\n .addGap(18, 18, 18)\n .addComponent(tenThouElementsRadioBtn))\n .addGroup(layout.createSequentialGroup()\n .addComponent(sortStatusLbl)\n .addGap(75, 75, 75)\n .addComponent(inOrderRadioBtn)\n .addGap(18, 18, 18)\n .addComponent(randomOrderRadioBtn)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(sortsChosenLbl)\n .addComponent(jLabel1)\n .addComponent(outputLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(searchForTxtField)\n .addComponent(searchesComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(outputResultsBtn))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(371, 371, 371)\n .addComponent(backBtn))\n .addGroup(layout.createSequentialGroup()\n .addGap(192, 192, 192)\n .addComponent(jScrollPane1))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(numElementsLbl)\n .addComponent(hunElementsRadioBtn)\n .addComponent(thouElementsRadioBtn)\n .addComponent(tenThouElementsRadioBtn))\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(sortStatusLbl)\n .addComponent(inOrderRadioBtn)\n .addComponent(randomOrderRadioBtn))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(searchesComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sortsChosenLbl))\n .addGap(43, 43, 43)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(searchForTxtField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addComponent(outputResultsBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(outputLbl))\n .addGap(18, 18, 18)\n .addComponent(backBtn)\n .addGap(32, 32, 32))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n fnumTXT = new javax.swing.JTextField();\n arriTXT = new javax.swing.JTextField();\n deparTXT = new javax.swing.JTextField();\n dateTXT = new javax.swing.JTextField();\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 timesecTXT = new javax.swing.JTextField();\n SearchBTN = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 2, 24)); // NOI18N\n jLabel1.setText(\"Search Information Input\");\n\n jLabel2.setText(\"Flight Number:\");\n\n jLabel3.setText(\"Departure Location:\");\n\n jLabel4.setText(\"Arrival Location:\");\n\n jLabel5.setText(\"Date:\");\n\n jLabel6.setText(\"Preffered time of a day:\");\n\n SearchBTN.setText(\"Search\");\n SearchBTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SearchBTNActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"<<Back\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(74, 74, 74)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel2))\n .addGap(8, 8, 8))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(jLabel5)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(fnumTXT, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)\n .addComponent(deparTXT)\n .addComponent(arriTXT)\n .addComponent(timesecTXT))\n .addComponent(dateTXT, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(SearchBTN, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton1)))\n .addContainerGap(67, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jLabel1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(62, 62, 62)\n .addComponent(jLabel2)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(deparTXT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(arriTXT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addComponent(fnumTXT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(dateTXT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(timesecTXT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(70, 70, 70)\n .addComponent(SearchBTN, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 56, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(49, 49, 49))\n );\n }", "public static JDialog createSummonerNameDialog(final ChampionSelectGUI t) {\n\t\tfinal JPanel contentPanel = new JPanel();\n\t\tJLabel request = new JLabel(\"Please enter your summoner name\");\n\t\tcontentPanel.add(request);\n\t\trequest.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal JTextField input = new JTextField(10);\n\t\tinput.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tcontentPanel.add(input);\n\t\tJButton ok = new JButton(\"ok\");\n\t\tcontentPanel.add(ok);\n\t\tok.setSize(200, 150);\n\t\tok.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tfinal JDialog d = new JDialog(t, \"Summoner Name\", true);\n\t\td.setContentPane(contentPanel);\n\t\td.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\td.setSize(400, 100);\n\t\td.setLocationRelativeTo(t);\n\t\td.setLayout(new BoxLayout(contentPanel, BoxLayout.Y_AXIS));\n\t\td.addWindowListener(new WindowListener() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint ret = JOptionPane.showConfirmDialog(contentPanel, \"Are you sure you want to exit?\", \"Choose an option\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif (ret == 0) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinput.requestFocus();\n\t\t\t}\n\t\t\tpublic void windowClosed(WindowEvent e) {}\n\t\t\tpublic void windowIconified(WindowEvent e) { }\n\t\t\tpublic void windowDeiconified(WindowEvent e) { }\n\t\t\tpublic void windowActivated(WindowEvent e) { }\n\t\t\tpublic void windowDeactivated(WindowEvent e) { }\n\t\t});\n\t\tok.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (input.getText().equals(\"\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(contentPanel, \"Please input a summoner name.\", \"Message\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tt.summNameArr[0] = input.getText();\n\t\t\t\t\td.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn d;\n\t}", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "@FXML\r\n\t ArrayList<String> handleSearch(ActionEvent event) throws Exception {\r\n\t \t//check for fields being filled in \r\n\t \tname = placeName.getText();\r\n\t \tcity = City.getText(); \t\r\n\r\n\t \t// both fields are filled, checking for special characters\r\n\t\t\tif (!psearch.isValidInput(name)) {\r\n\t\t\t\tSystem.out.println(\"Please enter valid entries only consisting of letters!\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\telse if (!psearch.isValidInput_City(city)) {\r\n\t\t\t\tSystem.out.println(\"Please enter a city name consisting of only letters!\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\t//System.out.println(\"this is name \" + name + \" \" + city);\r\n\t\t\t\treturn initialize();\r\n\t\t\t}\r\n\t }", "private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEstimatedTotalResultsCount());\n gsre = gsr.getResultElements();\n\n for (int i = 0; i < gsre.length; i++) {\n if (googleTitle.isSelected()) {\n result +=\n \"<font color=\\\"red\\\"><u><b>Title: </u></b><a href=\\\"\" +\n gsre[i].getURL() + \"\\\">\"\n + gsre[i].getTitle() + \"</a><br>\" +\n \"<br><b>URL: \" +\n gsre[i].getHostName() + gsre[i].getURL() +\n \"</b></font><br>\";\n }\n if (googleSummary.isSelected()) {\n result += \"<u><b>Summary: </u></b>\" +\n gsre[i].getSummary() +\n \"<br>\";\n }\n if (googleSnippet.isSelected()) {\n result += \"<u><b>Snippet: </u></b>\" +\n gsre[i].getSnippet() +\n \"<br>\";\n }\n if (googleHostName.isSelected()) {\n result += \"<u><b>Host: </u></b>\" + gsre[i].getHostName() +\n \"<br>\";\n }\n if (googleDirectoryTitle.isSelected()) {\n result += \"<u><b>Directory Title: </u></b>\" +\n gsre[i].getDirectoryTitle() + \"<br>\";\n }\n if (googleCachedSize.isSelected()) {\n result += \"<u><>Cached Size: </u></b>\" +\n gsre[i].getCachedSize() + \"<br>\";\n }\n result += \"<br>\";\n }\n } catch (GoogleSearchFault e) {\n msg(\"Erreur d'exécution \" + e.getMessage(), \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n //affichage de la recherche\n editor.setText(result);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\r\n\t\t\t\t\tif(!table.isEditing()){\r\n\t\t\t\t\t\tJPanel findByName_panel = new JPanel();\r\n\t\t\t\t\t\tfindByName_panel.setLayout(null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Product Name\r\n\t\t\t\t\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\t\t\t\ttabbedPane.setBounds(250, 10, 400, 200);\r\n\t\t\t\t\t\tfindByName_panel.add(tabbedPane);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tJPanel panel_searchDetail = new JPanel();\r\n\t\t\t\t\t\ttabbedPane.addTab(\"Find Product using Name, Description, Notes:\", null, panel_searchDetail, null);\r\n\t\t\t\t\t\tpanel_searchDetail.setLayout(null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Text\r\n\t\t\t\t\t\tJTextPane txtpnsearch_1 = new JTextPane();\r\n\t\t\t\t\t\ttxtpnsearch_1.setText(\"Search:\");\r\n\t\t\t\t\t\ttxtpnsearch_1.setBackground(Color.decode(defaultColor));\r\n\t\t\t\t\t\ttxtpnsearch_1.setBounds(10, 13, 50, 18);\r\n\t\t\t\t\t\tpanel_searchDetail.add(txtpnsearch_1);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Messages\r\n\t\t\t\t\t\ttxtpnsearch_2 = new JTextPane();\r\n\t\t\t\t\t\ttxtpnsearch_2.setBackground(Color.decode(defaultColor));\r\n\t\t\t\t\t\ttxtpnsearch_2.setBounds(10, 80, 370, 120);\r\n\t\t\t\t\t\tpanel_searchDetail.add(txtpnsearch_2);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Textfield input\r\n\t\t\t\t\t\tJTextField textField_search_input = new JTextField();\r\n\t\t\t\t\t\ttextField_search_input.setBounds(60, 6, 310, 30);\r\n\t\t\t\t\t\tpanel_searchDetail.add(textField_search_input);\r\n\t\t\t\t\t\ttextField_search_input.setColumns(10);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Search button\r\n\t\t\t\t\t\tJButton product_search_button = new JButton(\"Search\");\r\n\t\t\t\t\t\tproduct_search_button.setBounds(3, 45, 190, 29);\r\n\t\t\t\t\t\tpanel_searchDetail.add(product_search_button);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Cancel button\r\n\t\t\t\t\t\tJButton product_cancel_button = new JButton(\"Cancel\");\r\n\t\t\t\t\t\tproduct_cancel_button.setBounds(190, 45, 185, 29);\r\n\t\t\t\t\t\tpanel_searchDetail.add(product_cancel_button);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Add button\r\n\t\t\t\t\t\tJButton product_add_button = new JButton(\"Add\");\r\n\t\t\t\t\t\tproduct_add_button.setBounds(38, 575, 820, 40);\r\n\t\t\t\t\t\tfindByName_panel.add(product_add_button);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Places cursor in ID field as soon as page loads, like focus in html\r\n\t\t\t\t\t\ttextField_search_input.addAncestorListener(new AncestorListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorRemoved(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorMoved(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void ancestorAdded(AncestorEvent event) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\ttextField_search_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Table\r\n\t\t\t\t\t\tJTabbedPane tabbedPane_search_table = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\t\t\t\ttabbedPane_search_table.setBounds(30, 204, 835, 375);\r\n\t\t\t\t\t\tfindByName_panel.add(tabbedPane_search_table);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tJPanel panel_table_search = new JPanel(new BorderLayout());\r\n\t\t\t\t\t\ttabbedPane_search_table.addTab(\"List of suggestions: \", null, panel_table_search, null);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tVector<String> search_row_data = new Vector<String>();\r\n\t\t\t\t\t\tVector<String> search_column_name = new Vector<String>();\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"#\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Name\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Description\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Quantity Remaining\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Sale Price\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Notes\");\r\n\t\t\t\t\t\tsearch_column_name.addElement(\"Add\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJTable table_search = new JTable(search_row_data, search_column_name){\r\n\t\t\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\t\t\t\t\t//Return true if the column (number) is editable, else false\r\n\t\t\t\t\t\t\t\t//if(column == 3 || column == 6){ \r\n\t\t\t\t\t\t\t\tif(column == 6){\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tpanel_table_search.add(table_search.getTableHeader(), BorderLayout.NORTH);\r\n\t\t\t\t\t\tpanel_table_search.add(table_search, BorderLayout.CENTER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Row Height\r\n\t\t\t\t\t\ttable_search.setRowHeight(30);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Column Width\r\n\t\t\t\t\t\tTableColumnModel columnModel_search = table_search.getColumnModel();\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(0).setPreferredWidth(1); //#\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(1).setPreferredWidth(110); //Name\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(2).setPreferredWidth(100); //Description\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(3).setPreferredWidth(1); //Quantity \r\n\t\t\t\t\t\tcolumnModel_search.getColumn(4).setPreferredWidth(30); //Sale Price\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(5).setPreferredWidth(75); //Notes\r\n\t\t\t\t\t\tcolumnModel_search.getColumn(6).setPreferredWidth(10); //Add/Remove\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Columns won't be able to moved around\r\n\t\t\t\t\t\ttable_search.getTableHeader().setReorderingAllowed(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Center table data \r\n\t\t\t\t\t\tDefaultTableCellRenderer centerRenderer_search = new DefaultTableCellRenderer();\r\n\t\t\t\t\t\tcenterRenderer_search.setHorizontalAlignment( SwingConstants.CENTER );\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(0).setCellRenderer( centerRenderer_search ); //ID\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(1).setCellRenderer( centerRenderer_search ); //Product ID\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(2).setCellRenderer( centerRenderer_search ); //Name\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(3).setCellRenderer( centerRenderer_search ); //Quantity\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(4).setCellRenderer( centerRenderer_search ); //Price\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(5).setCellRenderer( centerRenderer_search ); //Quantity * Price\r\n\t\t\t\t\t\ttable_search.getColumnModel().getColumn(6).setCellRenderer( centerRenderer_search ); //Remove\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Center table column names\r\n\t\t\t\t\t\tcenterRenderer_search = (DefaultTableCellRenderer) table_search.getTableHeader().getDefaultRenderer();\r\n\t\t\t\t\t\tcenterRenderer_search.setHorizontalAlignment(JLabel.CENTER);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJScrollPane jsp2 = new JScrollPane(table_search);\r\n\t\t\t\t\t\tjsp2.setBounds(2, 2, 810, 344);\r\n\t\t\t\t\t\tjsp2.setVisible(true);\r\n\t\t\t\t\t\tpanel_table_search.add(jsp2);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Setting Checkbox\r\n\t\t\t\t\t\tTableColumn tc2 = table_search.getColumnModel().getColumn(productRemove_column);\r\n\t\t\t\t\t\ttc2.setCellEditor(table_search.getDefaultEditor(Boolean.class));\r\n\t\t\t\t\t\ttc2.setCellRenderer(table_search.getDefaultRenderer(Boolean.class));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tDefaultTableModel model_search = (DefaultTableModel) table_search.getModel();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tTableRowSorter<TableModel> sorter = new TableRowSorter<>(table_search.getModel());\r\n\t\t\t\t\t\ttable_search.setRowSorter(sorter);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Disable column\r\n\t\t\t\t\t\tsorter.setSortable(0, false);\r\n\t\t\t\t\t\tsorter.setSortable(4, false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Button listener\r\n\t\t\t\t\t\tproduct_search_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tString productNameInput = textField_search_input.getText();\r\n\t\t\t\t\t\t\t\tproductNameInput.trim();\r\n\t\t\t\t\t\t\t\tif(validateEmpty(productNameInput) == false){\r\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Search cannot be empty. Please enter a product name, description or notes.\");\t\t\r\n\t\t\t\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(productNameInput.trim().matches(\"^[-0-9A-Za-z.,'() ]*$\")){\r\n\t\t\t\t\t\t\t\t\tCashier cashierProductByName = new Cashier();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tfor (int i = model_search.getRowCount()-1; i >= 0; --i) {\r\n\t\t\t\t\t\t\t\t\t\tmodel_search.removeRow(i);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tproductByLike = new Vector<Product>();\r\n\t\t\t\t\t\t\t\t\tcashierProductByName.findProductUsingLike(productNameInput.trim(),productByLike);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productBySearch.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(productByLike.get(i).getID() == productBySearch.get(j).getID()){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tproductByLike.get(i).setQuantity(productBySearch.get(j).getQuantity());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//No match\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t//Printing it in the outside loop, the value doesn't alter here, values that alter will and will print them outside\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"No product was found in inventory.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\tfor(int k = 0; k < productByLike.size(); k++){\r\n\t\t\t\t\t\t\t\t\t\t\tmodel_search.addRow(new Object[]{k+1,productByLike.get(k).getName(),productByLike.get(k).getDescription(),productByLike.get(k).getQuantity(),productByLike.get(k).getSalePrice(),productByLike.get(k).getNotes()});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Cancel button closes the window\r\n\t\t\t\t\t\tproduct_cancel_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Checking for double click\r\n\t\t\t\t\t\ttable_search.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\t\tif (e.getClickCount() == 1) {\r\n\t\t\t\t\t\t\t\t\t//System.out.println(\"1\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (e.getClickCount() == 2) {\r\n\t\t\t\t\t\t\t\t\t//JTable target = (JTable)e.getSource();\r\n\t\t\t\t\t\t\t\t\tint row = table_search.getSelectedRow();\r\n\t\t\t\t\t\t\t\t\tint column = table_search.getSelectedColumn();\r\n\t\t\t\t\t\t\t\t\tif(column == 0 || column == 1 || column == 2 || column == 3 || column == 4 || column == 5){\r\n\t\t\t\t\t\t\t\t\t\tif(row > -1){\r\n\t\t\t\t\t\t\t\t\t\t\tString n = (String) model_search.getValueAt(row, 1);\r\n\t\t\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(n.equals(productByLike.get(i).getName())){ //maybe change to using ID\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint items = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboolean b = (boolean) model_search.getValueAt(i, productRemove_column);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(b == true){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titems++;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}catch(Exception e2){}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(items == 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.setText(String.valueOf(productByLike.get(i).getID()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Please use the add button at the bottom use add multiple items at a time.\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t//Quantity\r\n\t\t\t\t\t\t\t\t\telse if(column == 3){\r\n\t\t\t\t\t\t\t\t\t\ttable_search.setRowSelectionInterval(row, row);\r\n\t\t\t\t\t\t\t\t\t\ttable_search.setColumnSelectionInterval(0, 0);\r\n\t\t\t\t\t\t\t\t\t\ttextField_search_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t//Checkbox\r\n\t\t\t\t\t\t\t\t\telse if(column == 6){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Add button listener\r\n\t\t\t\t\t\tRunnable runAdd = new Runnable() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tproduct_add_button.addActionListener(new ActionListener() {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\t\t\t\t\tVector<Integer> searchID = new Vector<Integer>();\r\n\t\t\t\t\t\t\t\t\t\tif(model_search.getRowCount() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < model_search.getRowCount(); i++) {\r\n\t\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tboolean b = (boolean) model_search.getValueAt(i, productRemove_column);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (b == true){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productByLike.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(String.valueOf(model_search.getValueAt(i, 1)).equals(productByLike.get(j).getName())){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsearchID.add(productByLike.get(i).getID());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td5.dispose();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Else\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}catch(Exception e2){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Table is empty. Please enter keywords into search bar.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif(model_search.getRowCount() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tif(searchID.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tnew Timer(1, new ActionListener() {\r\n\t\t\t\t\t\t\t\t\t\t int it = 0;\r\n\t\t\t\t\t\t\t\t\t\t @Override\r\n\t\t\t\t\t\t\t\t\t\t public void actionPerformed(ActionEvent e2) {\r\n\t\t\t\t\t\t\t\t\t\t \ttextField_productID_input.setText(String.valueOf(searchID.get(it)));\r\n\t\t\t\t\t\t\t\t\t\t if (++it == searchID.size()){\r\n\t\t\t\t\t\t\t\t\t\t ((Timer)e2.getSource()).stop();\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t }).start();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"Please select/check a product before adding it to the table.\");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tSwingUtilities.invokeLater(runAdd);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tComponent component = (Component) e.getSource();\r\n\t\t\t\t\t\tJFrame topFrame2 = (JFrame) SwingUtilities.getRoot(component);\r\n\t\t\t\t\t\td5 = new JDialog(topFrame2, \"\", Dialog.ModalityType.DOCUMENT_MODAL);\r\n\t\t\t\t\t\td5.getContentPane().add(findByName_panel);\r\n\t\t\t\t\t\td5.setSize(900, 650);\r\n\t\t\t\t\t\td5.setLocationRelativeTo(null);\r\n\t\t\t\t\t\td5.getRootPane().setDefaultButton(product_search_button);\r\n\t\t\t\t\t\td5.setVisible(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Please make sure the table is not in edit mode.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e1){}\r\n\t\t\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"JVideoClub - Rental Screen\"); \r\n frame.setLayout(new BorderLayout());\r\n frame.setSize(700, 300);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n JLabel label = new JLabel(\"Client Rental Screen\");\r\n frame.add(label, BorderLayout.NORTH);\r\n \r\n \r\n JPanel mainTablePanel = new JPanel();\r\n mainTablePanel.setLayout(new FlowLayout());\r\n frame.add(mainTablePanel, BorderLayout.CENTER); \r\n \r\n JTable moviesTable = new JTable(new String[][] { {\"This\", \"is\"}, {\"a\", \"Test\"} },\r\n \t\t\t\t\t\tnew String[] {\"Film Title\", \"Film Director\"});\r\n \r\n // mainTablePanel.add(moviesTable); \r\n JScrollPane jsp = new JScrollPane(moviesTable);\r\n frame.getContentPane().add(jsp, BorderLayout.CENTER);\r\n\r\n \r\n \r\n \r\n JPanel searchPanel = new JPanel();\r\n searchPanel.setLayout(new FlowLayout());\r\n frame.add(searchPanel, BorderLayout.SOUTH);\r\n \r\n JLabel labelSearch = new JLabel(\"Search Film: \");\r\n labelSearch.setHorizontalAlignment(JLabel.CENTER); \r\n \r\n JTextField textFieldSearch = new JTextField(20);\r\n textFieldSearch.setToolTipText(\"Search for Film here...\");\r\n textFieldSearch.setHorizontalAlignment(JTextField.LEFT);\r\n \r\n JButton searchButton = new JButton(\"Search!\"); \r\n \r\n searchPanel.add(labelSearch);\r\n searchPanel.add(textFieldSearch); \r\n searchPanel.add(searchButton);\r\n \r\n \r\n \r\n /*\r\n JPanel okCancelPanel = new JPanel();\r\n okCancelPanel.setLayout(new FlowLayout());\r\n frame.add(okCancelPanel, BorderLayout.SOUTH);\r\n \r\n JButton buttonOk = new JButton(\"OK\");\r\n okCancelPanel.add(buttonOk);\r\n \r\n JButton buttonCancel = new JButton(\"Cancel\");\r\n //frame.getContentPane().add(buttonCancel);\r\n okCancelPanel.add(buttonCancel);\r\n */ \r\n \r\n \r\n //Display the window.\r\n //frame.pack(); //either this or the setSize() added before...\r\n frame.setVisible(true);\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(results.isEmpty())\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tif(viewNumber.getText().trim().isEmpty())\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tint num = 0;\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tnum = Integer.parseInt(viewNumber.getText());\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(num <= 0){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(num > results.size()){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString collectionName = \toutputTypes_dropDown.getSelectedItem().equals(\"PackageDataSet\")? \"packageDataSets\" : \n\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"PackageFamily\")? \"packageFamilies\" :\n\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"File\")? \"files\" :\n\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"Package\")? \"packages\" :\n\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"ParentFile\")? \"parentFiles\" :\n\t\t\t\t\toutputTypes_dropDown.getSelectedItem().equals(\"Source\")? \"sources\" : \"\";\n\t\t\t\t\n\t\t\t\tnew Thread(new Printer(results.get(num - 1), client, dbname_txtfield.getText(), output_txtarea, collectionName)).start();\n\t\t\t\t\n\t\t\t}", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "private void ShowPatientsActionPerformed(java.awt.event.ActionEvent evt) {\n String s = \"\";\n int c = 0;\n try {\n while (c < doc.length) {\n if (docNameBox.getText().equalsIgnoreCase(doc[c].name)) {\n s = doc[c].name + \" has these patients under him/her: \\n\" + doc[c].printPatientName(frame);\n break;\n } else {\n c++;\n }\n }\n } catch (NullPointerException e) {\n s = \"Doctor name not found, please add name\";\n }\n JOptionPane.showMessageDialog(null, s);\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 }", "public void actionPerformed(ActionEvent e)\r\n {\r\n String fileName;\r\n if(e.getSource() == btnCountA)\r\n {\r\n //fileName = JOptionPane.showInputDialog( \"Please select the file name:\" );\r\n int temp = FileWork.FindA(FileWork.getFile());\r\n tfStatus.setText(temp + \" A's\");\r\n }\r\n else if (e.getSource() == btnSearch)\r\n {\r\n //fileName = JOptionPane.showInputDialog( \"Please select the file name:\" );\r\n String word = tfSearchString.getText();\r\n int temp = FileWork.Search(FileWork.getFile(), word);\r\n tfStatus.setText(word + \" comes up \" + temp + \" times\");\r\n tfSearchString.setText(\"Search String\");\r\n }\r\n else if (e.getSource() == btnFindL)\r\n {\r\n //fileName = JOptionPane.showInputDialog( \"Please select the file name:\" );\r\n String temp = FileWork.FindL(FileWork.getFile());\r\n tfStatus.setText(temp);\r\n }\r\n }", "public void searchTitle()\r\n\t{\r\n\t\tSystem.out.print(\"Please provide a title: \");\r\n\t\tString title = scan.nextLine();\r\n\t\tboolean display = false;\r\n\t\tboolean found = false;\r\n\t\tfor (int i = 0; i < actualSize; i++)\r\n\t\t{\r\n\r\n\t\t\tif (title.equalsIgnoreCase(data[i].getTitle()))\r\n\t\t\t{\r\n\t\t\t\tif (display == false)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Title\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" + \"Year\\t\" + \"rating\\t\" + \"score\");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(data[i].toString());\r\n\t\t\t\tdisplay = true;\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (found == false)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The title does not match any of the movies.\");\r\n\t\t}\r\n\r\n\t}", "public static void SearchBox() {\r\n\tJFrame Search = new JFrame(\"Search\");\r\n\tSearch.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\tSearch.setSize(700,500);\r\n\tSearch.getContentPane();\r\n\tSearch.setVisible(true);\r\n\r\n\te7.setFont(f);\r\n\r\n\t\r\n\r\n\tSearch.getContentPane().add(GUI2Panel);\r\n\tGUI2Panel.add(e7);\r\n\tGUI2Panel.add(SearchField);\r\n\r\n\tGUI2Panel.add(SearchButton2);\r\n}", "public GetAllStateView(String caption) {\n super(caption);\n setSize(900, 600);\n setLocation(200, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\n //this.setLayout(new FlowLayout());\n this.setLayout(null);\n display = new JLabel(\"Get the state of all portfolios:\");\n display.setBounds(20, 10, 800, 20);\n\n\n this.add(display);\n\n //the textfield\n input = new JTextField(10);\n\n //output area\n sTextArea = new JTextArea(\"Result will be displayed here.\", 10, 20);\n JScrollPane scrollPane = new JScrollPane(sTextArea);\n sTextArea.setLineWrap(true);\n scrollPane.setBorder(BorderFactory.createTitledBorder(\"Result\"));\n scrollPane.setBounds(20, 40, 820, 400);\n this.add(scrollPane);\n\n //exit button\n exitButton = new JButton(\"Exit\");\n exitButton.setActionCommand(\"GetAllState Exit Button\");\n exitButton.setBounds(20, 500, 80, 20);\n this.add(exitButton);\n\n\n setVisible(false);\n\n }", "private void btnGetEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGetEmployeeActionPerformed\n String stringID = textEmployeeID.getText();\n if(textEmployeeID.getText().isEmpty()){\n JOptionPane.showMessageDialog(rootPane, \"Please Enter a valid ID\");\n return;\n }\n int ID = Integer.parseInt(stringID);\n newHandler.getEmployee(ID);\n \n if(newHandler.getErrorMsg() != null){\n JOptionPane.showMessageDialog(rootPane, newHandler.getErrorMsg());\n }\n textEmployeeID.setText(Integer.toString(newHandler.getEmployeeID()));\n textFirstName.setText(newHandler.getEmployeeFirstName());\n textLastName.setText(newHandler.getEmployeeLastName());\n textJobTitle.setText(newHandler.getJobTitle());\n textSalary.setText(Double.toString(newHandler.getSalary()));\n textOtherDetails.setText(newHandler.getOtherDetails());\n searched = true;\n }", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "private void initiateFavouriteChampionFields(JFrame frame) {\r\n JLabel q5 = new JLabel(\"Favourite champion for mainAccount or altAccount?\");\r\n new Label(q5);\r\n// q5.setPreferredSize(new Dimension(1200, 100));\r\n// q5.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q5);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(1200, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n JLabel q6 = new JLabel(\"Name of the champion you wish to favourite?\");\r\n new Label(q6);\r\n// q6.setPreferredSize(new Dimension(1200, 100));\r\n// q6.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q6);\r\n\r\n JTextField name = new JTextField();\r\n new TextField(name);\r\n// name.setPreferredSize(new Dimension(1200, 100));\r\n// name.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(name);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/m7fflair.png\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(1200, 250));\r\n frame.add(label);\r\n\r\n initiateFavouriteChampionEnter(frame, account, name);\r\n }", "private void hahaha() {\t\t\n\t\tfinal Button searchButton = new Button(\"Search\");\n\t\tfinal TextBox nameField = new TextBox();\n\t\tnameField.setText(\"GWT User\");\n\t\tfinal Label errorLabel = new Label();\n\t\t\n\t\t// We can add style names to widgets\n\t\tsearchButton.addStyleName(\"sendButton\");\n\n\t\t// Add the nameField and sendButton to the RootPanel\n\t\t// Use RootPanel.get() to get the entire body element\n\t\tRootPanel.get(\"nameFieldContainer\").add(nameField);\n\t\tRootPanel.get(\"sendButtonContainer\").add(searchButton);\n\t\tRootPanel.get(\"errorLabelContainer\").add(errorLabel);\n\n\t\t// Focus the cursor on the name field when the app loads\n\t\tnameField.setFocus(true);\n\t\tnameField.selectAll();\n\n\t\t// Create the popup dialog box\n\n\t\t// Create a handler for the sendButton and nameField\n\t\tclass MyHandler implements ClickHandler, KeyUpHandler {\n\t\t\t/**\n\t\t\t * Fired when the user clicks on the sendButton.\n\t\t\t */\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tsendNameToServer();\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Fired when the user types in the nameField.\n\t\t\t */\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tif (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {\n\t\t\t\t\tsendNameToServer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Send the name from the nameField to the server and wait for a\n\t\t\t * response.\n\t\t\t */\n\t\t\tprivate void sendNameToServer() {\n\t\t\t\t// First, we validate the input.\n\t\t\t\terrorLabel.setText(\"\");\n\t\t\t\tString textToServer = nameField.getText();\n\t\t\t\tif (!FieldVerifier.isValidName(textToServer)) {\n\t\t\t\t\terrorLabel.setText(\"Please enter at least four characters\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Then, we send the input to the server.\n\t\t\t\t// sendButton.setEnabled(false);\n\t\t\t\tSearchRequest request = new SearchRequest();\n\t\t\t\tDate twoMinsAgo = new Date(new Date().getTime() - 1000*60*2);\n\t\t\t\trequest.setFetchTime(Interval.after(twoMinsAgo));\n\t\t\t\tgreetingService.greetServer(request,\n\t\t\t\t\t\tnew AsyncCallback<Collection<Place>>() {\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\tnotification.handleFailure(caught);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpublic void onSuccess(Collection<Place> result) {\n\t\t\t\t\t\t\t\t// TODO: sign of utter stupidity\n\t\t\t\t\t\t\t\tfinal MapWidget map = (MapWidget) RootPanel\n\t\t\t\t\t\t\t\t\t\t.get(\"mapsTutorial\").getWidget(0);\n\t\t\t\t\t\t\t\tmap.clearOverlays();\n\n\t\t\t\t\t\t\t\tLatLng markerPos = null;\n\t\t\t\t\t\t\t\tfor (final Place place : result) {\n\t\t\t\t\t\t\t\t\tLocation coordinates = place.getCoordinates();\n\t\t\t\t\t\t\t\t\tmarkerPos = LatLng.newInstance(\n\t\t\t\t\t\t\t\t\t\t\tcoordinates.getLatitude(), coordinates.getLongitude());\n\n\t\t\t\t\t\t\t\t\t// Add a marker\n\t\t\t\t\t\t\t\t\tMarkerOptions options = MarkerOptions\n\t\t\t\t\t\t\t\t\t\t\t.newInstance();\n\t\t\t\t\t\t\t\t\toptions.setTitle(place.getAddress());\n\t\t\t\t\t\t\t\t\tMarker marker = new Marker(markerPos,\n\t\t\t\t\t\t\t\t\t\t\toptions);\n\t\t\t\t\t\t\t\t\tfinal LatLng currMarkerPos = markerPos;\n\t\t\t\t\t\t\t\t\tmarker.addMarkerClickHandler(new MarkerClickHandler() {\n\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\tMarkerClickEvent event) {\n\t\t\t\t\t\t\t\t\t\t\tPlaceFormatter places = new PlaceFormatter();\n\t\t\t\t\t\t\t\t\t\t\tInfoWindowContent wnd = new InfoWindowContent(places.format(place));\n\t\t\t\t\t\t\t\t\t\t\twnd.setMaxWidth(200);\n\t\t\t\t\t\t\t\t\t\t\tmap.getInfoWindow().open(\n\t\t\t\t\t\t\t\t\t\t\t\t\tcurrMarkerPos,\n\t\t\t\t\t\t\t\t\t\t\t\t\twnd);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\tmap.addOverlay(marker);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (markerPos != null) {\n\t\t\t\t\t\t\t\t\tmap.setCenter(markerPos);\n\t\t\t\t\t\t\t\t\tmap.setZoomLevel(12);\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}\n\t\t}\n\n\t\t// Add a handler to send the name to the server\n\t\tMyHandler handler = new MyHandler();\n\t\tsearchButton.addClickHandler(handler);\n\t\tnameField.addKeyUpHandler(handler);\n\t\t\n\t\tfinal Button startFetching = new Button(\"Fetch\");\n\t\tRootPanel.get(\"startFetchingContainer\").add(startFetching);\n\t\tstartFetching.addClickHandler(new ClickHandler() {\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tadminService.checkDataSources(new AsyncCallback<AdminResponse>() {\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tnotification.handleFailure(caught);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpublic void onSuccess(AdminResponse result) {\n\t\t\t\t\t\tnotification.show(\"Coolio\", \"Everything is cool\", \"\");\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "private void searchPerson(String searchName){\r\n\r\n textAreaFromSearch.setText(\"\");\r\n try{\r\n Scanner scanner = new Scanner(file);\r\n String info;\r\n\r\n while (scanner.hasNext()){\r\n String line = scanner.nextLine();\r\n String[] components = line.split(separator);\r\n if (searchName.length() == 0){\r\n return;\r\n }\r\n if (components[0].contains(searchName)){\r\n info = \" Name: \" + components[0] + \"\\n\";\r\n info += \" Phone No.: \"+components[1]+\"\\n\";\r\n info += \" Email: \"+components[2]+\"\\n\";\r\n info += \" Address: \"+components[3]+\"\\n\";\r\n textAreaFromSearch.append(info+\"\\n\");\r\n }\r\n }\r\n }catch (IOException e){\r\n fileError();\r\n }\r\n }", "private void searchTextFiledActionPerformed(ActionEvent evt) {\n }", "private void printJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_printJMenuItemActionPerformed\n if(costJTextField.getText() == \"\")\n JOptionPane.showMessageDialog(null, \"Fields are empty, please calculate \"\n + \"to populate the fields\", \"Empty Fields\",\n JOptionPane.INFORMATION_MESSAGE);\n else\n {\n try \n { \n\n // print stats information\n JTextArea printStats = new JTextArea();\n //wrap the text so it is not one long line\n printStats.setLineWrap(true);\n printStats.setWrapStyleWord(true);\n String output = \"\";\n output = \"Method: \" + methodJLabel.getText()\n + \"\\nPath: \" + pathJTextArea.getText()\n + \"\\nCost: \" + costJTextField.getText()\n + \"\\nTime: \" + timeJTextField.getText();\n\n printStats.setText(output);\n try \n {\n printStats.print();\n }\n catch (PrinterException ex) \n {\n JOptionPane.showMessageDialog(null, \"Unable to print\"\n + \" statistics.\", \"Print Error\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n catch(NumberFormatException e)\n {\n JOptionPane.showMessageDialog(null, \"Unable to print\"\n + \" statistics.\", \"Print Error\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }", "private void jButtonSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSearchActionPerformed\n //Get the content of text field\n String searchText=this.jTextFieldSearchWord.getText().trim();\n //Clear result container:\n this.jTextAreaResult.setText(\"\");\n\n try {\n //Get the class of parser\n Class<?> parserClass = Class.forName(\"ie.gmit.java2.parser.Searchable\");\n\n //Place the search in a thread\n ie.gmit.java2.TextAnalyser.runThread(()->{\n //\"Start the timer\" for parsing time\n final long start = System.nanoTime();\n //Get all the components from the check box container\n for(Component component:this.jLayeredPaneResultsChooser.getComponents()){\n //Check if it is a check box\n if(component instanceof JCheckBox){\n //If it is a check box then check if it is selected\n if(((JCheckBox)component).isSelected()){\n //If it is selected then get the belonging method\n try{\n //String result=((ie.gmit.java2.parser.Parser)this.parserObject).contains(searchText)+\"\";\n //Get the belonging method of check box then invoke it on our parser object with the content of the search field as aparameter\n Object result=parserClass.getDeclaredMethod(component.getName(),String.class).invoke(this.processor, searchText);\n //If it is a int array the size is exactly two then it is line+word index\n if(result instanceof int[] && ((int[])result).length==2){\n result=\"Line \"+(++((int[])result)[0])+\" Word \"+(++((int[])result)[1]);\n }\n //If it is a two dimensional int array then is is the all indices method\n if(result instanceof int[][]){\n //Create result holder\n String resultString=\"\\n\";\n //Loop each line\n for(int[] l:(int[][])result){\n resultString+=\" Line \"+(++l[0])+\" Word \"+(++l[1])+\"\\n\";\n }\n result=resultString;\n }\n\n //Add the result to the end of the results text area;\n this.jTextAreaResult.append(((JCheckBox) component).getText()+\": \"+result.toString()+\"\\n\\n\");\n }catch(IllegalArgumentException | SecurityException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex){\n //Do nothing there should not be any of these errors.\n ie.gmit.java2.TextAnalyser.LOG.debug(ex.getMessage(), ex);\n }\n\n }\n }\n }\n //Set time in millisecs\n this.jTextAreaResult.append(\"Finished in: \"+((float)((System.nanoTime() - start) / 1000000)/(float)1000)+\"s\");\n });\n } catch (ClassNotFoundException ex) {\n //The class is there anyways...\n ie.gmit.java2.TextAnalyser.LOG.debug(ex.getMessage(), ex);\n }\n }", "public void createSearchForPatientPanel() {\n\n\t\tsearchPatientPanel = new JPanel();\n\t\tsearchPatientPanel.setSize(700, 430);\n\t\tsearchPatientPanel.setLocation(0, 70);\n\t\tsearchPatientPanel.setLayout(null);\n\n\t\tJPanel topSearchPanel = new JPanel(new FlowLayout());\n\t\ttopSearchPanel.setSize(500, 30);\n\t\ttopSearchPanel.setLocation(100, 0);\n\t\ttopSearchPanel.add(new JLabel(\"Enter Patiets Name/ID:\"));\n\t\tsearchPatientTF = new JTextField(20);\n\t\ttopSearchPanel.add(searchPatientTF);\n\t\tsearchButton = new JButton(\"Find Patient\");\n\n\t\tsearchButton.addActionListener(this);\n\n\t\ttopSearchPanel.add(searchButton);\n\t\tsearchPatientPanel.add(topSearchPanel);\n\n\t\t// searched patients details labels\n\t\tJPanel searchedPatientDetailsPanel = new JPanel(new GridLayout(4, 2));\n\t\tsearchedPatientDetailsPanel.setLocation(40, 60);\n\t\tsearchedPatientDetailsPanel.setSize(250, 200);\n\t\tsearchedPatientDetailsPanel.setBackground(Color.WHITE);\n\n\t\tl1 = new JLabel(\"Name:\");\n\t\tsearchLabel1 = new JLabel(\"\");\n\t\tl2 = new JLabel(\"Address:\");\n\t\tsearchLabel2 = new JLabel(\"\");\n\t\tl3 = new JLabel(\"Phone Number:\");\n\t\tsearchLabel3 = new JLabel(\"\");\n\t\tl4 = new JLabel(\"DOB:\");\n\t\tsearchLabel4 = new JLabel(\"\");\n\n\t\tsearchedPatientDetailsPanel.add(l1);\n\t\tsearchedPatientDetailsPanel.add(searchLabel1);\n\t\tsearchedPatientDetailsPanel.add(l2);\n\t\tsearchedPatientDetailsPanel.add(searchLabel2);\n\t\tsearchedPatientDetailsPanel.add(l3);\n\t\tsearchedPatientDetailsPanel.add(searchLabel3);\n\t\tsearchedPatientDetailsPanel.add(l4);\n\t\tsearchedPatientDetailsPanel.add(searchLabel4);\n\n\t\tsearchPatientPanel.add(searchedPatientDetailsPanel);\n\n\t\t// update button\n\t\tJPanel updateButtonPanel = new JPanel();\n\t\tupdateButtonPanel.setSize(200, 40);\n\t\tupdateButtonPanel.setLocation(40, 300);\n\n\t\tupdatePatientPanel = new JPanel();\n\t\tupdatePatientButton = new JButton(\"Upadate Current Patient\");\n\t\tupdatePatientButton.setVisible(false);\n\n\t\tupdatePatientButton.addActionListener(this);\n\t\tupdateButtonPanel.add(updatePatientButton);\n\t\tsearchPatientPanel.add(updateButtonPanel);\n\n\t\tJPanel updateAddNewHistoryButtonPanel = new JPanel();\n\t\tupdateAddNewHistoryButtonPanel.setSize(200, 40);\n\t\tupdateAddNewHistoryButtonPanel.setLocation(40, 350);\n\n\t\taddNewHistoryButton = new JButton(\"Add New History\");\n\t\taddNewHistoryButton.addActionListener(this);\n\t\taddNewHistoryButton.setVisible(false);\n\n\t\tupdateAddNewHistoryButtonPanel.add(addNewHistoryButton);\n\t\tsearchPatientPanel.add(updateAddNewHistoryButtonPanel);\n\n\t\t// searched patients history text area\n\t\tJPanel patientsHistoryPanel = new JPanel();\n\t\tpatientsHistoryPanel.setSize(350, 300);\n\t\tpatientsHistoryPanel.setLocation(330, 50);\n\n\t\tpatientsHistoryReport = new JTextArea(17, 30);\n\t\tJScrollPane sp2 = new JScrollPane(patientsHistoryReport);\n\t\tpatientsHistoryPanel.add(sp2);\n\t\tpatientsHistoryReport.setEditable(false);\n\t\tpatientsHistoryReport.setLineWrap(true);\n\t\tpatientsHistoryReport.setWrapStyleWord(true);\n\t\tpatientsHistoryReport.setWrapStyleWord(true);\n\n\t\tsearchPatientPanel.add(patientsHistoryPanel);\n\n\t\ttotalGUIPanel.add(searchPatientPanel);\n\t}", "private ClubSearch() \r\n {\r\n in = new Scanner(System.in);\r\n db = DatabaseManager.getInstance();\r\n \r\n openPrompt = \"Would you like to search for a club, \" +\r\n \t \"filter by type of club, list clubs, or exit? (s/f/l/e)\";\r\n cDatabase = \"ClubDatabase\";\r\n cName = \"ClubName\";\r\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t String username = userLogInput.getText();\n\t\t String password = passLogInput.getText();\n\t\t if (username.contains(\"\\n\")){\n\t\t\tlogMessage.setText(\"Messages: username cannot contain the new line character.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < username.length(); i++){\n\t\t\tif (username.charAt(i) == 44){\n\t\t\t logMessage.setText(\"Messages: username cannot contain the comma character.\");\n\t\t\t panelLog.add(logMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t if (password.contains(\"\\n\")){\n\t\t\tlogMessage.setText(\"Messages: password cannot contain the new line character.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < password.length(); i++){\n\t\t\tif (password.charAt(i) == 44){\n\t\t\t logMessage.setText(\"Messages: password cannot contain the comma character.\");\n\t\t\t panelLog.add(logMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t /**int i = 0;\n\t\t String password = \"\";\n\t\t while(i < passLogInput.length){\n\t\t\tpassword += passLogInput[i];\n\t\t\t}*/\n\t\t /**if (username.length() == 0){\n\t\t\tlogMessage.setText(\"Input username\");\n\t\t }\n\t\t if (password.length() == 0){\n\t\t\tlogMessage.setText(\"Input password\");\n\t\t\t}*/\n\t\t \n\t\t Login backend = new Login(username, password);\n\t\t String results = backend.readFile(\"Example.csv\");\n\n\t\t //Username and password match those in Example.csv\n\t\t if (results.equals(\"Success\")){\n\t\t\tlogMessage.setText(\"Messages: Success!\");\n\t\t\tpanelLog.add(logMessage);\n\t\t\tdispose();\n\t\t\t//new LoginGUI();\n\t\t\t//new LoginGUI();\n\t\t\t//new LoginGUI();\n\n\t\t\tnew GUI(\"Example.csv\", username);\n\t\t }\n\n\t\t //Username or password do not match those in Example.csv\n\t\t else if (results.equals(\"Bad Pass\")){\n\t\t\tlogMessage.setText(\"Messages: The password inputted does not match this username.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t else if (results.equals(\"Bad User\")){\n\t\t\tlogMessage.setText(\"Messages: There is no such user.\");\n\t\t\tpanelLog.add(logMessage);\n\n\t\t }\n\n\t\t //No username or password inputted\n\t\t else if (results.equals(\"Empty User\")){\n\t\t\tlogMessage.setText(\"Messages: Input your username.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t else if (results.equals(\"Empty Pass\")){\n\t\t\tlogMessage.setText(\"Messages: Input your password.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t else{\n\t\t\tlogMessage.setText(\"Messages: Error. Please input your username and password.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t /**String apple = userLogInput.getText();\n\t\t userSignInput.setText(apple);\n\t\t dispose();//this should close the window, but that's a minor technicality\n\t\t new LoginGUI();//this shoudl actually be nwhatever Janice chooses to be her main GUI.*/\n\n\t\t}", "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}", "@FXML\n\tvoid search(ActionEvent event) {\n\n\t\ttry {\n\n\t\t\tif(idEditText.getText().equals(\"\")) {\n\n\t\t\t\tthrow new InsufficientInformationException();\n\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tPlanetarySystem ps = ns.search(Integer.parseInt(idEditText.getText()));\n\n\t\t\t\tif(ps != null) {\n\t\t\t\t\t\n\t\t\t\t\tloadInformation(ps);\t\t\t\t\t\n\t\t\t\t\teditSelectionAlerts();\n\t\t\t\t\tupdateValidationsAvailability(true);\n\t\t\t\t\tupdateButtonsAvailability(true, true, true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsystemNotFoundAlert();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tcatch(InsufficientInformationException e) {\n\t\t\tinsufficientDataAlert();\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tsystemNotFoundAlert();\n\t\t}\n\n\t}", "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 SearchWindow()\n {\n // call parent and set layout\n super();\n this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n TextFieldListener tfl = new TextFieldListener();\n model = new DefaultListModel<String>();\n lsl = new SelectionListener();\n\n radioText = new JLabel(\"Combine Terms Using:\");\n\n // create and add the radio buttons and the clear button\n topButtons = new JPanel();\n topButtons.setLayout(new BoxLayout(topButtons, BoxLayout.LINE_AXIS));\n topButtons.add(Box.createRigidArea(new Dimension(20, 0)));\n\n // can be accessed by pressing A plus Alt (or whatever the users look-and-feel is)\n andRadio = new JRadioButton(\"And\");\n andRadio.setMnemonic(KeyEvent.VK_A);\n\n // can be accessed by pressing O plus Alt\n orRadio = new JRadioButton(\"Or\");\n orRadio.setMnemonic(KeyEvent.VK_O);\n\n // associate the buttons\n radioButtons = new ButtonGroup();\n radioButtons.add(andRadio);\n radioButtons.add(orRadio);\n orRadio.setSelected(true); // default setting\n\n // Listener to perform search if radio buttons are changed (UID req. 2.1)\n ChangeRadioListener crl = new ChangeRadioListener();\n orRadio.addActionListener(crl);\n andRadio.addActionListener(crl);\n\n // create Clear All Terms button with action listener\n clear = new JButton(\"Clear All Terms\");\n clear.setEnabled(false);\n ClearButtonListener cbl = new ClearButtonListener();\n clear.addActionListener(cbl);\n\n // add everything to our top panel\n topButtons.add(radioText);\n topButtons.add(Box.createRigidArea(new Dimension(20, 0)));\n topButtons.add(orRadio);\n topButtons.add(andRadio);\n topButtons.add(Box.createHorizontalGlue());\n topButtons.add(clear);\n topButtons.add(Box.createRigidArea(new Dimension(20, 0)));\n topButtons\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, topButtons.getPreferredSize().height));\n topButtons\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, topButtons.getPreferredSize().height));\n\n // add text fields for search terms\n highSearchPane = new JPanel();\n highSearchPane.setLayout(new BoxLayout(highSearchPane, BoxLayout.LINE_AXIS));\n highWeight = new JLabel(\"High Weight Search Terms:\");\n highTerms = new JTextField();\n highTerms.addKeyListener(tfl);\n highSearchPane.add(Box.createRigidArea(new Dimension(20, 0)));\n highSearchPane.add(highWeight);\n highSearchPane.add(Box.createRigidArea(new Dimension(20, 0)));\n highSearchPane.add(highTerms);\n highSearchPane.add(Box.createRigidArea(new Dimension(20, 0)));\n highSearchPane\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, highSearchPane.getPreferredSize().height));\n lowSearchPan = new JPanel();\n lowSearchPan.setLayout(new BoxLayout(lowSearchPan, BoxLayout.LINE_AXIS));\n lowWeight = new JLabel(\"Low Weight Search Terms:\");\n lowTerms = new JTextField();\n lowTerms.addKeyListener(tfl);\n lowTerms.setMaximumSize(new Dimension(Integer.MAX_VALUE, lowTerms.getPreferredSize().height));\n lowSearchPan.add(Box.createRigidArea(new Dimension(20, 0)));\n lowSearchPan.add(lowWeight);\n lowSearchPan.add(Box.createRigidArea(new Dimension(20, 0)));\n lowSearchPan.add(lowTerms);\n lowSearchPan.add(Box.createRigidArea(new Dimension(20, 0)));\n\n // Create short form panel\n\n shortFormList = new JList<String>(model);\n shortFormList.addListSelectionListener(lsl);\n shortFormList.setFont(new Font(\"LabelStyle\", Font.BOLD, 15));\n shortFormList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n shortFormList.setModel(model);\n shortFormList.setLayoutOrientation(JList.VERTICAL);\n\n shortPane = new JPanel();\n shortPane.setLayout(new BoxLayout(shortPane, BoxLayout.LINE_AXIS));\n shortScroll = new JScrollPane(shortFormList);\n shortPane.add(Box.createRigidArea(new Dimension(20, 0)));\n shortPane.add(shortScroll);\n shortPane.setPreferredSize(new Dimension(Integer.MAX_VALUE, 3000));\n shortPane.add(Box.createRigidArea(new Dimension(20, 0)));\n\n // create books retrieved JTextField\n reviewedField = new JTextField();\n reviewedField.setOpaque(false);\n reviewedField\n .setMaximumSize(new Dimension(Integer.MAX_VALUE, reviewedField.getPreferredSize().height));\n reviewedField.setBorder(BorderFactory.createEmptyBorder());\n reviewedField.setFont(new Font(\"LabelStyle\", Font.BOLD, 12));\n\n // create long form panel\n\n longPane = new JPanel();\n longPane.setLayout(new BoxLayout(longPane, BoxLayout.LINE_AXIS));\n longForm = new JTextPane();\n longScroll = new JScrollPane(longForm);\n longForm.setEditable(false);\n longForm.setFont(new Font(\"LabelStyle\", Font.BOLD, 15));\n longPane.add(Box.createRigidArea(new Dimension(20, 0)));\n longPane.add(longScroll);\n longPane.setPreferredSize(new Dimension(Integer.MAX_VALUE, 3000));\n longPane.add(Box.createRigidArea(new Dimension(20, 0)));\n\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n this.add(topButtons);\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n this.add(highSearchPane);\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n this.add(lowSearchPan);\n this.add(Box.createRigidArea(new Dimension(0, 20)));\n this.add(shortPane);\n this.add(Box.createRigidArea(new Dimension(0, 5)));\n this.add(reviewedField);\n this.add(Box.createRigidArea(new Dimension(0, 5)));\n this.add(longPane);\n this.add(Box.createRigidArea(new Dimension(0, 10)));\n }", "private void processSortButton() {\n try {\n dataOutputArea.setText(\"\");\n\n //Stop a user from sorting 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 return;\n }\n //First if stops a user from attempting to sort any type of thing other than a Ship by any attribute other than Name\n if (!sortCriteriaThingBox.getSelectedItem().toString().toLowerCase().equals(\"ship\") && !sortAttributeBox.getSelectedItem().toString().toLowerCase().equals(\"name\")) {\n JOptionPane.showMessageDialog(null, \"You can only sort Ships by an attribute other than 'Name'!\", \"Error\", JOptionPane.WARNING_MESSAGE);\n //This if will sort whatever Thing is selected by calling sortMyThingByName in the World class\n } else if (sortAttributeBox.getSelectedItem().toString().toLowerCase().equals(\"name\")) {\n String sortThing = sortCriteriaThingBox.getSelectedItem().toString();\n String sortResultByName = world.sortMyThingByName(sortThing);\n dataOutputArea.setText(sortResultByName);\n } else {\n String sortAttribute = sortAttributeBox.getSelectedItem().toString();\n String sortResultByAttribute = world.sortShipByAttribute(sortAttribute);\n dataOutputArea.setText(sortResultByAttribute);\n }\n } catch(Exception e7) {\n JOptionPane.showMessageDialog(null, \"Something went wrong while sorting!\\n\\n\" + e7.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n } //end of catch()\n }", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "@Override\n public void actionPerformed(ActionEvent e){\n try{\n //Open a new window with the past game data\n new PastDataWindow();\n }catch(NullPointerException ex){\n JOptionPane.showMessageDialog(null, \"Error! No data loaded!\",\"Error!\",JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jLabel3 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Georgia\", 1, 14)); // NOI18N\n jLabel1.setText(\"Mountain Project For Sale Search Engine\");\n\n jButton1.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton1.setText(\"GO\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jLabel2.setText(\"Seach for a Key-Word\");\n\n jScrollPane2.setViewportView(jTextPane1);\n\n jLabel3.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jLabel3.setText(\"Search Results (Tile of Post, URL)\");\n\n jTextField1.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jTextField1.setText(\"jTextField1\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Georgia\", 0, 14)); // NOI18N\n jButton2.setText(\"X\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(72, 72, 72)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addComponent(jButton2))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(120, 120, 120))\n .addGroup(layout.createSequentialGroup()\n .addGap(145, 145, 145)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1))\n .addComponent(jLabel2))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(32, 32, 32)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void searchRoutine() {\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Enter the name of the routine:\",\n \"Search\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, null);\n\n if (s != null) {\n try {\n Routine r = collection.search(s);\n list.setSelectedValue(r, true);\n } catch (DoesNotExistException ee) {\n JOptionPane.showMessageDialog(this, \"Routine with given name does not exist.\");\n }\n }\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n\n if (loginPanel.usernameField.getText().equals(\"\")) {\n //they have not so we show an error dialog and make them try again\n JOptionPane.showMessageDialog(null,\n \"Enter a username to continue!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n else {\n //they entered something so we check to see if they have a record in the database already\n Learner newGuy = AppModel.checkUsername(loginPanel.usernameField.getText());\n\n if (newGuy == null) {\n //we didn't find anyone so let's make them a new record\n newGuy = new Learner(loginPanel.usernameField.getText(), 0.0, 0.0);\n ap.insertLearner(newGuy);\n loginPanel.statusLabel.setText(\"<html> <center> Welcome \" + loginPanel.usernameField.getText() +\n \"! </center> <br/> We set up a new account for you! \" +\n \" <br/>Your high score is 0.00 and your last score is 0.00</html>\");\n } else {\n //we found someone so let's grab their stats\n loginPanel.statusLabel.setText(\"<html>Welcome \" + newGuy.getUserName() +\n \"! <br/> Your high score is \" + newGuy.getHighScore() +\n \" and your last score was \" + newGuy.getLastScore() + \"</html>\");\n }\n loginPanel.loginButton.setEnabled(false);\n CurrentUser.setCu(newGuy);\n TabbedPanel.openTabs();\n }\n }", "@FXML\r\n void search(ActionEvent event) {\r\n \tPlacement p1 = new Placement();\r\n \tif(startDate.getValue()!=null){p1.setStartDate(startDate.getValue().toString());}\r\n \tp1.setCohort(Cohort.getText());\r\n \tif(year.getValue()!=null){p1.setYear(year.getValue());}\r\n \tp1.setLocation(Location.getText());\r\n \tp1.setModule(Subject.getText());\r\n \tif(endDate.getValue()!=null){p1.setEndDate(endDate.getValue().toString());}\r\n \tList<Placement> searched = new ArrayList<Placement>();\r\n \ttry {\r\n \t\tsearched.addAll(SearchQueries.ComboSearchPlacement(p1));\r\n \t} catch (SQLException e) {\r\n \t\tGeneralMethods.show(\"Error in searching Lectures\", \"Error\");\r\n \t\te.printStackTrace();\r\n \t}\r\n \t\t\tObservableList<Placement> list = FXCollections.observableArrayList();\r\n \t\t\tlist.addAll(searched);\r\n \t\t\tTablePlacement.setItems(list);\r\n \t\r\n }", "public SteamGui(ArrayList<Game>games) {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.games = games;\n\t\tsetBounds(100, 100, 1411, 1030);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\ttabbedPane.setBounds(27, 127, 1368, 784);\n\t\t\n\t\tcontentPane.add(tabbedPane);\n\t\t\n\t\ttabbedPane.addTab(\"Steam Table\", null, panel, null);\n\t\tpanel.setLayout(null);\n\t\tscrollPane.setBounds(0, 0, 1332, 745);\n\t\t\n\t\tpanel.add(scrollPane);\n\t\t\n\t\tscrollPane.setViewportView(table);\n\t\ttable.setModel(tm);\n\t\tsortingOn.setModel(new DefaultComboBoxModel(new String[] {\"Name\", \"Date\", \"Positive Reviews\", \"Negative Reviews\", \"Average Playtime\", \"Median Playtime\", \"Minimum Owners\", \"Maximum Owners\", \"Price\"}));\n\t\tsortingOn.setBounds(133, 932, 137, 22);\n\t\t\n\t\tcontentPane.add(sortingOn);\n\t\tlblSortOn.setBounds(61, 936, 62, 14);\n\t\t\n\t\tcontentPane.add(lblSortOn);\n\t\tsort.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tString result = (String) sortingOn.getSelectedItem();\n\t\t\t\tif (result.equals(\"Name\"))\n\t\t\t\t{\n\t\t\t\tGameCompare ac = new GameCompare();\n\t\t\t\tCollections.sort(games, ac);\n\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Price\"))\n\t\t\t\t{\n\t\t\t\t\tPriceCompare pc = new PriceCompare();\n\t\t\t\t\tCollections.sort(games, pc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Negative Reviews\"))\n\t\t\t\t{\n\t\t\t\t\tNegativCompare nc = new NegativCompare();\n\t\t\t\t\tCollections.sort(games, nc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Positive Reviews\"))\n\t\t\t\t{\n\t\t\t\t\tCollections.sort(games);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Average Playtime\"))\n\t\t\t\t{\n\t\t\t\t\tAverageCompare ac = new AverageCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Median Playtime\"))\n\t\t\t\t{\n\t\t\t\t\tMedianCompare mc = new MedianCompare();\n\t\t\t\t\tCollections.sort(games, mc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Minimum Owners\"))\n\t\t\t\t{\n\t\t\t\t\tMinCompare ac = new MinCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Maximum Owners\"))\n\t\t\t\t{\n\t\t\t\t\tMaxCompare ac = new MaxCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Date\"))\n\t\t\t\t{\n\t\t\t\t\tDateCompare ac = new DateCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsort.setBounds(290, 932, 89, 23);\n\t\t\n\t\tcontentPane.add(sort);\n\t\tlblTopOf.setFont(new Font(\"Tahoma\", Font.PLAIN, 27));\n\t\tlblTopOf.setBounds(61, 49, 565, 45);\n\t\t\n\t\tcontentPane.add(lblTopOf);\n\t\tcreatePieGraphTab();\n\t\tdrawTable();\n\t\tcreateALineChartTab();\n\t\t\n\t}", "void searchView(String name);", "public void intitialiseGUI(){\n\t\tsetTitle(\"Search\");//Setting the title for this frame\n\t\tsetSize(1100, 650);//Setting the size for this frame\n\t setLocationRelativeTo(null);//Putting the frame in the centre of the screen\n\n\t optionsPane = new JPanel(new BorderLayout());//Creating a panel for the left hand size of the frame which will hold the options\n\t\tjpCmbBoxes = new JPanel();//Creating a panels to hold the combo boxes\n\t\tpic = new JPanel();//Creating a panel to hold the picture\n\t\tdisclaimer = new JPanel(new BorderLayout());//Creating a panel to contain the disclaimer at the bottom of the frame\n\t\tsearchResults = new JPanel();//Creating a panel to hold the search results on the right hand side of the screen\n\t\tscrollbar = new JScrollPane(searchResults, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);//Creating a new scroll pane and disabling the horizontal scroll bar\n\t\t\n\t\tdisclaim = new JLabel(j.getAcknowledgement());//Creating a label for the disclaimer\n\t\tsubTitle = new JLabel(\"Shark Tracker\");//Creating a label for the subtitle\n\t\ttrackingRangeLabel = new JLabel(\"Tracking Range\");//Creating a label for the tracking range\n\t\tgenderLabel = new JLabel(\"Gender\");//Creating a label for the gender\n\t\tstageOfLifeLabel = new JLabel(\"Stage of Life\");//Creating a label for the stage of life\n\t\ttagLocationLabel = new JLabel(\"Tag Location\");//Creating a label for the tag location\n\t\tsearchButton = new JButton(\"Search\");//Creating a label for the search button\n\t\tsearchByName = new JButton(\"Search by Name\");//Creating a label for the searchByName button\n\t\t\n\t\t/*Setting the alignment of each of the components*/\n\t\tsubTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\ttrackingRangeLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tgenderLabel.setAlignmentX(Component.CENTER_ALIGNMENT);;\n\t\tstageOfLifeLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\ttagLocationLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tsearchButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tsearchByName.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tsubTitle.setFont(new Font(\"Serif\", Font.PLAIN, 40));//Setting the font for the subtitle\n\t\t\n\t\ttrackingRange = new JComboBox<String>(ranges);//Creating a combo box for the tracking range options\n\t\tgenderBox = new JComboBox<String>(gender);//Creating a combo box for the gender options\n\t\tstageofLifeBox = new JComboBox<String>(stages);//Creating a combo box for the stage of life options\n\t\ttagLocationBox = new JComboBox<String>();//Creating a combo box for the tag location options\n\t\ttagLocationBox.addItem(\"All\");//Adding an extra field for tag location \"all\"\n\t\t\n\t\tfor(String s : locations){//This for loop gets the tag locations and then adds them to the combo box\n\t\t\ttagLocationBox.addItem(s);//Adding the location to the combo box\n\t\t}\n\t\tscrollbar = new JScrollPane(searchResults);//Adding a scroll pane for the search results\n\t}", "private void submitBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_submitBtnMouseClicked\n Scanner check = new Scanner(hours.getText());\n if (check.hasNextDouble() || check.hasNextInt()) {\n Meeting m = new Meeting(date.getText(), hours.getText(), description.getText(), currentID);\n database.setInfo(m.getDate(), m.getHours(), m.getDescription(), m.getMentorID());\n //input meeting info to EVENTS table under the correct column\n Component frame = null;\n JOptionPane.showMessageDialog(frame, \"Event successfully submitted!\");\n } else {\n Component frame = null;\n JOptionPane.showMessageDialog(frame, \"Error: Please enter a valid number of hours\");\n //if bad user input, show error message\n }\n }", "public void handleSearch(ActionEvent actionEvent) {\n\t\tRadioButton radio = (RadioButton) toogleSearch.getSelectedToggle();\n\t\tString searchString = txtSearch.getText();\n\t\tObservableList<Item> itemList;\n\t\tif(radio == radioID){\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemById(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t} else if(radio == radioName){\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemByName(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\titemList = ItemDAO.searchItemByLocation(searchString);\n\t\t\t\tpopulateItems(itemList);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tExp.displayException(e);\n\t\t\t}\n\t\t}\n\n\n\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==b0){\r\n\t\t\tif(!tf1.getText().matches(\"^([1-9][0-9]*)$\")){\r\n\t\t\t\tSystem.out.println(\"错误\");\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"请输入正确的病历号(数字)进行查找\", \"警告\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\treturn;\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"正确\");\r\n\t\t\t\tPatient patient = Db.serch(tf1.getText());\r\n\t\t\t\tif(patient == null){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"没有该病历号的记录,请重新输入病历号搜索\", \"警告\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\ttf2.setText(patient.getName());\r\n\t\t\t\t\ttf3.setText(patient.getSex());\r\n\t\t\t\t\ttf4.setText(patient.getAge());\r\n\t\t\t\t\ttf5.setText(patient.getCareer());\r\n\t\t\t\t\ttf6.setText(patient.getPhone());\r\n\t\t\t\t\ttf7.setText(patient.getRecipe());\r\n\t\t\t\t\tta.setText(patient.getDescribe());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(e.getSource()==b1){\r\n\t\t\tif(!tf1.getText().matches(\"^([1-9][0-9]*)$\")){\r\n\t\t\t\tSystem.out.println(\"错误\");\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"请输入正确的病历号(数字)\", \"警告\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(!tf4.getText().matches(\"^([1-9][0-9]*)$\")){\r\n\t\t\t\tSystem.out.println(\"错误\");\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"请输入正确的年龄(数字)\", \"警告\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(!tf6.getText().matches(\"^([1-9][0-9]*)$\")){\r\n\t\t\t\tSystem.out.println(\"错误\");\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"请输入正确的电话(数字)\", \"警告\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(!tf7.getText().matches(\"^([1-9][0-9]*)$\")){\r\n\t\t\t\tSystem.out.println(\"错误\");\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"请输入正确的处方(数字)\", \"警告\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tPatient patient = new Patient();\r\n\t\t\tpatient.setId(tf1.getText());\r\n\t\t\tpatient.setName(tf2.getText());\r\n\t\t\tpatient.setSex(tf3.getText());\r\n\t\t\tpatient.setAge(tf4.getText());\r\n\t\t\tpatient.setCareer(tf5.getText());\r\n\t\t\tpatient.setPhone(tf6.getText());\r\n\t\t\tpatient.setRecipe(tf7.getText());\r\n\t\t\tpatient.setDescribe(ta.getText());\r\n\t\t\tDb.update(patient);\r\n\t\t}else if(e.getSource()==b2){\r\n\t\t\tSystem.out.println(\"开始打印\");\r\n\t\t\tPatient pa = new Patient();\r\n\t\t\tpa.setId(tf1.getText());\r\n\t\t\tpa.setName(tf2.getText());\r\n\t\t\tpa.setSex(tf3.getText());\r\n\t\t\tpa.setAge(tf4.getText());\r\n\t\t\tpa.setCareer(tf5.getText());\r\n\t\t\tpa.setPhone(tf6.getText());\r\n\t\t\tpa.setRecipe(tf7.getText());\r\n\t\t\tpa.setDescribe(ta.getText());\r\n\t\t\tnew PrintPanel(pa);\r\n\t\t}else if(e.getSource()==b3){\r\n\t\t\tSystem.out.println(\"开始治疗\");\r\n\t\t\t\r\n\t\t\tif(owner!=null){\r\n\t\t\t\towner.setVisible(true);\r\n\t\t\t\towner.editorMain.setVisible(false);\r\n\t\t\t}\r\n\t\t\tsetVisible(false);\r\n\t\t}else if(e.getSource()==b4){\r\n\t\t\tthis.setVisible(false);\t\t\t\r\n\t\t\towner.setVisible(false);\r\n\t\t\tthis.owner.editorMain.setVisible(true);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void handleSearchTrainClicked() {\n\t\tmSelectedSource = mSourceSearchView.getQuery().toString();\n\t\tmSelectedDestination = mDestinationSearchView.getQuery().toString();\n\t\tString source = mSelectedSource;\n\t\tString destination = mSelectedDestination;\n\t\tfinal String quota = (String) quotaSpinner.getSelectedItem();\n\t\tif(TextUtils.isEmpty(source)) {\n\t\t\tshowErrorText(\"Please choose Source\");\n\t\t\treturn;\n\t\t} else if(TextUtils.isEmpty(destination)) {\n\t\t\tshowErrorText(\"Please choose destination\");\n\t\t\treturn;\n\t\t} else if(quota.equals(\"Quota\")) {\n\t\t\tshowErrorText(\"Please select a quota from dropdown\");\n\t\t\treturn;\n\t\t}\n\n\t\tboolean validSource = false, validDestination = false;\n\t\tfor(SearchItem item : mSuggestionsList) {\n\t\t\tString station = item.get_text().toString();\n\t\t\tif (station.equals(mSelectedSource)) {\n\t\t\t\tvalidSource = true;\n\t\t\t} else if (station.equals(mSelectedDestination)) {\n\t\t\t\tvalidDestination = true;\n\t\t\t}\n\t\t}\n\n\t\tif(!validSource || !validDestination) {\n\t\t\tToast.makeText(mContext, \"Enter a valid source and destination\", Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\n\t\t//processing :( :(\n\t\tsource = source.replaceAll(\"[()]\",\"\").replaceAll(\" \", \"-\");\n\t\tdestination = destination.replaceAll(\"[()]\",\"\").replaceAll(\" \", \"-\");\n\t\tString quotaNotation = \"GN\";\n\t\tswitch (quota) {\n\t\t\tcase \"General Quota\":\n\t\t\t\tquotaNotation = \"GN\";\n\t\t\t\tbreak;\n\t\t\tcase \"Tatkal\":\n\t\t\t\tquotaNotation = \"CK\";\n\t\t\t\tbreak;\n\t\t\tcase \"Premium Tatkal\":\n\t\t\t\tquotaNotation = \"PT\";\n\t\t\t\tbreak;\n\t\t\tcase \"Ladies\":\n\t\t\t\tquotaNotation = \"LD\";\n\t\t\t\tbreak;\n\t\t\tcase \"Defence\":\n\t\t\t\tquotaNotation = \"DF\";\n\t\t\t\tbreak;\n\t\t\tcase \"Duty pass\":\n\t\t\t\tquotaNotation = \"DP\";\n\t\t\t\tbreak;\n\t\t\tcase \"Foreign Tourist\":\n\t\t\t\tquotaNotation = \"FF\";\n\t\t\t\tbreak;\n\t\t\tcase \"Lower Berth\":\n\t\t\t\tquotaNotation = \"SS\";\n\t\t\t\tbreak;\n\t\t}\n\n//\t\tString myFormat = \"yyyy-MM-dd\";\n//\t\tSimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n\n\t\tString dateString = sdf.format(myCalendar.getTime());\n\n\t\tString uri = Constants.URI_TRAIN_BETWEEN + \"/\" + source + \"-to-\" + destination;\n\t\tfinal Uri builtUri = Uri.parse(uri)\n\t\t\t\t.buildUpon()\n\t\t\t\t.appendQueryParameter(\"quota\", quotaNotation)\n\t\t\t\t.appendQueryParameter(\"date\",dateString)\n\t\t\t\t.build();\n\n\t\tWebviewFragment paymentFragment = WebviewFragment.newInstance(builtUri.toString());\n\t\tmFragmentManager\n\t\t\t\t.beginTransaction()\n\t\t\t\t.replace(R.id.container, paymentFragment)\n\t\t\t\t.addToBackStack(null)\n\t\t\t\t.commit();\n\t}", "public DisplayQueryResults(){\n super(\"Displaying Query Results\");\n\n //create ResultSetTableModel and display database table\n try {\n //create TableModel for results of query SELECT * FROM authors\n tableModel = new ResultSetTableModel(JDBC_DRIVER, DATABASE_URL, DEFAULT_QUERY);\n //setup JTextArea in which user types queries\n queryArea = new JTextArea(DEFAULT_QUERY, 3, 150);\n queryArea.setWrapStyleWord(true);\n queryArea.setLineWrap(true);\n\n JScrollPane scrollPane = new JScrollPane(queryArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants. HORIZONTAL_SCROLLBAR_NEVER);\n //setup JButton for submitting queries\n JButton submitButton = new JButton(\"Submit Query\");\n\n //create Box to manage placement of queryArea and submitButton in GUI\n Box box = Box.createHorizontalBox();\n box.add(scrollPane);\n box.add(submitButton);\n\n //create JTable delegate for tableModel\n JTable resultTable = new JTable(tableModel);\n\n //place GUI components on content pane\n Container c = getContentPane();\n c.add(box, BorderLayout.NORTH);\n c.add(new JScrollPane(resultTable), BorderLayout.CENTER);\n\n //create event listener for submitButton\n submitButton.addActionListener(new ActionListener() {\n //pass query to table model\n @Override\n public void actionPerformed(ActionEvent e) {\n //perform a new query\n try{\n tableModel.setQuery(queryArea.getText());\n }catch (SQLException sqlException){ //catch SQLException when performing a new query\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //try to recover from invalid user query by executing default query\n try{\n tableModel.setQuery(DEFAULT_QUERY);\n queryArea.setText(DEFAULT_QUERY);\n }catch (SQLException sqlException2){ //catch SQLException when performing default query\n JOptionPane.showMessageDialog(null, sqlException2.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //ensure database connection is closed\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }//end inner catch\n }//end outer catch\n }//end actionPerformed\n });//end call to addActionListener\n\n //set window size and display window\n setSize(500, 250);\n setVisible(true);\n }catch (ClassNotFoundException classNotFound){ //catch ClassNotFoundException thrown by ResultSetTableModel if database driver not found\n JOptionPane.showMessageDialog(null, \"Cloudscape driver not found\", \"Driver not found\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n } catch (SQLException sqlException) { //catch SQLException thrown by ResultSetTableModel if problems occur while setting up database connection and querying database\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }\n\n //dispose of window when user quits application (this overrides the default of HIDE_ON_CLOSE)\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n //ensure database connection is closed when the user quits application\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosed(WindowEvent e) {\n tableModel.disconnectFromDatabase();\n System.exit(0);\n }\n });\n }", "public void displayEvent(String name, PrintWriter out, Connection con) {\r\n\r\n ResultSet rs = null;\r\n \r\n int year = 0;\r\n int month = 0;\r\n int day = 0;\r\n int act_hr = 0;\r\n int act_min = 0;\r\n int signUp = 0;\r\n int type = 0;\r\n int holes = 0;\r\n int max = 0;\r\n int size = 0;\r\n int guests = 0;\r\n int teams = 0;\r\n int c_month = 0;\r\n int c_day = 0;\r\n int c_year = 0;\r\n int c_time = 0;\r\n int c_hr = 0;\r\n int c_min = 0;\r\n \r\n String course = \"\";\r\n String format = \"\";\r\n String pairings = \"\";\r\n String memcost = \"\";\r\n String gstcost = \"\";\r\n String itin = \"\";\r\n String c_ampm = \"\";\r\n String act_ampm = \"\";\r\n String fb = \"\";\r\n \r\n //\r\n // Locate the event and display the content\r\n //\r\n try {\r\n\r\n PreparedStatement stmt = con.prepareStatement (\r\n \"SELECT * FROM events2b \" +\r\n \"WHERE name = ?\");\r\n\r\n stmt.clearParameters(); // clear the parms\r\n stmt.setString(1, name);\r\n rs = stmt.executeQuery(); // execute the prepared stmt\r\n\r\n if (rs.next()) {\r\n\r\n year = rs.getInt(\"year\");\r\n month = rs.getInt(\"month\");\r\n day = rs.getInt(\"day\");\r\n type = rs.getInt(\"type\");\r\n act_hr = rs.getInt(\"act_hr\");\r\n act_min = rs.getInt(\"act_min\");\r\n course = rs.getString(\"courseName\");\r\n signUp = rs.getInt(\"signUp\");\r\n format = rs.getString(\"format\");\r\n pairings = rs.getString(\"pairings\");\r\n size = rs.getInt(\"size\");\r\n max = rs.getInt(\"max\");\r\n guests = rs.getInt(\"guests\");\r\n memcost = rs.getString(\"memcost\");\r\n gstcost = rs.getString(\"gstcost\");\r\n c_month = rs.getInt(\"c_month\");\r\n c_day = rs.getInt(\"c_day\");\r\n c_year = rs.getInt(\"c_year\");\r\n c_time = rs.getInt(\"c_time\");\r\n itin = rs.getString(\"itin\");\r\n holes = rs.getInt(\"holes\");\r\n fb = rs.getString(\"fb\");\r\n\r\n } else { // name not found - try filtering it\r\n\r\n name = SystemUtils.filter(name);\r\n\r\n stmt.clearParameters(); // clear the parms\r\n stmt.setString(1, name);\r\n rs = stmt.executeQuery(); // execute the prepared stmt\r\n\r\n if (rs.next()) {\r\n\r\n year = rs.getInt(\"year\");\r\n month = rs.getInt(\"month\");\r\n day = rs.getInt(\"day\");\r\n type = rs.getInt(\"type\");\r\n act_hr = rs.getInt(\"act_hr\");\r\n act_min = rs.getInt(\"act_min\");\r\n course = rs.getString(\"courseName\");\r\n signUp = rs.getInt(\"signUp\");\r\n format = rs.getString(\"format\");\r\n pairings = rs.getString(\"pairings\");\r\n size = rs.getInt(\"size\");\r\n max = rs.getInt(\"max\");\r\n guests = rs.getInt(\"guests\");\r\n memcost = rs.getString(\"memcost\");\r\n gstcost = rs.getString(\"gstcost\");\r\n c_month = rs.getInt(\"c_month\");\r\n c_day = rs.getInt(\"c_day\");\r\n c_year = rs.getInt(\"c_year\");\r\n c_time = rs.getInt(\"c_time\");\r\n itin = rs.getString(\"itin\");\r\n holes = rs.getInt(\"holes\");\r\n fb = rs.getString(\"fb\");\r\n }\r\n }\r\n stmt.close();\r\n\r\n //\r\n // Create time values\r\n //\r\n act_ampm = \"AM\";\r\n\r\n if (act_hr == 0) {\r\n\r\n act_hr = 12; // change to 12 AM (midnight)\r\n\r\n } else {\r\n\r\n if (act_hr == 12) {\r\n\r\n act_ampm = \"PM\"; // change to Noon\r\n }\r\n }\r\n if (act_hr > 12) {\r\n\r\n act_hr = act_hr - 12;\r\n act_ampm = \"PM\"; // change to 12 hr clock\r\n }\r\n\r\n c_hr = c_time / 100;\r\n c_min = c_time - (c_hr * 100);\r\n\r\n c_ampm = \"AM\";\r\n\r\n if (c_hr == 0) {\r\n\r\n c_hr = 12; // change to 12 AM (midnight)\r\n\r\n } else {\r\n\r\n if (c_hr == 12) {\r\n\r\n c_ampm = \"PM\"; // change to Noon\r\n }\r\n }\r\n if (c_hr > 12) {\r\n\r\n c_hr = c_hr - 12;\r\n c_ampm = \"PM\"; // change to 12 hr clock\r\n }\r\n\r\n //\r\n // Build the html page\r\n //\r\n out.println(SystemUtils.HeadTitle(\"Member Event Information\"));\r\n out.println(\"<body bgcolor=\\\"#FFFFFF\\\" text=\\\"#000000\\\">\");\r\n out.println(\"<font face=\\\"Arial, Helvetica, Sans-serif\\\"><center>\");\r\n\r\n out.println(\"<table border=\\\"0\\\" valign=\\\"top\\\">\"); // table for main page\r\n out.println(\"<tr><td align=\\\"center\\\" valign=\\\"top\\\">\");\r\n out.println(\"<font size=\\\"3\\\">\");\r\n out.println(\"Event: <b>\" + name + \"</b>\");\r\n out.println(\"</font></td></tr>\");\r\n out.println(\"<tr><td align=\\\"left\\\">\");\r\n out.println(\"<font size=\\\"2\\\"><br><br>\");\r\n out.println(\"<b>Date:</b>&nbsp;&nbsp; \" + month + \"/\" + day + \"/\" + year);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n if (act_min < 10) {\r\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":0\" + act_min + \" \" + act_ampm);\r\n } else {\r\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":\" + act_min + \" \" + act_ampm);\r\n }\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n if (type != 0) {\r\n out.println(\"<b>Type:</b>&nbsp;&nbsp; Shotgun<br><br>\");\r\n } else {\r\n out.println(\"<b>Type:</b>&nbsp;&nbsp; Tee Times<br><br>\");\r\n }\r\n\r\n if (!course.equals( \"\" )) {\r\n\r\n out.println(\"<b>Course:</b>&nbsp;&nbsp; \" + course);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n }\r\n\r\n out.println(\"<b>Front/Back Tees:</b>&nbsp;&nbsp; \" + fb + \"<br><br>\");\r\n\r\n out.println(\"<b>Format:</b>&nbsp;&nbsp; \" + format + \"<br><br>\");\r\n out.println(\"<b>Pairings by:</b>&nbsp;&nbsp; \" + pairings);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b># of Teams:</b>&nbsp;&nbsp; \" + max);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Team Size:</b>&nbsp;&nbsp; \" + size);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Holes:</b>&nbsp;&nbsp; \" + holes + \"<br><br>\");\r\n out.println(\"<b>Guests per Member:</b>&nbsp;&nbsp;\" + guests);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Cost per Guest:</b>&nbsp;&nbsp;\" + gstcost);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Cost per Member:</b>&nbsp;&nbsp;\" + memcost + \"<br><br>\");\r\n \r\n if (signUp != 0) { // if members can sign up\r\n\r\n if (c_min < 10) {\r\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":0\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\r\n } else {\r\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\r\n }\r\n out.println(\"<br><br>\");\r\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\r\n\r\n out.println(\"<br><br>\");\r\n out.println(\"To register for this event click on the <b>Events</b> tab after closing this window.<br>\");\r\n \r\n } else {\r\n \r\n \r\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\r\n out.println(\"<br><br>\");\r\n out.println(\"Online sign up was not selected for this event.\");\r\n }\r\n out.println(\"</font></td></tr>\");\r\n out.println(\"<tr><td align=\\\"center\\\">\");\r\n out.println(\"<font size=\\\"2\\\">\");\r\n //\r\n // End of HTML page\r\n //\r\n out.println(\"<p align=\\\"center\\\"><br><form>\");\r\n out.println(\"<input type=\\\"button\\\" value=\\\"CLOSE\\\" onClick='self.close();'>\");\r\n out.println(\"</form></p>\");\r\n out.println(\"</font></td>\");\r\n out.println(\"</tr></table>\");\r\n out.println(\"</center></font></body></html>\");\r\n out.close();\r\n \r\n }\r\n catch (Exception exc) {\r\n out.println(SystemUtils.HeadTitle(\"Database Error\"));\r\n out.println(\"<BODY><CENTER>\");\r\n out.println(\"<BR><BR><H3>Database Access Error</H3>\");\r\n out.println(\"<BR><BR>Sorry, we are unable to access the database at this time.\");\r\n out.println(\"<BR>Error:\" + exc.getMessage());\r\n out.println(\"<BR><BR>Please try again later.\");\r\n out.println(\"<BR><BR>If problem persists, contact your golf shop (provide this information).\");\r\n out.println(\"<br><br><form>\");\r\n out.println(\"<input type=\\\"button\\\" value=\\\"Close\\\" onClick='self.close();'>\");\r\n out.println(\"</form>\");\r\n out.println(\"</center></font></body></html>\");\r\n out.close();\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextFieldSearchWord = new javax.swing.JTextField();\n TextPrompt tsearch7 = new TextPrompt(\"Word tor search for\", this.jTextFieldSearchWord);\n jButtonSearch = new javax.swing.JButton();\n jLayeredPaneResultsChooser = new javax.swing.JLayeredPane();\n jCheckBoxLastIndex = new javax.swing.JCheckBox();\n jCheckBoxContains = new javax.swing.JCheckBox();\n jCheckBoxAllIndeces = new javax.swing.JCheckBox();\n jCheckBoxFirstIndex = new javax.swing.JCheckBox();\n jCheckBoxOccurrences = new javax.swing.JCheckBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaResult = new javax.swing.JTextArea();\n\n setMaximumSize(new java.awt.Dimension(491, 267));\n setMinimumSize(new java.awt.Dimension(491, 267));\n setPreferredSize(new java.awt.Dimension(491, 267));\n\n jTextFieldSearchWord.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jTextFieldSearchWordMouseReleased(evt);\n }\n });\n jTextFieldSearchWord.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextFieldSearchWordKeyReleased(evt);\n }\n });\n\n jButtonSearch.setMnemonic('r');\n jButtonSearch.setText(\"Search\");\n jButtonSearch.setToolTipText(\"\");\n jButtonSearch.setEnabled(false);\n jButtonSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSearchActionPerformed(evt);\n }\n });\n\n jLayeredPaneResultsChooser.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Results to show\"));\n\n jCheckBoxLastIndex.setMnemonic('L');\n jCheckBoxLastIndex.setText(\"Last Index\");\n jCheckBoxLastIndex.setName(\"getLastIndex\"); // NOI18N\n\n jCheckBoxContains.setMnemonic('C');\n jCheckBoxContains.setSelected(true);\n jCheckBoxContains.setText(\"Contains\");\n jCheckBoxContains.setName(\"contains\"); // NOI18N\n\n jCheckBoxAllIndeces.setMnemonic('A');\n jCheckBoxAllIndeces.setText(\"All Indeces\");\n jCheckBoxAllIndeces.setName(\"getAllIndices\"); // NOI18N\n\n jCheckBoxFirstIndex.setMnemonic('F');\n jCheckBoxFirstIndex.setText(\"First Index\");\n jCheckBoxFirstIndex.setName(\"getFirstIndex\"); // NOI18N\n\n jCheckBoxOccurrences.setMnemonic('O');\n jCheckBoxOccurrences.setText(\"Occurrences\");\n jCheckBoxOccurrences.setName(\"countOccurrences\"); // NOI18N\n\n jLayeredPaneResultsChooser.setLayer(jCheckBoxLastIndex, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxContains, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxAllIndeces, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxFirstIndex, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jLayeredPaneResultsChooser.setLayer(jCheckBoxOccurrences, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n javax.swing.GroupLayout jLayeredPaneResultsChooserLayout = new javax.swing.GroupLayout(jLayeredPaneResultsChooser);\n jLayeredPaneResultsChooser.setLayout(jLayeredPaneResultsChooserLayout);\n jLayeredPaneResultsChooserLayout.setHorizontalGroup(\n jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jLayeredPaneResultsChooserLayout.createSequentialGroup()\n .addComponent(jCheckBoxContains)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBoxOccurrences)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBoxFirstIndex)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBoxLastIndex)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBoxAllIndeces)\n .addContainerGap(72, Short.MAX_VALUE))\n );\n jLayeredPaneResultsChooserLayout.setVerticalGroup(\n jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBoxOccurrences)\n .addComponent(jCheckBoxFirstIndex)\n .addComponent(jCheckBoxContains))\n .addGroup(jLayeredPaneResultsChooserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBoxLastIndex)\n .addComponent(jCheckBoxAllIndeces))\n );\n\n jTextAreaResult.setColumns(20);\n jTextAreaResult.setRows(5);\n jTextAreaResult.setDisabledTextColor(new java.awt.Color(0, 0, 0));\n jTextAreaResult.setEnabled(false);\n jScrollPane1.setViewportView(jTextAreaResult);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLayeredPaneResultsChooser)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextFieldSearchWord)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButtonSearch))\n .addComponent(jScrollPane1))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButtonSearch, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextFieldSearchWord, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLayeredPaneResultsChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "public void init()\r\n {\r\n // SecurityManager security=System.getSecurityManager();\r\n Panel p;\r\n\tgetParameters(); // Read the Applet Parameters.\r\n\tsetLayout(new BorderLayout());\r\n\r\n\t// If Applet size<600 pixels then reduce the length of TextFields , labels etc.\r\n\t// So that the display will OK. \r\n if(size().width<=600)\r\n\t packComponents=true;\r\n else packComponents=false;\r\n\r\n\t// This Panel consists of input Text Field Where the user enters the text to search for.\r\n\t// The buttons allow the search to be started, aborted and clear the applets output fields.\r\n\t\r\n\tp=new Panel();\r\n\tp.setLayout(new FlowLayout());\r\n\tLabel lab=new Label(\"Search for: \");\r\n\tlab.setFont(new Font(\"TimesNewRoman\",Font.BOLD,14));\r\n\tlab.setForeground(Color.blue);\r\n\tp.add(lab);\r\n\t\r\n\tif(packComponents)\r\n\t inputArea=new TextField(\"\",15);\r\n else\r\n\t inputArea=new TextField(\"\",20);\r\n\tp.add(inputArea);\r\n\t\r\n\tif(packComponents)\r\n\t{\r\n\t search=new Button(\"Search\");\r\n\t search.setFont(new Font(\"TimesNewRoman\",Font.BOLD,12));\r\n\t search.setForeground(Color.green);\r\n\t}\r\n\telse\r\n\t{\r\n\t search=new Button(\"Search\");\r\n\t search.setFont(new Font(\"TimesNewRoman\",Font.BOLD,14));\r\n\t search.setForeground(Color.green);\r\n\t}\r\n\tp.add(search);\r\n\r\n\tif (packComponents)\r\n\t{\r\n\t clear = new Button (\"clear\");\r\n\t clear.setFont (new Font (\"TimesNewRoman\", Font.BOLD, 12));\r\n\t clear.setForeground(Color.white);\r\n\t} \r\n\telse\r\n\t{\r\n\t clear = new Button (\" clear \");\r\n\t clear.setFont (new Font (\"Helvetica\", Font.BOLD, 14));\r\n\t clear.setForeground(Color.white);\r\n\t} \r\n\tp.add (clear);\r\n\r\n\tif (packComponents)\r\n\t{\r\n\t abort = new Button (\"stop\");\r\n\t abort.setFont (new Font (\"Helvetica\", Font.BOLD, 12));\r\n\t abort.setForeground(Color.red);\r\n\t}\r\n\telse\r\n\t{\r\n\t abort = new Button (\" stop \");\r\n\t abort.setFont (new Font (\"Helvetica\", Font.BOLD, 14));\r\n\t abort.setForeground(Color.red);\r\n\t}\r\n\tabort.disable();\r\n\tp.add (abort);\r\n \r\n\tif (packComponents)\r\n\t\tlab = new Label (\"Pages\");\r\n\telse\r\n\t\tlab = new Label (\" Max. Pages:\");\r\n\tlab.setFont (new Font (\"Helvetica\", Font.PLAIN, 12));\r\n\tp.add (lab);\r\n\tnumPagesChoice = new Choice();\r\n\t//p.add (numPagesChoice);\r\n\tp.setForeground (fgColour);\r\n\tp.setBackground (bgColour);\r\n\tadd (\"North\",p);\r\n\r\n\t// This Panel Lists the results. When an item from the list box is double clicked the URL is opened.\r\n p=new Panel();\r\n p.setLayout(new GridLayout(0,1));\r\n\tresultsArea=new java.awt.List(10,false);\r\n p.add(resultsArea);\r\n\tp.setForeground(fgColour);\r\n\tp.setBackground(bgColour);\r\n\tadd(\"Center\",p);\r\n\r\n\tp=new Panel();\r\n\tLabel labVersion=new Label(versionNumber);\r\n\tlabVersion.setFont(new Font(\"TimesNewRoman\",Font.BOLD,12));\r\n\tp.add(labVersion);\r\n\r\n\tCheckboxGroup caseSense=new CheckboxGroup();\r\n\t\r\n\t// This TextField shows the status of the search to provide some feed back to the user. \r\n\t// The Page Count is displayed. \r\n\r\n\tif(packComponents)\r\n\t statusArea=new TextField(\"\",14);\r\n else \r\n\t statusArea=new TextField(\"\",20);\r\n\t\r\n\tstatusArea.setEditable(false);\r\n\tp.add(statusArea);\r\n\r\n\tif (packComponents)\r\n\t\tcaseInsensitive = new Checkbox (\"in-sensitive\");\r\n\telse\r\n\t\tcaseInsensitive = new Checkbox (\"case in-sensitive\");\r\n\r\n\tp.add (caseInsensitive);\r\n\tcaseInsensitive.setCheckboxGroup (caseSense);\r\n\r\n\tif (packComponents)\r\n\t\tcaseSensitive = new Checkbox (\"sensitive\" );\r\n\telse\r\n\t\tcaseSensitive = new Checkbox (\"case sensitive\" );\r\n\r\n\tp.add (caseSensitive);\r\n\tcaseSensitive.setCheckboxGroup (caseSense);\r\n\tcaseSense.setCurrent (caseInsensitive);\r\n\r\n\tif (packComponents)\r\n\t\tmatchWholeWord = new Checkbox (\"whole word\");\r\n\telse\r\n\t\tmatchWholeWord = new Checkbox (\"match whole word\");\r\n\r\n\tp.add (matchWholeWord);\r\n\tp.setForeground (fgColour);\r\n\tp.setBackground (bgColour);\r\n\tadd (\"South\",p);\r\n\r\n\tdisableButtons(); // Disable Button until text entered.\r\n\r\n\t// Create Vector to hold pages that have been found and pages that contain the search text.\r\n\tpageNames=new Vector();\r\n\tpageMatch=new Vector();\r\n\r\n\t// Now that we know what the maxSearch parameter is fill in sensible page Numbers.\r\n for(int i=maxSearch/5;i<=maxSearch;i+=maxSearch/5)\r\n\t{\r\n\t numPagesChoice.addItem(Integer.toString(i));\r\n\t}\r\n\tnumPagesChoice.setFont(new Font(\"Helvetica\",Font.BOLD,12));\r\n\t//Set the default Number of pages to be searched.\r\n\tnumPagesChoice.select(0);\r\n\tmaxSearch=maxSearch/5;\r\n\tinputArea.setBackground(Color.white);\r\n }" ]
[ "0.71249694", "0.612572", "0.61252856", "0.5774243", "0.56402546", "0.56256974", "0.55786437", "0.5532323", "0.55010885", "0.54337865", "0.5388997", "0.5386109", "0.53765506", "0.5369923", "0.5353846", "0.5344333", "0.5342104", "0.53419095", "0.5331003", "0.52717125", "0.52579325", "0.52475774", "0.51988405", "0.51920617", "0.5189687", "0.5162623", "0.5162509", "0.5154681", "0.5153899", "0.51534396", "0.5151662", "0.5138467", "0.5125161", "0.5109359", "0.5083241", "0.50594366", "0.5057663", "0.5049106", "0.5047228", "0.50337267", "0.5021962", "0.50142074", "0.5006065", "0.49878046", "0.4987664", "0.4984698", "0.4980513", "0.49780065", "0.4973197", "0.4967373", "0.49665284", "0.49659854", "0.49653572", "0.4940187", "0.49240243", "0.49233735", "0.49233618", "0.49196523", "0.4918805", "0.49137282", "0.4910458", "0.4899216", "0.4899054", "0.48960918", "0.48921302", "0.48871034", "0.48818663", "0.48816758", "0.48783147", "0.4864141", "0.48612866", "0.48591", "0.4859027", "0.48427925", "0.48417073", "0.48374605", "0.4834626", "0.48136622", "0.48092827", "0.4806832", "0.4804594", "0.48010057", "0.47926134", "0.47902256", "0.47888297", "0.47878668", "0.47709203", "0.47683468", "0.4765147", "0.4759029", "0.47572935", "0.47510764", "0.47478437", "0.474715", "0.47460437", "0.47405925", "0.473583", "0.4733944", "0.4728382", "0.47273573" ]
0.6991525
1
This method is used to view the specific statistics of the team which the user has searched for. This is done by first executing the method 'tableSearch' and checking to see whether the team actually exists in the 'leaguestandings' table. If this returns a value of true then it has been validated that the team does exist and the program can proceed. The JTextArea is then set to blank in order for the new statistics to write to a blank canvas. The program then executes three key SQL SELECT statements which extracts the information held in the 'leaguestandings' table. These SELECT statements extract the values in the columns: GoalsScored, GoalsConceded and GoalDifference. The contents of these columns are then formatted in an aesthetically pleasing way and is then written to the teamStatistics JTextArea
public void viewTeamStatistics(JTextArea teamStatistics, String teamNameString) throws IOException, HeadlessException, SQLException { if (findTeam(teamNameString)) { teamStatistics.setText(null); Connection conn = DriverManager.getConnection("jdbc:sqlite:users"); Statement stmt = conn.createStatement(); String SQL = "select GoalsScored from leaguestandings where TeamName = '" + teamNameString + "';"; ResultSet goalsScoredResult = stmt.executeQuery(SQL); String gsr = null; if (goalsScoredResult.next()) { gsr = goalsScoredResult.getString("GoalsScored"); } int currentGoalsScored = Integer.valueOf(gsr); String goalsScoredString = String.valueOf(currentGoalsScored); String goalsConceded = "select GoalsConceded from leaguestandings where TeamName = '" + teamNameString + "';"; ResultSet goalsConcededResult = stmt.executeQuery(goalsConceded); String gcr = null; if (goalsConcededResult.next()) { gcr = goalsConcededResult.getString("GoalsConceded"); } int currentGoalsConceded = Integer.valueOf(gcr); String goalsConcededString = String.valueOf(currentGoalsConceded); int overallGoalDifference = currentGoalsScored - currentGoalsConceded; teamStatistics.setText("Total goals scored: " + goalsScoredString + "\n" + "Total goals conceded: " + goalsConcededString + "\n" + "Overall goal difference: " + overallGoalDifference); } else { teamStatistics.setText(null); JOptionPane.showMessageDialog(null, "Team does not exist"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayStats(ArrayList<String> standings){\n\t\tString[] parts;\n\t\tdouble avg, gamesB; //variables for fucntion calls\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Teams: Wins: Loses: Pct: Games Behind:\" );\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tfor(String standing : standings){\n\t\t\tparts = standing.split(\"\\t\");\n\t\t\tavg = getAvg(standing);\n\t\t\tSystem.out.printf(\"%-15s%-8s%-8s%6.2f \\n \", parts[0], parts[1], parts[2], avg);\n\t\t}//end for \n//\t\tSystem.out.println(standings);\n\t}", "private void displayTeams() {\n SwapTeamMembersController.calculateTeamConstraints();\n System.out.println(\"\\nTeams formed are:\");\n for (Team team: Team.allTeams) {\n System.out.println(Constraint.ANSI_GREEN + \"\\nThe team ID\\t\\t\\t\\t: \" + team.getTeamID() + Constraint.ANSI_RESET +\n \"\\nThe Project Assigned\\t: \" + team.getProjectAssigned().getProjectId() + \": \" + team.getProjectAssigned().getProjectTitle() +\n \"\\nThe team's fitness is\\t: \" + team.getTeamFitness());\n System.out.print(\"\\nThe Students IDs of students in this team are: \\n\");\n for (Student student: team.getStudentsInTeam()) {\n System.out.print(student.getId() + \"\\tName: \" + student.getFirstName() + \"\\t\\tGender : \" + student.getGender() + \"\\t\\tExperience : \" + student.getExperience() + \" years\\n\");\n }\n int j = 1;\n System.out.println(\"\\nConstraints met are (with weightage):\");\n for (Constraint c: team.getConstraintsMet()) {\n System.out.println(j + \". \" + c.getConstraintDescription() + \"\\t: \" + c.getWeightAge());\n j++;\n }\n }\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}", "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 }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\ttry {\n\t\t\t\t\tString teamNameString = teamName.getText();\n\t\t\t\t\tviewTeamStatistics(teamStatistics, teamNameString);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (HeadlessException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}", "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 static void displayStats2(ArrayList<String> standings){\n\t\t\tString[] parts;\n\t\t\tdouble avg;\n\t\t\tSystem.out.println(\"-----------------------------\");\n\t\t\tSystem.out.println(\"Teams: Pct:\" );\n\t\t\tSystem.out.println(\"-----------------------------\");\n\t\t\tfor(String standing : standings){\n\t\t\t\tparts = standing.split(\"\\t\");\n\t\t\t\tavg = getAvg(standing);\n\t\t\t\tSystem.out.printf(\"%-15s%6.2f\\n \", parts[0], avg);\n\t\t\t\t//System.out.println(parts[1]);\n\t\t\t\t//System.out.println(parts[2]);\n\t\t\t\t\n\t\t\t}//end for \n\t//\t\tSystem.out.println(standings);\n\t\t}", "public void updateStatsPanel() {\n\t\t//update versus table\n\t\tuser1 = Login.getInstance().getUserOne();\n\t\tuser2 = Login.getInstance().getUserTwo();\n\t\t\n\t\tif(isVersusTableInitialized==true) {\n\t\t\tmainPanel.remove(versusTable);\n\t\t}\n\t\t\n\t\tversusTable = generateVersusTable();\n\t\tmainPanel.add(versusTable);\n\t\tisVersusTableInitialized=true;\n\t\tversusTable.setBounds(600, 160, 150, 45);\n\t\tversusTable.setBackground(Color.LIGHT_GRAY);\n\t\tversusTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t\t\n\t\t//update top ten table\n\t\tif(isTopTenTableInitialized==true) {\n\t\t\tmainPanel.remove(topTenTable);\n\t\t}\n\t\t\n\t\ttopTenTable=generateTopTenTable();\n\t\tmainPanel.add(topTenTable);\n\t\tisTopTenTableInitialized=true;\n\t\ttopTenTable.setBounds(150, 160, 150, 175);\n\t\ttopTenTable.setBackground(Color.LIGHT_GRAY);\n\t\ttopTenTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t}", "private void initialize() throws IOException {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 483, 336);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJLabel lblPlayerView = new JLabel(\"Player view\");\n\t\tlblPlayerView.setBounds(10, 11, 96, 14);\n\t\tframe.getContentPane().add(lblPlayerView);\n\n\t\tteamName = new JTextField();\n\t\tteamName.setBounds(287, 102, 86, 20);\n\t\tframe.getContentPane().add(teamName);\n\t\tteamName.setColumns(10);\n\n\t\tJLabel lblTeamStatistics = new JLabel(\"Team statistics\");\n\t\tlblTeamStatistics.setBounds(10, 155, 96, 14);\n\t\tframe.getContentPane().add(lblTeamStatistics);\n\n\t\tJLabel lblEnterTheName = new JLabel(\"Enter the name of the team you wish to view:\");\n\t\tlblEnterTheName.setBounds(10, 91, 256, 42);\n\t\tframe.getContentPane().add(lblEnterTheName);\n\n\t\tJTextArea teamStatistics = new JTextArea();\n\t\tteamStatistics.setFont(new Font(\"Monospaced\", Font.PLAIN, 10));\n\t\tteamStatistics.setBounds(10, 180, 173, 106);\n\t\tframe.getContentPane().add(teamStatistics);\n\n\t\tJButton btnSearch = new JButton(\"Search\");\n\t\tbtnSearch.setBounds(287, 133, 89, 23);\n\t\tframe.getContentPane().add(btnSearch);\n\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\n\t\t\t/*\n\t\t\t * Upon the 'Search' button being clicked, the value of the teamName JTextField\n\t\t\t * is converted into a String with an appropriate variable name so that it can\n\t\t\t * be passed as a parameter into the 'viewTeamStatistics' method. Additionally,\n\t\t\t * the JTextArea of 'teamStatistics' is passed into the method\n\t\t\t * 'viewTeamStatistics' in order for the information to know where it is going\n\t\t\t * to be written to. In addition to this I have caught a few exceptions being;\n\t\t\t * IOException, HeadlessException and SQLException.\n\t\t\t */\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\ttry {\n\t\t\t\t\tString teamNameString = teamName.getText();\n\t\t\t\t\tviewTeamStatistics(teamStatistics, teamNameString);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (HeadlessException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t}", "private static void displayStats() {\n\t\tint numPlay = 0;\n\t\tint numWon = 0;\n\t\tint sumGuess = 0;\n\t\tint minGuess = Integer.MAX_VALUE;\n\t\tint maxGuess = Integer.MIN_VALUE;\n\t\tdouble average = 0;\n\t\tint lastNumGuess = 0;\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tnumPlay++;\n\t\t\t\tlastNumGuess = Integer.parseInt(line);\n\t\t\t\tif (lastNumGuess > 0) { // a positive number of guesses indicates the user won the game\n\t\t\t\t\tnumWon++;\n\t\t\t\t\tminGuess = Math.min(minGuess, lastNumGuess);\n\t\t\t\t\tmaxGuess = Math.max(maxGuess, lastNumGuess);\n\t\t\t\t\tsumGuess += lastNumGuess;\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException exception) {\n\t\t\tSystem.out.println(\"It seems that you haven't played this game before. Keep playing to gather statistics!\");\n\t\t\treturn;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Sorry the software encountered an IO Error. Please try again later.\");\n\t\t}\n\t\tSystem.out.println(\"Below are the summary statistics: \");\n\t\tSystem.out.println(\"Number of games played: \" + numPlay);\n\t\tSystem.out.println(\"Number of games won: \" + numWon);\n\t\tSystem.out.println(String.format(\"Total number of guesses: %d\", sumGuess + 12 * (numPlay - numWon)));\n\t\tif (lastNumGuess < 1) {\n\t\t\tSystem.out.println(\"Last time you lost\");\n\t\t} else {\n\t\t\tSystem.out.println(String.format(\"Last time you won and made %d guess%s\", lastNumGuess,\n\t\t\t\t\t(lastNumGuess > 1 ? \"es\" : \"\")));\n\t\t}\n\t\tif (numWon > 0) {\n\t\t\tSystem.out.println(\"Minimum number of guesses to win: \" + minGuess);\n\t\t\tSystem.out.println(\"Maximum number of guesses to win: \" + maxGuess);\n\t\t\taverage = (double) sumGuess / numWon;\n\t\t\tSystem.out.println(String.format(\"Average number of guesses to win: %.2f\", average));\n\t\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 }", "private void doMatchesStats(int week){\r\n \r\n \r\n List<FantasyMatch> fMatches = fmatchBean.findByWeek(week);\r\n for(int i = 0; i < fMatches.size(); i++){\r\n FantasyMatch fm = fMatches.get(i);\r\n FantasyTeam team1 = fm.getTeam1();\r\n FantasyTeam team2 = fm.getTeam2();\r\n int team1Points = 0, team2Points = 0;\r\n \r\n team1Points += retrievePoints(fm.getTeam1QB(), week);\r\n team2Points += retrievePoints(fm.getTeam2QB(), week);\r\n \r\n team1Points += retrievePoints(fm.getTeam1RB1(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1RB2(), week);\r\n team2Points += retrievePoints(fm.getTeam2RB2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR1(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR1(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WR2(), week);\r\n team2Points += retrievePoints(fm.getTeam2WR2(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1WRRB(), week);\r\n team2Points += retrievePoints(fm.getTeam2WRRB(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1TE(), week);\r\n team2Points += retrievePoints(fm.getTeam2TE(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1K(), week);\r\n team2Points += retrievePoints(fm.getTeam2K(), week);\r\n\r\n team1Points += retrievePoints(fm.getTeam1DEF(), week);\r\n team2Points += retrievePoints(fm.getTeam2DEF(), week);\r\n \r\n fm.setTeam1Points(team1Points);\r\n fm.setTeam2Points(team2Points);\r\n \r\n if(team1Points > team2Points){\r\n team1.setWins(team1.getWins() + 1);\r\n team2.setLosses(team2.getLosses() + 1);\r\n }\r\n if(team1Points == team2Points){\r\n team1.setDraws(team1.getDraws() + 1);\r\n team2.setDraws(team2.getDraws() + 1);\r\n }\r\n if(team1Points < team2Points){\r\n team1.setLosses(team1.getLosses() + 1);\r\n team2.setWins(team2.getWins() + 1);\r\n }\r\n \r\n team1.setPointsFor(team1.getPointsFor() + team1Points);\r\n team1.setPointsAgainst(team1.getPointsAgainst() + team2Points);\r\n \r\n team2.setPointsFor(team2.getPointsFor() + team2Points);\r\n team2.setPointsAgainst(team2.getPointsAgainst() + team1Points);\r\n \r\n fmatchBean.edit(fm);\r\n ftBean.edit(team1);\r\n ftBean.edit(team2);\r\n }\r\n \r\n List<FantasyLeague> leagues = flBean.findAll();\r\n for(int i = 0; i < leagues.size(); i++){\r\n List<FantasyTeam> teams = ftBean.findByLeague(leagues.get(i));\r\n \r\n //DO SORTING BY WINS\r\n Collections.sort(teams, new TeamWinComparator());\r\n \r\n for(int j = 0; j < teams.size(); j++){\r\n FantasyTeam team = teams.get(j);\r\n team.setPreviousRank(team.getRank());\r\n team.setRank(j + 1); \r\n }\r\n }\r\n \r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n tbMatchwise = new javax.swing.JTable();\n jLabel3 = new javax.swing.JLabel();\n showGraph = new javax.swing.JPanel();\n lblGraph = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n lblHeading = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tbOverall = new javax.swing.JTable();\n lblSkill = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n lblName = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n lblTeamName = new javax.swing.JLabel();\n panPrint = new javax.swing.JPanel();\n lblPrint = new javax.swing.JLabel();\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n tbMatchwise.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n tbMatchwise.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"SR No.\", \"MATCH\", \"PHASE\", \"TOTAL ATTEMPT\", \"ONE\", \"TWO\", \"THREE\", \"FOUR\", \"FIVE\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, false, true, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tbMatchwise.setRowHeight(30);\n jScrollPane2.setViewportView(tbMatchwise);\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel3.setText(\"MATCHES PLAYED\");\n\n showGraph.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n showGraph.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n showGraphMouseClicked(evt);\n }\n });\n\n lblGraph.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/vollyball/images/chart_curve.png\"))); // NOI18N\n lblGraph.setToolTipText(\"Show Graph\");\n lblGraph.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblGraphMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout showGraphLayout = new javax.swing.GroupLayout(showGraph);\n showGraph.setLayout(showGraphLayout);\n showGraphLayout.setHorizontalGroup(\n showGraphLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, showGraphLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblGraph, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE))\n );\n showGraphLayout.setVerticalGroup(\n showGraphLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblGraph, javax.swing.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(showGraph, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 982, Short.MAX_VALUE))\n .addGap(20, 20, 20))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(showGraph, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 530, Short.MAX_VALUE)\n .addGap(20, 20, 20))\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n lblHeading.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lblHeading.setText(\"OVERALL : \");\n\n tbOverall.setFont(new java.awt.Font(\"Times New Roman\", 1, 12)); // NOI18N\n tbOverall.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"MATCHES PLAYED\", \"TOTAL ATTEMPT\", \"ONE\", \"TWO\", \"THREE\", \"FOUR\", \"FIVE\"\n }\n ));\n tbOverall.setRowHeight(28);\n jScrollPane1.setViewportView(tbOverall);\n\n lblSkill.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lblSkill.setText(\"jLabel5\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(lblHeading)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblSkill, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane1))\n .addGap(20, 20, 20))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblHeading)\n .addComponent(lblSkill))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 61, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel1.setBackground(new java.awt.Color(57, 74, 108));\n\n lblName.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lblName.setForeground(new java.awt.Color(255, 255, 255));\n lblName.setText(\"jLabel1\");\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Player Name : \");\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Team Name : \");\n\n lblTeamName.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lblTeamName.setForeground(new java.awt.Color(255, 255, 255));\n lblTeamName.setText(\"jLabel4\");\n\n panPrint.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n lblPrint.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n lblPrint.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/vollyball/images/printer.png\"))); // NOI18N\n lblPrint.setToolTipText(\"Print This Page\");\n lblPrint.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblPrintMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout panPrintLayout = new javax.swing.GroupLayout(panPrint);\n panPrint.setLayout(panPrintLayout);\n panPrintLayout.setHorizontalGroup(\n panPrintLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblPrint, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)\n );\n panPrintLayout.setVerticalGroup(\n panPrintLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblPrint, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\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 .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblName, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(75, 75, 75)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblTeamName, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(panPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblTeamName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(panPrint, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblName, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "public static void results(int numGames, int totalGuesses, int bestGame) {\r\n System.out.println(\"Overall results:\");\r\n System.out.println(\" total games = \" + numGames);\r\n System.out.println(\" total guesses = \" + totalGuesses);\r\n System.out.println(\" guesses/game = \" + round1((double) totalGuesses / numGames));\r\n System.out.println(\" best game = \" + bestGame); \r\n }", "public void displayEvent(String name, String club, PrintWriter out, Connection con) {\n\n ResultSet rs = null;\n\n int year = 0;\n int month = 0;\n int day = 0;\n int act_hr = 0;\n int act_min = 0;\n int signUp = 0;\n int max = 0;\n int size = 0;\n int guests = 0;\n //int teams = 0;\n int c_month = 0;\n int c_day = 0;\n int c_year = 0;\n int c_time = 0;\n int c_hr = 0;\n int c_min = 0;\n\n String format = \"\";\n String pairings = \"\";\n String memcost = \"\";\n String gstcost = \"\";\n String itin = \"\";\n String c_ampm = \"\";\n String act_ampm = \"\";\n\n //\n // Locate the event and display the content\n //\n try {\n\n PreparedStatement stmt = con.prepareStatement (\n \"SELECT * FROM events2b \" +\n \"WHERE name = ?\");\n\n stmt.clearParameters(); // clear the parms\n stmt.setString(1, name);\n rs = stmt.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n year = rs.getInt(\"year\");\n month = rs.getInt(\"month\");\n day = rs.getInt(\"day\");\n act_hr = rs.getInt(\"act_hr\");\n act_min = rs.getInt(\"act_min\");\n signUp = rs.getInt(\"signUp\");\n format = rs.getString(\"format\");\n pairings = rs.getString(\"pairings\");\n size = rs.getInt(\"size\");\n max = rs.getInt(\"max\");\n guests = rs.getInt(\"guests\");\n memcost = rs.getString(\"memcost\");\n gstcost = rs.getString(\"gstcost\");\n c_month = rs.getInt(\"c_month\");\n c_day = rs.getInt(\"c_day\");\n c_year = rs.getInt(\"c_year\");\n c_time = rs.getInt(\"c_time\");\n itin = rs.getString(\"itin\");\n\n } else { // name not found - try filtering it\n\n name = SystemUtils.filter(name);\n\n stmt.clearParameters(); // clear the parms\n stmt.setString(1, name);\n rs = stmt.executeQuery(); // execute the prepared stmt\n\n if (rs.next()) {\n\n year = rs.getInt(\"year\");\n month = rs.getInt(\"month\");\n day = rs.getInt(\"day\");\n act_hr = rs.getInt(\"act_hr\");\n act_min = rs.getInt(\"act_min\");\n signUp = rs.getInt(\"signUp\");\n format = rs.getString(\"format\");\n pairings = rs.getString(\"pairings\");\n size = rs.getInt(\"size\");\n max = rs.getInt(\"max\");\n guests = rs.getInt(\"guests\");\n memcost = rs.getString(\"memcost\");\n gstcost = rs.getString(\"gstcost\");\n c_month = rs.getInt(\"c_month\");\n c_day = rs.getInt(\"c_day\");\n c_year = rs.getInt(\"c_year\");\n c_time = rs.getInt(\"c_time\");\n itin = rs.getString(\"itin\");\n }\n }\n stmt.close();\n\n //\n // Create time values\n //\n act_ampm = \"AM\";\n\n if (act_hr == 0) {\n\n act_hr = 12; // change to 12 AM (midnight)\n\n } else {\n\n if (act_hr == 12) {\n\n act_ampm = \"PM\"; // change to Noon\n }\n }\n if (act_hr > 12) {\n\n act_hr = act_hr - 12;\n act_ampm = \"PM\"; // change to 12 hr clock\n }\n\n c_hr = c_time / 100;\n c_min = c_time - (c_hr * 100);\n\n c_ampm = \"AM\";\n\n if (c_hr == 0) {\n\n c_hr = 12; // change to 12 AM (midnight)\n\n } else {\n\n if (c_hr == 12) {\n\n c_ampm = \"PM\"; // change to Noon\n }\n }\n if (c_hr > 12) {\n\n c_hr = c_hr - 12;\n c_ampm = \"PM\"; // change to 12 hr clock\n }\n\n //\n // Build the html page\n //\n out.println(SystemUtils.HeadTitle(\"Member Event Information\"));\n out.println(\"<body bgcolor=\\\"#FFFFFF\\\" text=\\\"#000000\\\">\");\n out.println(\"<font face=\\\"Arial, Helvetica, Sans-serif\\\"><center>\");\n\n out.println(\"<table border=\\\"0\\\" valign=\\\"top\\\">\"); // table for main page\n out.println(\"<tr><td align=\\\"center\\\" valign=\\\"top\\\">\");\n out.println(\"<font size=\\\"3\\\">\");\n out.println(\"Event: <b>\" + name + \"</b>\");\n out.println(\"</font></td></tr>\");\n out.println(\"<tr><td align=\\\"left\\\">\");\n out.println(\"<font size=\\\"2\\\"><br><br>\");\n out.println(\"<b>Date:</b>&nbsp;&nbsp; \" + month + \"/\" + day + \"/\" + year);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n if (act_min < 10) {\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":0\" + act_min + \" \" + act_ampm);\n } else {\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":\" + act_min + \" \" + act_ampm);\n }\n out.println(\"<br><br>\");\n\n out.println(\"<b>Format:</b>&nbsp;&nbsp; \" + format + \"<br><br>\");\n out.println(\"<b>Pairings by:</b>&nbsp;&nbsp; \" + pairings);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b># of Teams:</b>&nbsp;&nbsp; \" + max);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Team Size:</b>&nbsp;&nbsp; \" + size + \"<br><br>\");\n out.println(\"<b>Guests per Member:</b>&nbsp;&nbsp;\" + guests);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Cost per Guest:</b>&nbsp;&nbsp;\" + gstcost);\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\n out.println(\"<b>Cost per Member:</b>&nbsp;&nbsp;\" + memcost + \"<br><br>\");\n\n if (signUp != 0) { // if members can sign up\n\n if (c_min < 10) {\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":0\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\n } else {\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\n }\n out.println(\"<br><br>\");\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\n\n out.println(\"<br><br>\");\n out.println(\"To register for this event click on the <b>Events</b> tab after closing this window.<br>\");\n\n } else {\n\n if (!club.equals( \"inverness\" )) { // if NOT Inverness\n\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\n out.println(\"<br><br>\");\n }\n out.println(\"Online sign up was not selected for this event.\");\n }\n out.println(\"</font></td></tr>\");\n out.println(\"<tr><td align=\\\"center\\\">\");\n out.println(\"<font size=\\\"2\\\">\");\n //\n // End of HTML page\n //\n out.println(\"<p align=\\\"center\\\"><br><form>\");\n out.println(\"<input type=\\\"button\\\" value=\\\"CLOSE\\\" onClick='self.close();'>\");\n out.println(\"</form></p>\");\n out.println(\"</font></td>\");\n out.println(\"</tr></table>\");\n out.println(\"</center></font></body></html>\");\n out.close();\n\n }\n catch (Exception exc) {\n out.println(SystemUtils.HeadTitle(\"Database Error\"));\n out.println(\"<BODY><CENTER>\");\n out.println(\"<BR><BR><H3>Database Access Error</H3>\");\n out.println(\"<BR><BR>Sorry, we are unable to access the database at this time.\");\n out.println(\"<BR>Error:\" + exc.getMessage());\n out.println(\"<BR><BR>Please try again later.\");\n out.println(\"<BR><BR>If problem persists, contact your golf shop (provide this information).\");\n out.println(\"<br><br><form>\");\n out.println(\"<input type=\\\"button\\\" value=\\\"Close\\\" onClick='self.close();'>\");\n out.println(\"</form>\");\n out.println(\"</center></font></body></html>\");\n out.close();\n }\n }", "private void callForStats() throws SQLException, ClassNotFoundException{\n\t\tString[] stats;\n\t\toutputTA.setText(\"\");\n\t\tif(custTypeCB.getSelectedIndex() == Globals.SINGLE_CUST)\n\t\t\tstats = dBConnection.getStats(Integer.parseInt(custIdTF.getText()));\n\t\telse\n\t\t\tstats = dBConnection.getStats(custTypeCB.getSelectedIndex());\n\t\t\n\t\tfor(String str : stats){\n\t if(str == null)\n\t \tcontinue;\n\t outputTA.append(str+\"\\n\");\n\t\t}\n\t}", "public void printSummary(Team team){\r\n\t\tfor(Player player : team.getPlayers()){\r\n\t\t\tif(player.isOut() == true){\r\n\t\t\t\tthis.addCommentary(player.getName()+\" : \"+player.getRuns()+\" (\"+player.getBalls()+\" Balls)\\n\");\r\n\t\t\t}else if(player.isY2B() == true){\r\n\t\t\t\tthis.addCommentary(player.getName()+\" : DNB\\n\");\r\n\t\t\t}else{\r\n\t\t\t\tthis.addCommentary(player.getName()+\" : \"+player.getRuns()+\"* (\"+player.getBalls()+\" Balls)\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tthis.addCommentary(\"\\n\");\r\n\t}", "public String toRankedTable() {\r\n TreeSet<Team> teamTree = this.getTeamTreeFromMatchTree();\r\n String medal;\r\n int i = 1;\r\n String[] str = new String[teamTree.size() + 1];\r\n List<Team> unorderedTeams = new LinkedList<>();\r\n int currentRank = 0;\r\n int nextMedal = 0;\r\n \r\n //Add all the teams to the list\r\n unorderedTeams.addAll(teamTree);\r\n \r\n //Sort the list with the ranking comparator\r\n Collections.sort(unorderedTeams, rankingComparator);\r\n \r\n //Add the columns headings\r\n str[0] = String.format(\"%15s%10s%10s%10s%10s%10s%10s%10s%10s%10s%n\",\r\n this.centerAlign(\"Team\", 15),\r\n this.centerAlign(\"Rank\", 10),\r\n this.centerAlign(\"Won\", 10),\r\n this.centerAlign(\"Drawn\", 10),\r\n this.centerAlign(\"Lost\", 10),\r\n this.centerAlign(\"For\", 10),\r\n this.centerAlign(\"Against\", 10),\r\n this.centerAlign(\"Points\", 10),\r\n this.centerAlign(\"Diff\", 10),\r\n this.centerAlign(\"Medal\", 10));\r\n \r\n for (Team t : unorderedTeams) {\r\n //Get medal if any\r\n //If the team has a different ranking from the previous ones\r\n if (t.getRank() != currentRank){\r\n //Get the ranking of the current team\r\n currentRank = t.getRank();\r\n //Get the next medal\r\n nextMedal++;\r\n if (nextMedal == 1){\r\n medal = \"Gold\";\r\n }\r\n else if (nextMedal == 2){\r\n medal = \"Silver\";\r\n }\r\n else if (nextMedal == 3){\r\n medal = \"Bronze\";\r\n }\r\n else {\r\n medal = \"\";\r\n }\r\n }\r\n //Same ranking as previous team\r\n //No need to change the medal or ranking\r\n else {\r\n if (nextMedal == 1){\r\n medal = \"Gold\";\r\n }\r\n else if (nextMedal == 2){\r\n medal = \"Silver\";\r\n }\r\n else if (nextMedal == 3){\r\n medal = \"Bronze\";\r\n }\r\n else {\r\n medal = \"\";\r\n }\r\n }\r\n \r\n //Add the team details to the string\r\n str[i] = String.format(\"%15s%10s%10s%10s%10s%10s%10s%10s%10s%10s%n\",\r\n this.centerAlign(t.getName(), 15),\r\n this.centerAlign(Integer.toString(t.getRank()), 10),\r\n this.centerAlign(Integer.toString(t.getMatchWon()), 10),\r\n this.centerAlign(Integer.toString(t.getMatchDrawn()), 10),\r\n this.centerAlign(Integer.toString(t.getMatchLost()), 10),\r\n this.centerAlign(Integer.toString(t.getGoalsFor()), 10),\r\n this.centerAlign(Integer.toString(t.getGoalsAgainst()), 10),\r\n this.centerAlign(Integer.toString(t.getPoints()), 10),\r\n this.centerAlign(Integer.toString(t.goalDiff()), 10),\r\n this.centerAlign(medal, 10));\r\n \r\n i++;\r\n }\r\n \r\n //Transform the array into a single String\r\n StringBuilder sb = new StringBuilder();\r\n for(String s : str) {\r\n sb.append(s);\r\n }\r\n \r\n return sb.toString();\r\n }", "public void printAllResults(){\n String round = \"Rounds: \\t\\t\";\n String team1 = fight_list.get(0).t1.name + \"\\t\\t\"; //note: We assume that all the FightResults in 1 DataBag all have the same 2 teams. Gotta write that better later.\n String team2 = fight_list.get(0).t2.name + \"\\t\\t\";\n\n for(FightResult fig : this.fight_list){\n round += fig.final_round + \"\\t\";\n team1 += fig.t1_deaths + \"\\t\";\n team2 += fig.t2_deaths + \"\\t\";\n }\n\n System.out.println(round);\n System.out.println(team1);\n System.out.println(team2);\n\n //System.out.println(\"\\n--------\\n\");\n }", "public void displayStats() {\n VisitorDAO visitorDAO = new VisitorDAO();\n Object countAllVisitors = visitorDAO.getCountAllVisitors();\n Object countNewSubscribers = visitorDAO.getCountNewSubscribersForMonth(this.simpleDateFormat.format(new Date()));\n\n this.totalSubscribersText.setText(this.totalSubscribersText.getText() + countAllVisitors.toString());\n this.newSubscribersText.setText(this.newSubscribersText.getText() + countNewSubscribers.toString());\n }", "private static void displayStatistics(){\n\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Please enter Club Name: \");\n String clubName = scanner.nextLine();\n leagueManager.displayStatistics(clubName);\n }", "public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\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 }", "void displayReport ()\n {\n\tStatFrame statTable;\n String winTitle = new String (\"Statistical Results Window\");\n\n\tif (use_xml) {\n\t try {\n\t\tVector data = new Vector (); data.add (modelReport);\n\t\tString xmlStr = XMLSerializer.serialize (data);\n\t\tstatTable = new StatFrame (winTitle, xmlStr);\n\t } catch (Exception e) {\n\t\ttrc.tell (\"displayReport\", e.getMessage ());\n\t\te.printStackTrace ();\n\t\treturn;\n\t }\n\t} else {\n statTable = new StatFrame (winTitle, modelReport);\n\t}; // if\n\n statTable.showWin ();\n\n }", "public SteamGui(ArrayList<Game>games) {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.games = games;\n\t\tsetBounds(100, 100, 1411, 1030);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\ttabbedPane.setBounds(27, 127, 1368, 784);\n\t\t\n\t\tcontentPane.add(tabbedPane);\n\t\t\n\t\ttabbedPane.addTab(\"Steam Table\", null, panel, null);\n\t\tpanel.setLayout(null);\n\t\tscrollPane.setBounds(0, 0, 1332, 745);\n\t\t\n\t\tpanel.add(scrollPane);\n\t\t\n\t\tscrollPane.setViewportView(table);\n\t\ttable.setModel(tm);\n\t\tsortingOn.setModel(new DefaultComboBoxModel(new String[] {\"Name\", \"Date\", \"Positive Reviews\", \"Negative Reviews\", \"Average Playtime\", \"Median Playtime\", \"Minimum Owners\", \"Maximum Owners\", \"Price\"}));\n\t\tsortingOn.setBounds(133, 932, 137, 22);\n\t\t\n\t\tcontentPane.add(sortingOn);\n\t\tlblSortOn.setBounds(61, 936, 62, 14);\n\t\t\n\t\tcontentPane.add(lblSortOn);\n\t\tsort.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tString result = (String) sortingOn.getSelectedItem();\n\t\t\t\tif (result.equals(\"Name\"))\n\t\t\t\t{\n\t\t\t\tGameCompare ac = new GameCompare();\n\t\t\t\tCollections.sort(games, ac);\n\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Price\"))\n\t\t\t\t{\n\t\t\t\t\tPriceCompare pc = new PriceCompare();\n\t\t\t\t\tCollections.sort(games, pc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Negative Reviews\"))\n\t\t\t\t{\n\t\t\t\t\tNegativCompare nc = new NegativCompare();\n\t\t\t\t\tCollections.sort(games, nc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Positive Reviews\"))\n\t\t\t\t{\n\t\t\t\t\tCollections.sort(games);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Average Playtime\"))\n\t\t\t\t{\n\t\t\t\t\tAverageCompare ac = new AverageCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Median Playtime\"))\n\t\t\t\t{\n\t\t\t\t\tMedianCompare mc = new MedianCompare();\n\t\t\t\t\tCollections.sort(games, mc);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Minimum Owners\"))\n\t\t\t\t{\n\t\t\t\t\tMinCompare ac = new MinCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Maximum Owners\"))\n\t\t\t\t{\n\t\t\t\t\tMaxCompare ac = new MaxCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t\tif (result.contentEquals(\"Date\"))\n\t\t\t\t{\n\t\t\t\t\tDateCompare ac = new DateCompare();\n\t\t\t\t\tCollections.sort(games, ac);\n\t\t\t\t\tdrawTable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsort.setBounds(290, 932, 89, 23);\n\t\t\n\t\tcontentPane.add(sort);\n\t\tlblTopOf.setFont(new Font(\"Tahoma\", Font.PLAIN, 27));\n\t\tlblTopOf.setBounds(61, 49, 565, 45);\n\t\t\n\t\tcontentPane.add(lblTopOf);\n\t\tcreatePieGraphTab();\n\t\tdrawTable();\n\t\tcreateALineChartTab();\n\t\t\n\t}", "private void updateResultOnScreen() {\n teamAScoreTv.setText(Integer.toString(teamAScoreInt));\n teamBScoreTv.setText(Integer.toString(teamBScoreInt));\n\n if (teamAFoulScoreInt > 1)\n teamAFoulScoreTv.setText(teamAFoulScoreInt + \" fouls\");\n else\n teamAFoulScoreTv.setText(teamAFoulScoreInt + \" foul\");\n\n if (teamBFoulScoreInt > 1)\n teamBFoulScoreTv.setText(teamBFoulScoreInt + \" fouls\");\n else\n teamBFoulScoreTv.setText(teamBFoulScoreInt + \" foul\");\n }", "private void displayStats(CheckListView<String> checkview, TextArea stats) {\n\t\tStringBuilder start = new StringBuilder();\n\t\tfor(String critter_name:checkview.getCheckModel().getCheckedItems()){\n\t\t\ttry {\n\t\t\t\tClass classTemp = Class.forName(this.getClass().getPackage().getName() + \".\" + critter_name);\n\t\t\t\tMethod m = classTemp.getMethod(\"runStats\", List.class); //Get method\n\t\t\t\tList<Critter> instances = Critter.getInstances(critter_name);\n\t\t\t\tString output = (String)m.invoke(null, instances); //Invoke with instances\n\t\t\t\tstart.append(output).append(\"\\n\");\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tstats.clear();\n\t\tstats.appendText(start.toString());\n\t}", "public String printResults(Athletes competitor, Game gam){\n\t\tAthletes winner1 = gam.getWinner1();\n\t\tAthletes winner2 = gam.getWinner2();\n\t\tAthletes winner3 = gam.getWinner3();\n\t\t\n\t\t\t\tif(competitor == winner1){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 5\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner2){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 3\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner3){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 1\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 0\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void displayStats()\n {\n if(graph == null)\n {\n clearStats();\n }\n else\n { \n pathJTextArea.setText(graph.getPathString(pathList));\n costJTextField.setText(decimal.format(graph.getPathCost(pathList)));\n timeJTextField.setText(String.valueOf(timePassed));\n }\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 }", "private void queryMaxMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"Top 10 worst from \"+this.getValue1()+\":\");\n\t\tJLabel label2=new JLabel(\"Top 10 worst from \"+this.getValue2()+\":\");\n\t\t\n\t\t//two separate tables for the queries\n\t\tJTable table1=getQuery1().MaxQuery(value1); \n\t\tJTable table2=getQuery1().MaxQuery(value2); \n\t\t\n\t\t//add them each to a scrolltable so they can be displayed properly\n\t\tJScrollPane scrolltable1 = new JScrollPane(table1);\n\t\tJScrollPane scrolltable2= new JScrollPane(table2);\n\t\t\n\t\tscrolltable1.setBounds(500,60,500,190);\n\t\tscrolltable2.setBounds(500,310,500,190);\n\t\tgetButton3().setBounds(260,10,180,60);\n\t\tgetButton4().setBounds(80,10,180,60);\n\t\tlabel1.setBounds(30,10,500,190);\n\t\tlabel2.setBounds(30,280,500,190);\n\t\t\n\t\tlabel1.setFont(new Font(\"Serif\", Font.CENTER_BASELINE, 19));\n\t\tlabel2.setFont(new Font(\"Serif\", Font.CENTER_BASELINE, 19));\n\t\t\n\t\t//add buttons with select new data and go back\n\t\tgetPanel1().add(scrolltable1);\n\t\tgetPanel1().add(scrolltable2);\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton4());\n\t\tgetPanel1().add(label1);\n\t\tgetPanel1().add(label2);\n\t}", "public void makeTable() {\n TableLayout table = (TableLayout) findViewById(R.id.mainTable); //Create table object that is the main table\n\n TableRow row; //Create row object that will be modified and then added to the table object\n TextView view; //Create textview object that will hold information for that line\n\n DBManager manager = new DBManager(this); //Create manager object in order to be able access the database\n ArrayList<Team> teams = manager.getAllTeams(); //Gets an arraylist of all teams from the database\n Team robo = new Team(); //Creates team object that will be the team of this acitvity\n\n for (int i = 0; i < teams.size(); i++) { //Find the team of this activity\n if ((\"\" + teams.get(i).getNumber()).equals(team)) {\n robo = teams.get(i); //Set the team object of the team for this activity\n break;\n }\n }\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"Number: \" + robo.getNumber()); //Display the number of the team\n\n row.addView(view);\n table.addView(row);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"Name: \" + robo.getName()); //Display the name of the team\n\n row.addView(view);\n table.addView(row);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"Matches: \" + robo.getMatches()); //Display the matches of the team\n\n row.addView(view);\n table.addView(row);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n\n\n for (int i = 0; i < robo.getMatches().size(); i++) { //Go through each match the team will play\n int redScore = -1;\n int blueScore = -1;\n\n //Display the match number\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"\" + robo.getMatches().get(i) + \":\");\n view.setTypeface(null, Typeface.BOLD);\n\n row = new TableRow(this);\n row.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set row object sizing\n\n row.addView(view);\n\n for (int j = 0; j < teams.size(); j++) { //Go through all of the teams\n for(int k = 0; k < teams.get(j).getMatches().size(); k++) { //Go through each match for the teams\n if (robo.getMatches().get(i) == teams.get(j).getMatches().get(k) && teams.get(j).getNumber() != robo.getNumber()) { //If the match from the teams list equals a match from the matches from the team we are looking at\n\n //Display the number of the team from the team's same match\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\" \" + teams.get(j).getNumber());\n\n //Set the color of the teams' number based on what allaince they were on\n if (teams.get(j).getAlliances().get(k).equals(\"Red1\") || teams.get(j).getAlliances().get(k).equals(\"Red2\")) {\n view.setTextColor(Color.RED);\n }\n\n else {\n view.setTextColor(Color.BLUE);\n }\n\n final String TeamNumber = \"\" + teams.get(j).getNumber();\n\n view.setOnClickListener(new TableRow.OnClickListener() {\n @Override\n public void onClick(View v) { //Make an onClick for the each row\n Intent intent = new Intent(TeamActivity.this, TeamActivity.class); //If the team number is pressed start a new TeamActivity with information about the selected team\n intent.putExtra(\"Team#\", TeamNumber); //Send the team number into the new activity in order to know which team the new activity should be about\n TeamActivity.this.startActivity(intent); //Start the new activity\n }\n });\n\n row.addView(view);\n\n\n if (redScore == -1 && (teams.get(j).getAlliances().get(k).equals(\"Red1\") || teams.get(j).getAlliances().get(k).equals(\"Red2\")))\n redScore = teams.get(j).getScores().get(k);\n if (blueScore == -1 && (teams.get(j).getAlliances().get(k).equals(\"Blue1\") || teams.get(j).getAlliances().get(k).equals(\"Blue2\")))\n blueScore = teams.get(j).getScores().get(k);\n }\n }\n }\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\" Score:\");\n view.setTypeface(null, Typeface.BOLD);\n row.addView(view);\n\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(redScore + \"-\");\n view.setTextColor(Color.RED);\n row.addView(view);\n\n\n view = new TextView(this);\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, TableRow.LayoutParams.WRAP_CONTENT)); //Set textview object sizing\n view.setTextAppearance(this, android.R.style.TextAppearance_Large); //Make the text size large\n view.setText(\"\" + blueScore);\n view.setTextColor(Color.BLUE);\n row.addView(view);\n\n table.addView(row);\n }\n }", "public void searchAndDisplay(Connection con) throws SQLException, NumberFormatException {\r\n //Declare and initialize all the variables\r\n //Get all the data from the fields and edit format with helper method\r\n String strCourseName = SearchHelper.searchHelper(getName());\r\n String strCourseTitle = SearchHelper.searchHelper(getTitle());\r\n String strCourseDepartment = SearchHelper.searchHelper(getDepartment());\r\n int intSID = getSID();\r\n String strSchoolName = SearchHelper.searchHelper(getSchoolName());\r\n\r\n ResultSet rsResults;\r\n JTable jtbResult;\r\n int intWidth;\r\n\r\n if (intSID == 0) {\r\n rsResults = Queries.searchCourse(con, strCourseName, strCourseTitle, strCourseDepartment, strSchoolName);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(150);\r\n jtbResult.getColumnModel().getColumn(10).setPreferredWidth(50);\r\n intWidth = 975;\r\n } else {\r\n rsResults = Queries.searchCourseWithSID(con, strCourseName, strCourseTitle, strCourseDepartment, intSID);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(50);\r\n intWidth = 825;\r\n }\r\n new PopUp(new JScrollPane(jtbResult), \"Results\", intWidth, 300);\r\n }", "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "private void populateOverallResultsPanel(){\n\t\tmeetingSchedulingService.getBestScheduleTimes(pollId, new AsyncCallback<String>(){\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tMessageBox.alert(\"Error\", \"Server threw an error: \" + caught.getMessage(), null);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\n\t\t\t\tif(result == null){\n\t\t\t\t\tMessageBox.info(\"Results\", \"No responses yet!\", new Listener<MessageBoxEvent>(){\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleEvent(MessageBoxEvent be) {\n\t\t\t\t\t\t\tif(be.getButtonClicked().getId().equalsIgnoreCase(\"ok\"))\n\t\t\t\t\t\t\t\tInfo.display(\"Hi\", \"Ok button clicked\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tft = new FlexTable();\n\t\t\t\t\n\t\t\t\tpollTrackingInfo = getPollTrackingInfo(result);\n\t\t\t\tint row = ft.getRowCount();\n\t\t\t\t\n\t\t\t\t//set the header of the flextable. \n\t\t\t\tft.setWidget(row, 0, new Label(\"Date-Time\"));\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\tft.setWidget(row, 1, new Label(\"Participants Available\"));\n\t\t\t\tft.getColumnFormatter().setWidth(1, \"100px\");\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\tft.setWidget(row, 2, new Label(\"When to schedule?\"));\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\n\t\t\t\tfor(int i = 0 ; i < pollTrackingInfo.length() ; i ++){\n\t\t\t\t\tPollTrackingInfo pti = pollTrackingInfo.get(i);\n\t\t\t\t\t\n\t\t\t\t\tRadio rb = new Radio();\n\t\t\t\t\trb.setId(pti.getDate());\n\t\t\t\t\t\n\t\t\t\t\trg.add(rb);\n\t\t\t\t\t\n\t\t\t\t\tft.setWidget(++row, 0, new Label(pti.getDate()));\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\tft.setWidget(row, 1, new Label(pti.getCount()));\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\tft.setWidget(row, 2, rb);\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tft.getRowFormatter().addStyleName(0, \"DateTimeWidgetHeader\");\n\t\t\t\t\n\t\t\t\toverallResultsPanel.add(ft);\n\t\t\t}\n\t\t});\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}", "public static void yourResults()\r\n\t{\r\n\r\n\t\t\r\n\t\tString[] options = {\"In relation to myself\", \"In relation to everyone\"};\r\n\t\tObject panel = JOptionPane.showInputDialog(null, \" I want to see where I am stand\", \"Message\", JOptionPane.INFORMATION_MESSAGE, null, options, options[0]);\r\n\r\n\t\tif (panel == \"In relation to myself\")\r\n\t\t{\r\n\t\t\tString forID = \"\";\r\n\t\t\tint ID;\r\n\t\t\tforID = JOptionPane.showInputDialog(null, \" What is your ID ?\");\r\n\t\t\ttry {\r\n\t\t\t\tID = Integer.parseInt(forID);\r\n\r\n\t\t\t\tString forPrintAns = \"\";\r\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tConnection connect = DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\r\n\t\t\t\tStatement statement = connect.createStatement();\r\n\t\t\t\tString query = \"SELECT * FROM Logs WHERE UserID =\" + ID + \" ORDER BY levelID , moves;\";\r\n\t\t\t\tResultSet result = statement.executeQuery(query);\r\n\r\n\t\t\t\t//my level now\r\n\t\t\t\twhile (result.next()) {\r\n\t\t\t\t\tforPrintAns += result.getInt(\"UserID\") + \",\" + result.getInt(\"levelID\") + \",\" + result.getInt(\"moves\") + \",\" + result.getInt(\"score\")+\"E\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString forPrintRusults = \"\";\r\n\t\t\t\tString[] arr;\r\n\t\t\t\tint numOfGames = 0;\r\n\r\n\t\t\t\tint level = 0;\r\n\t\t\t\tint moves = -1;\r\n\t\t\t\tint grade = 0;\r\n\r\n\t\t\t\tboolean flag=false;\r\n\t\t\t\tint maxGrade=Integer.MIN_VALUE;\r\n\t\t\t\tint saveMove=0;\r\n\t\t\t\tString for1=\"\",for3=\"\",for5=\"\",for9=\"\",for11=\"\",for13=\"\",for16=\"\",for20=\"\",for19=\"\",for23=\"\";\r\n\r\n\t\t\t\tint index = 3;\r\n\t\t\t\tfor (int i = 0; i < forPrintAns.length(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (forPrintAns.charAt(i) == 'E')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumOfGames++;\r\n\t\t\t\t\t\tString help = forPrintAns.substring(index, i);\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tarr = help.split(\",\");\r\n\t\t\t\t\t\t// System.out.println(Arrays.deepToString(arr));\r\n\r\n\t\t\t\t\t\tswitch(level) {\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\tif (grade >= 125 && moves <= 290)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tforPrintRusults= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 436&& moves <= 580)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor1= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 3:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 713&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor3= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 5:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 570&& moves <= 500)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfor5= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 9:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 480&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor9= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 11:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 1050&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor11= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 13:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 310&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor13= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 16:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 235&& moves <= 290)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor16= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 19:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 250&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor19= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 20:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 200&& moves <= 290)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor20= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 23:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 1000&& moves <= 1140)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor23= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\tmoves = Integer.parseInt(arr[2]);\r\n\t\t\t\t\t\tgrade = Integer.parseInt(arr[3]);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tforPrintRusults +=\"\\n\"+for1+\"\\n\"+for3+\"\\n\"+for5+\"\\n\"+for9+\"\\n\"+for11+\"\\n\"+for13+\"\\n\"+for16+\"\\n\"+for20+\"\\n\"+for19+\"\\n\"+for23+\"\\n\";\r\n\t\r\n\t\t\t\tforPrintRusults += \"your level is \" + level + \" and so far you played \" + numOfGames + \" games.\";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, forPrintRusults);\r\n\t\t\t\tresult.close();\r\n\t\t\t\tstatement.close();\r\n\t\t\t\tconnect.close();\r\n\t\t\t} catch (SQLException e)\r\n\t\t\t{\r\n\t\t\t\te.getMessage();\r\n\t\t\t\te.getErrorCode();\r\n\t\t\t} catch (ClassNotFoundException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (panel == \"In relation to everyone\")\r\n\t\t{\r\n\t\t\tString forPrintAns = \"\";\r\n\t\t\tString StringID = JOptionPane.showInputDialog(null, \"What is your ID ? \");\r\n\t\t\ttry {\r\n\t\t\t\tint NumberID = Integer.parseInt(StringID);\r\n\t\t\t\tConnection connect =DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\r\n\t\t\t\tStatement statement = connect.createStatement();\r\n\t\t\t\tString query = \"SELECT * FROM Logs ORDER BY levelID , score;\";\r\n\t\t\t\tResultSet result = statement.executeQuery(query);\r\n\t\t\t\t\r\n\t\t\t\tint myPlace = 1; \r\n\t\t\t\tint level = 0; \r\n\t\t\t\tint grade = 0; \r\n\t\t\t\t\r\n\t\t\t\tString forPrintRusults = \"\";\r\n\t\t\t\tList<String> IDList = new ArrayList<>();\r\n\t\t\t\r\n\r\n\t\t\t\twhile (result.next())\r\n\t\t\t\t{\r\n\t\t\t\t\tforPrintAns += (\"Id: \" + result.getInt(\"UserID\") + \",\" + result.getInt(\"levelID\") + \",\" + result.getInt(\"score\") + \",\" + result.getDate(\"time\") + \"E\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint index = 0;\r\n\t\t\t\tboolean weCanPrint = false; \r\n\t\t\t\tboolean notExistID = true;\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < forPrintAns.length(); i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (forPrintAns.charAt(i) == 'E')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnotExistID = true;\r\n\t\t\t\t\t\tString help = forPrintAns.substring(index, i);\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tString[] arr = help.split(\",\");\r\n\t\t\t\t\t\tfor (int j = 0; j < IDList.size(); j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (IDList.get(j).equals(arr[0])) //return id\r\n\t\t\t\t\t\t\t\tnotExistID = false;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (notExistID)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tIDList.add(arr[0]);\r\n\t\t\t\t\t\t\tmyPlace++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Integer.parseInt(arr[1]) != level && weCanPrint) //we finished to check this level \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tforPrintRusults += \"Level: \" + level + \" Grade: \" + grade + \" your Place is:\" + myPlace + \"\\n\";\r\n\t\t\t\t\t\t\tmyPlace = 1;\r\n\t\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\t\tweCanPrint = false;\r\n\t\t\t\t\t\t\tIDList.clear();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif (arr[0].contains(\"\" + NumberID)) //the id it's my id\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\t\tweCanPrint = true;\r\n\t\t\t\t\t\t\tgrade = Integer.parseInt(arr[2]);\r\n\t\t\t\t\t\t\tmyPlace = 1;\r\n\t\t\t\t\t\t\tIDList.clear();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(null, forPrintRusults);\r\n\r\n\t\t\t} catch (SQLException e)\r\n\t\t\t{\r\n\t\t\t\te.getMessage();\r\n\t\t\t\t\r\n\t\t\t\te.getErrorCode();\r\n\t\t\t} \r\n\t\t}\r\n\t}", "public static void viewOutcomeOfPlayedFixtures() throws IOException\n\t{\n\t\tString leagueName = getInputFromEndUser(\"Enter the name of the league/division/tournament (case sensitive) to display its current results.\",\n\t\t\t\"View results of played fixtures.\");\n\t\tif (leagueName.equals(\"\"))\n\t\t\treturn;\n\t\telse\n\t\t{\n\t\t\tFile allLeaguesFile = new File(\"AllDivisionsTournamentsLeagues.txt\");\n\t\t\tif (!allLeaguesFile.exists())\n\t\t\t\tJOptionPane.showMessageDialog(null, \"There are no divisions/tournaments/leagues to load.\", \"Error\", 2);\n\t\t\telse\n\t\t\t{\n\t\t\t\tFileReader allLeaguesReader = new FileReader(\"AllDivisionsTournamentsLeagues.txt\");\n\t\t\t\tScanner allLeaguesScanner = new Scanner(allLeaguesReader);\n\t\t\t\tString lineFromAllLeagues = \"\";\n\t\t\t\twhile (allLeaguesScanner.hasNext() && !lineFromAllLeagues.contains(leagueName))\n\t\t\t\t\tlineFromAllLeagues = allLeaguesScanner.nextLine();\n\t\t\t\tallLeaguesScanner.close();\tallLeaguesReader.close();\n\t\t\t\tif (!lineFromAllLeagues.contains(leagueName))\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Division/Tournament/League \\\"\"+leagueName+\"\\\" not found.\" +\n\t\t\t\t\t\t\"\\n\\nPlease check that you typed the name correctly.\", \"Error\", 2);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tFileReader resultsReader = new FileReader(leagueName+\"Results.txt\");\n\t\t\t\t\tScanner resultsScanner = new Scanner(resultsReader);\n\t\t\t\t\tString lineFromResults = \"\";\n\t\t\t\t\tString[] results;\n\t\t\t\t\tFileReader fixturesReader = new FileReader(leagueName+\"Fixtures.txt\");\n\t\t\t\t\tScanner fixturesScanner = new Scanner(fixturesReader);\n\t\t\t\t\tString lineFromFixtures = \"\";\n\t\t\t\t\tString[] fixtures;\n\t\t\t\t\tint fixtureNumber, homeTeamNumber, awayTeamNumber, homeTeamScore, awayTeamScore;\n\t\t\t\t\tString homeTeamName = \"\", awayTeamName = \"\";\n\t\t\t\t\twhile (resultsScanner.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tlineFromResults = resultsScanner.nextLine();\n\t\t\t\t\t\tresults = lineFromResults.split(\",\");\n\t\t\t\t\t\tlineFromFixtures = fixturesScanner.nextLine();\n\t\t\t\t\t\tfixtures = lineFromFixtures.split(\",\");\n\t\t\t\t\t\tfixtureNumber = Integer.parseInt(results[0]);\n\t\t\t\t\t\thomeTeamNumber = Integer.parseInt(fixtures[1]);\n\t\t\t\t\t\tawayTeamNumber = Integer.parseInt(fixtures[2]);\n\t\t\t\t\t\thomeTeamName = getTeamName(homeTeamNumber, leagueName);\n\t\t\t\t\t\tawayTeamName = getTeamName(awayTeamNumber, leagueName);\n\t\t\t\t\t\thomeTeamScore = Integer.parseInt(results[1]);\n\t\t\t\t\t\tawayTeamScore = Integer.parseInt(results[2]);\n\t\t\t\t\t\tSystem.out.printf(\"%-5s%20s\", fixtureNumber+\".\", homeTeamName+\" \"+homeTeamScore+\" v \"+awayTeamScore+\" \"+awayTeamName+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tfixturesScanner.close();\tfixturesReader.close();\n\t\t\t\t\tresultsScanner.close();\t\tresultsReader.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\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 }", "public static void showSportsman(Runner[] runners, int numberOfRunners) {\n\n System.out.println(\"спорстмены, результаты которых выше средней скорости по спортшколе\");\n for (int i = 0; i < numberOfRunners; i++) {\n if (runners[i].getAverageRun() > countAllAverage(runners, numberOfRunners)) {\n System.out.println(runners[i].toString());\n }\n\n }\n\n System.out.println(\"спорстмены, результаты которых ниже средней скорости по спортшколе\");\n\n for (int i = 0; i < numberOfRunners; i++) {\n if (runners[i].getAverageRun() <= countAllAverage(runners, numberOfRunners)) {\n System.out.println(runners[i].toString());\n }\n\n }\n\n\n }", "private static void displayUserTeam() {\n\t\tif (game.getCurrentRound()==1) {\n\t\t\tfor (int i = 0; i<11; i++) {\n\t\t\t\tplayerNameArray[i].setText(\"Name\");\n\t\t\t\timageArray[i].setIcon(MainGui.getShirt(\"noTeam\"));\n\t\t\t\tbuttonArray[i].setText(\"+\");\n\t\t\t}\n\t\t}\n\t}", "public static void updateTeamPanels(Team team1, Team team2){\n team1Panel.clear();\n team2Panel.clear();\n tournament.clearPendingWinningTeam();\n\n // Set titles equal to team names\n team1Panel.setTitle(team1.teamName);\n team2Panel.setTitle(team2.teamName);\n\n // Start with team name\n Label team1Label = new Label(team1.teamName);\n team1Label.addStyleName(\"big-text\");\n\n Label team2Label = new Label(team2.teamName);\n team2Label.addStyleName(\"big-text\");\n\n team1Panel.add(team1Label);\n team2Panel.add(team2Label);\n\n StringBuilder team1HTML = new StringBuilder();\n StringBuilder team2HTML = new StringBuilder();\n\n team1HTML.append(\"<ul class=\\\"list-group\\\">\");\n team2HTML.append(\"<ul class=\\\"list-group\\\">\");\n\n // Iterate through players on each team and list them below the team name\n for (Player player : team1.values()){\n team1HTML.append(\"<li class=\\\"list-group-item\\\">\").append(player.getSummonerName()).append(\"</li>\");\n }\n for (Player player : team2.values()){\n team2HTML.append(\"<li class=\\\"list-group-item\\\">\").append(player.getSummonerName()).append(\"</li>\");\n }\n\n team1HTML.append(\"</ul>\");\n team2HTML.append(\"</ul>\");\n\n HTMLPanel team1HTMLPanel = new HTMLPanel(team1HTML.toString());\n HTMLPanel team2HTMLPanel = new HTMLPanel(team2HTML.toString());\n\n team1Panel.add(team1HTMLPanel);\n team2Panel.add(team2HTMLPanel);\n\n Button team1button = new Button(\"Select team as winner\", team1SelectorHandler);\n Button team2button = new Button(\"Select team as winner\", team2SelectorHandler);\n\n team1button.addStyleName(\"btn btn-default\");\n team2button.addStyleName(\"btn btn-default\");\n\n team1Panel.add(team1button);\n team2Panel.add(team2button);\n\n }", "static public void set_team_data(String league){\n\n\t\tEdit_row_window.attrs = new String[]{\"team name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_\"+league+\"_players p, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_\"+league+\"_player_team pt \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where pt.player_id=p.id and pt.team_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by links_to_player desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\" from curr_\"+league+\"_players p \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"player name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"PLAYERS\";\n\t}", "private void populateTable() {\n Collections.sort(this.player.arr, new SortByLevel());\n achievementLabel.setText(player.toString() + \" at \" + new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\").format(new Date()));\n for(int i = 0; i < this.player.arr.size(); i++) {\n Achievement temp = this.player.arr.get(i);\n resultsTable.addRow(new Object[] {temp.getDescription(), temp.getLevel(), temp.getOutOfPossible()});\n }\n }", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\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\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "private void createGlobalStatsTable(int threshold) \r\n\t{\r\n\t\tTableData statsTable = new TableData(9);\r\n\r\n\t\tMap<Integer,IGlobalStats> globalStatsMap = model.getGlobalStats();\r\n\r\n\t\tfor (int key:globalStatsMap.keySet()) \r\n\t\t{\r\n\t\t\t// La global de todos los nodos tiene que heredar de SimpleGlobalStats para que se muestre\r\n\t\t\tIGlobalStats aux = globalStatsMap.get(key);\r\n\r\n\t\t\tif (!(aux instanceof SimpleGlobalStats)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSimpleGlobalStats stats = (SimpleGlobalStats)aux;\r\n\r\n\t\t\tString obj = stats.getName(model.getMethodNames());\r\n\t\t\tif (obj==null) {\r\n\t\t\t\tint h=1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString nodeName = Names.getDigestedName(stats.getName(model.getMethodNames()), true);\r\n\t\t\tString nodeType = stats.getTypeName();\r\n\r\n\t\t\tfloat referenceTime = stats.getAvgTotTime();\r\n\r\n\t\t\tif (referenceTime>=threshold) {\r\n\t\t\t\t// \"Name\", \"Type\", \"Count\", \"Avg. Total Time\", \"Min. Total Time\", \"Max. Total Time\", \"Avg. Ex. Time\", \"Min. Ex. Time\", \"Max. Ex. Time\" \r\n\t\t\t\tDecimalFormat dec = new DecimalFormat();\r\n\t\t\t\tdec.setMinimumFractionDigits(2);\r\n\t\t\t\tdec.setMaximumFractionDigits(2);\r\n\r\n\t\t\t\tstatsTable.addRow(stats.getId(), nodeName, nodeType, stats.getInvCount(),stats.getAvgTotTime(), stats.getMinTotTime(), stats.getMaxTotTime(), stats.getAvgExTime(),stats.getMinExTime(), stats.getMaxExTime());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tresultsTabbedPanel.setStatisticsData(statsTable);\r\n\t}", "public boolean ShowStats(){\n if(!determineValid()){\n Main.errorNumber = WrongNumber;\n return false;\n }\n labelNames();\n groupDisplay.setText(\"\");\n groupDisplay.setText(groupDisplay.getText() + displayArray(racers.get(group.get(0))));\n\n for(int i = 1; i < group.size(); ++i){\n groupDisplay.setText(groupDisplay.getText() + \"\\n\\n\" + displayArray(racers.get(group.get(i))));\n\n }\n\n return true; //success\n }", "public searchResultsDisplay(User user) throws IOException, ParseException {\n\n //actionListener that lets the user returns the user to their list\n returntoUserPageButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : returntoUser) {\n listener.stateChanged(event);\n }\n }\n });\n //actionListener that adds the selected game to their list\n m_addGameButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n try {\n m_fileManager = new FileManager();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n m_row = m_gameTable.getSelectedRow(); //gets row of the game that the user wants to add\n String m_title = (String) m_gameTable.getValueAt(m_row, 0);\n String m_rating = scoreTextField.getText(); // gets the rating from the textbox\n\n\n\n for(Game g : (Iterable<Game>) m_searchResult){\n if(g.getTitle().equals(m_title)){\n if(!(m_rating.equals(\"\") || m_rating == null)){ // if the rating is not empty\n g.setRating(m_rating);\n }\n else{\n g.setRating(\"N/A\");\n }\n user.getGameLists().get(0).addGame(g); //adds the game to the user's list\n try {\n m_fileManager.saveUserData(user); //saves the data from the newly added game into the user's own list\n JOptionPane.showMessageDialog(null, \"Game Added!\", \"Success!\", JOptionPane.INFORMATION_MESSAGE);\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : m_addGame) {\n listener.stateChanged(event);\n }\n break;\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }\n }\n }\n });\n\n //ActionListener on searchButton that searches the com.cs_group.objects.Game file again to find another game\n searchButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //gets the title from the textbox\n m_testGame.setTitle(searchGameText.getText());\n try {\n if(m_fileManager1.isGameInList(m_testGame)){ // if the game is in the file\n m_NewSearchResult = m_fileManager1.gamesSearchResult(m_testGame); //makes a new com.cs_group.objects.GameList with the search Result\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : m_addAnotherGame) {\n listener.stateChanged(event);\n }\n }else { JOptionPane.showMessageDialog(null, \"GAME NOT FOUND\", \"ERROR\", JOptionPane.ERROR_MESSAGE);}\n } catch (IOException | ParseException ioException) {\n ioException.printStackTrace();\n }\n }\n });\n }", "private String perRuleStatistics(Map<Feature<Boolean>, Set<String>> featureResults, int total) {\n StringBuffer statisticsTable = new StringBuffer();\n for (Feature<Boolean> feature : featureResults.keySet()) {\n statisticsTable.append(String.format(\"\\n### Project statistics for %s (%s)\\n\\n\", \n formatter.identifierOf(feature).orElseGet(() -> \"unknown\"), formatter.nameOf(feature)));\n Set<String> resultsForFeature = featureResults.get(feature);\n if (resultsForFeature.isEmpty()) {\n statisticsTable.append(\"*All projects are compliant with this rule.*\\n\");\n } else {\n statisticsTable.append(\"| | # of projects | % of projects |\\n\");\n statisticsTable.append(\"| ------- | :----- | :------------------ |\\n\");\n statisticsTable.append(String.format(\"| Passed | %d | %2.1f%% |\\n\", \n total - resultsForFeature.size(), \n (double) (total - resultsForFeature.size()) / total * 100));\n statisticsTable.append(String.format(\"| Failed | %d | %2.1f%% |\\n\\n\", \n resultsForFeature.size(), (double) resultsForFeature.size() / total * 100));\n statisticsTable.append(\"**Failed projects:**\\n\");\n resultsForFeature.stream()\n .forEach(result -> statisticsTable.append(String.format(\"- %s\\n\", result)));\n }\n }\n return statisticsTable.toString();\n }", "private static void getStatistics() {\r\n\r\n\t\tfloat totalWaitTime = 0;\r\n\t\tfloat totalRideTime = 0;\r\n\r\n\t\t// generate info about min wait time\r\n\t\tfloat minWaitTime = people.get(0).getWaitTime();\r\n\t\tString minWaitPerson = \"\";\r\n\t\ttotalWaitTime += minWaitTime;\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getWaitTime() < minWaitTime){\r\n\t\t\t\tminWaitTime = people.get(i).getWaitTime();\r\n\t\t\t\tminWaitPerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t\ttotalWaitTime += people.get(i).getWaitTime();\r\n\t\t}\r\n\r\n\t\t// generate info about min ride time\r\n\t\tfloat minRideTime = people.get(0).getRideTime();\r\n\t\tString minRidePerson = \"\";\r\n\t\ttotalRideTime += minRideTime;\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getRideTime() < minRideTime){\r\n\t\t\t\tminRideTime = people.get(i).getRideTime();\r\n\t\t\t\tminRidePerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t\ttotalRideTime += people.get(i).getRideTime();\r\n\t\t}\r\n\r\n\t\t// generate info about max wait time\r\n\t\tfloat maxWaitTime = people.get(0).getWaitTime();\r\n\t\tString maxWaitPerson = \"\";\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getWaitTime() > maxWaitTime){\r\n\t\t\t\tmaxWaitTime = people.get(i).getWaitTime();\r\n\t\t\t\tmaxWaitPerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// generate info about max ride time\r\n\t\tfloat maxRideTime = people.get(0).getRideTime();\r\n\t\tString maxRidePerson = \"\";\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getRideTime() > maxRideTime){\r\n\t\t\t\tmaxRideTime = people.get(i).getRideTime();\r\n\t\t\t\tmaxRidePerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.printf(\"Avg Wait Time: %.1f sec\\n\", totalWaitTime/people.size());\r\n\t\tSystem.out.printf(\"Avg Ride Time: %.1f sec\\n\\n\", totalRideTime/people.size());\r\n\r\n\t\tSystem.out.printf(\"Min Wait Time: %.1f sec (%s)\\n\", minWaitTime, minWaitPerson);\r\n\t\tSystem.out.printf(\"Min Ride Time: %.1f sec (%s)\\n\\n\", minRideTime, minRidePerson);\r\n\r\n\t\tSystem.out.printf(\"Max Wait Time: %.1f sec (%s)\\n\", maxWaitTime, maxWaitPerson);\r\n\t\tSystem.out.printf(\"Max Ride Time: %.1f sec (%s)\\n\\n\", maxRideTime, maxRidePerson);\r\n\r\n\t}", "public void showResults(){\n customerCount = simulation.getCustomerCount();\n phoneCount = simulation.getPhoneCount();\n doorCount = simulation.getDoorCount();\n unhelpedCount = simulation.getUnhelped();\n totalCus.setText(\"Total number of Customers: \"+customerCount+\"\\t\\t\");\n doorCus.setText(\"Number of Door Customers: \"+doorCount+\"\\t\\t\");\n phoneCus.setText(\"Number of Phone Customers: \"+phoneCount+\"\\t\\t\");\n unhelped.setText(\"Number of Customers left unhelped at the end: \"+unhelpedCount);\n }", "void start() throws Exception {\n\t\tSystem.out.println(readLine(110));\n\n\t\tint teamsCount = Integer.parseInt(readLine(5));\n\n\t\tArrayList teams = new ArrayList(teamsCount+1);\n\t\tHashtable teamsTable = new Hashtable();\n\t\twhile(teamsCount--!=0) {\n\t\t\tTeam t = new Team();\n\t\t\tt.name = readLine(100);\n\t\t\tteams.add(t);\n\t\t\tteamsTable.put(t.name,t);\n\t\t}\n\n\t\tint gamesCount = Integer.parseInt(readLine(5));\n\t\twhile(gamesCount--!=0) {\n\t\t\tString line = readLine(100);\n\t\t\tint arroba = line.indexOf('@');\n\t\t\tTeam t1 = (Team) teamsTable.get(line.substring(0,line.indexOf('#')));\n\t\t\tint goals1 = Integer.parseInt(line.substring(line.indexOf('#')+1,arroba));\n\t\t\tt1.goals += goals1;\n\t\t\tline = line.substring(arroba);\n\t\t\tTeam t2 = (Team) teamsTable.get(line.substring(line.indexOf('#')+1));\n\t\t\tint goals2 = Integer.parseInt(line.substring(1,line.indexOf('#')));\n\t\t\tt2.goals += goals2;\n\t\t\tt1.against += goals2;\n\t\t\tt2.against += goals1;\n\n\t\t\tt1.games++;\n\t\t\tt2.games++;\n\n\t\t\tif(goals1>goals2) {\n\t\t\t\tt1.won++;\n\t\t\t\tt2.lost++;\n\t\t\t\tt1.points+=3;\n\t\t\t} else if(goals1<goals2) {\n\t\t\t\tt2.won++;\n\t\t\t\tt1.lost++;\n\t\t\t\tt2.points+=3;\n\t\t\t} else {\n\t\t\t\tt1.draw++;\n\t\t\t\tt2.draw++;\n\t\t\t\tt1.points+=1;\n\t\t\t\tt2.points+=1;\n\t\t\t}\n\n\t\t}\n\n\t\tTreeSet h = new TreeSet(new CompareTeams());\n\t\th.addAll(teams);\n\n\t\tint i=1;\n\t\tfor(Iterator it = h.iterator();it.hasNext();i++) {\n\t\t\tTeam t = (Team) it.next();\n\t\t\tSystem.out.println(\n\t\t\t\ti + \") \" + t.name + \" \" + t.points + \"p, \" + t.games + \"g (\"\n\t\t\t\t+ t.won + \"-\" + t.draw + \"-\" + t.lost + \"), \" + (t.goals-t.against) + \"gd (\"\n\t\t\t\t+ t.goals + \"-\" + t.against + \")\"\n\t\t\t);\n\t\t}\n\n\t}", "public static void endingOutput(int totalTurns, int totalGames, int largestNum, String playerName) {\n double turnAvg = totalTurns/totalGames;\n double optimalGuesses = Math.log(largestNum - 1) / Math.log(2);\n if(turnAvg < optimalGuesses - 2){\n System.out.println(\"Wow, you really rocked it!!\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n } else if(turnAvg < optimalGuesses){\n System.out.println(\"Great job! You definitely know what you're doing.\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n } else if(turnAvg > optimalGuesses + 2) {\n System.out.println(\"Jeez, the goal of the game is to find the number in as few guesses as possible.\");\n System.out.println(\"You know that right?\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n } else {\n System.out.println(\"It's clear you understand how to play the game, now work on your luck a bit.\");\n System.out.printf(\"An optimal game would have taken %.1f guesses and you averaged\\n\", optimalGuesses);\n System.out.printf(\"%.1f guesses over your %d games.\\n\", turnAvg, totalGames);\n }\n System.out.printf(\"Thanks for playing %s, see you next time!\\n\", playerName);\n }", "private void initializeStats()\r\n {\r\n solutionText = new JTextArea();\r\n solutionLabel = new JLabel();\r\n\r\n solutionText.setFont(new Font(Font.SANS_SERIF, Font.BOLD | Font.ITALIC, 12));\r\n solutionText.setPreferredSize(\r\n new Dimension(calculateTextWidth(solutionText.getText().split(\"\\\\n\"),\r\n solutionText.getFontMetrics(solutionText.getFont())) + 15,\r\n calculateTextHeight(solutionText.getText().split(\"\\\\n\"),\r\n solutionText.getFontMetrics(solutionText.getFont()))));\r\n setStats();\r\n solutionLabel.setLayout(new GridLayout(1, 4));\r\n\r\n solutionLabel.setPreferredSize(new Dimension(solutionText.getPreferredSize().width, +solutionText.getPreferredSize().height + solutionLabel.getIconTextGap() * 2));\r\n solutionLabel.setBorder(new TitledBorder(\"Solution Stats\"));\r\n\r\n solutionLabel.add(solutionText);\r\n }", "public String stats() throws IOException, ClassNotFoundException, SQLException{\n\t\t\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\tCookie[] checkTheCookie = request.getCookies();\n\t\tboolean isUser= false;\n\t\tif(checkTheCookie!=null){\n\t\t\tfor(Cookie cki: checkTheCookie){\n\t\t\t\tString name = cki.getName();\n\t\t\t\t\n\t\t\t\tif(name.equals(\"user\")){\n\t\t\t\t\tisUser=true;\n//\t\t\t\t\tSystem.out.println(cki.getValue());\n//\t\t\t\t\treq.setAttribute(\"email\", cki.getValue());\n//\t\t\t\t\trequest.setAttribute(\"email\", cki.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!isUser){\n\t\t\tresponse.sendRedirect(\"/Struts2Sample/_football_login.jsp\");\n\t\t}\n\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\tConnection conn = DriverManager.getConnection (\"jdbc:oracle:thin:@oracle.cise.ufl.edu:1521:orcl\",\"konyala\", \"YyAUFfpm2UkB!\");\n\t\tStatement stmt = conn.createStatement ();\n\t\t\n//\t\tResultSet rset = stmt.executeQuery (\"select TEAM_NAME from TEAM\");\n//\t\tResultSet rset = stmt.executeQuery (\"select team_name,won from team t, (select count(match_winner) as won,match.MATCH_WINNER from match natural join season where season_year = \"+year+\" group by match_winner) winners where winners.match_winner = t.team_id\");\n\t\tResultSet rset = stmt.executeQuery (\"select venue_id, venue_name from venue\");\n\t\twhile (rset.next ()){\n\t\t\tJSONObject tempJson = new JSONObject();\n\t\t\ttempJson.put(\"venue_id\", rset.getString(1));\n\t\t\ttempJson.put(\"venue_name\", rset.getString(2));\n\t\t \tresJsonArray.put(tempJson);\n\t\t}\n\t\trequest.setAttribute(\"resJson\", resJsonArray);\n\t\t\n\t\tString batbowl = request.getParameter(\"batbowl\");\n\t\tString team1 = request.getParameter(\"team1\");\n\t\tString team2 = request.getParameter(\"team2\");\n\t\tString venue = request.getParameter(\"venue\");\n\t\tString season = request.getParameter(\"season\");\n\t\tString winlose = request.getParameter(\"winlose\");\n\t\tif(winlose!=null && winlose.equals(\"1\")){\n\t\t\twinlose = team1;\n\t\t}\n\t\telse{\n\t\t\twinlose = team2;\n\t\t}\n\t\t\n\t\tif(batbowl==null || team1==null){\n\t\t\treturn \"success\";\n\t\t}\n\t\t\n\t\trset = stmt.executeQuery(\"select player.player_name,total_runs,fours,sixes from (select striker as player_id, sum(runs_scored) as total_runs,count(case runs_scored when 4 then 1 end) as fours,count(case runs_scored when 6 then 1 end) as sixes from (select * from player_match natural join match natural join team natural join ball_by_ball natural join batsman_scored natural join season natural join venue natural join country where ((team_1 = \"+team1+\" and team_2 = \"+team2+\") or (team_2 = \"+team1+\" and team_1 = \"+team2+\")) and match_winner = \"+winlose+\" and season_id = \"+season+\" and venue_id = \"+venue+\") group by striker) tr, player where player.PLAYER_ID = tr.player_id\");\n\t\t\n\t\twhile (rset.next ()){\n\t\t\tJSONObject tempJson = new JSONObject();\n\t\t\ttempJson.put(\"player_name\", rset.getString(1));\n\t\t\ttempJson.put(\"total_runs\", rset.getString(2));\n\t\t\ttempJson.put(\"fours\", rset.getString(3));\n\t\t\ttempJson.put(\"sixes\", rset.getString(4));\n\t\t\tresStatJsonArray.put(tempJson);\n\t\t}\n\t\trequest.setAttribute(\"resStatJson\", resStatJsonArray);\n\t\t\n\t\treturn \"successStats\";\n\t}", "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}", "public void displayReport() {\r\n\t\tint ticketsSold = 0;\r\n\t\tint aTicketsSold = 0;\r\n\t\tint cTicketsSold = 0;\r\n\t\tint sTicketsSold = 0;\r\n\t\tdouble totalSales = 0;\r\n\t\t\r\n\t\tTheaterSeat current = getFirst();\r\n\t\tif (current.getTicketType() == 'A') {\r\n\t\t\taTicketsSold++;\r\n\t\t\tticketsSold++;\r\n\t\t\ttotalSales += 10;\r\n\t\t}\r\n\t\tif (current.getTicketType() == 'C') {\r\n\t\t\tcTicketsSold++;\r\n\t\t\tticketsSold++;\r\n\t\t\ttotalSales += 5;\r\n\t\t}\r\n\t\tif (current.getTicketType() == 'S') {\r\n\t\t\tsTicketsSold++;\r\n\t\t\tticketsSold++;\r\n\t\t\ttotalSales += 7.5;\r\n\t\t}\r\n\t\tfor (int i=0; i<numRows - 1; i++) {\r\n\t\t\t\r\n\t\t\tfor (int j=1; j<numCols; j++) {\r\n\t\t\t\tcurrent = current.getRight();\r\n\t\t\t\tif (current.getTicketType() == 'A') {\r\n\t\t\t\t\taTicketsSold++;\r\n\t\t\t\t\tticketsSold++;\r\n\t\t\t\t\ttotalSales += 10;\r\n\t\t\t\t}\r\n\t\t\t\tif (current.getTicketType() == 'C') {\r\n\t\t\t\t\tcTicketsSold++;\r\n\t\t\t\t\tticketsSold++;\r\n\t\t\t\t\ttotalSales += 5;\r\n\t\t\t\t}\r\n\t\t\t\tif (current.getTicketType() == 'S') {\r\n\t\t\t\t\tsTicketsSold++;\r\n\t\t\t\t\tticketsSold++;\r\n\t\t\t\t\ttotalSales += 7.5;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int j=0; j<numCols - 1; j++) {\r\n\t\t\t\tcurrent = current.getLeft();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = current.getDown();\r\n\t\t\tif (current.getTicketType() == 'A') {\r\n\t\t\t\taTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 10;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'C') {\r\n\t\t\t\tcTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 5;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'S') {\r\n\t\t\t\tsTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 7.5;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int j=1; j<numCols; j++) {\r\n\t\t\tcurrent = current.getRight();\r\n\t\t\tif (current.getTicketType() == 'A') {\r\n\t\t\t\taTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 10;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'C') {\r\n\t\t\t\tcTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 5;\r\n\t\t\t}\r\n\t\t\tif (current.getTicketType() == 'S') {\r\n\t\t\t\tsTicketsSold++;\r\n\t\t\t\tticketsSold++;\r\n\t\t\t\ttotalSales += 7.5;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total seats in theater: \" + numRows*numCols);\r\n\t\tSystem.out.println(\"Total tickets sold: \" + ticketsSold);\r\n\t\tSystem.out.println(\"Adult tickets sold: \" + aTicketsSold);\r\n\t\tSystem.out.println(\"Child tickets sold: \" + cTicketsSold);\r\n\t\tSystem.out.println(\"Senior tickets sold: \" + sTicketsSold);\r\n\t\tSystem.out.println(\"Total ticket sales: $\" + String.format(\"%.2f\", totalSales));\r\n\t}", "private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }", "protected abstract void gatherTeam();", "static void showStatistics() throws IOException {\n System.out.println(\"You entered \" + initialSlots + \" for the number of slots on your wheel.\");\n System.out.println(\"You entered \" + initialZeroes + \" for the number of 0's or 00's on your wheel.\");\n System.out.println(\"You entered \" + initialVisits + \" for the number of times you visited to the casino.\");\n System.out.println(\"You entered $\" + initialDollars + \" for the amount of money you started with at every visit to the casino.\");\n System.out.println(\"You had $\" + dollarsRisked + \" for the total amount of money you brought to the casino over your visits.\");\n System.out.println(\"You walked away with $\" + moneyCount + \" total over \" + winCount + \" wins of your \" + initialVisits + \" total visits. This is %\" + df.format(percentWon) +\n \" of the $\" + dollarsRisked + \" you brought to the casino.\");\n System.out.println(\"Your most money won on a spin was $\" + biggestGain + \" across all your visits.\");\n // Prints to console if the user never won once on all their visits to the casino, otherwise lets them know the largest amount they walked away with\n if (largestWalkedAway < 1) {\n System.out.println(\"Sorry, you never walked away a winner across all \" + initialVisits + \" visits to the casino.\");\n } else {\n System.out.println(\"The most you ever walked away with on a visit to the casino was $\" + largestWalkedAway + \".\");\n }\n System.out.println(\"You came out a loser \" + lossCount + \" times out of your \" + initialVisits + \" visits.\" );\n // Prints to console only if the user never won once on all their visits to the casino\n if (completeLoss >= 1) {\n System.out.println(\"You completely lost all of your money in \" + completeLoss + \" visits.\");\n }\n // Gives the user of their average winnings/losses per visit of the casino\n System.out.println(\"You won an average of $\" + df.format(((float)runningTotal / initialVisits))+ \" each time you visited the casino.\");\n System.out.println(\"Out of \" + initialVisits + \" visits you walked away a winner \" + winCount + \" times. You walked away a loser \" + lossCount + \" times. \" +\n \"You broke even \" + brokeEven + \" times.\\n\");\n // Prompts the user to press Enter to exit the program\n System.out.println(\"Press Enter to exit.\");\n System.in.read();\n }", "private void resultsScreen(Stage stage, String[][] leaderboard) {\n\t\t\n\t\t//A HBox is prepared, with an int to determine spacing between the nodes within it later.\n\t\tHBox h = new HBox(30);\n\t\t\n\t\t//A VBox array of length 3 is prepared, as well as a Label array, with three values given\n\t\t//to it immediately. \n\t\tVBox[] v = new VBox[3];\n\t\tLabel[] title = {new Label(\"Name\"), new Label(\"Incorrect Guesses\"), new Label(\"Time\")};\n\t\t\n\t\t//A separate VBox is prepared.\n\t\tVBox v2;\n\t\t\n\t\t//For loop adding all the names from the leaderboard array into one VBox, then\n\t\t//adding all the incorrectGuesses to a second VBox, then adding all the times\n\t\t//to the third VBox. By doing it this way, names and scores are much more better\n\t\t//aligned as columns than if each player and their scores were put into HBoxes.\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tv[i] = new VBox();\n\t\t\tv[i].getChildren().add(title[i]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tLabel l = new Label(leaderboard[j][i]);\n\t\t\t\tv[i].getChildren().add(l);\n\t\t\t}\n\t\t\th.getChildren().add(v[i]);\n\t\t}\n\t\t\n\t\th.setAlignment(Pos.BASELINE_CENTER);\n\t\t\n\t\t//A label is now created and put into the second VBox, along with the HBox just created.\n\t\t//This results in the statement being placed below the entire leaderboard without issues.\n\t\tLabel endStatement = new Label(\"Press any key to start a new game or escape to exit.\");\n\t\tendStatement.setWrapText(true);\n\t\tendStatement.setPrefWidth(200);\n\t\tendStatement.setMinWidth(200);\n\t\tendStatement.setMaxWidth(200);\n\n\t\tv2 = new VBox(2,h,endStatement);\n\t\tv2.setAlignment(Pos.TOP_CENTER);\n\t\tgroup = new Group(v2);\n\t\t\n\t\tscene = new Scene(group,300,300,Color.LIGHTGREY);\n\t\tstage.setScene(scene);\n\t\tstage.setResizable(false);\n\t\tstage.setTitle(\"Hangman\");\n\t\tstage.show();\n\t\t\n\t\tscene.setOnKeyReleased(new EventHandler<KeyEvent>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void handle(KeyEvent e) {\n\t\t\t\t\n\t\t\t\tif(e.getCode()==KeyCode.ESCAPE) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t}\n\t\t\t\t\tstage.close();\n\t\t\t\t}else {\n\t\t\t\t\tstart(stage);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void updateInfoLabel() {\n\n int achievementTotal = 0;\n int achievementDone = 0;\n\n for (Game game : tableView.getItems()) {\n if (game.isPopulated() && game.getHasStats()) {\n achievementTotal += game.achievementsTotalProperty().get();\n achievementDone += game.achievementsDoneProperty().get();\n }\n }\n\n int percentage = 100;\n if (achievementTotal > 0) {\n percentage = achievementDone * 100 / achievementTotal;\n }\n\n lblInfo.setText(\"Games loaded: \" + tableView.getItems().size() + \", Achievements: \" + achievementTotal + \", Unlocked: \" + achievementDone + \" (\" + percentage + \"%)\");\n\n }", "private void getStatistics(HttpServletRequest request, HttpServletResponse response) throws IOException {\n Map<Integer, StatisticsDataStruct> stats = SimApi.getStatistics();\n String newTableOfStat = \"<table id=\\\"statTable\\\">\";\n\n for (int i = 0; i < stats.size(); i++) {\n StatisticsDataStruct ListAndScenarioNumber = stats.get(i);\n List<String> list = ListAndScenarioNumber.newList;\n\n newTableOfStat = createStatisticsStringHtmlTable(newTableOfStat, list);\n }\n\n newTableOfStat += \"</table>\";\n response.getWriter().write(newTableOfStat);\n }", "private void printStatistics() {\n\t\t\r\n\t\tSystem.out.println(\"End of simulation report\\n\");\r\n\t\tSystem.out.println(\"\\t# total arrival customers \t\t\t: \" + customerIDCounter);\r\n\t\tSystem.out.println(\"\\t# customers turned-away \t\t: \" + numTurnedAway);\r\n\t\tSystem.out.println(\"\\t# customers served \t\t\t: \" + numServed + \"\\n\");\r\n\t\tSystem.out.println(\"\\t*** Current Tellers Info ***\\n\\n\");\r\n\t\tservicearea.printStatistics();\r\n\t\tSystem.out.println(\"\\n\\n\\tTotal waiting time \t\t\t\t: \" + totalWaitingTime);\r\n\t\tSystem.out.println(\"\\tAverage waiting time \t\t\t: \"\r\n\t\t\t\t+ (double) totalWaitingTime / (customerIDCounter - numTurnedAway));\r\n\t\tSystem.out.println(\"\\n\\n\\tBusy Tellers (\" + servicearea.numBusyTellers() + \") Info\\n\\n\");\r\n\t\tfor (int i = 0; i < servicearea.numBusyTellers();) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// loops through busyTellerQ\r\n\t\t\tTeller nextBusyTeller = servicearea.removeBusyTellerQ();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// empties queue and prints\r\n\t\t\tnextBusyTeller.printStatistics();\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// teller statistics\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\\tFree Tellers (\" + servicearea.numFreeTellers() + \") Info\\n\\n\");\r\n\t\tfor (int i = 0; i < servicearea.numFreeTellers();) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// loops through freeTellerQ\r\n\t\t\tTeller nextFreeTeller = servicearea.removeFreeTellerQ();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// empties queue and prints\r\n\t\t\tnextFreeTeller.printStatistics();\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// teller statistics\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\n\t}", "public static void displayScoreCard(){\r\n\t\t\r\n\t\t try {\r\n\t\t\t \r\n\t\t\t //getting the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//retriving the data from the database\r\n\t\t\t ResultSet results = statement.executeQuery(\"select * from \" + tableName);\r\n\t\t\t \r\n\t\t\t //Retrieves the Players_Name, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE and OUT_FRONT of this ResultSet object's columns. \r\n\t\t\t ResultSetMetaData rsmd = results.getMetaData();\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t System.out.println(\"\\t\\t\\t\\t Fort Cherry Golf Course\");\r\n\t\t\t // print the names of the above the table\r\n\t\t\t int numberCols = rsmd.getColumnCount();\r\n\t\t\t for (int i=1; i<=numberCols; i++) \r\n\t\t\t {\r\n\t\t\t // extract each column name from the meta data and print them\r\n\t\t\t System.out.print(rsmd.getColumnLabel(i)+\"\\t\"); \r\n\t\t\t }\r\n\r\n\t\t\t //simply printing the line\r\n\t\t\t System.out.println(\"\\n--------------------------------------------------------------------------------------------------\");\r\n\t\t\t \r\n\t\t\t // Reteriving all data one by one from the data base\r\n\t\t\t while(results.next())\r\n\t\t\t {\r\n\t\t\t String players_Name = results.getString(1);\r\n\t\t\t int ONE = results.getInt(2);\r\n\t\t\t int TWO = results.getInt(3);\r\n\t\t\t int THREE = results.getInt(4);\r\n\t\t\t int FOUR = results.getInt(5);\r\n\t\t\t int FIVE = results.getInt(6);\r\n\t\t\t int SIX = results.getInt(7);\r\n\t\t\t int SEVEN = results.getInt(8);\r\n\t\t\t int EIGHT = results.getInt(9);\r\n\t\t\t int NINE = results.getInt(10);\r\n\t\t\t int OUT_FRONT = results.getInt(11);\r\n\t\t\t \r\n\t\t\t //printing the retrive data to the console\r\n\t\t\t System.out.println(players_Name + \"\\t\" + ONE + \"\\t\" + TWO + \"\\t\" + THREE + \"\\t\" + FOUR + \"\\t\" + FIVE + \"\\t\" + SIX + \"\\t\" + SEVEN + \"\\t\" + EIGHT + \"\\t\" + NINE + \"\\t\" + OUT_FRONT);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t //closing the resultset and the statement\r\n\t\t\t results.close();\r\n\t\t\t statement.close();\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}", "public void printStats(boolean recalculate)\n\t{\n\t\tif (recalculate)\n\t\t\tbestIndividual(true);\n\t\tSystem.out.println(\"\\nHosts\");\n\t\tSystem.out.println(\"Best individual won \"+hFitnesses[0][1]);\n\t\tSystem.out.println(\"Worst individual won \"+hFitnesses[hFitnesses.length-1][1]);\n\t\t\n\t\tdouble avg = 0;\n\t\tfor (int i =0; i< hFitnesses.length; i++)\n\t\t\tavg=avg+hFitnesses[i][1];\n\t\tavg=avg/hFitnesses.length;\n\t\t\n\t\tSystem.out.println(\"average wins is \"+avg);\n\t\tavg = 0;\n\t\tfor (int i =0; i< hRandFitnesses.length; i++)\n\t\t\tavg=avg+hRandFitnesses[i][1];\n\t\tavg=avg/hRandFitnesses.length;\n\t\tif (recalculate)\n\t\t\thHistory.add(avg);\n\t\tSystem.out.println(\"**********************************************\");\n\t\tSystem.out.println(\"average wins against random is \"+avg);\n\t\tSystem.out.println(\"Best individual won \"+hRandFitnesses[0][1]+\" against Random\");\n\t\tSystem.out.println(\"Worst individual won \"+hRandFitnesses[hFitnesses.length-1][1]);\n\t\tSystem.out.println(\"**********************************************\");\n\t\t\n\t\tSystem.out.println(\"\\nParasites\");\n\t\tSystem.out.println(\"Best individual won \"+pFitnesses[0][1]);\n\t\tSystem.out.println(\"Worst individual won \"+pFitnesses[pFitnesses.length-1][1]);\n\t\t\n\t\tavg = 0;\n\t\tfor (int i =0; i< pFitnesses.length; i++)\n\t\t\tavg=avg+pFitnesses[i][1];\n\t\tavg=avg/pFitnesses.length;\n\t\t\n\t\tSystem.out.println(\"average wins is \"+avg);\n\t\tavg = 0;\n\t\tfor (int i =0; i< pRandFitnesses.length; i++)\n\t\t\tavg=avg+pRandFitnesses[i][1];\n\t\tavg=avg/pRandFitnesses.length;\n\t\tif (recalculate)\n\t\t\tpHistory.add(avg);\n\t\tSystem.out.println(\"**********************************************\");\n\t\tSystem.out.println(\"average wins against random is \"+avg);\n\t\tSystem.out.println(\"Best individual won \"+pRandFitnesses[0][1]+\" against Random\");\n\t\tSystem.out.println(\"Worst individual won \"+pRandFitnesses[hFitnesses.length-1][1]);\n\t\tSystem.out.println(\"**********************************************\");\n\t\t\n\t\tif (perfectParasites.size() > 0)\n\t\t\tSystem.out.println(\"There are \"+perfectParasites.size()+\" perfect scoring parasites\");\n\t\t\n\t\tif (perfectHosts.size() > 0)\n\t\t\tSystem.out.println(\"There are \"+perfectHosts.size()+\" perfect scoring hosts\");\n\t\t\t\n\t}", "@Override\n\tpublic void loadData() {\n\t\t\n\t\tint teamId = ((MatchPagerActivity)getActivity()).getTeamId();\n\t\tint matchId = ((MatchPagerActivity)getActivity()).getMatchId();\n\n\t\tUri teamUri = Matches.buildMatchIdTeamIdUri(\"\"+matchId, \"\"+teamId);\n\t\tfinal Cursor cur = getActivity().getContentResolver().query(teamUri, PROJECTION, null, null, null);\n\t\t\n\t\tif (cur != null && cur.moveToFirst()) {\n\t\t\tint numHighShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_HIGH));\n\t\t\tint numMedShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_MED));\n\t\t\tint numLowShotsMade = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_SCORED_LOW));\n\t\t\tint numHighShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_HIGH));\n\t\t\tint numMedShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_MED));\n\t\t\tint numLowShotsAtmp = cur.getInt(cur.getColumnIndex(TeamMatches.NUM_ATTEMPT_LOW));\n\t\t\n\t\t\tmHighCounter.setText(\"\" + numHighShotsMade);\n\t\t\tmMedCounter.setText(\"\" + numMedShotsMade);\n\t\t\tmLowCounter.setText(\"\" + numLowShotsMade);\n\t\t\tmHighMissCounter.setText(\"\" + (numHighShotsAtmp-numHighShotsMade));\n\t\t\tmMedMissCounter.setText(\"\" + (numMedShotsAtmp-numMedShotsMade));\n\t\t\tmLowMissCounter.setText(\"\" + (numLowShotsAtmp-numLowShotsMade));\n\t\t}\n\t\tcur.close();\n\t}", "public static void Display (int Table_num) throws SQLException\n\t {\n\t\t try{\t\t\n\t\t\t//Declarations\n\t\t\tint flag =0; //to check if data is found or not\n\t\t\tString query = new String();\n\t\t\t\n \n\t\t\tif (Table_num ==1) \n\t \t\tquery = \"begin StudRegSys.show_students(:1); end;\" ;\n\t \telse if (Table_num == 2)\n\t \t\tquery = \"begin StudRegSys.show_classes(:1); end;\" ;\n\t \telse if (Table_num == 3)\n\t \t\tquery = \"begin StudRegSys.show_prerequisites(:1); end;\" ;\n\t\t\telse if (Table_num == 4)\n query = \"begin StudRegSys.show_enrollments(:1); end;\" ;\n else if (Table_num == 5)\n query = \"begin StudRegSys.show_courses(:1); end;\" ;\n\t \telse if (Table_num == 6)\n\t \t\tquery = \"begin StudRegSys.show_logs(:1); end;\" ;\n\t\t\telse if\t(Table_num == 7)\n\t\t\t\t{\n\t\t\t\t\tsearch_prerequisites();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\telse if\t(Table_num == 8)\n\t\t\t\t{\n\t\t\t\t \tstudents_info();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t/*else if (Table_num == 8)\n\t\t\t\tquery = \"begin StudRegSys.student_info(:1,:2,:3);end;\" ;*/\n\n//Connection to Oracle server\n OracleDataSource ds = new oracle.jdbc.pool.OracleDataSource();\n ds.setURL(\"jdbc:oracle:thin:@grouchoIII.cc.binghamton.edu:1521:ACAD111\");\n Connection conn = ds.getConnection(\"vbobhat1\", \"BingData\");\nCallableStatement cs = conn.prepareCall (query);\n\t \n\t \tcs.registerOutParameter(1,OracleTypes.CURSOR);\n\t \n\t \t//execute and retrieve the result set\n\t \tcs.execute();\n\t \tResultSet rs;\n\t\t\n\t \trs = (ResultSet)cs.getObject(1);\n\t \n\t \t// print the results for Show_students\n\t \tif(Table_num == 1){ \n\t\t\t\tSystem.out.println(\"SID\" + \"\\t\" + \"FIRSTNAME\" + \"\\t\" + \"LASTNAME\" + \"\\t\" + \"STATUS\" + \"\\t\" + \"\\t\" + \"GPA\" + \"\\t\" + \"\\t\" + \"EMAIL\");\n\t \t\tSystem.out.println(\"---\" + \"\\t\" + \"---------\" + \"\\t\" + \"--------\" + \"\\t\" + \"------\" + \"\\t\" + \"\\t\" + \"---\" + \"\\t\" + \"\\t\" + \"-----\");\n\t \t\twhile (rs.next()){\n\t \t\tflag=1; //indicates data found\n\t\t\t\tSystem.out.println(rs.getString(1) + \"\\t\" + rs.getString(2) + \"\\t\" + \"\\t\" + rs.getString(3) + \"\\t\" + \"\\t\" + rs.getString(4) + \"\\t\" + \"\\t\" \n+ rs.getFloat(5) + \"\\t\" + \"\\t\" + rs.getString(6));\n\t \t\t}\n\t \t}\n// print the results for Show_classes \n\t \telse if(Table_num == 2){ \n\t\t\t\tSystem.out.println(\"CLASSID\" + \"\\t\" + \"DEPT_CODE\" + \"\\t\" + \"COURSE#\" + \"\\t\" + \"SECT#\" + \"\\t\" + \"YEAR\" + \"\\t\" +\n\t \t\t\"SEMESTER\" + \"\\t\" + \"LIMIT\" + \"\\t\" + \"CLASS_SIZE\" );\n\t \t\tSystem.out.println(\"---\" + \"\\t\" + \"---------\" + \"\\t\" + \"-------\" + \"\\t\" + \"-----\" + \"\\t\" + \"----\" + \"\\t\" + \n\t\t\t\t\"--------\" + \"\\t\" + \"-----\" + \"\\t\" + \"----------\" );\n\t \t\t\t\n\t \t\twhile (rs.next())\n\t \t\t{\n\t \t\t\tflag=1; //indicates data found\n\t \t\t\tSystem.out.println(rs.getString(1) + \"\\t\" + rs.getString(2) + \"\\t\" + \"\\t\" + rs.getInt(3) + \"\\t\" + rs.getInt(4) + \"\\t\"+ rs.getInt(5) + \"\\t\" + rs.getString(6) + \"\\t\" +\"\\t\" + rs.getInt(7) + \"\\t\" + \"\\t\" + rs.getInt(8) ); \n\t \t\t}\n\t \t}\n\t\t\t// print the results for Show_Prerequities\n else if(Table_num == 3){\n System.out.println(\"DEPT_CODE\" + \"\\t\" + \"COURSE#\" + \"\\t\" + \"PRE_DEPT_CODE\" + \"\\t\" + \"PRE_COURSE#\");\n System.out.println(\"---------\" + \"\\t\" + \"-------\" + \"\\t\" + \"-------------\" + \"\\t\" + \"-----------\");\n while (rs.next())\n {\n flag=1; //indicates data found\n System.out.println(rs.getString(1) + \"\\t\" + \"\\t\" + rs.getInt(2) + \"\\t\" + rs.getString(3) + \"\\t\" + \"\\t\" + rs.getInt(4));\n }\n }\n\t \t// print the results for Show_enrollment\n\t \telse if(Table_num == 4){ \n\t\t\t\tSystem.out.println(\"SID\" + \"\\t\" + \"CLASSID\" + \"\\t\" + \"LGRADE\");\n\t \t\tSystem.out.println(\"---\" + \"\\t\" + \"-------\" + \"\\t\" + \"------\");\n\t \t\twhile (rs.next())\n\t \t\t{\n\t \t\t\tflag=1; //indicates data found\n\t \t\t\tSystem.out.println(rs.getString(1) + \"\\t\" + rs.getString(2)+ \"\\t\" + rs.getString(3));\n\t \t\t}\n\t \t}\n\t\t\t// print the results for Show_courses\n else if(Table_num == 5){\n System.out.println(\"DEPT_CODE\" + \"\\t\" + \"COURSE#\" + \"\\t\" + \"\\t\" + \"TITLE\" );\n System.out.println(\"---------\" + \"\\t\" + \"-------\" + \"\\t\" + \"\\t\" + \"-----\" );\n while (rs.next())\n {\n flag=1; //indicates data found\n System.out.println(rs.getString(1) + \"\\t\" + \"\\t\" + rs.getInt(2)+ \"\\t\" + \"\\t\" + rs.getString(3));\n }\n }\n\t \t// print the results for Show_logs\n\t \telse if(Table_num == 6){ \t\n\t\t\t\tSystem.out.println(\"LOGID\" + \"\\t\" + \"WHO\" + \"\\t\" + \"\\t\" + \"TIME\" + \"\\t\" + \"\\t\" + \"TABLE_NAME\" +\"\\t\" + \"OPERATION\" + \"\\t\" + \"KEY_VALUE\" );\n\t \t\tSystem.out.println(\"-----\" + \"\\t\" + \"---\" + \"\\t\" + \"\\t\" + \"----\" + \"\\t\" + \"\\t\" + \"----------\" + \"\\t\" + \"---------\" + \"\\t\" + \"---------\");\n\t \t\twhile (rs.next()){\n\t \t\t\tflag=1; //indicates data found\n System.out.println(rs.getInt(1) + \"\\t\" + rs.getString(2) +\"\\t\" + rs.getTime(3)+ \"\\t\" + rs.getString(4) + \"\\t\"+ rs.getString(5)+ \"\\t\" + \"\\t\" + rs.getString(6));\n\t \n\t \t\t}\n\t\t\t} \n\t\t\n\n\t \n\t\t\t//Indicates that no data was found\n\t\t\tif (flag== 0) \n\t\t\t\tSystem.out.println (\"No data found\");\n\t\t\n\t \t//close the result set, statement, and the connection\n\t \trs.close();\n\t \tcs.close();\n\t \tconn.close();\n\t \n\t \t System.out.println(\"\\n\\n\");\n\n\t }\ncatch (SQLException ex) { System.out.println (\"\\n*** SQLException caught ***\\n\" + ex.getMessage());}\n catch (Exception e) {System.out.println (\"\\n*** other Exception caught ***\\n\");}\n }", "public void addToTable() {\n\n\n if (this.highScoresTable.getRank(this.scoreBoard.getScoreCounter().getValue()) <= this.highScoresTable.size()) {\n DialogManager dialog = this.animationRunner.getGui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\");\n\n this.highScoresTable.add(new ScoreInfo(name, this.scoreBoard.getScoreCounter().getValue()));\n File highScoresFile = new File(\"highscores.txt\");\n try {\n this.highScoresTable.save(highScoresFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(300, 300, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\ttxtEnterTheObservatory = new JTextField();\n\t\ttxtEnterTheObservatory.setBounds(103, 54, 204, 35);\n\t\tframe.getContentPane().add(txtEnterTheObservatory);\n\t\ttxtEnterTheObservatory.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Search \");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSpecifiedStatsDisplay.comparingValue = Integer.parseInt(txtEnterTheObservatory.getText());\n\t\t\t\tSpecifiedStatsDisplay specifiedStatsDisplay = new SpecifiedStatsDisplay();\n\t\t\t\tspecifiedStatsDisplay.frame.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(162, 100, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Search for records greater than:\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\tlblNewLabel.setBounds(39, 11, 356, 32);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Back \");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tStatisticsGUI statisticsGUI = new StatisticsGUI();\n\t\t\t\tstatisticsGUI.frame.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(335, 227, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t}", "private void printMatch(){\n nameHomelbl.setText(match.getHomeTeam().getName());\n cittaHomelbl.setText(match.getHomeTeam().getCity());\n nameGuestlbl.setText(match.getGuestTeam().getName());\n cittaGuestlbl.setText(match.getGuestTeam().getCity());\n if(match.getPlayed()) {\n pointsHometxt.setText(String.valueOf(match.getPointsHome()));\n pointsGuesttxt.setText(String.valueOf(match.getPointsGuest()));\n } else {\n pointsHometxt.setText(\"-\");\n pointsGuesttxt.setText(\"-\");\n }\n \n try{\n logoGuestlbl.setIcon(new ImageIcon(ImageIO.read(new File(match.getGuestTeam().getLogo())).getScaledInstance(200, 200, Image.SCALE_SMOOTH)));\n logoHomelbl.setIcon(new ImageIcon(ImageIO.read(new File(match.getHomeTeam().getLogo())).getScaledInstance(200, 200, Image.SCALE_SMOOTH)));\n \n } catch (IOException ex){\n System.out.println(\"immagine non esistente\");\n JOptionPane.showMessageDialog(null, \"immagine non esistente\");\n }\n }", "public void finalDisplay2()\n\t{\n\t\tString s1=null;\n\t\tint sum=0;\n\t\tint j;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tj=rowLabel[i];\t\t\t\n\t\t\tsum+=temp[i][j];\t\n\t\t}\n\t\ts1=\"There are multiple solutions with the cost of \"+sum;\n\t\tJTable t = new JTable();\n testTableMultiple(t,(2*noOfPeople)+2);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void cmdShowTeam(User teller, Team team) {\n Formatter msg = new Formatter();\n msg.format(\" Team %s:\\\\n\", team.getTeamCode());\n msg.format(\" %4s: %s\\\\n\", \"Name\", team.getRealName());\n msg.format(\" %4s: %s\\\\n\", \"Loc.\", team.getLocation());\n msg.format(\" %4s: %s\\\\n\", \"Web \", team.getWebsite());\n msg.format(\" %4s: %s\\\\n\", \"Div \", team.getDivision());\n msg.format(\" Team Members:\\\\n\");\n int indent = 0;\n for (Player player : team.getPlayers()) {\n int len = player.getHandle().length();\n if (len > indent) {\n indent = len;\n }\n }\n String fmt = \" %s\\\\n\";\n for (Player player : team.getPlayers()) {\n msg.format(fmt, player);\n }\n command.qtell(teller, msg);\n }", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}", "private void helperDisplayResults ()\r\n\t{\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\t//---- Check if the project is empty or not\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint indexImage = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\tif (indexImage >= 0 && indexImage < tableSize)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tint samplesCount = DataController.getTable().getElement(indexImage).getChannelCount();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < Math.min(samplesCount, FormMainPanelRight.TABLE_SIZE); i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//---- ABSOLUTE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tint featureCount = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellCount();\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCount, 0, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLength = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLength, 1, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensity = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsolutePixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensity, 2, i + 1);\r\n\r\n\t\t\t\t\t\t//---- RELATIVE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tdouble featureCountR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellCount() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCountR, 3, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLengthR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLengthR, 4, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensityR = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellPixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensityR, 5, i + 1);\r\n\r\n\t\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\t\tSensitivity sampleSensitivity = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getSensitivity();\r\n\r\n\t\t\t\t\t\tswitch (sampleSensitivity)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase RESISTANT: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"R\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase SENSITIVE: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"S\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase UNKNOWN: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"U\", 6, i + 1); break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor (int i = 0; i < FormMainPanelRight.TABLE_SIZE; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//---- ABSOLUTE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 0, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 1, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 2, i + 1);\r\n\r\n\t\t\t\t\t//---- RELATIVE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 3, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 4, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 5, i + 1);\r\n\r\n\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 6, i + 1);\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}", "public static void computeSummary() {\r\n\r\n String text = \"\\n\";\r\n\r\n //print the rank matrix\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|r\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i != j) {\r\n text += \"& \" + wilcoxonRanks[i][j];\r\n } else {\r\n text += \"& -\";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Ranks computed by the Wilcoxon test}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n //print the p-value matrix\r\n\r\n text = \"\\n\";\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|c\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n\r\n if (rows <= 50) {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n \r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n \r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n } else {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Summary of the Wilcoxon test. \\\\textbullet = \"\r\n + \"the method in the row improves the method of the column. \\\\textopenbullet = \"\r\n + \"the method in the column improves the method of the row. Upper diagonal of level significance $\\\\alpha=0.9$,\"\r\n + \"Lower diagonal level of significance $\\\\alpha=0.95$}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n text = \"\\n\";\r\n\r\n //print the summary table\r\n\r\n text += \"\\\\begin{table}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\begin{tabular}{\\n\";\r\n text += \"|c|c|c|c|c|}\\n\\\\hline\\n\";\r\n text += \"&\\\\multicolumn{2}{c|}{$\\\\alpha=0.9$} & \\\\multicolumn{2}{c|}{$\\\\alpha=0.95$}\\\\\\\\\\\\hline\\n\";\r\n text += \"Method & + & $\\\\pm$ & + & $\\\\pm$ \";\r\n\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i]+\" & \"+wins90[i]+\" & \"+draw90[i]+\" & \"+wins95[i]+\" & \"+draw95[i];\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}\\n\" + \"\\\\caption{Wilcoxon test summary results}\\n\";\r\n text += \"\\n\\\\end{table}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n }", "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 }", "private void statisticsReportList(int userGroupID) {\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"select * from reports where user_group_id=\" + userGroupID + \" order by week asc\");\n\t\t\t//create table\n\t\t\tout.println(\"<form name=\" + formElement(\"input\") + \" method=\" + formElement(\"post\")+ \">\");\n\t\t\tout.println(\"<h1>Time Reports - Statistics</h1>\");\n\t\t\tout.println(\"<p>Select time reports that you want to summerize and click view</p>\");\n\t\t out.println(\"<table border=\" + formElement(\"1\") + \">\");\n\t\t out.println(\"<tr><td>Selection</td><td>Last update</td><td>Week</td><td>Total Time</td><td>Signed</td></tr>\");\n\t\t int inWhile = 0; \n\t \tint nbrOfReports = 0;\n\t\t while(rs.next()){\n\t\t \tnbrOfReports++;\n\t\t \tinWhile = 1;\n\t\t \tString reportID = \"\"+rs.getInt(\"ID\");\n\t\t\t\tDate date = rs.getDate(\"date\");\n\t\t\t\tint week = rs.getInt(\"week\");\n\t\t\t\tint totalTime = rs.getInt(\"total_time\");\n\t\t\t\tint signed = rs.getInt(\"signed\");\n\t\t\t\t//print in box\n\t\t\t\tout.println(\"<tr>\");\n\t\t\t\tout.println(\"<td>\" + \"<input type=\" + formElement(\"checkbox\") + \" name=\" + formElement(\"reportIDs\"+nbrOfReports) +\n\t\t\t\t\t\t\" value=\" + formElement(reportID) +\"></td>\");\t\t//radiobutton\n\t\t\t\tout.println(\"<td>\" + date.toString() + \"</td>\");\n\t\t\t\tout.println(\"<td>\" + week + \"</td>\");\n\t\t\t\tout.println(\"<td>\" + totalTime + \"</td>\");\n\t\t\t\tout.println(\"<td>\" + signString(signed) + \"</td>\");\n\t\t\t\tout.println(\"</tr>\");\n\t\t\t}\n\t\t out.println(\"</table>\");\n\t\t out.println(\"<button type=\" + formElement(\"submit\") + \"name='submitStatistics' value=\"+ nbrOfReports +\">View </button>\");\n\t\t out.println(\"</form>\");\n\t\t if (inWhile == 0){\n\t\t \tout.println(\"No reports to show\");\n\t\t }\n\t\t} catch(SQLException e) {\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\t\n\t}", "public void updateTeamFromResults(Match m){\r\n \r\n //Update team1\r\n m.getTeam1().setGoalsFor(m.getTeam1().getGoalsFor() + m.getScore1());\r\n m.getTeam1().setGoalsAgainst(m.getTeam1().getGoalsAgainst() + m.getScore2());\r\n \r\n //Update team2\r\n m.getTeam2().setGoalsFor(m.getTeam2().getGoalsFor() + m.getScore2());\r\n m.getTeam2().setGoalsAgainst(m.getTeam2().getGoalsAgainst() + m.getScore1());\r\n \r\n //Add points\r\n if (m.getScore1() < m.getScore2()){\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 3);\r\n m.getTeam1().setMatchLost(m.getTeam1().getMatchLost() + 1);\r\n m.getTeam2().setMatchWon(m.getTeam2().getMatchWon() + 1);\r\n }\r\n else if (m.getScore1() > m.getScore2()){\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 3);\r\n m.getTeam2().setMatchLost(m.getTeam2().getMatchLost() + 1);\r\n m.getTeam1().setMatchWon(m.getTeam1().getMatchWon() + 1);\r\n }\r\n else {\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 1);\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 1);\r\n m.getTeam1().setMatchDrawn(m.getTeam1().getMatchDrawn() + 1);\r\n m.getTeam2().setMatchDrawn(m.getTeam2().getMatchDrawn() + 1);\r\n }\r\n \r\n //Update the rankings\r\n this.updateTeamRank();\r\n }", "@Override\n public void printStatistics(\n PrintStream out, Result result, ReachedSet reached) {\n Preconditions.checkNotNull(out);\n Preconditions.checkNotNull(result);\n // reached set can be NULL\n\n if (analysisTime.isRunning()) {\n analysisTime.stop();\n }\n if (programTime.isRunning()) {\n programTime.stop();\n }\n if (memStats != null) {\n memStatsThread.interrupt(); // stop memory statistics collection\n }\n\n // print CFA statistics\n printCfaStatistics(out);\n\n // print global time statistics\n printTimeStatistics(out);\n\n // print global memory statistics\n printMemoryStatistics(out);\n\n }", "public void createMatchesFrame() {\n int numBigs = this.matching.bigsPreferences.size();\n JTable origMatchesTable = new JTable(numBigs + 1, 3);\n JScrollPane pane = new JScrollPane(origMatchesTable);\n pane.setPreferredSize(new Dimension(500, 700));\n JFrame matchFrame = new JFrame(\"Matches\");\n JPanel matchPanel = new JPanel();\n\n origMatchesTable.setRowHeight(30);\n origMatchesTable.setValueAt(\"Big\", 0, 0);\n origMatchesTable.setValueAt(\"Little 1\", 0, 1);\n origMatchesTable.setValueAt(\"Little 2\", 0, 2);\n origMatchesTable.getColumnModel().getColumn(0).setPreferredWidth(70);\n origMatchesTable.getColumnModel().getColumn(1).setPreferredWidth(70);\n origMatchesTable.getColumnModel().getColumn(2).setPreferredWidth(70);\n\n matchPanel.setBorder(BorderFactory.createBevelBorder(2));\n matchPanel.setLayout((new FlowLayout()));\n matchPanel.add(pane);\n matchFrame.add(matchPanel, BorderLayout.CENTER);\n matchFrame.setTitle(\"Big Little Matching\");\n matchFrame.pack();\n matchFrame.setVisible(true);\n matchFrame.setSize(700, 700);\n matchPanel.setBorder(new EmptyBorder(20, 20, 20, 20));\n\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"Statistic\");\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 500, 350);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tdmodel = new DefaultTableModel();\n\t\tinitTable(dmodel);\n\n\t\ttable = new JTable();\n\t\ttable.setModel(dmodel);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(200);\n\n\t\tscrollPane = new JScrollPane(table);\n\t\tscrollPane.setBounds(27, 105, 438, 164);\n\t\tframe.getContentPane().add(scrollPane);\n\n\t\tlblStatistic = new JLabel(\"Statistic\");\n\t\tlblStatistic.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 22));\n\t\tlblStatistic.setBounds(207, 6, 88, 42);\n\t\tframe.getContentPane().add(lblStatistic);\n\n\t\tlblRevenueAtDate = new JLabel(\"Revenue at date\");\n\t\tlblRevenueAtDate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\tlblRevenueAtDate.setBounds(27, 77, 147, 16);\n\t\tframe.getContentPane().add(lblRevenueAtDate);\n\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\ttxtDate.setBounds(186, 73, 129, 20);\n\t\tframe.getContentPane().add(txtDate);\n\t\ttxtDate.setColumns(20);\n\n\t\tbtnSelectDate = new JButton(\"...\");\n\t\tbtnSelectDate.setBounds(327, 70, 27, 23);\n\t\tbtnSelectDate.addActionListener((e) -> {\n\t\t\tjframe = new JFrame();\n\t\t\ttxtDate.setText(new DatePickerUI(jframe).setPickedDate());\n\t\t\tdisplayStatistic(ProductsSales.getInstance());\n\t\t});\n\t\tframe.getContentPane().add(btnSelectDate);\n\n\t\tlblTotal = new JLabel(\"Total\");\n\t\tlblTotal.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tlblTotal.setBounds(51, 281, 71, 34);\n\t\tframe.getContentPane().add(lblTotal);\n\n\t\tlabelShowTotal = new JLabel(\"0.00\");\n\t\tlabelShowTotal.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tlabelShowTotal.setBounds(148, 281, 206, 30);\n\t\tlabelShowTotal.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(labelShowTotal);\n\n\t\tbtnClose = new JButton(\"Close\");\n\t\tbtnClose.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tbtnClose.setBounds(366, 281, 99, 34);\n\t\tbtnClose.addActionListener((e) -> {\n\t\t\tclose();\n\t\t});\n\t\tframe.getContentPane().add(btnClose);\n\t}", "public void displayForTeamA(int scoredisplay) {\n TextView scoreView = (TextView) findViewById(R.id.team_a_score);\n scoreView.setText(String.valueOf(scoredisplay));\n }", "private void actionStatisticalData() {\n String message = getStatisticalMsg(true);\n\n JOptionPane.showMessageDialog(null, message, \"Statistical data\",\n JOptionPane.PLAIN_MESSAGE);\n }", "@Override\n\tpublic void homeTeamScored(int points) {\n\t\t\n\t}", "public static void update_scoreboard2(){\n\t\t//Update score\n\tif(check_if_wicket2){\n\t\t\n\t\twicket_2++;\n\t\tupdate_score2.setText(\"\"+team_score_2+\"/\"+wicket_2);\n\t}\n\telse{\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\ttempshot2=PlayArena2.usershot2;\n\t\tteam_score_2=team_score_2+PlayArena2.usershot2;\n\t\treq=req-tempshot2;\n\t\t}\n\t\telse{\n\t\t\ttempshot2=PlayArena2.compshot2;\n\t\t\tteam_score_2=team_score_2+PlayArena2.compshot2;\n\t\t\treq=req-tempshot2;\n\t\t\t}\n\t\tif(req<0)\n\t\t{\treq=0;}\n\t\t\n\t\tupdate_score2.setText(\"\"+team_score_2+\"/\"+wicket_2);\n\t}\n\t// Overs update\n\tif(over_ball_2==5){\n\t\tover_ball_2=0;\n\t\tover_overs_2++;\n\t\tover_totalballs_2--;\n\t}\n\telse{\n\t\tover_ball_2++;\n\tover_totalballs_2--;}\n\tupdate_overs2.setText(\"\"+over_overs_2+\".\"+over_ball_2+\" (\"+PlayMode.overs+\")\");\n\t\n\t//Check if_first_inning_over\n\tif(over_overs_2==Integer.parseInt(PlayMode.overs) || wicket_2==3 || PlayBrain1.team_score_1<team_score_2)\n\t\t\t{\n\t\tif_second_inning_over=true;\n\t\treference2.add(PlayArena2.viewscore2);\n\t\t\t}\n\t\n\t\n\t//Needed update\n\t\t\tupdate_runrate2.setText(\"<html>NEED<br>\"+req+\"<br>OFF<br>\"+over_totalballs_2+\" <br>BALLS</html>\");\n\t\t}", "public int wins(String team) {\n return getTeamByName(team).wins;\r\n }", "void printStats();", "public void displayTable() {\n do { // this do-while loop gives the user the ability to view multiple potential earnings tables\r\n for (int i = 0; i < salesNumber.size(); i++) { //this loop shows the names of each salesman and displays with a numerical value\r\n System.out.println(salesName.get(i) + \" \" + (i + 1));\r\n }\r\n Scanner keyboard = new Scanner(System.in); //sets a keyboard scanner to wait for user input\r\n System.out.println(\"Please enter the number coresponding to the \" //prompts the user for a selection from the salesperson name table above\r\n + \"salesperson you would like to view potential commission for \");\r\n salesPersonSelection = (keyboard.nextInt() - 1); //sets the selection variable from user input\r\n tableMax = (salesNumber.get((int) salesPersonSelection) * tableMaxPercentage); // sets the table maximum value\r\n tableStep = salesNumber.get((int) salesPersonSelection); //establishes the incriments the table will use\r\n System.out.println(\"Potential compensation chart for: \" //shows the name of the selected salesperson\r\n + salesName.get((int) salesPersonSelection));\r\n System.out.println(); //blank line for user comfort\r\n System.out.print(\"Total sales \"); // table column header\r\n System.out.println(\"\\t\" + \"Total compensation\"); //table column header\r\n System.out.println(); //blank line for user comfort\r\n System.out.print(newFormat.format(salesNumber.get((int) salesPersonSelection))); //sets the first row based on current sales\r\n System.out.println(\"\\t\" + newFormat.format(salesCommission.get((int) salesPersonSelection))); //sets the first row based on current commission\r\n\r\n do { //fills the table\r\n tableStep = tableStep + tableIncrease; //establishes the incriments the table will use\r\n System.out.print(newFormat.format(tableStep)); //shows the next line of sales values\r\n if (tableStep < salesMinimum) { //this block looks for values that do \r\n potentialCompensation = baseSalary; //not meet minimum sales for commission\r\n }\r\n if (tableStep >= salesMinimum && tableStep < salesTarget) { //this block looks for values that \r\n potentialCompensation = baseSalary + (tableStep * commissionPercentage); //fall between the minimum and target sales values\r\n }\r\n if (tableStep >= salesTarget) { //this block looks for values that do\r\n potentialCompensation = baseSalary + (tableStep * acceleratedPercentage); //eceed the sales target value\r\n }\r\n System.out.println(\"\\t\" + newFormat.format(potentialCompensation)); //fills in the compensation side of the table\r\n } while (tableStep < tableMax); //ensures the table stops at the given max value\r\n System.out.println(\"Would you like to see another potential commission chart? y/n\"); //prompts the user to view additrional tables\r\n anotherChart = keyboard.next();\r\n } while (anotherChart.equals(\"y\")); //loops to the table beginning based on user input\r\n System.out.println(\"Thank you for using the commission calculator, good luck next year!\"); //program end, send off message\r\n }", "public void finalDisplay()\n\t{\n\t\tString s1=null;\n\t\tif(!yes)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tint j;\n\t\t\tSystem.out.println(\"Final Display algo1\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tj=rowLabel[i];\t\t\t\n\t\t\t\tSystem.out.println(j);\n\t\t\t\tsum+=temp[i][j];\t\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint sum=0;\n\t\t\tSystem.out.println(\"Final Display algo2\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(matrix[i][j]==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum+=temp[i][j];\n\t\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\t\tSystem.out.println(rowLabel[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\t\n\t\tJTable t = new JTable();\n testTable(t,noOfPeople+1);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void setGameDisplay(GameList gameList){\n String[][] m_data = new String[gameList.getLength()][3];\n int m_counter = 0;\n //iterates through the game list and sets the information at each column to the current games information\n for (Game g : (Iterable<Game>)gameList) {\n m_data[m_counter][0] = g.getTitle();\n m_data[m_counter][1] = g.getGenre();\n m_data[m_counter++][2] = g.getPublisher();\n\n Game m_tmpGame = new Game();\n m_tmpGame = g;\n m_searchResult.addGame(g); // adds the game to the searchResults List\n }\n //sets the table with basic information\n m_gameTable.setModel( new DefaultTableModel(\n m_data,\n new String[]{\"Title\", \"Genre\", \"Publisher\"}\n ));\n TableColumnModel columns = m_gameTable.getColumnModel();\n columns.getColumn(0).setMinWidth(0);\n m_gameTable.setAutoCreateRowSorter(true);\n }", "public void executeDisplaySearch(String indexfile, String queryString) {\n\t\tif (queryString.trim().length() < 1) {\n\t\t\tJOptionPane.showMessageDialog(this, \"No text given to seach!\", \"Search issues\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//System.out.println(\"going to open: \" + indexfile);\n\n\t\t\n\t\t\n\t\t//lets see if it exists at all:\n\t\tFile test = new File(indexfile);\n\t\tif (!test.exists()) {\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"No such index file present\\nAre you sure you have created an index file?\", \"Missing Index\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\tString minDate = new String(\"2020-11-11\");\n\t\tString MaxDate = new String(\"0000-00-00\");\n\t\tBusyWindow bw = new BusyWindow(\"Setup\", \"Adding results\",true);\n\t\ttry {\n\t\t\tSearcher searcher = new IndexSearcher(indexfile);\n\t\t\t//standardanalyser\n\t\t\tQueryParser qp = new QueryParser(\"contents\", analyzer);\n\t\t\tQuery query = qp.parse(queryString);\n\t\t\tSystem.out.println(\"Searching for: \" + query.toString(\"contents\"));\n\t\t\tdatecal.clear();\n\t\t\tresultHits = searcher.search(query);\n\t\t\tSystem.out.println(resultHits.length() + \" total matching documents\");\n\n\t\t\tbw.setMax(resultHits.length());\n\t\t\tbw.setVisible(true);\n\t\t\t// reset the table length\n\n\t\t\tresultTableModel.setRowCount(0);\n\n\t\t\tfor (int i = 0; i < resultHits.length(); i++) {\n\t\t\t\tbw.progress(i);\n\t\t\t\tVector rowvalue = new Vector();\n\t\t\t\tDocument doc = resultHits.doc(i);\n\t\t\t\tfloat score = resultHits.score(i);\n\t\t\t\tString path = doc.get(\"path\");\n\t\t\t\tString curDate = doc.get(\"Date\");\n\t\t\t\tdatecal.addDate(curDate);\n\t\t\t\tif (path != null) {\n\t\t\t\t\trowvalue.add(\"\" + score);\n\n\t\t\t\t\t// we need to get the date and subject from the db\n\t\t\t\t\t// based on the mailref encode in the path with a space\n\t\t\t\t\t// afterwards\n\t\t\t\t\tString mailref = doc.get(\"Mailref\");\n\t\t\t\t\trowvalue.add(curDate);\n\t\t\t\t\tif (compareDatesString(MaxDate, curDate) < 0) {\n\t\t\t\t\t\tMaxDate = curDate;\n\t\t\t\t\t} else if (compareDatesString(minDate, curDate) > 0) {\n\t\t\t\t\t\tminDate = curDate;\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tString data[][] = DBConnect.getSQLData(\"select subject from email where mailref = '\" + mailref\n\t\t\t\t\t\t\t\t+ \"'\");\n\n\t\t\t\t\t\tif (data.length > 0) {\n\t\t\t\t\t\t\trowvalue.add(data[0][0]);\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (SQLException see) {\n\t\t\t\t\t\tsee.printStackTrace();\n\n\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t}\n\n\t\t\t\t\trowvalue.add(mailref);\n\t\t\t\t\t// System.out.println(i + \". =\"+score+\"= \" +\n\t\t\t\t\t// doc.get(\"contents\").substring(0,20));//path );\n\t\t\t\t} else {\n\t\t\t\t\tString url = doc.get(\"url\");\n\t\t\t\t\tif (url != null) {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + url);\n\t\t\t\t\t\tSystem.out.println(\" - \" + doc.get(\"title\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + \"No path nor URL for this document\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\trowvalue.add(-1);\n\t\t\t\trowvalue.add(i);\n\t\t\t\tresultTableModel.addRow(rowvalue);\n\t\t\t}\n\n\t\t} catch (ParseException pe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem with query \" + queryString);\n\t\t\tpe.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem opening \" + indexfile);\n\t\t\tioe.printStackTrace();\n\n\t\t}\n\t\tbw.setVisible(false);\n\t\t// System.out.println(\"Max:\" + MaxDate + \" Min:\"+ minDate);\n\n\t\tm_status.setText(\"Number of results: \" + resultHits.length() + \" From \" + minDate + \" to \" + MaxDate);\n\n\t\tdatecal.setDateRange(minDate, MaxDate);\n\t\tdatecal.paintComponent(datecal.getGraphics());\n\n\t}", "public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint N = getN();\n\t\t\t\tint T = getT();\n\t\t\t\t\n\t\t\t\tStopwatch stopwatch = new Stopwatch();\n\t\t\t\tPercolationStats ps = new PercolationStats(N, T);\n\t\t\t\t\n\t\t\t\t// results of running PercolationStats object after passing N and T \n\t\t\t\t// N - size of the Table (N * N)\n\t\t\t\t// T - times object runs the simulation\n\t\t\t\tString runTime= \"\" + stopwatch.elapsedTime(); // gets run Time\n\t\t\t\tString mean = \t\"\" + ps.mean(); // gets Mean - look at Statistics\n\t\t\t\tString stddev = \"\" + ps.stddev(); // gets Standard Deviation\n\t\t\t\tString HiLo = \t\"\" + ps.confidenceLo() + \", \" + ps.confidenceHi(); // gets 95% confidence interval:\n\t\t\t\tResultScreenGUI result = new ResultScreenGUI(mean, stddev, HiLo, runTime);\n\t\t\t\tresult.pack();\n\t\t\t\tresult.setVisible(true);\n\t\t\t}", "public void displayForTeamA2(int scoredisplay) {\n TextView scoreView = (TextView) findViewById(R.id.team_a_score2);\n scoreView.setText(String.valueOf(scoredisplay));\n }", "@Override\n\tpublic void execute() {\n\t\tSystem.out.println(\"==STATISTICS FOR THE RESTAURANT==\");\n\t\tSystem.out.println(\"Most used Ingredients:\");\n\t\tmanager.printIngredients();\n\t\tSystem.out.println(\"Most ordered items:\");\n\t\tmanager.printMenuItems();\n\t\tSystem.out.println(\"==END STATISTICS==\");\n\t}", "private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }", "public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Add Player---\");\r\n\t\ttheTeam.teamToString();\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"--Top 20 Free Agents--\");\r\n\t\ttheLeague.getFreeAgents(20);\r\n\r\n\t\tint playerChoice;\r\n\t\tdo {\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\" 0 - Filter Free Agents by Position\");\r\n\t\t\t\tSystem.out.println(\" -1 - View All Free Agents\");\r\n\t\t\t\tSystem.out.println(\"1-\" + theLeague.playerList().size() + \" - Select a Player\");\r\n\t\t\t\tplayerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard);\r\n\t\t\t\t\r\n\t\t\t\tif (playerChoice == -1) {\r\n\t\t\t\t\ttheLeague.getFreeAgents();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (playerChoice == 0) {\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\t\tSystem.out.println(\"Which position would you like to view?\");\r\n\t\t\t\t\tSystem.out.println(\"1 - QB\");\r\n\t\t\t\t\tSystem.out.println(\"2 - WR\");\r\n\t\t\t\t\tSystem.out.println(\"3 - RB\");\r\n\t\t\t\t\tSystem.out.println(\"4 - TE\");\r\n\t\t\t\t\tswitch (Input.validInt(1, 4, keyboard)) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent QBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"QB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent WRs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"WR\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent RBs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"RB\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tSystem.out.println(\"\\n--Top 20 Free Agent TEs--\\n\");\r\n\t\t\t\t\t\ttheLeague.getFreeAgents(20, \"TE\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\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} while (playerChoice < 1);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (theLeague.playerList().get(playerChoice - 1).getIsOwned()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + \" is not available\");\r\n\t\t\t}\r\n\t\t} while (theLeague.playerList().get(playerChoice - 1).getIsOwned());\r\n\r\n\t\tPlayer thePlayer = theLeague.playerList().get(playerChoice - 1);\r\n\t\tthePlayer.setIsOwned();\r\n\t\ttheTeam.getRoster().add(thePlayer);\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"***\" + theTeam.getManagerName() + \" has added \" + thePlayer.playerToString() + \"***\");\r\n\t}", "public void displayEvent(String name, PrintWriter out, Connection con) {\r\n\r\n ResultSet rs = null;\r\n \r\n int year = 0;\r\n int month = 0;\r\n int day = 0;\r\n int act_hr = 0;\r\n int act_min = 0;\r\n int signUp = 0;\r\n int type = 0;\r\n int holes = 0;\r\n int max = 0;\r\n int size = 0;\r\n int guests = 0;\r\n int teams = 0;\r\n int c_month = 0;\r\n int c_day = 0;\r\n int c_year = 0;\r\n int c_time = 0;\r\n int c_hr = 0;\r\n int c_min = 0;\r\n \r\n String course = \"\";\r\n String format = \"\";\r\n String pairings = \"\";\r\n String memcost = \"\";\r\n String gstcost = \"\";\r\n String itin = \"\";\r\n String c_ampm = \"\";\r\n String act_ampm = \"\";\r\n String fb = \"\";\r\n \r\n //\r\n // Locate the event and display the content\r\n //\r\n try {\r\n\r\n PreparedStatement stmt = con.prepareStatement (\r\n \"SELECT * FROM events2b \" +\r\n \"WHERE name = ?\");\r\n\r\n stmt.clearParameters(); // clear the parms\r\n stmt.setString(1, name);\r\n rs = stmt.executeQuery(); // execute the prepared stmt\r\n\r\n if (rs.next()) {\r\n\r\n year = rs.getInt(\"year\");\r\n month = rs.getInt(\"month\");\r\n day = rs.getInt(\"day\");\r\n type = rs.getInt(\"type\");\r\n act_hr = rs.getInt(\"act_hr\");\r\n act_min = rs.getInt(\"act_min\");\r\n course = rs.getString(\"courseName\");\r\n signUp = rs.getInt(\"signUp\");\r\n format = rs.getString(\"format\");\r\n pairings = rs.getString(\"pairings\");\r\n size = rs.getInt(\"size\");\r\n max = rs.getInt(\"max\");\r\n guests = rs.getInt(\"guests\");\r\n memcost = rs.getString(\"memcost\");\r\n gstcost = rs.getString(\"gstcost\");\r\n c_month = rs.getInt(\"c_month\");\r\n c_day = rs.getInt(\"c_day\");\r\n c_year = rs.getInt(\"c_year\");\r\n c_time = rs.getInt(\"c_time\");\r\n itin = rs.getString(\"itin\");\r\n holes = rs.getInt(\"holes\");\r\n fb = rs.getString(\"fb\");\r\n\r\n } else { // name not found - try filtering it\r\n\r\n name = SystemUtils.filter(name);\r\n\r\n stmt.clearParameters(); // clear the parms\r\n stmt.setString(1, name);\r\n rs = stmt.executeQuery(); // execute the prepared stmt\r\n\r\n if (rs.next()) {\r\n\r\n year = rs.getInt(\"year\");\r\n month = rs.getInt(\"month\");\r\n day = rs.getInt(\"day\");\r\n type = rs.getInt(\"type\");\r\n act_hr = rs.getInt(\"act_hr\");\r\n act_min = rs.getInt(\"act_min\");\r\n course = rs.getString(\"courseName\");\r\n signUp = rs.getInt(\"signUp\");\r\n format = rs.getString(\"format\");\r\n pairings = rs.getString(\"pairings\");\r\n size = rs.getInt(\"size\");\r\n max = rs.getInt(\"max\");\r\n guests = rs.getInt(\"guests\");\r\n memcost = rs.getString(\"memcost\");\r\n gstcost = rs.getString(\"gstcost\");\r\n c_month = rs.getInt(\"c_month\");\r\n c_day = rs.getInt(\"c_day\");\r\n c_year = rs.getInt(\"c_year\");\r\n c_time = rs.getInt(\"c_time\");\r\n itin = rs.getString(\"itin\");\r\n holes = rs.getInt(\"holes\");\r\n fb = rs.getString(\"fb\");\r\n }\r\n }\r\n stmt.close();\r\n\r\n //\r\n // Create time values\r\n //\r\n act_ampm = \"AM\";\r\n\r\n if (act_hr == 0) {\r\n\r\n act_hr = 12; // change to 12 AM (midnight)\r\n\r\n } else {\r\n\r\n if (act_hr == 12) {\r\n\r\n act_ampm = \"PM\"; // change to Noon\r\n }\r\n }\r\n if (act_hr > 12) {\r\n\r\n act_hr = act_hr - 12;\r\n act_ampm = \"PM\"; // change to 12 hr clock\r\n }\r\n\r\n c_hr = c_time / 100;\r\n c_min = c_time - (c_hr * 100);\r\n\r\n c_ampm = \"AM\";\r\n\r\n if (c_hr == 0) {\r\n\r\n c_hr = 12; // change to 12 AM (midnight)\r\n\r\n } else {\r\n\r\n if (c_hr == 12) {\r\n\r\n c_ampm = \"PM\"; // change to Noon\r\n }\r\n }\r\n if (c_hr > 12) {\r\n\r\n c_hr = c_hr - 12;\r\n c_ampm = \"PM\"; // change to 12 hr clock\r\n }\r\n\r\n //\r\n // Build the html page\r\n //\r\n out.println(SystemUtils.HeadTitle(\"Member Event Information\"));\r\n out.println(\"<body bgcolor=\\\"#FFFFFF\\\" text=\\\"#000000\\\">\");\r\n out.println(\"<font face=\\\"Arial, Helvetica, Sans-serif\\\"><center>\");\r\n\r\n out.println(\"<table border=\\\"0\\\" valign=\\\"top\\\">\"); // table for main page\r\n out.println(\"<tr><td align=\\\"center\\\" valign=\\\"top\\\">\");\r\n out.println(\"<font size=\\\"3\\\">\");\r\n out.println(\"Event: <b>\" + name + \"</b>\");\r\n out.println(\"</font></td></tr>\");\r\n out.println(\"<tr><td align=\\\"left\\\">\");\r\n out.println(\"<font size=\\\"2\\\"><br><br>\");\r\n out.println(\"<b>Date:</b>&nbsp;&nbsp; \" + month + \"/\" + day + \"/\" + year);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n if (act_min < 10) {\r\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":0\" + act_min + \" \" + act_ampm);\r\n } else {\r\n out.println(\"<b>Time:</b>&nbsp;&nbsp; \" + act_hr + \":\" + act_min + \" \" + act_ampm);\r\n }\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n if (type != 0) {\r\n out.println(\"<b>Type:</b>&nbsp;&nbsp; Shotgun<br><br>\");\r\n } else {\r\n out.println(\"<b>Type:</b>&nbsp;&nbsp; Tee Times<br><br>\");\r\n }\r\n\r\n if (!course.equals( \"\" )) {\r\n\r\n out.println(\"<b>Course:</b>&nbsp;&nbsp; \" + course);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n }\r\n\r\n out.println(\"<b>Front/Back Tees:</b>&nbsp;&nbsp; \" + fb + \"<br><br>\");\r\n\r\n out.println(\"<b>Format:</b>&nbsp;&nbsp; \" + format + \"<br><br>\");\r\n out.println(\"<b>Pairings by:</b>&nbsp;&nbsp; \" + pairings);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b># of Teams:</b>&nbsp;&nbsp; \" + max);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Team Size:</b>&nbsp;&nbsp; \" + size);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Holes:</b>&nbsp;&nbsp; \" + holes + \"<br><br>\");\r\n out.println(\"<b>Guests per Member:</b>&nbsp;&nbsp;\" + guests);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Cost per Guest:</b>&nbsp;&nbsp;\" + gstcost);\r\n out.println(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\");\r\n out.println(\"<b>Cost per Member:</b>&nbsp;&nbsp;\" + memcost + \"<br><br>\");\r\n \r\n if (signUp != 0) { // if members can sign up\r\n\r\n if (c_min < 10) {\r\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":0\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\r\n } else {\r\n out.println(\"<b>Must Sign Up By:</b>&nbsp;&nbsp; \" + c_hr + \":\" + c_min + \" \" + c_ampm + \" on \" + c_month + \"/\" + c_day + \"/\" + c_year);\r\n }\r\n out.println(\"<br><br>\");\r\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\r\n\r\n out.println(\"<br><br>\");\r\n out.println(\"To register for this event click on the <b>Events</b> tab after closing this window.<br>\");\r\n \r\n } else {\r\n \r\n \r\n out.println(\"<b>Itinerary:</b>&nbsp;&nbsp; \" + itin + \"<br>\");\r\n out.println(\"<br><br>\");\r\n out.println(\"Online sign up was not selected for this event.\");\r\n }\r\n out.println(\"</font></td></tr>\");\r\n out.println(\"<tr><td align=\\\"center\\\">\");\r\n out.println(\"<font size=\\\"2\\\">\");\r\n //\r\n // End of HTML page\r\n //\r\n out.println(\"<p align=\\\"center\\\"><br><form>\");\r\n out.println(\"<input type=\\\"button\\\" value=\\\"CLOSE\\\" onClick='self.close();'>\");\r\n out.println(\"</form></p>\");\r\n out.println(\"</font></td>\");\r\n out.println(\"</tr></table>\");\r\n out.println(\"</center></font></body></html>\");\r\n out.close();\r\n \r\n }\r\n catch (Exception exc) {\r\n out.println(SystemUtils.HeadTitle(\"Database Error\"));\r\n out.println(\"<BODY><CENTER>\");\r\n out.println(\"<BR><BR><H3>Database Access Error</H3>\");\r\n out.println(\"<BR><BR>Sorry, we are unable to access the database at this time.\");\r\n out.println(\"<BR>Error:\" + exc.getMessage());\r\n out.println(\"<BR><BR>Please try again later.\");\r\n out.println(\"<BR><BR>If problem persists, contact your golf shop (provide this information).\");\r\n out.println(\"<br><br><form>\");\r\n out.println(\"<input type=\\\"button\\\" value=\\\"Close\\\" onClick='self.close();'>\");\r\n out.println(\"</form>\");\r\n out.println(\"</center></font></body></html>\");\r\n out.close();\r\n }\r\n }", "private void show() {\n System.out.println(team.toString());\n }" ]
[ "0.6037499", "0.5885667", "0.58504146", "0.58293", "0.5824716", "0.5810977", "0.57742447", "0.5773918", "0.5730185", "0.57255125", "0.56881964", "0.5645831", "0.55943716", "0.5588604", "0.558631", "0.5568965", "0.55385214", "0.55239415", "0.55230045", "0.55209845", "0.5489656", "0.5460976", "0.54081494", "0.5400047", "0.53753966", "0.5374558", "0.53193635", "0.5316196", "0.5314591", "0.531414", "0.52946204", "0.5291661", "0.5268929", "0.52638936", "0.52611715", "0.5251537", "0.52176297", "0.5181004", "0.5151266", "0.514841", "0.5146539", "0.51415163", "0.51413476", "0.5137951", "0.51136404", "0.50816834", "0.5065901", "0.50651604", "0.50634456", "0.50405663", "0.50384825", "0.50336045", "0.50246745", "0.50231975", "0.5020943", "0.5013903", "0.5005758", "0.50047886", "0.500453", "0.5002205", "0.499968", "0.4997127", "0.49953225", "0.49813154", "0.4978274", "0.49779308", "0.4971386", "0.49674076", "0.49666595", "0.49549824", "0.49509913", "0.49494576", "0.4943279", "0.4938306", "0.49346852", "0.49297163", "0.49178588", "0.49135125", "0.48976365", "0.48892972", "0.4882919", "0.4877276", "0.48766074", "0.48705423", "0.48601824", "0.48561606", "0.48406097", "0.48399934", "0.4839431", "0.48391712", "0.48367044", "0.4834189", "0.48305744", "0.48303434", "0.48281702", "0.48211205", "0.48183545", "0.48166248", "0.48156154", "0.4812334" ]
0.7311282
0
This method takes in a parameter of 'teamName' as it must be able to access the name of the team that is being searched for. A connection is then created between the SQLite database 'users' and the Java program and a statement is initialised. The method then checks the database to see whether there is an entry in the database that has the same value as the name of the team that is being searched for. If there is then the boolean value of true is returned, if there is not then the boolean value of false is returned.
public boolean findTeam(String teamName) throws SQLException { Connection conn = DriverManager.getConnection("jdbc:sqlite:users"); Statement stmt = conn.createStatement(); String SQL = "select * from leaguestandings where TeamName = '" + teamName + "';"; ResultSet rset = stmt.executeQuery(SQL); if (rset.next()) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkUserame(String name) throws SQLException {\n\t\tcheckUserameStatement.clearParameters();\n\t\tcheckUserameStatement.setString(1, name);\n\t\tResultSet result = checkUserameStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkUserame: \"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}", "public boolean userNameExists(){\r\n boolean userNameExists = false;\r\n //reads username and password\r\n String user = signup.getUsername();\r\n String pass = signup.getFirstPassword();\r\n try{\r\n //creates statement\r\n //connects to database\r\n \r\n Connection myConn = DriverManager.getConnection(Main.URL); \r\n \r\n //creates statement\r\n Statement myStmt = myConn.createStatement();\r\n System.out.println(\"statement initiated\");\r\n //SQL query\r\n ResultSet myRs = myStmt.executeQuery(\"select * from LISTOFUSERS \");\r\n System.out.println(\"query initiated\");\r\n //process result set\r\n //checks to see if the username already exists in the database\r\n while (myRs.next()){\r\n System.out.println(\"check\");\r\n if(user.equals(myRs.getString(\"USERNAME\"))){\r\n \r\n userNameExists = true;\r\n break;\r\n }\r\n }\r\n myConn.close();\r\n \r\n \r\n \r\n } catch (Exception e) \r\n {\r\n System.err.println(e.getMessage());\r\n } \r\n return userNameExists; \r\n }", "public static int findByName(String teamName) throws DALException {\n\n\t\t\t\t\tConnection cnx = null;\n\t\t\t\t\tPreparedStatement pstmt = null;\n\t\t\t\t\tResultSet rs = null;\n\t\t\t\t\tint idTeam = 0;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Connection DB\n\t\t\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_NAME_TEAM);\n\t\t\t\t\t\tpstmt.setString(1, teamName);\n\t\t\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (rs.next()) {\n\t\t\t\t\t\t\tidTeam = rs.getInt(\"idTeams\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\tthrow new DALException(\"Problem - search teams By Name - TeamDAO - Request : \"+pstmt+ \" \" + e.getMessage());\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\t\t\trs.close();\n\t\t\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\t\t\tcnx.close();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn idTeam;\n\n\t\t\t\t}", "public boolean userExists(String user){\n boolean answer = false;\n //look into the database\n try{\n statement = connection.createStatement();\n //execute SQL query and get the data from the database\n ResultSet myResult = statement.executeQuery(\"SELECT name FROM members WHERE name = '\" + user +\"'\");\n while (myResult.next()) {\n if (myResult.getString(\"name\")!= null)\n //name exists so answer = true\n answer = true;\n }\n\n }catch (SQLException ex){ex.printStackTrace();}\n return answer;\n }", "public abstract boolean existsPlayerInGame(String username, int game_id) throws SQLException;", "boolean hasTeam();", "public abstract boolean existsGame2(String username) throws SQLException;", "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}", "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 }", "@Test\n public void userNameExists ()throws SQLException {\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost/users\", \"root\", \"tech\");\n Statement stmt= (Statement) conn.createStatement();\n sql = \"SELECT * FROM user WHERE userName='\"+uName+\"'\";\n rs = stmt.executeQuery(sql);\n \n while(rs.next()){\n uName=rs.getString(\"username\");\n }\n \n boolean exists=false;\n if(uName==null){\n System.out.println(\"Username does not exist!\");\n exists=false;\n assertTrue(exists=false);\n //return exists;\n }\n System.out.println(\"Username already exists!\");\n exists=true;\n assertTrue(exists=true);\n //return exists;\n }", "public boolean findUserBYName(String name);", "public boolean checkStudent(String name) {\n\n // array of columns to fetch\n String[] columns = {\n COLUMN_FIRSTNAME\n };\n SQLiteDatabase db = this.getReadableDatabase();\n\n // selection criteria\n String selection = COLUMN_FIRSTNAME + \" = ?\";\n\n // selection argument\n String[] selectionArgs = {name};\n\n // query user table with condition\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]';\n */\n Cursor cursor = db.query(TABLE_USERLIST, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n int cursorCount = cursor.getCount();\n cursor.close();\n db.close();\n\n if (cursorCount > 0) {\n return true;\n }\n\n return false;\n }", "@Override\n\tpublic boolean checkUsername(String userName) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tStatement userCheck = connectionService.getConnection().createStatement();\n\t\t\t//userCheck.executeQuery(\"SELECT name FROM players WHERE name='\" + userName + \"';\");\n\t\t\t\n\t\t\tResultSet rs = userCheck.executeQuery(\"SELECT username FROM players WHERE username='\" + userName + \"';\");\n\t\t\t\n\t\t\tif (rs.next()) {\n\t\t\t\t\n\t\t\t\t//if (!rs.getString(\"\")\n\t\t\t\t\t\n\t\t\t\t\t//connectionService.finalize();\n\t\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t//connectionService.finalize();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Exception: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t}", "public boolean checkUserName(TextField userName) {\n String userNameSQL = \"SELECT * FROM user WHERE user_name = ? \";\n ResultSet rsUser;\n boolean username_exists = false;\n\n\n try {\n\n PreparedStatement userPST = connection.prepareStatement(userNameSQL);\n userPST.setString(1, userName.getText());\n rsUser = userPST.executeQuery();\n\n if (rsUser.next()) {\n username_exists = true;\n outputText.setStyle(\"-fx-text-fill: #d33232\");\n outputText.setText(\"Username Already Exists\");\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n return username_exists;\n\n }", "Team findByName(String name);", "public boolean nameExists(String name){\n //What is going to return\n boolean result = true;\n \n //Values to do the query\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n \n \n \n try{\n //The process goes here...\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\n \"jdbc:mysql://localhost:3306/process_checkout\",\"root\",\"\"\n );\n \n String query = \"SELECT * FROM area WHERE name = (?)\";\n \n ps = conn.prepareStatement(query);\n ps.setString(1, name);\n rs = ps.executeQuery();\n result = rs.next();\n \n }catch(SQLException e){\n \n } catch (ClassNotFoundException ex) {\n \n }finally{\n try {\n if(rs != null)rs.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(ps != null)ps.close();\n } catch (SQLException e) {\n /* ignored */ }\n try {\n if(conn != null)conn.close();\n } catch (SQLException e) {\n /* ignored */ }\n }\n //What is going to return goes here...\n return result;\n \n }", "private static void search_by_name() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project Name: \");\r\n\t\t\tString project_name = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_name, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project name cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "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}", "public boolean checkCredentials(String inputLogin, String inputPassword) {\n //creates boolean variable flag and defines it as True\n boolean flag = false;\n //defines Connection con as null\n Connection con = MainWindow.dbConnection();\n try {\n //tries to create a SQL statement to retrieve values of a User object from the database\n String query = \"SELECT * FROM User WHERE userID = '\" + inputLogin + \"' AND password = '\" + inputPassword + \"';\";\n Statement statement = con.createStatement();\n ResultSet result = statement.executeQuery(query);\n /*\n if statement compares data entered by user with data in the database. If there is such data in the database\n users credentials are put into MainWindow variables and defines flag variable as True\n */\n if(result.getString(\"userID\").equals(inputLogin) && result.getString(\"password\").equals(inputPassword)) {\n flag = true;\n MainWindow.userLastName = result.getString(\"lastName\");\n MainWindow.userFirstName = result.getString(\"firstName\");\n MainWindow.userID = inputLogin;\n MainWindow.userPassword = inputPassword;\n }//end if statement\n } catch (Exception e) {\n //catches exceptions and show message about them\n System.out.println(e.getMessage());\n }//end try/catch\n //checks if Connection con is equaled null or not and closes it.\n MainWindow.closeConnection(con);\n return flag;\n }", "public static boolean login(String userName, String password){\n boolean found = false;\n Connection connection = SQLiteConnection.dbConnection();\n ResultSet rs = null;\n try {\n Statement stmt = connection.createStatement();\n rs = stmt.executeQuery(\"SELECT * FROM Users\");\n while (rs.next()) {\n if (rs.getString(\"UserName\").equals(userName) && rs.getString(\"Password\").equals(password)){\n Login.signIn(rs.getRow());\n found = true;\n break;\n }\n }\n stmt.close();\n rs.close();\n connection.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n return found;\n\n }", "public abstract boolean existsGameRequest(int game_id, String username1, String username2) throws SQLException;", "public static boolean existPlayer(String name) throws SQLException, BaseDeDonnéesExcetion, ClassNotFoundException {\r\n Connection conn = null;\r\n String query = \"SELECT * FROM PokerPlayer2 WHERE name = ?\";\r\n try {\r\n conn = DriverManagerP.getConnection();\r\n PreparedStatement preparedStmt = conn.prepareStatement(query);\r\n preparedStmt.setString(1, name);\r\n ResultSet result = preparedStmt.executeQuery();\r\n if (result.next()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } catch (SQLException e) {\r\n throw new SQLException(\" impossible to find player \" + name + \" \" + e.getMessage());\r\n }\r\n\r\n }", "private boolean checkUser(String user_name, String passwordd) throws SQLException {\n boolean sucss = false;\n DBConnection db = new DBConnection();\n Connection connection = db.getConnection();\n String sql = \"SELECT * FROM USER WHERE NAME = ? AND PASSWORD = ?\";\n try (PreparedStatement preparedStatement = connection.prepareStatement(sql);) {\n preparedStatement.setString(1, user_name);\n preparedStatement.setString(2, passwordd);\n ResultSet rs = preparedStatement.executeQuery();\n if (rs.next()) {\n System.out.println(rs.getString(\"name\"));\n System.out.println(rs.getString(\"password\"));\n sucss = true;\n }\n } catch (SQLException e) {\n System.out.println(\"User Is Not Insert\" + e);\n } finally {\n connection.close();\n return sucss;\n }\n }", "@Override\n public boolean containsNameProfesor(String Name) {\n try {\n Entity retValue = null; \n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT * FROM persona where nombre = ?\");\n\n pstmt.setString(1, Name);\n\n rs = pstmt.executeQuery();\n\n if (rs.next()) {\n return true; \n } \n \n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "private void testUserName(){\r\n\t\t//get user with the 'test' userName\r\n\t\tString command = \"SELECT userName FROM users \"\r\n\t\t\t\t+ \"WHERE userName = \\\"\" + commandList.get(1) + \"\\\";\";\r\n\t\tSystem.out.println(command);//print command\r\n\t\ttry {//send command\r\n\t\t\trs = stmt.executeQuery(command);\r\n\t\t\t\r\n\t\t\tif(rs.next()){//if it returns user, userName exists\r\n\t\t\t\tout.println(\"exists\");\r\n\t\t\t} else {//no results returned, empty\r\n\t\t\t\tout.println(\"free\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tout.println(e.getMessage());//send back error message\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public boolean checkUser(String name) {\n String[] columns = {\n PDF_NAME\n };\n SQLiteDatabase db = this.getReadableDatabase();\n\n // selection criteria\n String selection = PDF_NAME + \" = ?\";\n\n // selection argument\n String[] selectionArgs = {name};\n\n // query user table with condition\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]';\n */\n Cursor cursor = db.query(TABLE_NAME, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n int cursorCount = cursor.getCount();\n cursor.close();\n db.close();\n\n if (cursorCount > 0) {\n return true;\n }\n\n return false;\n }", "private boolean checkLogin(String name, String password) throws SQLException {\n\t\tcheckLoginStatement.clearParameters();\n\t\tcheckLoginStatement.setString(1, name);\n\t\tcheckLoginStatement.setString(2, password);\n\t\tResultSet result = checkLoginStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkLogin:\"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}", "private boolean checktrainnum(String trainname){\n \n boolean tname_exist = false;\n \n try {\n String query = \"SELECT * FROM `traininfo` WHERE `trainNum` = ?\";\n st = con.prepareStatement(query);\n st.setString(1,trainname);\n ResultSet rs = st.executeQuery();\n System.out.println(\"checkk\\n\");\n \n if(rs.next())\n {\n tname_exist = true;\n System.out.println(\"train name true\\n\");\n \n }\n \n } catch (HeadlessException | SQLException ex) {\n System.out.println(\"checkTrainname\\n\");\n }\n \n return tname_exist;\n }", "String checkTrueDetails() throws JSONException \n {\n String result;\n DataBaseConnection db= new DataBaseConnection();\n db.connectToDB();\n try {\n if (db.checkIfExist(db.checkUser,usernameJsn ))\n {\n String userPassword= db.findValue(usernameJsn, \"USERNAME\",\"PASSWORD\",\"PLAYERS\");\n if (userPassword.equals(passwordJsn))\n result= \"Success\";\n else\n result= \"WRONG PASSWORD\";\n }\n \n else result= \"user doesn't exist\";\n } catch (SQLException ex) {\n Logger.getLogger(LoginUser.class.getName()).log(Level.SEVERE, null, ex);\n result=\"error\";\n }\n db.closeDBConnection();\n return result;\n }", "public boolean check(String name){\n SQLiteDatabase db=this.getWritableDatabase();\n Cursor cursor = null;\n String sql =\"SELECT 1 FROM \"+TABLE_NAME+\" WHERE \" + COL32 + \"='\" + name + \"'\";\n cursor= db.rawQuery(sql,null);\n //Log(\"Cursor Count : \" + cursor.getCount());\n\n if(cursor.getCount()>0){\n cursor.close();\n return false;\n }else{\n cursor.close();\n return true;\n }\n //cursor.close();\n }", "public boolean isThisMyFriend2(String username){\n boolean isFriend=true;\n try{\n database=dbH.getReadableDatabase();\n dbH.openDataBase();\n query=\"SELECT * FROM Friend WHERE Username='\"+username+\"'\";\n cursor = database.rawQuery(query,null);\n cursor.moveToFirst();\n if(cursor.getCount()==0)\n isFriend=false;\n cursor.close();\n dbH.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n Log.i(TAG,\"Is \"+username+\" your friend? \"+isFriend);\n return isFriend;\n\n }", "@Test\n\tvoid test1() throws SQLException {\n\t\tString username_1 = \"testtest1\";\n\t\tboolean actual_1 = database.isExistUser(username_1);\n\t\tboolean expected_1 = false;\n\t\tassertEquals(expected_1,actual_1);\n\t\t\n\t\tString username_2 = \"testtest4\";\n\t\tboolean actual_2 = database.isExistUser(username_2);\n\t\tboolean expected_2 = true;\n\t\tassertEquals(expected_2,actual_2);\n\t}", "@Override\n @Transactional\n public boolean updateTeam(Team team) {\n String sql = \"UPDATE Team SET teamname = ? WHERE teamid = ?\";\n return jdbc.update(sql, team.getName(), team.getId()) > 0;\n }", "private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }", "public boolean searchCertainItem(String itemname, String tableName)\n {\n String selectStr;\n ResultSet rs;\n try{\n\n selectStr=\"SELECT \"+itemname+\" FROM \"+tableName;\n rs = stmt.executeQuery(selectStr);\n\n while (rs.next())\n {\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return false;\n\n }", "public static boolean exists(String kingdomName) {\n try {\n java.sql.PreparedStatement s = QuartzKingdoms.DBKing.prepareStatement(\"SELECT * FROM Kingdoms WHERE KingdomName=?;\");\n s.setString(1, kingdomName);\n ResultSet res2 = s.executeQuery();\n if (res2.next()) {\n return true;\n } else {\n return false;\n }\n } catch (SQLException e) {\n e.printStackTrace();\n return false;\n }\n }", "public String login(String name, String password){\n String message =\"\";\n boolean password_verified = false;\n try {\n statement = connection.createStatement();\n //execute SQL query and get the data from the database\n ResultSet myResult = statement.executeQuery(\"SELECT name,password FROM members WHERE name = '\" + name +\"'\");\n while (myResult.next()) {\n //compare password with hashed password\n String stored_hash = myResult.getString(\"password\");\n password_verified = BCrypt.checkpw(password, stored_hash);\n }\n if(password_verified)\n message =\"success\";\n else\n message=\"Account name or Password wrong!\";\n\n\n }catch (SQLException ex){\n ex.printStackTrace();}\n\n\n return message;\n }", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public Boolean find(String searchThis) {\n try{\n Statement statement = con.createStatement();\n ResultSet resultSet = statement.executeQuery(searchThis);\n int i = 0;\n while (resultSet.next()) {\n i++;\n if (i >= 1) {\n break;\n }\n }\n return i == 0 ? false : true;\n }\n catch (SQLException e) {\n //e.printStackTrace();\n }\n return false;\n }", "@Override\n public boolean SearchSQL() {\n\n /*\n appunto su query.next()\n inizialmente query.next è posto prima della prima riga\n alla prima chiaata si posiziona sulla prima row\n alla seconda chiamata si posiziona sulla seconda row e cosi via\n */\n\n boolean controllo = false;\n\n openConnection();\n\n String sql =\"select user,pass,vol_o_cand from pass where user='\"+userInserito+\"'\";\n ResultSet query = selectQuery(sql);\n\n try {\n\n if(query.next()){\n\n String pass = query.getString(\"pass\");\n\n if(pass.equals(passInserita)) {\n controllo = true;\n volocand = query.getString(\"vol_o_cand\");\n }\n\n }\n\n\n }catch(SQLException se){\n se.printStackTrace();\n }finally{\n closeConnection();\n }\n\n\n return controllo;\n\n }", "public int getTeamIdByPlayerName(String pName) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamIdByPlayerNameRecords_sql = \"SELECT idTeam FROM \" + player_table + \" WHERE name='\" + pName + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdByPlayerNameRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(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 id;\n\t}", "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 boolean friendExists(String account_name, String friend){\n boolean answer = false;\n try {\n statement = connection.createStatement();\n ResultSet myResult = statement.executeQuery(\"SELECT * FROM \"+account_name+\" WHERE friend='\"\n +friend+\"'\");\n while (myResult.next()){\n if (myResult.getString(\"friend\").equals(friend)){\n //friend exists, so set answer true\n answer = true;\n }\n }\n }catch (SQLException ex) {ex.printStackTrace();}\n return answer;\n }", "@Test\n public void testGetUser() throws Exception {\n //tests that the given user is in the database\n //by feeding the query a preset name, in this case,\n //\"Thomas\" and verifying that it returns the same name\n System.out.println(\"getUser\");\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost/users\", \"root\", \"tech\");\n Statement stmt= (Statement) conn.createStatement();\n sql = \"SELECT * FROM user WHERE userName='\"+uName+\"'\";\n rs = stmt.executeQuery(sql);\n while (rs.next()){\n assertTrue(rs.getString(\"userName\").equals(uName));\n assertFalse(rs.getString(\"userName\").equals(\"thuff\"));\n //u.testLogonSuccses();\n //assertTrue(u.uName.equals(uName)); \n }\n //u.testLogonSuccses();\n }", "@Override\n public boolean userExists(String name){\n\n String sql = \"SELECT count(*) FROM users WHERE name=?\";\n int count = jdbcTemplate.queryForObject(sql, Integer.class, name);\n if(count == 0) {\n return false;\n } else {\n return true;\n }\n\n }", "public static boolean createNewLeague(LeagueBean l) {\r\n\t\t\r\n\t\tboolean status = false;\t\t\t\t\t// Status of createNewUser\r\n\t\tConnection conn = null;\t\t\t\t\t// DB Connection\r\n\t\tPreparedStatement insertNewLeague = null;\r\n\t\tint result = 0;\r\n\r\n\t\t// Connect to Database \r\n\t\ttry {\r\n\t\t\tconn = ConnectionManager.getConnection();\r\n\t\t\tinsertNewLeague = conn.prepareStatement(\"INSERT INTO league (leagueName, leaguePlayoffs, leaguePlayoffTeams, leagueStatus) VALUE (?,?,?,?)\");\r\n\t\t\tinsertNewLeague.setString(1, l.getLeagueName());\r\n\t\t\tinsertNewLeague.setString(2, l.getLeaguePlayoffs());\r\n\t\t\tinsertNewLeague.setString(3, l.getLeaguePlayoffTeams());\r\n\t\t\tinsertNewLeague.setString(4, l.getLeagueStatus());\r\n\t\t\t\r\n\t\t\tresult = insertNewLeague.executeUpdate();\r\n\t\t\tif(result == 1) {\r\n\t\t\t\tstatus = true;\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\r\n\t\t// Catch all possible Exceptions\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(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.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (insertNewLeague != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinsertNewLeague.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t \r\n\t\treturn status;\r\n\t}", "public abstract boolean existsGame(int game_id) throws SQLException;", "public String getUser(String userName){\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor=database.query(\"admin\", null, \" username=?\", new String[]{userName}, null, null, null);\n if(cursor.getCount()<1) // UserName Not Exist\n {\n cursor.close();\n return \"NOT EXIST\";\n }\n cursor.moveToFirst();\n String username= cursor.getString(cursor.getColumnIndex(\"username\"));\n cursor.close();\n return username;\n}", "public static boolean getLeagueForEdit(LeagueBean l) {\r\n\t\tboolean status = false;\t\t\t\t\t// Status of createNewUser\r\n\t\tConnection conn = null;\t\t\t\t\t// DB Connection\r\n\t\tPreparedStatement getLeague = null;\t\t// SQL query\r\n\t\tResultSet rs = null;\t\t\t\t\t// returned query result set\r\n\r\n\t\t// Connect to Database \r\n\t\ttry {\r\n\t\t\tconn = ConnectionManager.getConnection();\r\n\t\t\tgetLeague = conn.prepareStatement(\"SELECT leagueName, leaguePlayoffs, leaguePlayoffTeams, leagueStatus from league WHERE leagueId=?\");\r\n\t\t\tgetLeague.setString(1, l.getLeagueId());\r\n\t\t\trs = getLeague.executeQuery();\r\n\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tl.setLeagueName(rs.getString(1));\r\n\t\t\t\tl.setLeaguePlayoffs(rs.getString(2));\r\n\t\t\t\tl.setLeaguePlayoffTeams(rs.getString(3));\r\n\t\t\t\tl.setStatus(rs.getString(4));\r\n\t\t\t\tstatus = true;\r\n\t\t\t}\r\n\r\n\t\t// Catch all possible Exceptions\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(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.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (getLeague != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tgetLeague.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t \r\n\t\treturn status;\r\n\t}", "private static boolean verificaUser(String username) {\n String user = null;\r\n try {\r\n PreparedStatement stmt = c.prepareStatement(\"SELECT * FROM utilizador where nome=?;\");\r\n stmt.setString(1, username);\r\n ResultSet rs = stmt.executeQuery();\r\n rs.next();\r\n user = rs.getString(\"nome\");\r\n if (user.equals(username)) {\r\n return true;\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n return false;\r\n }", "Boolean checkUserExists(String userName) throws AppException;", "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 boolean isCompanyNameExists(String companyName) throws Exception {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n\n try {\n //Establish a connection from the connection manager\n connection = JdbcUtils.getConnection();\n\n //Creating the SQL query\n String sqlStatement = \"SELECT company_name FROM companies WHERE company_name = ?\";\n\n //Combining between the syntax and our connection\n preparedStatement = connection.prepareStatement(sqlStatement);\n\n //Replacing the question marks in the statement above with the relevant data\n preparedStatement.setString(1, companyName);\n\n //Executing the update\n ResultSet result = preparedStatement.executeQuery();\n\n if (result == null) {\n return false;\n } else return true;\n\n } catch (Exception e) {\n throw new Exception(\"Query failed\", e);\n } finally {\n //Closing the resources\n JdbcUtils.closeResources(connection, preparedStatement);\n }\n }", "public boolean checkDb() {\n\t\t\n\t\tint userId = Auth.getCurrentUser().getId();\n\t\tString sql = \"select id from PersonalDetails where id='\"+userId+\"'\";\n\t\tint gotId;\n\t\t//connectToDb();\n\t\t\n\t\ttry(Connection conn = myDb;\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(sql)){\n\t\t\tgotId = rs.getInt(\"id\");\n\t\t}catch(SQLException e){\n\t\t\t\n\t\t\tmyDb = null;\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(gotId == userId) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\t//return false;\n\t\t\treturn false;\n\t\t}\n\n\t}", "public static User login(User user) {\n\n //preparing some objects for connection \n Statement stmt = null;\n //assigning passed username and password to the local variables\n String username = user.getUsername();\n String password = user.getPassword();\n //actual quesry that will search fo the username and password combination in the users table\n String searchQuery = \"select * from users where UserName='\" + username + \"' AND Password='\" + password + \"'\";\n\n // \"System.out.println\" prints in the console; Normally used to trace the process\n System.out.println(\"Your user name is \" + username);\n System.out.println(\"Your password is \" + password);\n System.out.println(\"Query: \" + searchQuery);\n\n try {\n //connect to DB \n currentCon = ConnectionManager.getConnection();\n //DB statemanet\n stmt = currentCon.createStatement();\n //DB result set\n rs = stmt.executeQuery(searchQuery);\n //if anything retrned result set will not be empty and more variable set to true\n boolean more = rs.next();\n //if more is fale, it implies that the user does not exist in the databse\n if (!more) {\n //displaying the error on the screen\n System.out.println(\"Sorry, you are not a registered user! Please sign up first\");\n //setting user id to 0 informing the user controller that user was not found\n user.setUserId(0);\n }\n //if more equals true, the user was found\n else if (more) {\n //storing fullname of the user retrieved from db\n String fullname = rs.getString(\"FullName\");\n //storing id of the user retrieved from db\n int userId = rs.getInt(\"UserId\");\n //storing greeting of the user retrieved from db\n String greeting = rs.getString(\"Greeting\");\n //displaying greeting and full name to the console\n System.out.println(greeting + \" \" + fullname);\n //replacing empty full name in the user object that was passed as a parameter\n user.setFullName(fullname);\n //replacing empty greeting in the user object that was passed as a parameter\n user.setGreeting(greeting);\n //replacing empty full name in the user object that was passed as a parameter\n user.setUserId(userId);\n }\n }\n //catching exception if any and displaying the error stack trace\n catch (Exception ex) {\n System.out.println(\"Log In failed: An Exception has occurred! \" + ex);\n }\n\n //some exception handling\n //closing the database connection\n finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (Exception e) {\n }\n rs = null;\n }\n\n if (stmt != null) {\n try {\n stmt.close();\n } catch (Exception e) {\n }\n stmt = null;\n }\n\n if (currentCon != null) {\n try {\n currentCon.close();\n } catch (Exception e) {\n }\n\n currentCon = null;\n }\n }\n //returnig the updated user object if the user found or unchanged instance if not\n return user;\n }", "public static boolean userExist(String username){\n boolean exist = false;\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(\"RDS_HOST\",\"RDS_USERNAME\",\"RDS_PASSWORD\");\n String query = \"SELECT username FROM users WHERE username = ?\";\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1,username);\n resultSet = preparedStatement.executeQuery();\n if(resultSet.next()){\n exist = true;\n }\n\n }\n finally {\n close();\n return exist;\n }\n }", "@Override\n public boolean doesTableExist(String table_name) {\n\n // silently return if connection is closed\n if (!is_open) {\n return false;\n }\n\n // loop through list of tables in metadata and check for table name\n try {\n DatabaseMetaData md = connection.getMetaData();\n\n // retrieve all of the tables from the connection edu.wpi.cs3733d18.teamS.database\n ResultSet rs = md.getTables(null, null, \"%\", null);\n\n while (rs.next()) {\n // table name is the third entry in the table object\n String extractedName = rs.getString(3).toLowerCase();\n\n if (extractedName.equals(table_name.toLowerCase())) {\n //System.out.println(\"Table with name \" + tableName + \" found!\");\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"Table could not be found.\");\n e.printStackTrace();\n }\n\n // default return\n return false;\n\n }", "public boolean checkUser(String mail) {\n String[] selectionArgs = {mail};\n String selectionString = \"SELECT * FROM \" + UserDBHelper.TABLE_NAME + \" WHERE \" + UserDBHelper.COLUMN_EMAIL + \" = ?\";\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectionString,selectionArgs);\n\n if (cursor.getCount() > 0) {\n cursor.close();\n db.close();\n return true;\n }\n else{\n cursor.close();\n db.close();\n return false;\n }\n\n }", "public static Boolean isUser(String username){\n connect();\n try{\n String queryCheck = \"SELECT u.username \" +\n \"FROM User u \" +\n \"WHERE u.username=?\";\n ps = conn.prepareStatement(queryCheck);\n ps.setString(1,username);\n rs = ps.executeQuery();\n if(rs.next()){\n return true;\n }\n }catch(SQLException sqle){\n System.out.println(\"SQLException in function \\\" getData\\\": \");\n sqle.printStackTrace();\n }finally{\n close();\n }\n return false;\n }", "ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "boolean exists(String userName);", "public boolean checkUsername(String name) {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"SELECT count(*) FROM users where username = '\" + name + \"'\");\r\n\t\t\treturn rs.first();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean userNameExist(String username);", "private int checkUserExists(String name)\r\n\t{\r\n\t\tfor (int i = 0; i < numOfUsers; i++)\r\n\t\t{\r\n\t\t\tif (name.equals(userAccounts[0][i]))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public static synchronized int checkVerification(String userName){\n\t\t\tConnection connection;\n\t\t \tint valid = 1;\n\t\t \tPreparedStatement statement=null;\n\t\t\tString preparedSQL = \"SELECT Validated FROM Credential WHERE Email = ?\";\n\t\t\t\n\t\t try{\n\t\t \tconnection=DBConnector.getConnection();\n\t\t \tstatement = connection.prepareStatement(preparedSQL);\n\t\t \tstatement.setString(1, userName);\n\t\t\t\tResultSet rs = statement.executeQuery();\n\t\t\t\tif(rs.next()){\n\t\t\t\t\tvalid = rs.getInt(1);\n\t\t\t\t}\t\n\t\t\t\trs.close();\t\t\n\t\t\t\tstatement.close();\n\t\t\t\tconnection.close();\n\t\t\t\t\n\t\t\t}catch (SQLException ex){\n\t\t\t\t\tSystem.out.println(\"Error: \" + ex);\n\t\t\t\t\tSystem.out.println(\"Query: \" + statement.toString());\n\t\t\t\t\tvalid = 1;\n\t\t\t\t}\t\n\t\t\treturn valid;\n\t}", "public boolean nickExists(String nick) throws DAOException;", "private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }", "public boolean userExists(String name,String pass)throws SQLException {\r\n\t\tResultSet rs;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tString query = \"SELECT username,password FROM lpro.users WHERE username=? AND password=?\";\r\n\t\ttry {\r\n\t\t\tstmt = con.prepareStatement(query);\r\n\t\t\tstmt.setString(1, name);\r\n\t\t\tstmt.setString(2, pass);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\tcon.commit();\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tString username = rs.getString(\"username\");\r\n\t\t\t\tString password = rs.getString(\"password\");\r\n\t\t\t\tif(username.equals(name) && pass.equals(password))\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Error accessing database: \"+e.getMessage());\r\n\t\t\tcon.rollback();\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t\tfinally {\r\n\t\t\tif(stmt!=null)\r\n\t\t\t\tstmt.close();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public int getTeamIdByName(String name) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamIdByNameRecords_sql = \"SELECT id FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdByNameRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(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 id;\n\t}", "public Student checkStu(String name) throws Exception {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql:///stuu\",\n\t\t\t\t\"root\", \"root\");\n\t\tPreparedStatement ps = con\n\t\t\t\t.prepareStatement(\"SELECT * from student where sname=?\");\n\t\tps.setString(1, name);\n\t\tResultSet rs = ps.executeQuery();\n\t\tStudent stu = null;\n\t\twhile(rs.next()){\n\t\t\t stu = new Student(rs.getInt(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6));\n\t\t}\n\t\trs.close();\n\t\tps.close();\n\t\tcon.close();\n\t\treturn stu;\n\t}", "public boolean existRunway(Runway runway, String spaceport) throws SQLException {\r\n connection();\r\n String select = \"select * from runway where number='\" + runway.getNumber() + \"' and spaceport = '\"+spaceport+\"'\";\r\n Statement st = conexion.createStatement();\r\n ResultSet rs = st.executeQuery(select);\r\n boolean existe = false;\r\n if (rs.next()) {\r\n existe = true;\r\n }\r\n rs.close();\r\n st.close();\r\n disconnect();\r\n return existe;\r\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 }", "boolean login(String userName, String password) {\n RatAppModel.checkInitialization();\n String getUsersText = \"SELECT * FROM users WHERE username=?\";\n ResultSet results;\n boolean loginStatus;\n try {\n PreparedStatement statement = db.getStatement(getUsersText);\n statement.setString(1, userName);\n results = db.query(statement);\n if (!results.next()) {\n // No entries in DB for passed in username\n results.close();\n loginStatus = false;\n } else {\n String dbPass = results.getString(\"password\");\n int salt = results.getInt(\"salt\");\n String hashPass = hasher.getSecurePassword(Integer.toString(salt),\n password);\n if (dbPass.equals(hashPass)) {\n //Log.i(\"login\", \"auth success\");\n loginStatus = true;\n String profileName = results.getString(\"profileName\");\n String address = results.getString(\"homeLocation\");\n boolean isAdmin = results.getBoolean(\"isAdmin\");\n currentUser = new User(userName, profileName, address, isAdmin);\n } else {\n //Log.i(\"login\", \"auth failed\");\n loginStatus = false;\n }\n results.close();\n }\n return loginStatus;\n } catch (SQLException e) {\n Log.e(\"login\", e.getMessage());\n return false;\n }\n }", "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 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 boolean checkEmail(TextField email) {\n String emailSQL = \"SELECT * FROM user WHERE email = ?\";\n ResultSet rsEmail;\n boolean email_exists = false;\n\n\n try {\n\n PreparedStatement emailPST = connection.prepareStatement(emailSQL);\n emailPST.setString(1, email.getText());\n rsEmail = emailPST.executeQuery();\n\n if (rsEmail.next()) {\n email_exists = true;\n outputText.setStyle(\"-fx-text-fill: #d33232\");\n outputText.setText(\"Email Already Used\");\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n return email_exists;\n\n }", "public boolean doesGroupsTableExist() {\r\n\r\n\t\t// Variable Declarations\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\r\n\t\ttry {\r\n\t\t\t// Connect to Database\r\n\t\t\tClass.forName(JDBC_DRIVER);\r\n\t\t\tconn = DriverManager.getConnection(DATABASE, USER, PASS);\r\n\r\n\t\t\t// Create SQL Statement\r\n\t\t\tString sql = \"SELECT name FROM sqlite_master\";\r\n\t\t\tstmt = conn.prepareStatement(sql);\r\n\r\n\t\t\t// Get ResultSet by Column Name\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString tName = rs.getString(\"name\");\r\n\t\t\t\tif (tName.equals(\"groups\")) {\r\n\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\t// Handle Errors for JDBC\r\n\t\t\tse.printStackTrace();\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// Handle Errors for Class\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t// Close Resources\r\n\t\t\ttry {\r\n\t\t\t\tif (stmt != null)\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t} catch (SQLException se2) {\r\n\t\t\t} // Nothing to do\r\n\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException se) {\r\n\t\t\t\tse.printStackTrace();\r\n\t\t\t} // End Finally Try/Catch\r\n\t\t} // End Try/Catch\r\n\r\n\t\treturn false;\r\n\t}", "public boolean checkLoginEntry(String name,int pin) {\n SQLiteDatabase db1 = this.getReadableDatabase();\n // SELECT * FROM expense WHERE id = ?;\n String selectQuery = \"SELECT * FROM \" + TABLE_LOGIN + \" WHERE \" + KEY_PIN + \" = \" + pin + \" AND \" + KEY_USERNAME + \" = \" +\"'\"+name+\"'\";\n Log.d(TAG, selectQuery);\n Cursor c = db1.rawQuery(selectQuery, null);\n if (c.getCount() ==1 ) {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean insertUser(){\n\n //Look if the user exist already.\n boolean existAlready = false;\n if(!this.userName.equals(\"\") && !this.password.equals(\"\"))\n existAlready = tryConnection(this.userName,this.password);\n if(existAlready == true)\n return (false);\n\n //ID cant be set BY the program, it has to be pull out from database\n //Compare the userName and the password in the database then return the ID\n //SQLite Query, need to change the name of variable for the proper field\n String insertUserQuery = \"INSERT INTO UserAccount (userName, password, firstName, lastName, dateOfBirth)\" +\n \" VALUES(\\\"\" +\n this.userName + \"\\\",\\\"\" +\n this.password + \"\\\",\\\"\" +\n this.firstName + \"\\\",\\\"\" +\n this.lastName + \"\\\",\\\"\" +\n this.dateOfBirth + \"\\\")\";\n\n //Try / catch because when connection to database there is possible problem\n try {\n //Make sure there is an username and password\n if(!this.userName.equals(\"\") && !this.password.euqals(\"\"){\n //This has to be changed for database handler\n boolean result = false;\n \n if(result)//Make sure that it got pushed properly\n {\n //Get the ID from the database after the push was succesful\n if(tryConnection(this.userName,this.password))\n return(true);//Connection successful\n }\n }\n }\n //If something went wrong with the database(lost connection or other thing)\n catch(Exception ex)\n {\n return(false);\n }\n return(false);//Connection unsuccessful\n }", "public Boolean checkusername( String username){\n SQLiteDatabase sdb = this.getReadableDatabase();\n Cursor cursor = sdb.rawQuery(\"Select * from user where username=?\",new String[]{username});\n if(cursor.getCount()>0) {\n return false;\n }\n else {\n return true;\n }\n }", "public boolean tryConnection(String userName, String password){\n //ID cant be set BY the program, it has to be pull out from database\n //Compare the userName and the password in the database then return the ID\n //SQLite Query, need to change the name of variable for the proper field\n String getUserQuery = \"SELECT userID FROM UserAccount WHERE userName=\\\"\" + userName +\n \"\\\" and userPassword=\\\"\" + password + \"\\\"\";\n\n //Try / catch because when connection to database there is possible problem\n try {\n //This has to be changed for database handler\n boolean resultExist = true;//Get the result of database\n int result = 0;\n\n if(resultExist)//Look if there is 1 result, if so put the ID of the user in ID\n {\n this.ID = result;\n this.userName = userName;\n this.password = password;\n return(true);//Connection successful\n }\n }\n //If something went wrong with the database(lost connection or other thing)\n catch(Exception ex)\n {\n return(false);\n }\n return(false);//Connection unsuccessful\n }", "public boolean isUsernameTaken(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname;\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if(uname.equals(username)) {\n return true;\n }\n } while (cursor.moveToNext());\n }\n\n return false;\n }", "public boolean searchCertainItem(String itemname, String tableName, String columnName)\n {\n String selectStr;\n ResultSet rs;\n try{\n\n selectStr=\"SELECT \"+itemname+\" FROM \"+tableName+\" WHERE \"+ columnName+\" = \"+quotate(itemname);\n rs = stmt.executeQuery(selectStr);\n\n while (rs.next())\n {\n return true;\n }\n }catch(Exception e){\n System.out.println(\"Error occurred in searchLogin\");\n }\n\n return false;\n\n }", "private boolean checkLogin(String username, String passwordMD5) {\n try {\n Statement stmt = GUITracker.conn.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * from account where username='\" + username + \"' and password='\" + passwordMD5 + \"'\");\n if (rs.next()) {\n //iduser = rs.getInt(\"Id\");\n return true;\n } else {\n return false;\n } \n \n// if ((username.equals(usernamePeer)) && (passwordMD5.equals(passwordPeer))) {\n// return true;\n// } else {\n// return false;\n// }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }", "boolean checkLoginDetails(String email,String password){\n boolean isValidUser = false;\n dbConnection();\n try{\n stmt = con.prepareStatement(\"SELECT * FROM users ORDER BY email\");\n rs = stmt.executeQuery();\n while(rs.next()){\n String checkEmail = rs.getString(\"email\");\n String checkpassword = rs.getString(\"password\");\n if(checkEmail.equals(email) && checkpassword.equals(password)){\n isValidUser = true;\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n return isValidUser;\n }", "public boolean checkUserExists(String username) {\n boolean exists = false;\n try {\n conn = dao.getConnection();\n ps = conn.prepareStatement(\"SELECT * FROM USERS WHERE USERNAME=?\");\n ps.setString(1, username);\n\n ResultSet rs = ps.executeQuery();\n\n // rs.next() is false if the set is empty\n exists = rs.next();\n\n // close stuff\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return exists;\n }", "boolean loginUser(String email,String password){\n boolean checkUserDetails = checkLoginDetails(email,password);\n boolean userExists = false;\n if(checkUserDetails){\n try{\n userExists =true;\n stmt = con.prepareStatement(\"UPDATE users SET userStatus = ? WHERE email = ?\");\n stmt.setBoolean(1,true);\n stmt.setString(2,email);\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n }\n return userExists;\n }", "private boolean checkLogin(String enterLogin) {\n JdbcConnection connection = JdbcConnection.getInstance();\n DaoFactory daoFactory = new RealDaoFactory(connection);\n List<User> users = daoFactory.createUserDao().findAll();\n for (User user : users) {\n if (user.getLogin().equals(enterLogin)) {\n return true;\n }\n }\n return false;\n }", "public Boolean namenumber(String name , String number){\n SQLiteDatabase sqLiteDatabase = this.getReadableDatabase();\n Cursor cursor = sqLiteDatabase.rawQuery(\"Select * from user where name =? and number=?\",new String[]{name,number});\n if(cursor.getCount()>0) return true;\n else return false;\n\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 Boolean checkmate(String number){\n SQLiteDatabase sqLiteDatabase = this.getReadableDatabase();\n Cursor cursor = sqLiteDatabase.rawQuery(\"Select * from user where number =?\",new String[]{number});\n if(cursor.getCount()>0) return false;\n else return true;\n\n }", "public static boolean availabilityCheck(String userName,String userEmail)\n\t{\n\t\ttry\n\t\t{\n\t\t\tString queryToExecute = \"select username , email from users \"\n\t\t\t\t\t+ \" where username=\\\"\"+userName+\"\\\" ;\";//need more advanced verifying system , gotta complete this stuff as soon as I'll come back\n\t\t\t\n\t\t\tquery = statement.executeQuery(queryToExecute);\n\t\t\t\n\t\t\tString userNameToCheck =\"\";\n\t\t\tString userEmailToCheck =\"\";\n\t\t\t\n\t\t\twhile(query.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tuserNameToCheck = query.getString(\"username\");\n\t\t\t\tuserEmailToCheck = query.getString(\"email\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"DB side :\"+userNameToCheck);\n\t\t\t\n\t\t\tString queryToExecute2 = \"select email from users where email=\\\"\"+userEmail+\"\\\" ;\";\n\t\t\t\n\t\t\tquery = statement.executeQuery(queryToExecute2);\n\t\t\t\n\t\t\tString emailVerifying =\"\";\n\t\t\t\n\t\t\twhile(query.next())\n\t\t\t{\n\t\t\t\temailVerifying = query.getString(\"email\");\n\t\t\t}\n\t\t\t\n\t\t\tif(userNameToCheck.trim().length() == 0 || userEmailToCheck.trim().length() ==0)\n\t\t\t{\n\t\t\t\tif(emailVerifying.trim().length() == 0)\n\t\t\t\t{\n\t\t\t\t return true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t return\tfalse;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(SQLException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }", "public abstract boolean existsGamewithParams(int game_id, int numberOfWerewolves, boolean hasWitch, boolean hasFortuneTeller, boolean hasLittleGirl, boolean hasCupid, boolean hasHunter) throws SQLException;", "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 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 boolean checkLogin() {\r\n try {\r\n String select = \"SELECT * FROM LOGIN\";\r\n ResultSet rs = model.ConnectToSql.select(select);\r\n while (rs.next()) {\r\n if (this.username.equals(rs.getString(1)) && new MD5().md5(this.password).equals(rs.getString(2))) {\r\n this.fullname = rs.getString(4);\r\n this.codeID = rs.getString(3);\r\n model.ConnectToSql.con.close();\r\n return true;\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n //e.printStackTrace();\r\n\r\n }\r\n return false;\r\n }", "public int open(String name)\n {\n \n for(int i=0; i<accounts.size(); i++)\n {\n if(accounts.get(i).getName().equals(name))\n {\n accounts.get(i).open();\n //found = true;\n //break;\n return 0;\n }\n }\n \n for(int i=0; i<employees.size(); i++)\n {\n if(employees.get(i).get_name().equals(name))\n {\n employees.get(i).open();\n //found = true;\n //break;\n return 1;\n }\n }\n// if(!found)\n// {\n// System.out.println(\"User Not Found\");\n// }\n// System.out.println(\"User Not Found\");\n return -1;\n }", "private boolean nameEntry() {\n EditText nameField = (EditText) findViewById(R.id.batman_identity);\n String batmanIdentity = nameField.getText().toString();\n\n if (batmanIdentity.equalsIgnoreCase(\"bruce wayne\")) {\n return true;\n }\n\n return false;\n\n }", "@Override\n\tpublic boolean isHaveThisName(String name) {\n\t\tsql=\"select * from news_sort where sort_name=?\";\n\t\tDBUtil db =new DBUtil(sql);\n\t\ttry {\n\t\t\tdb.ps.setString(1,name);\n\t\t\trs=db.ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\trs.close();\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\tdb.close();\n\t\t}\n\t\treturn false;\n\t\n\t}" ]
[ "0.64998305", "0.6470523", "0.6362144", "0.62755644", "0.612209", "0.6118029", "0.6113675", "0.6078949", "0.6055894", "0.60247105", "0.5979351", "0.5927571", "0.58899623", "0.5856582", "0.58328646", "0.5818586", "0.58057004", "0.5776965", "0.5776288", "0.5763593", "0.56802905", "0.5652162", "0.5616043", "0.5614919", "0.55871826", "0.5582633", "0.5579526", "0.5525749", "0.5506259", "0.5463938", "0.54594153", "0.54503924", "0.5443105", "0.54369426", "0.5427416", "0.54199046", "0.5418069", "0.54170847", "0.54003453", "0.539678", "0.53831047", "0.53667486", "0.53550684", "0.53346694", "0.53167343", "0.5312419", "0.5298127", "0.5291382", "0.52753687", "0.5268551", "0.52575654", "0.52568734", "0.5250862", "0.52423596", "0.524209", "0.5234458", "0.52254134", "0.5224758", "0.52226424", "0.52222854", "0.5219185", "0.52134967", "0.52129716", "0.52085036", "0.52076876", "0.5193182", "0.5192421", "0.51898235", "0.5180273", "0.5180264", "0.5169718", "0.51689684", "0.5162426", "0.51621085", "0.51571757", "0.5155558", "0.5147712", "0.5147418", "0.51390743", "0.5135788", "0.513494", "0.513226", "0.513205", "0.5130481", "0.5130376", "0.51302487", "0.5125685", "0.51256734", "0.5123749", "0.5119226", "0.51163304", "0.5116061", "0.5108377", "0.50982416", "0.5097117", "0.5094678", "0.509255", "0.50905263", "0.50790113", "0.5073432" ]
0.80128825
0
TODO Autogenerated method stub
@Override public void onActionMove(float x, float y) { }
{ "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 onActionDown(float x, float y) { }
{ "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 onActionMove(float x, float y) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onActionDown(float x, float y) { }
{ "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 onActionMove(float x, float y) { }
{ "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 onActionDown(float x, float y) { }
{ "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 onCloseAction() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", "0.6076905", "0.6041205", "0.6024897", "0.60200036", "0.59985113", "0.5967729", "0.5967729", "0.5965808", "0.5949083", "0.5941002", "0.59236866", "0.5909713", "0.59030116", "0.589475", "0.58857024", "0.58837134", "0.586915", "0.58575684", "0.5850424", "0.5847001", "0.5824116", "0.5810248", "0.5809659", "0.58069366", "0.58069366", "0.5800507", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.5792168", "0.57900196", "0.5790005", "0.578691", "0.578416", "0.578416", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5774115", "0.5761079", "0.57592577", "0.57592577", "0.5749888", "0.5749888", "0.5749888", "0.5748457", "0.5733414", "0.5733414", "0.5733414", "0.57209575", "0.57154554", "0.57149583", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.57140404", "0.571194", "0.57043016", "0.56993437", "0.5696782", "0.5687825", "0.5677794", "0.5673577", "0.5672046", "0.5669512", "0.5661156", "0.56579345", "0.5655569", "0.5655569", "0.5655569", "0.56546396", "0.56543446", "0.5653163", "0.56502634" ]
0.0
-1
private static int nextUniqueId = 0;
public Customer(String firstName, String lastName, LocalDateTime dob, String emailAddress, int customerID, String temporaryCustomerID, boolean loyaltyMember, boolean joinLoyaltyScheme, int loyaltyPointsNumber, String password, String username) { super(firstName, lastName, dob, emailAddress); this.customerID = customerID; this.temporaryCustomerID = temporaryCustomerID; this.loyaltyMember = loyaltyMember; this.joinLoyaltyScheme = joinLoyaltyScheme; this.loyaltyPointsNumber = loyaltyPointsNumber; this.password = password; this.username = username; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int nextID() {\r\n\t\treturn ID++;\r\n\t}", "private int nextValidID() {\n return nextId++;\n }", "private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }", "int nextId();", "static synchronized int nextID() {\n\t\treturn g_nID++;\n\t}", "private static int generateId() {\n\t\treturn ++sId;\n\t}", "private long generateID() {\n\t\treturn ++lastID;\n\t}", "String getUniqueId();", "String getUniqueID();", "public int getUniqueID() { \n return -1;\n }", "private static int generateMarkerId(){\n return snextMarkerId.incrementAndGet();\n\n }", "private static int generateCircleId(){\n return snextCircleId.incrementAndGet();\n\n }", "private synchronized long nextId() {\n\t\treturn ++curID;\n\t}", "private static synchronized String getNextID() {\r\n\t\tlastID = lastID.add(BigInteger.valueOf(1));\r\n\t\t\r\n\t\treturn lastID.toString();\r\n\t}", "public String getUniqueID();", "protected int generateUniqueId() {\n\t\tint id = super.getUniqueId();\n\t\tsuper.setUniqueId(getUniqueId() + 1);\n\t\treturn id;\n\t}", "public String getNextID() {\n String id = \"am\" + Integer.toString(nextID);\n nextID++;\n return id;\n }", "public static void resetId() {\r\n nextid=1;\r\n }", "UUID getUniqueId();", "public int generateUniqueID(){\n\n int uniqueID = 100; \n int maxID =getMaxId() ;\n \n uniqueID = uniqueID + maxID;\n\n return uniqueID;\n }", "private static long newId() {\n return REQUEST_ID.getAndIncrement();\n }", "public String getUniqueID ( ) { return _uniqueID; }", "public String getUniqueId() {\n return _uniqueId;\n }", "@Override\n\tpublic native final String createUniqueId() /*-{\n // In order to force uid's to be document-unique across multiple modules,\n // we hang a counter from the document.\n if (!this.gwt_uid) {\n this.gwt_uid = 1;\n }\n\n return \"gwt-uid-\" + this.gwt_uid++;\n\t}-*/;", "public abstract ID nextId();", "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "private static long getGlobalId() {\n return globalId++;\n }", "private static String getUniqueId()\n\t{\n\t\tfinal int limit = 100000000;\n\t\tint current;\n\t\tsynchronized (DiskFileItem.class)\n\t\t{\n\t\t\tcurrent = counter.nextInt();\n\t\t}\n\t\tString id = Integer.toString(current);\n\n\t\t// If you manage to get more than 100 million of ids, you'll\n\t\t// start getting ids longer than 8 characters.\n\t\tif (current < limit)\n\t\t{\n\t\t\tid = (\"00000000\" + id).substring(id.length());\n\t\t}\n\t\treturn id;\n\t}", "private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }", "public void generateID()\n {\n ID = this.hashCode();\n }", "public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "public static void resetValidID() {\n nextId = 0;\n }", "public static int generateUniqueId(){\r\n String returnme = GregorianCalendar.getInstance().getTimeInMillis() + \"\";\r\n return Integer.parseInt(returnme.substring(returnme.length() - 9, returnme.length()));\r\n }", "protected abstract long getNextID(long ID);", "private static String localUnique(){\n\t\tfinal long counterValue = instanceCounter.getAndIncrement();\n\t\tString unique = uniqueTop + String.format(\"%08d\", counterValue);\n\t\treturn unique;\t\t\n\t}", "private static synchronized String getNextRequestId()\n {\n if (++nextRequestId < 0)\n {\n nextRequestId = 0;\n }\n String id = Integer.toString(nextRequestId);\n return id;\n }", "private int IdRandom() {\n\t\tRandom random = new Random();\n\t\tint id = random.nextInt(899999) + 100000;\n\t\treturn id;\n\t}", "private int generateSessionId(){\n int id;\n do{\n id = smIdGenerator.nextInt(50000);\n }while(mSessionMap.containsKey(id));\n\n Log.i(TAG, \"generating session id:\" + id);\n return id;\n }", "private Integer getUniqueId(Object object) {\n/* 89 */ Integer id = this.idCache.get(object);\n/* 90 */ if (id == null) {\n/* 91 */ id = Integer.valueOf(this.uidGenerator.incrementAndGet());\n/* 92 */ Integer existing = this.idCache.putIfAbsent(object, id);\n/* 93 */ if (existing != null) {\n/* 94 */ return existing;\n/* */ }\n/* */ } \n/* 97 */ return id;\n/* */ }", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "String createUniqueID(String n){\n String uniqueID =UUID.randomUUID().toString();\n return n + uniqueID;\n }", "private String generateUniqueIdString() {\r\n return TimeBasedUUID.getUUIDAsString();\r\n }", "@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }", "@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }", "String uniqueId();", "private UniqueIdentifier(){\n\t\t\n\t}", "public int hashCode() {\n/* 781 */ return getUniqueId().hashCode();\n/* */ }", "private String getRandomUniqueId() {\r\n return \"WEBSOCKET.\" + new Random().nextInt(100);\r\n }", "public int generateId(){\n return repository.getCount()+1;\n }", "long getNextSequenceNumber();", "private long getNextSequenceNumber() {\n return System.nanoTime();\n }", "public static int genID(){\n Random rand = new Random();\n\n int theID = rand.nextInt(999)+1;\n\n return theID;\n\n }", "static String generateId() {\r\n\t\treturn UUID.randomUUID().toString().replaceAll(\"-\", \"\");\r\n\t}", "private static int nextHashCode() {\n return nextHashCode.getAndAdd(HASH_INCREMENT);\n }", "private static Integer generateID() {\n Integer uniqueID = -1;\n while (setOfIDs.contains(uniqueID) || !Employee.isPositive(uniqueID)) {\n uniqueID += 1;\n }\n return uniqueID;\n }", "private static int getNextID() {\n return persons.get(persons.size() - 1).getId() + 1;\n }", "static int getUniqueID(Object obj) {\n return obj.hashCode();\n }", "long nextUniqueKey() throws IOException;", "private static int generateViewId() {\n for (;;) {\n final int result = sNextGeneratedId.get();\n // aapt-generated IDs have the high byte nonzero; clamp to the range under that.\n int newValue = result + 1;\n if (newValue > 0x00FFFFFF) newValue = 1; // Roll over to 1, not 0.\n if (sNextGeneratedId.compareAndSet(result, newValue)) {\n return result;\n }\n }\n }", "public synchronized long getNextTransactionID(){\n\t\treturn this.id++;\n\t}", "public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "public String getNextId() {\n while (!isIdFree(this.nextId)) {\n this.nextId += 1;\n }\n return Integer.toString(this.nextId);\n }", "protected String generateLockId() {\n return AkkaUtils.nextId();\n }", "public long getNextID() throws IDGenerationException;", "private static synchronized long nextProxyId() {\n return _proxyId++;\n }", "public static long getID() {\n int localizador = 0;\n Long min = 1000000000L;\n Long max = 9999999999L;\n\n do {\n localizador = (int) Math.floor(Math.random() * (max - min + 1) + min);\n } while (Integer.toString(localizador).length() != 10);\n return localizador;\n }", "int nextId() {\n return mAckId.incrementAndGet();\n }", "@Override\n public long generateNewContractId() {\n return idCounter++;\n }", "public int idGenerator() {\n Random random = new Random();\n int id;\n return id = random.nextInt(10000);\n }", "public void reFreshUuid() {\n\t\tthis.uuid=Application.getSnowflakeIdWorker().nextId()+\"\";\r\n\t}", "public String getNextId() {\n while (!this.isIdFree(this.nextId)) {\n this.nextId += 1;\n }\n return Integer.toString(this.nextId);\n }", "private String getNextQueueIdentifier() {\n String qid = PropertyUtils.genGUID(25);\n updateCachedCounts();\n return qid;\n }", "public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}", "String generateUID();", "public String generateID() {\n return IDPREFIX + nextidint++;\n }", "private byte generatePatternId() {\n byte[] patternId = new byte[1];\n new Random().nextBytes(patternId);\n if (patternId[0] == (byte) ServerStateEvent.PATTERN_ERROR_OR_IDLE) {\n return 1;\n }\n if (patternId[0] == ServerStateEvent.PATTERN_SERVER) {\n return 2;\n }\n return patternId[0];\n }", "public String generateLink_Id() {\n\t\tString Link_Id = \"L\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkLinkIdIfExist(Link_Id)) {\n\t\t\tLink_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn Link_Id;\n\t}", "private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}", "public static int makeSegID() {\n int newID = (int) (Math.random() * 100000000);\n return newID;\n }", "private int generateNewId() {\n int size = userListCtrl.getUsers().size();\n \n if (size == 0) {\n return 1;\n } else {\n return userListCtrl.getUsers().get(size-1).getUserID()+1;\n }\n }", "public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }", "protected String getNextID(String prefix) {\n return String.format(\"%s-%s\", prefix, UUID.randomUUID().toString()) ;\n }", "public String getUniqueID() {\n return this.uniqueID;\n }", "public interface ThreadIdGenerator {\r\n\r\n public String getNextId();\r\n public void resetId();\r\n}", "private static int nextClientId(){\n\n\t\tint id = random.nextInt(U16_MAX +1);\n\n\t\twhile(clients.containsKey(id))\n\t\t\tid = random.nextInt(U16_MAX +1);\n\n\t\treturn id;\n\t}", "public static int getNewId() {\n int id;\n\n do {\n id = randomId.nextInt(Integer.MAX_VALUE);\n } while (generatedId.contains(id));\n\n generatedId.add(id);\n return id;\n }", "private String nextGUID() {\r\n\t\tString guidIdSQL = \"SELECT SYS_GUID() FROM DUAL\";\r\n\t\treturn namedJdbcTemplate.queryForObject(guidIdSQL, (HashMap<String, ?>) null, String.class);\r\n\t}", "private synchronized int generateUserID(){\r\n\t\tint i;\r\n\t\tfor(i = 1; users.containsKey(i);i++);\r\n\t\treturn i;\r\n\t}", "public static synchronized int getNewID() {\r\n\t\treturn Entity.IDCount++;\r\n\t}", "public static int generateViewId() {\n\t\tdo {\n\t\t\tfinal int result = sNextGeneratedId.get();\n\t\t\t// aapt-generated IDs have the high byte nonzero; clamp to the range under that.\n\t\t\tint newValue = result + 1;\n\t\t\tif (newValue > 0x00FFFFFF){\n\t\t\t\tnewValue = 1; // Roll over to 1, not 0.\n\t\t\t}\n\t\t\tif (sNextGeneratedId.compareAndSet(result, newValue)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}while(true);\n\t}", "public static String makeAnonID() {\n String id = \"__anon\" + nextAnonID;\n nextAnonID++;\n return id;\n }", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "public static String uniqueId() {\r\n return UUID.randomUUID().toString();\r\n }", "UUID id();", "public long nextUniqueID() {\n final Lock lock = sequenceBlocks.getLock(type);\n lock.lock();\n try {\n Data data = sequenceBlocks.get(type);\n if (data == null || !(data.getCurrentID() < data.getMaxID())) {\n data = getNextBlock();\n }\n\n final long id = data.getCurrentID();\n data.setCurrentID(id + 1);\n sequenceBlocks.put(type, data);\n return id;\n } finally {\n lock.unlock();\n }\n }", "@Override\r\n\tpublic int generateAccountId() {\n\t\tint AccountId = (int) (Math.random()*10000);\r\n\t\treturn 0;\r\n\t}", "private String nextID(String id) throws ConstraintViolationException {\r\n\t if (id == null) { // generate a new id\r\n\t if (idCounter == 0) {\r\n\t idCounter = Calendar.getInstance().get(Calendar.YEAR);\r\n\t } else {\r\n\t idCounter++;\r\n\t }\r\n\t return \"S\" + idCounter;\r\n\t } else {\r\n\t // update id\r\n\t int num;\r\n\t try {\r\n\t num = Integer.parseInt(id.substring(1));\r\n\t } catch (RuntimeException e) {\r\n\t throw new ConstraintViolationException(\r\n\t ConstraintViolationException.Code.INVALID_VALUE, e, new Object[] { id });\r\n\t }\r\n\t \r\n\t if (num > idCounter) {\r\n\t idCounter = num;\r\n\t }\r\n\t \r\n\t return id;\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t \r\n}", "@Override\n\tpublic void setUniqueId(int id) {}", "public Integer getSafeNextId() {\n return safeNextId;\n }" ]
[ "0.81401294", "0.8117768", "0.80667484", "0.8040662", "0.80350584", "0.79622364", "0.7874823", "0.7816584", "0.7734747", "0.772383", "0.769759", "0.7653908", "0.764766", "0.76432717", "0.7638787", "0.76054275", "0.7602502", "0.7582488", "0.7527408", "0.7514867", "0.75094384", "0.7495911", "0.74867755", "0.7483353", "0.7428152", "0.7412269", "0.73924446", "0.7358852", "0.73473036", "0.7340914", "0.7303038", "0.72870785", "0.7230621", "0.72263074", "0.72228885", "0.7165315", "0.7164007", "0.71515816", "0.7150692", "0.7141196", "0.7137696", "0.7121052", "0.7120376", "0.71150374", "0.71150374", "0.71033335", "0.71014124", "0.70890665", "0.7087012", "0.7085675", "0.70669234", "0.7054422", "0.70519155", "0.70495725", "0.70417416", "0.70398504", "0.70330817", "0.6955061", "0.6941031", "0.6937742", "0.6930208", "0.69206065", "0.69092077", "0.6904561", "0.6901202", "0.689994", "0.68906784", "0.68833673", "0.68608075", "0.68561953", "0.68532866", "0.6828612", "0.67983407", "0.6790443", "0.67891157", "0.67835504", "0.67697966", "0.67621577", "0.67398465", "0.6735684", "0.67177254", "0.67128366", "0.6707968", "0.6694424", "0.6693523", "0.66916066", "0.6691283", "0.66816896", "0.6674981", "0.6672787", "0.66667545", "0.6666594", "0.66621375", "0.6661356", "0.6658967", "0.6657868", "0.6656764", "0.66521865", "0.66517335", "0.66457295", "0.66388804" ]
0.0
-1
Creates new form Register
public Register() { initComponents(); setLocationRelativeTo(null); updateJTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/register\")\r\n\tpublic ModelAndView register(@ModelAttribute(\"registerForm\") final UserRegisterForm form) {\r\n\t\treturn new ModelAndView(\"users/register\");\r\n\t}", "public RegisterForm() {\n initComponents();\n }", "public RegisterForm() {\n initComponents();\n }", "public RegisterForm() {\n initComponents();\n }", "public String createRegisterForm(Register reg)\n {\n DBConnect db = new DBConnect();\n Connection con;\n \n try\n {\n con = (Connection) db.establishConnection();\n String q = \"insert into registerUser (register_name, register_email, register_phone, register_pass)\"\n + \"values (?, ?, ?, ?)\";\n \n PreparedStatement prepareState = con.prepareStatement(q);\n \n prepareState.setString(1, reg.getRegisterName());\n prepareState.setString(2, reg.getRegisterEmail());\n prepareState.setString(3, reg.getRegisterPhone());\n prepareState.setString(4, reg.getRegisterPassword());\n \n prepareState.execute();\n con.close();\n \n return \"Successfully Registered..!!\";\n }\n \n catch(Exception ex)\n {\n System.err.println(\"Exception..!!\");\n System.err.println(\"Message: \" + ex.getMessage());\n \n return \"Data Not Registered..!!\";\n }\n \n }", "public void registerUser(RegisterForm form) throws DAOException;", "@GetMapping(\"register\")\n public String registerForm(RegisterForm registerForm) {\n return \"register\";\n }", "void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\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 }", "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tRegister theRegister = new Register();\n\t\t\n\t // add register object to the model\n\t\ttheModel.addAttribute(\"register\", theRegister);\n\t\t\n\t\treturn \"register-form\";\n\t}", "@GetMapping(\"/register\")\r\n\tpublic String showRegistrationForm(Model theModel) {\r\n\t\ttheModel.addAttribute(\"user\", new UserCrm());\r\n\t\treturn \"registration\";\r\n\t}", "@GetMapping(\"/registration\")\n\t public String registration(Model model) {\n\t model.addAttribute(\"userForm\", new User());\n\t return \"registration\";\n\t }", "@RequestMapping(value = \"/create\", method = RequestMethod.GET)\n public final String create(final ModelMap model) {\n model.addAttribute(REGISTER, new Register());\n return \"create\";\n }", "@RequestMapping(\"/newuser\")\r\n\tpublic ModelAndView newUser() {\t\t\r\n\t\tRegister reg = new Register();\r\n\t\treg.setUser_type(\"ROLE_INDIVIDUAL\");\r\n\t\treg.setEmail_id(\"[email protected]\");\r\n\t\treg.setFirst_name(\"First Name\");\r\n\t\treg.setCity(\"pune\");\r\n\t\treg.setMb_no(new BigInteger(\"9876543210\"));\r\n\t\treturn new ModelAndView(\"register\", \"rg\", reg);\r\n\t}", "@GetMapping(\"/registration\")\n public String registration(Model model) {\n \t\n model.addAttribute(\"userForm\", new User());\n\n return \"registration\";\n }", "@RequestMapping(\"/processForm\")\n\tpublic String processForm( @Valid @ModelAttribute(\"register\") Register theRegister, BindingResult theBindingResult) {\n\t\tSystem.out.println(\"Register new: \" + theRegister.getFirstName() \n\t\t\t\t\t\t+ \" \" + theRegister.getLastName());\n\t\t\n\t\tif(theBindingResult.hasErrors()) {\n\t\t\t\n\t\t\treturn \"register-form\";\n\t\t}else {\n\t\t\treturn \"register-confirmation\";\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "@GetMapping(\"register\")\n public String registerForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"register_form\";\n }", "@RequestMapping(value = \"register\", method = RequestMethod.POST)\n public String register(@ModelAttribute @Valid RegisterForm registerForm, Errors errors, HttpServletRequest request, Model model) {\n\n if (errors.hasErrors()) {\n model.addAttribute(\"title\", \"Register to RandNums\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User existingUser = userDao.findByUsername(registerForm.getUsername());\n\n if (existingUser != null) {\n errors.rejectValue(\"username\", \"username.alreadyexists\", \"A user with that username already exists\");\n model.addAttribute(\"title\", \"Register\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n return \"login/register\";\n }\n\n User newUser = new User(registerForm.getUsername(), registerForm.getEmail(), registerForm.getPassword());\n\n userDao.save(newUser);\n setUserInSession(request.getSession(), newUser);\n\n return \"redirect:/home\";\n }", "@GetMapping(\"/register-particular\")\n\tpublic ModelAndView goToRegisterPartForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-particular\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}", "public Successful_Registration() {\n initComponents();\n }", "@GetMapping(\"/register\")\n public String showRegister(Model model){\n model.addAttribute(\"user\", new User());\n return \"registerForm\";\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "@RequestMapping(value = \"/register\", method = RequestMethod.GET)\n public ModelAndView displayRegisterForm() {\n return new ModelAndView(\"registerForm\", \"customer\", new Customer());\n }", "private FormLayout initRegisterForm() {\r\n final FormLayout formLayout = new FormLayout();\r\n formLayout.getElement().getThemeList().removeAll(formLayout.getElement().getThemeList());\r\n formLayout.setClassName(StyleConstants.REGISTER_CONTENT.getName());\r\n\r\n nameField = new VTextField(getTranslation(\"name.label\"));\r\n\r\n lastNameField = new VTextField(getTranslation(\"lastName.label\"));\r\n\r\n birthDate = new VDatePicker(getTranslation(\"birthDate.label\"));\r\n birthDate.setMax(LocalDate.now().minusYears(5));\r\n birthDate.setMin(LocalDate.now().minusYears(100));\r\n final DatePickerI18n calendarLocalization = new DatePickerI18n();\r\n birthDate.setI18n(calendarLocalization);\r\n\r\n identificationNumberField = new VTextField(getTranslation(\"identificationNumber.label\"));\r\n identificationNumberField.addValueChangeListener(e -> {\r\n if (setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^[0-9]*$\"), \"field.onlyNumbers\")) {\r\n return;\r\n }\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 4);\r\n });\r\n identificationNumberField.setMinLength(4);\r\n identificationNumberField.setMaxLength(8);\r\n identificationNumberField.setValueChangeMode(ValueChangeMode.EAGER);\r\n\r\n emailField = new VEmailField(getTranslation(\"email.label\"));\r\n emailField.setValueChangeMode(ValueChangeMode.EAGER);\r\n emailField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^\\\\w+@[a-zA-Z_]+?\\\\.[a-zA-Z]{2,3}$\"), \"field.notEmail\");\r\n });\r\n usernameField = new VTextField(getTranslation(\"username.label\"));\r\n\r\n passwordField = new VPasswordField(getTranslation(\"password.label\"));\r\n repeatPasswordField = new VPasswordField(getTranslation(\"repeatPassword.label\"));\r\n passwordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n passwordField.setMinLength(5);\r\n passwordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 5);\r\n });\r\n\r\n repeatPasswordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n repeatPasswordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(),\r\n !e.getValue().equals(passwordField.getValue()) && StringUtils.isNotBlank(passwordField.getValue()), \"field.passwordNotMatch\");\r\n });\r\n\r\n professionSelect = new VSelect<>(getTranslation(\"profession.label\"));\r\n professionSelect.setItemLabelGenerator(item -> getTranslation(item.getProfessionTranslationKey()));\r\n professionSelect.setItems(Arrays.asList(Professions.values()));\r\n\r\n organizationSelect = new VSelect<>(getTranslation(\"organization.label\"));\r\n organizationSelect.setItemLabelGenerator(item -> item.getName());\r\n\r\n final VButton requestAccessButton = new VButton(getTranslation(\"requestAccess.label\"));\r\n requestAccessButton.addClassName(StyleConstants.BUTTON_BLUE.getName());\r\n requestAccessButton.addClickListener(e -> requestAccess());\r\n\r\n final RouterLink signInButton = new RouterLink(getTranslation(\"signIn.label\"), LoginView.class);\r\n\r\n formLayout.add(nameField, lastNameField, birthDate, identificationNumberField, emailField, usernameField, passwordField, repeatPasswordField,\r\n professionSelect, organizationSelect);\r\n formLayout.setColspan(requestAccessButton, 2);\r\n\r\n formLayout.add(requestAccessButton, signInButton);\r\n requestAccessButton.addClickListener(e -> {\r\n\r\n });\r\n return formLayout;\r\n }", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}", "@RequestMapping(value = \"/register\",method = RequestMethod.GET)\r\n\tpublic String viewRegistration(Model model) { \r\n\t\tmodel.addAttribute(\"userForm\", uservalue);\r\n\t\t//UserForm Name of the model attribute under which the form object is exposed. Defaults to 'command'.\r\n\t\treturn \"Registration\";\r\n\t}", "private void register() {\n Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(intent);\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "@GetMapping(value=\"/\")\n\tpublic String showRegistrationForm(WebRequest request, Model model) {\n\t\tUserDTO userDTO = new UserDTO();\n\t\tmodel.addAttribute(\"user\", userDTO);\n\t\treturn \"security/register\";\n\t}", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public final String submit(\n @ModelAttribute(REGISTER) @Valid final Register register,\n final BindingResult binding, final HttpServletRequest request) {\n final Locale locale = localeResolver.resolveLocale(request);\n\n if (binding.hasErrors()) {\n return \"create\";\n }\n\n final UserAccount user = new UserAccount(register.getUsername());\n user.setDisplayName(register.getDisplayName());\n user.setEmail(register.getEmail());\n user.setPassword(passwordEncoder.encodePassword(\n register.getPassword(), user.getSalt()));\n\n try {\n userDetailsService.addUser(user, locale);\n } catch (DuplicateUserException e) {\n binding.addError(new FieldError(REGISTER, \"username\",\n messageSource.getMessage(\"create.error.username\", null,\n locale)));\n return \"create\";\n }\n\n return \"redirect:/register/success\";\n }", "@GetMapping(\"/register-pro\")\n\tpublic ModelAndView goToRegisterProForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-pro\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}", "public void displayRegisterForm(View v) {\n\n Intent intent = new Intent(getApplicationContext(), RegistrationScreenActivity.class);\n startActivityForResult(intent, NEW_USER_REGISTER);\n }", "public Register() {\n initComponents();\n\n }", "public signup() {\n initComponents();\n }", "public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }", "@GetMapping(\"/register\")\n\tpublic String provideRegistrationForm(Model map)\n\t{\n\t\tSystem.out.println(\"inside vendor reg form\" + getClass().getName());\n\t\tmap.addAttribute(\"vendor_details\", new Vendor());\n\t\tmap.addAttribute(\"payment_modes\", PaymentMode.values());\n\t\tSystem.out.println(map);\n\t\treturn \"/admin/register\";\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "@RequestMapping(value = \"/registreren\", method = RequestMethod.POST)\n\tpublic String register(HttpServletRequest req, @ModelAttribute(\"form\") RegisterForm form,\n Errors errors, HttpSession session) {\n synchronized(AccountController.class) { // hopefully registrations don't occur too much\n User user = userSessionService.getCurrentUser(session);\n if (user == null || user.isAnonymous()) {\n validator.validate(form, errors);\n if (!errors.hasErrors()) {\n try {\n user = new User();\n form.applyTo(user);\n userRepo.store(user);\n userSessionService.login(session, user);\n int userId = user.getId();\n\t\t\t\t\t\t\n String userName = \"anonymous\";\n userName = Integer.toString(userId);\n\t\t\t\t\t\tString userIP = ipUtil.getClientIp(req);\n\t\t\t\t\t\tString action = \"register\";\n\t\t\t\t\t\tString userAgent = req.getHeader(\"user-agent\");\n\t\t\t\t\t\tString referer = req.getHeader(\"Referer\");\n\t\t\t\t\t\tif (referer == null){\n\t\t\t\t\t\t\treferer = \"register\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog4jPrefix.initialise(userName, userIP, action, userAgent, referer);\n log.info(String.format(\"Registered %s!\", user.getShortDescription()));\n } catch(Exception e) {\n // this exception may have been caused by duplicate user\n // so we'll simply validate again. If validation fails\n // we'll return this page, otherwise we'll rethrow,\n // resulting in the error page\n validator.validate(form, errors);\n if (!errors.hasErrors()) {\n if (e instanceof RuntimeException) {\n throw (RuntimeException) e;\n }\n throw new RuntimeException(e);\n }\n // show form again\n return \"register\";\n }\n } else {\n // show form again\n return \"register\";\n }\n }\n }\n return \"redirect:/\";\n\t}", "public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }", "public Register() {\n initComponents();\n \n }", "public RegisterView() {\r\n\r\n\t\tcontainer = getContentPane();\r\n\t\tcontainer.setLayout(new BorderLayout());\r\n\t\tpanelRegister = new JPanel(new GridLayout(8, 1));\r\n\t\tpanelButton = new JPanel(new GridLayout(1, 2));\r\n\t\ttextFieldUser = new JTextField();\r\n\t\tpasswordFieldPassword = new JPasswordField();\r\n\t\tpasswordFieldRePassword = new JPasswordField();\r\n\t\tcheckBoxIsFarmer = new JCheckBox();\r\n\t\tlabelUser = new JLabel(\"Username: \");\r\n\t\tlabelPassword = new JLabel(\"Password: \");\r\n\t\tlabelRePassword = new JLabel(\"Confirm Password: \");\r\n\t\tlabelIsFarmer = new JLabel(\"Farmer? (Yes/No)\");\r\n\r\n\t\tpanelRegister.add(labelUser);\r\n\t\tpanelRegister.add(textFieldUser);\r\n\t\tpanelRegister.add(labelPassword);\r\n\t\tpanelRegister.add(passwordFieldPassword);\r\n\t\tpanelRegister.add(labelRePassword);\r\n\t\tpanelRegister.add(passwordFieldRePassword);\r\n\t\tpanelRegister.add(labelIsFarmer);\r\n\t\tpanelRegister.add(checkBoxIsFarmer);\r\n\r\n\t\tpanelRegister.setBackground(Util.orange);\r\n\t\tpanelButton.setBackground(Util.orange);\r\n\t\t\r\n\t\tregisterCancelController = new RegisterCancelController();\r\n\t\t\r\n\t\tbuttonRegister = new JButton(\"Confirm Registration\");\r\n\t\tregisterController = new RegisterController();\r\n\t\tbuttonRegister.addActionListener(e -> registerController.startProcess(this));\r\n\t\tbuttonCancel = new JButton(\"Cancel\");\r\n\t\tregisterCancelController = new RegisterCancelController();\r\n\t\tbuttonCancel.addActionListener(e -> registerCancelController.startProcess(this));\r\n\t\t\r\n\t\tpanelButton.add(buttonRegister);\r\n\t\tpanelButton.add(buttonCancel);\r\n\r\n\r\n\r\n\t\tcontainer.add(panelRegister, BorderLayout.CENTER);\r\n\t\tcontainer.add(panelButton, BorderLayout.SOUTH);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setSize(500, 500);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setTitle(\"Register\");\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\r\n\t}", "public Signup() {\n initComponents();\n }", "public void register(View v)\n {\n\n Intent loginPage = new Intent(RegisterPage.this, Login.class);\n loginPage.putExtra(\"username\",username.getText().toString());\n loginPage.putExtra(\"password\",password.getText().toString());\n loginPage.putExtra(\"firstname\",firstName.getText().toString());\n loginPage.putExtra(\"lastname\",lastName.getText().toString());\n startActivity(loginPage);\n }", "public\n RegisterView()\n {\n super(ViewKeys.REGISTER);\n\n setAccount(null);\n setAccountChooser(new ElementComboBoxChooser(getAccounts()));\n setFilter(new TransactionFilter());\n setPanel(new Panel());\n setSearchWidget(new SearchWidget(createPopupMenu()));\n\n // Build panel.\n setFill(GridBagConstraints.BOTH);\n add(createToolsPanel(), 0, 0, 1, 1, 0, 0);\n add(getPanel(), 0, 1, 1, 1, 100, 100);\n\n getAccountChooser().setAllowInactiveAccounts(false);\n\n // Add listeners.\n getAccountChooser().addActionListener(new ActionHandler());\n getSearchWidget().addActionListener(new ActionHandler());\n }", "@RequestMapping(value = \"Register\", method = RequestMethod.POST)\n\tpublic ModelAndView register(@Valid @ModelAttribute(\"userMaster\") UserMaster userMaster, BindingResult result,\n\t\t\tModelMap model) {\n\t\tString viewName = \"home\";\n\t\tuserValidator.validate(userMaster, result);\n\t\tif (result.hasErrors()) {\n\t\t\tviewName = \"register\";\n\t\t\treturn new ModelAndView(viewName);\n\t\t}\n\t\tString id = userMasterService.save(userMaster);\n\t\tif (id.equalsIgnoreCase(\"username exits\") || id.equalsIgnoreCase(\"email exits\")) {\n\t\t\tmodel.addAttribute(\"error\", id);\n\t\t\tlogger.info(\"Cannot save because \" + id);\n\t\t\treturn new ModelAndView(\"register\");\n\t\t} else {\n\t\t\tviewName = \"login\";\n\t\t\tmodel.addAttribute(\"loginForm\", new LoginForm());\n\t\t\tmodel.addAttribute(\"error\", \"Successfully registered.<br>Please Login.\");\n\t\t\tlogger.info(\"New User:id = \" + id);\n\t\t\treturn new ModelAndView(viewName);\n\t\t}\n\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}", "private void Register()\n {\n Intent registerIntent = new Intent (LoginActivity.this, RegisterActivity.class);\n startActivity(registerIntent);\n finish();\n }", "@Override\n public void onRegisterClick() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n if (fm.findFragmentByTag(TAG_FRG_REG_1) != null)\n ft.hide(fm.findFragmentByTag(TAG_FRG_REG_1));\n ft.add(site.getId(), new ControladorRegistro(),TAG_FRG_REG_12);\n ft.addToBackStack(TAG_FRG_REG_12);\n ft.commit();\n\n }", "public VentanaDialogRegister(ListadoUsuarios listadoUsuarios) {\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\tthis.listadoUsuarios = listadoUsuarios;\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(0, 139, 139));\n\t\tpanel.setBounds(0, 0, 444, 271);\n\t\tgetContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\ttxtContrasea = new JPasswordField();\n\t\ttxtContrasea.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtContrasea.setBounds(183, 114, 113, 23);\n\t\tpanel.add(txtContrasea);\n\t\ttxtContrasea.setColumns(10);\n\t\t\n\t\ttxtNombreDeUsuario = new JTextField();\n\t\ttxtNombreDeUsuario.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtNombreDeUsuario.setBounds(183, 73, 113, 30);\n\t\tpanel.add(txtNombreDeUsuario);\n\t\ttxtNombreDeUsuario.setColumns(10);\n\t\t\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Registrar\");\n\t\t\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t\tauxUsuario = listadoUsuarios.buscarUnUsuario(txtNombreDeUsuario.getText());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(auxUsuario==null){\n\t\t\t\t\tauxUsuario= new Usuario();\n\t\t\t\t\tauxUsuario.setAdmin(false);\n\t\t\t\t\tauxUsuario.setNombreU(txtNombreDeUsuario.getText());\n\t\t\t\t\tauxUsuario.setClave(txtContrasea.getText());\n\t\t\t\t\tlistadoUsuarios.agregarUsuario(auxUsuario);\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"USUARIO REGISTRADO\");\n\t\t\t\t\tdispose();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"ERROR! ESE NOMBRE DE USUARIO YA EXISTE\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(172, 205, 124, 30);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"REGISTRO DE USUARIOS\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblNewLabel.setBounds(134, 11, 196, 37);\n\t\tpanel.add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Nombre de Usuario:\");\n\t\tlblNewLabel_1.setFont(new Font(\"Trebuchet MS\", Font.BOLD, 14));\n\t\tlblNewLabel_1.setBounds(54, 76, 128, 23);\n\t\tpanel.add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_1_1 = new JLabel(\"Clave:\");\n\t\tlblNewLabel_1_1.setFont(new Font(\"Trebuchet MS\", Font.BOLD, 14));\n\t\tlblNewLabel_1_1.setBounds(119, 113, 79, 23);\n\t\tpanel.add(lblNewLabel_1_1);\n\t}", "public RegisterPage goRegisterPage () {\n return topBar.goRegisterPage();\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public Read_userregister() {\n initComponents();\n }", "@RequestMapping(value = \"/user/registrationForm\", method = RequestMethod.GET)\n\tpublic ModelAndView registrationForm(HttpServletRequest request) {\n\t\tlog.debug(\"User registration\");\n\t\tString communityId = \"-1\";\n\t\tModelAndView model=new ModelAndView(\"form/registration\",\"command\",new User()); \n\t\tmodel.addObject(\"selectedCommunity\", communityId);\n\t\treturn model; \n\t}", "public Sign_up() {\n initComponents();\n }", "public SignUp() {\n initComponents();\n }", "public SignUp() {\n initComponents();\n }", "public Doctor_register() {\n initComponents();\n }", "public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }", "public void registerNewUser(View v) {\n Intent intent = new Intent(this, com.mms.memorizationgame.RegisterActivity.class);\n\n finish();\n startActivity(intent);\n }", "public void RegisterClick(View view) {\n Intent intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n Toast.makeText(getApplicationContext(), \"Register as a new user\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Register();\n\t\t\t\tsetVisible(false);\n\t\t\t}", "public Register() {\n \n initComponents();\n \n }", "private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}", "public void register(View view){\n Intent i = new Intent(this, RegisterActivity.class);\n startActivity(i);\n }", "public RegisterPanel() {\n control = new ControlRegister();\n initComponents();\n }", "public void register(View view) {\n Intent intent = new Intent(this, RegisterScreen.class);\n startActivity(intent);\n }", "@GetMapping(\"/userAddForm\")\n\tpublic String userAddForm(Model theModel) {\n\t\tUser theUser = new User();\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"registration-form\";\n\t}", "public void register(View view) {\n Intent intent;\n intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n }", "public RegisterPanel() {\n initComponents();\n }", "@RequestMapping(value = {\"/register\"}, method = RequestMethod.GET)\n public String newUser(ModelMap model) {\n User user = new User();\n Customer customer = new Customer();\n List<UserProfile> userProfileList = new ArrayList();\n user.setCustomer(customer);\n user.setUserProfileList(userProfileList);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"edit\", false);\n model.addAttribute(\"action\", \"newuser\");\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }", "private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }", "public Register() {\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = 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 txtName = new javax.swing.JTextField();\n txtPhone = new javax.swing.JTextField();\n txtAddress = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n txtRepassword = new javax.swing.JPasswordField();\n btnRegister = new javax.swing.JButton();\n btnBackLogin = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Register\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(204, 0, 51));\n jLabel1.setText(\"Đăng Ký\");\n\n jLabel2.setText(\"Họ Tên\");\n\n jLabel3.setText(\"SĐT\");\n\n jLabel4.setText(\"Địa chỉ\");\n\n jLabel5.setText(\"Mật khẩu\");\n\n jLabel6.setText(\"Nhập lại mật khẩu\");\n\n btnRegister.setText(\"Đăng Ký\");\n btnRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegisterActionPerformed(evt);\n }\n });\n\n btnBackLogin.setText(\"Trở lại\");\n btnBackLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackLoginActionPerformed(evt);\n }\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 .addGroup(layout.createSequentialGroup()\n .addGap(444, 444, 444)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(btnBackLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtName)\n .addComponent(txtPhone)\n .addComponent(txtAddress)\n .addComponent(txtPassword)\n .addComponent(txtRepassword, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(jLabel1)))\n .addContainerGap(470, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(104, 104, 104)\n .addComponent(jLabel1)\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel3))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel4))\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(txtAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtRepassword, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBackLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(237, Short.MAX_VALUE))\n );\n\n pack();\n }", "public PatientRegForm() {\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 jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n nametxt = new javax.swing.JTextField();\n register = new javax.swing.JButton();\n cancel = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n passwordtxt = new javax.swing.JPasswordField();\n cPasswordtxt = new javax.swing.JPasswordField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Register\");\n setPreferredSize(new java.awt.Dimension(800, 600));\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 0));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Register\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Name\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Password\");\n\n nametxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n nametxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nametxtActionPerformed(evt);\n }\n });\n\n register.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n register.setText(\"Register\");\n register.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registerActionPerformed(evt);\n }\n });\n\n cancel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n cancel.setText(\"Cancel\");\n cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Confirm Password\");\n\n passwordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n cPasswordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\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 .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(274, 274, 274)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(167, 167, 167)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nametxt)\n .addComponent(passwordtxt, javax.swing.GroupLayout.DEFAULT_SIZE, 272, Short.MAX_VALUE)\n .addComponent(cPasswordtxt)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(224, 224, 224)\n .addComponent(register, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(146, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(59, 59, 59)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nametxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(passwordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(cPasswordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(register)\n .addComponent(cancel))\n .addGap(40, 40, 40))\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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "@GetMapping(\"/registration\")\n public String getRegistration(Model model)\n {\n model.addAttribute(\"newAccount\", new Account());\n \n return \"registration\";\n }", "public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }", "@PostMapping(\"/register\")\n public String register(@Valid UserForm userForm, BindingResult result){\n if(!userForm.confirmPassword()){\n result.rejectValue(\"confirmPassword\",\"confirmError\",\"两次密码不一致\");\n// boo = false;\n }\n if(result.hasErrors()){\n return \"register\"; // 如果使用@Valid注解,就表示已经将userForm和result放到了model中,直接可以在前端获取信息\n }\n// if(result.hasErrors()){\n// List<FieldError> fieldErrors = result.getFieldErrors();\n// for(FieldError error : fieldErrors){\n// System.out.println(error.getField() + \" : \" + error.getDefaultMessage() + \" : \" + error.getCode());\n// }\n// boo = false;\n// }\n// if(!boo){\n// return \"register\";\n// }\n User user = userForm.convertToUser();\n userRepository.save(user);\n return \"redirect:/login\";\n }", "public Sign_Up() {\n initComponents();\n }", "public SignUpForm(Context ctx) {\n super(ctx);\n init();\n }", "public FormInserir() {\n initComponents();\n }", "@RequestMapping(\"register.action\")\n\tpublic ModelAndView register(String username,String password){\n\t\tboolean result=ud.insert(username,password);\n\t\t\n\t\tModelAndView mv=new ModelAndView();\n\t\tmv.addObject(\"message\", username);\n\t\tmv.addObject(\"str1\", \"success\");\n\t\tmv.setViewName(\"sign-up3\");\n\t\t\n\t\treturn mv;\n\t}", "public Registration() {\n initComponents();\n managerpassword_label.setVisible(false);\n managerpassword_passfield.setVisible(false);\n \n }", "Register.Req getRegisterReq();", "public void RegisterUser() {\n try {\n reg = new Registration();\n reg.setFirstName(FName);\n reg.setLastName(LName);\n reg.setCompanyName(CompanyName);\n reg.setEmail(Email);\n reg.setMobile(mobile);\n ValidateRegistration validator = new ValidateRegistration();\n boolean legitmail = validator.validateEmail(reg);\n if ( legitmail == false ) {\n System.out.println(\"Not a legitimate Email\");\n FacesContext c = FacesContext.getCurrentInstance();\n FacesMessage m = new FacesMessage(\"Invalid Email\", \"The email provided is not correct\");\n c.addMessage(null, m);\n } else {\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"mainpage.xhtml\");\n }\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "@RequestMapping(value = \"/registration\")\n public String registration(Model model) {\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"user/registration\";\n }", "@RequestMapping(\"Home1\")\r\n\tpublic String createUser1(Model m) \r\n\t{\n\t\tm.addAttribute(\"employee\",new Employee());\r\n\t\treturn \"register\";//register.jsp==form action=register\r\n\t}", "public Register() {\n\n this.literatureRegister = new ArrayList<>();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Register() {\n setTitle(\"Register\"); //sets its title name which appears on top the frame\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); //optional, what happens when the frame closes\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n windowListener.handleClosing();\n }\n });\n\n setBounds(150, 150, 400, 200); //Explicitly defining the frame size and also frame location\n contentPane = new JPanel(); // Creating a new jpanel\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); // specifies added component's position within the panel\n setContentPane(contentPane); //Adding components to the Content Pane\n contentPane.setLayout(null); //sets the layout manager as null\n\n JLabel lblUsername = new JLabel(\"Username\"); // Creates a label with default value Username\n lblUsername.setBounds(91, 14, 66, 14); // sets the label size and location\n contentPane.add(lblUsername); // Adds the label to the content pane\n\n JLabel lblEmail = new JLabel(\"Email\"); // Creates a label with default value Email\n lblEmail.setBounds(91, 39, 66, 14); // sets the label size and location\n contentPane.add(lblEmail); // Adds the label to the content pane\n\n JLabel lblPassword = new JLabel(\"Password\"); // Creates a label with default value Password\n lblPassword.setBounds(91, 64, 66, 14); // sets the label size and location\n contentPane.add(lblPassword); // Adds the label to the content pane\n\n txtLogin = new JTextField(); // creates empty Login text field\n txtLogin.setBounds(179, 11, 120, 20); //Defines the text field size and location\n contentPane.add(txtLogin); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n txtEmail = new JTextField();// creates empty email text field \n txtEmail.setBounds(179, 36, 120, 20); //Defines the text field size and location\n contentPane.add(txtEmail); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n passwordField = new JPasswordField(); // create empty password field\n passwordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n passwordField.setBounds(179, 61, 120, 20); // Defines the password field size and location\n contentPane.add(passwordField); // Adds the password field to the Content Pane\n\n JLabel lblConfirmPassword = new JLabel(\"Confirm Password\"); // Creates a label with default value Confirm Password\n lblConfirmPassword.setBounds(65, 95, 108, 14); // sets the label size and location\n contentPane.add(lblConfirmPassword); // Adds the label to the content pane\n\n // add new user and password to txt file \n JButton btnSignUp = new JButton(\"Sign Up\"); // Creates Sign Up button and gives it default name Sign Up\n btnSignUp.addActionListener(new ActionListener() {//Adds onClick listener to the button\n public void actionPerformed(ActionEvent arg0) { // method called when the button is clicked\n\n FileWriter fw; // create variable for the FileWriter which writes to the file\n //catch for empty unfilled textfields\n if (!txtLogin.getText().isEmpty() || !passwordField.getText().isEmpty() || !confirmPasswordField.getText().isEmpty() || !txtEmail.getText().isEmpty()) {\n if (passwordField.getText().equals(confirmPasswordField.getText())) {\n Pattern p = Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@\"\n + \"[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\"); // Rejex which checks for a valid email address\n Matcher m = p.matcher(txtEmail.getText()); //Tries to match the input email to check whether it is a valid email coapturing all required aspects\n\n if (m.find()) { // when mathcer finds the email valid proceed below\n try {\n fw = new FileWriter(\"src//SandwichShop//users.txt\", true); // Assign the FileWriter fw to a file\n fw.write(txtLogin.getText() + \" \" + passwordField.getText() + \" \" + txtEmail.getText() + \" \\r\\n\"); // Write user details to the file\n fw.close(); //close the FileWriter\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n JOptionPane.showMessageDialog(null, \"Registration completed successfully!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Enter correct E-mail, please.\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"\\\"Password\\\" field and \\\"Confirm Password\\\" field not match\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"One or more fields are empty!\");\n }\n }\n });\n btnSignUp.setBounds(16, 125, 350, 23); // set size and location of the Sign Up button\n contentPane.add(btnSignUp); // Add the button to the content pane\n\n confirmPasswordField = new JPasswordField(); // create confirmPassword field\n confirmPasswordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n confirmPasswordField.setBounds(179, 92, 120, 20); // set size and location of the password field\n contentPane.add(confirmPasswordField); // add the confirm password field to the content pane\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View RegisterView = inflater.inflate(R.layout.fragment_register, container, false);\n\n mainActivity = (MainActivity) getActivity();\n mainActivity.setTitle(R.string.title_registration);\n\n\n txtRMail = RegisterView.findViewById(R.id.txtRMail);\n txtRFirstname = RegisterView.findViewById(R.id.txtRFirstname);\n txtRLastname = RegisterView.findViewById(R.id.txtRLastname);\n txtRPassword = RegisterView.findViewById(R.id.txtRPassword);\n txtRPassword2 = RegisterView.findViewById(R.id.txtRPassword2);\n\n btnRegisterUser = RegisterView.findViewById(R.id.btnRegisterUser);\n\n\n btnRegisterUser.setOnClickListener(this);\n\n\n return RegisterView;\n }", "@PostMapping(\"/registration\")\n\t public String registration(@ModelAttribute(\"userForm\") User userForm, BindingResult bindingResult,Model model) {if (bindingResult.hasErrors()) {\n\t return \"registration\";\n\t }\n\t userService.save(userForm);\n\t localUsername=userForm.getUsername();\n\t boolean flag=userService.autoLogin(userForm.getUsername(), userForm.getPasswordConfirm());\n\t model.addAttribute(\"expense\", expenseService.getMonthAndYearAndAmount());\n\t model.addAttribute(\"username\",userForm.getUsername());\n\t return \"redirect:/dashboard\";\n\t }", "@Override\n public void onClick(View v) {\n name = txtName.getText().toString();\n username = txtUsername.getText().toString();\n password = txtPassword.getText().toString();\n try {\n if (username.trim().length() > 0 && password.trim().length() > 0 && name.trim().length() > 0) {\n dbHelper.open();\n dbHelper.Register(username, password, name);\n //jika tombol diklik akan muncul toast daftar berhasil dan langsung menuju ke halaman login\n Toast.makeText(RegisterActivity.this, \"Daftar berhasil\", Toast.LENGTH_LONG).show();\n finish();\n } else {\n //jika tombol diklik akan muncul toast daftar gagal, lengkapi form!\n Toast.makeText(RegisterActivity.this, \"Daftar gagal, lengkapi form!\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n Toast.makeText(RegisterActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "public void onRegisterPressed(View v) {\n String username = ((EditText) findViewById(R.id.usernameNew)).getText().toString();\n String password = ((EditText) findViewById(R.id.passwordNew)).getText().toString();\n String checkPassword = ((EditText) findViewById(R.id.passwordNew2)).getText().toString();\n Register register = new Register(username, password, checkPassword);\n TextView passwordCheck = findViewById(R.id.passwordCheck);\n TextView errorUsername = findViewById(R.id.errorUsername);\n\n if(!register.assertPassword()) {\n passwordCheck.setVisibility(View.VISIBLE);\n } else {\n passwordCheck.setVisibility(View.GONE);\n }\n if (!register.assertUsername()) {\n errorUsername.setVisibility(View.VISIBLE);\n } else {\n errorUsername.setVisibility(View.GONE);\n }\n if(register.assertUsername() && register.assertPassword()) {\n User user = new User(username, password, (UserTypes)userTypeSpinner.getSelectedItem());\n\n Toast.makeText(this, \"Account Added\", Toast.LENGTH_SHORT).show();\n\n Persistence.getInstance().write(User.SAVE_FILE, getApplicationContext(), user);\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(\"EXTRA_USER_TYPE\", user.getAccountType());\n startActivity(mainIntent);\n\n finish();\n }\n }", "public NewUser() {\n initComponents();\n }" ]
[ "0.74988073", "0.7378112", "0.7378112", "0.7378112", "0.7226365", "0.71316314", "0.7109775", "0.7062638", "0.70401347", "0.69042933", "0.68422097", "0.67940044", "0.67659473", "0.674207", "0.67415524", "0.670495", "0.6669819", "0.66309756", "0.66055095", "0.6573384", "0.65553546", "0.6546664", "0.65463525", "0.65141714", "0.65103257", "0.65064234", "0.6456562", "0.643298", "0.6411387", "0.6411387", "0.6411387", "0.6411387", "0.6401095", "0.63700134", "0.636612", "0.6359408", "0.634464", "0.63431", "0.6332392", "0.6325052", "0.6313924", "0.63031065", "0.6293237", "0.6276417", "0.6270143", "0.6257252", "0.6255824", "0.62501216", "0.6245526", "0.62381685", "0.62265366", "0.6223372", "0.6205354", "0.6194053", "0.6189768", "0.6179607", "0.6163844", "0.6162841", "0.6161345", "0.6161345", "0.6158017", "0.6155621", "0.6153314", "0.61410433", "0.6130249", "0.6113718", "0.6110639", "0.61074173", "0.60917085", "0.6077399", "0.60745776", "0.6051812", "0.6025788", "0.6025762", "0.60244477", "0.6020783", "0.6015921", "0.60149777", "0.60107714", "0.600964", "0.60063213", "0.5998315", "0.5995448", "0.598508", "0.5984746", "0.5957217", "0.5952", "0.5937518", "0.59300464", "0.5926999", "0.59244394", "0.59198976", "0.59197557", "0.5902415", "0.58998287", "0.5890059", "0.5888599", "0.588809", "0.58849716", "0.5880784", "0.5878072" ]
0.0
-1
GENFIRST:event_createBtnActionPerformed TODO add your handling code here:
private void createBtnActionPerformed(java.awt.event.ActionEvent evt) { staff.setName(regName.getText()); staff.setID(regID.getText()); staff.setPassword(regPwd.getText()); staff.setPosition(regPos.getSelectedItem().toString()); staff.setGender(regGender.getSelectedItem().toString()); staff.setEmail(regEmail.getText()); staff.setPhoneNo(regPhone.getText()); staff.addStaff(); if (staff.getPosition().equals("Vet")) { Vet vet = new Vet(); vet.setExpertise(regExp.getSelectedItem().toString()); vet.setExpertise_2(regExp2.getSelectedItem().toString()); vet.addExpertise(staff.getID()); } JOptionPane.showMessageDialog(null, "User added to database"); updateJTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "private void createJButtonActionPerformed( ActionEvent event )\r\n {\r\n \r\n }", "public void actionPerformed( ActionEvent event )\r\n {\r\n createJButtonActionPerformed( event );\r\n }", "protected void createButtonActionPerformed(ActionEvent evt) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttextArea.append(\"My mark is X\\n\");\r\n\t\tmyMark =\"X\";\r\n\t\tyourMark=\"O\";\r\n\t\tnew CreateButtonThread(\"CreateButton\");\t\t\t\t\t\r\n\t}", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "private void createButton(){\n addButton();\n addStartButton();\n }", "private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}", "public void clickCreateButton() {\n this.action.click(this.createButton);\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\", \"deprecation\" })\r\n\tprotected void btnCreateactionPerformed() {\n\t\tif ((confirmpasswordcreatejTextField.getText()).equals(passwordcreatejPasswordField.getText()))\r\n\t\t{\r\n\t\t\tjava.sql.Connection conObj = JdbcConnect.createConnection();\r\n\t\t\tjava.sql.ResultSet rs = null;\r\n\t\t\ttry {\r\n\t\t\t\trs = JdbcSelectUname.selectRecordFromTable(conObj,usrname);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Internal Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif (rs.next())\r\n\t\t\t\t{\r\n\t\t\t\t\t\tString role = (String) rolecreatejComboBox.getSelectedItem();\r\n\t\r\n\t\t\t\t\t\tjava.util.Vector add_rows = new java.util.Vector();\r\n\t\t\t\t\t\t//adding new user details to the Vector_add_rows\r\n\t\t\t\t\t\tadd_rows.add(unamecreatejTextField.getText());\r\n\t\t\t\t\t\tadd_rows.add(passwordcreatejPasswordField.getText());\r\n\t\t\t\t\t\tadd_rows.add(passHintTextField.getText());\r\n\t\t\t\t\t\tadd_rows.add(role);\r\n\t\r\n\t\t\t\t\t\tint i = JdbcCreateUser.insertRecords(conObj,add_rows);\r\n\t\r\n\t\t\t\t\t\tif (i!=1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"User@\"+unamecreatejTextField.getText()+\" not created\\nPlease try again...\", \"User@\"+unamecreatejTextField.getText()+\" error\", javax.swing.JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"User@\"+unamecreatejTextField.getText()+\" added to the system\", \"User@\"+unamecreatejTextField.getText()+\" success message\", javax.swing.JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}//rs.next() if statement;\r\n\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"Access denied! User@\"+usrname+\" not granted to create new users\", \"User@\"+usrname+\" authentication error\", javax.swing.JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t} catch (HeadlessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\telse {\r\n\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"Access Denied! The given password do not match\", \"Mismatch error\", javax.swing.JOptionPane.ERROR_MESSAGE);\t\t\t\t\t\t\r\n\t\t}\t\t\t\t\r\n\t}", "public void createButtonFrame()\n {\n JFrame createFrame = new JFrame();\n createFrame.setSize(560,200);\n Container pane2;\n pane2 = createFrame.getContentPane();\n JPanel createPanel = new JPanel(null);\n createEvent = new JTextArea(\"MM/DD/YYYY\");\n timeField1 = new JTextArea(\"00:00\");\n timeField2 = new JTextArea(\"00:00\");\n EventNameField = new JTextArea(\"UNTILED NAME\");\n JLabel EnterEventLabel = new JLabel(\"Enter Event Name:\");\n JLabel EnterDateLabel = new JLabel(\"Date:\");\n JLabel EnterStartLabel = new JLabel(\"Start:\");\n JLabel EnterEndLabel = new JLabel(\"End:\");\n JLabel toLabel = new JLabel(\"to\");\n pane2.add(createPanel);\n createPanel.add(createEvent);\n createPanel.add(timeField1);\n createPanel.add(EventNameField);\n createPanel.add(timeField2);\n createPanel.add(create);\n createPanel.add(EnterEventLabel);\n createPanel.add(EnterDateLabel);\n createPanel.add(EnterStartLabel);\n createPanel.add(EnterEndLabel);\n createPanel.add(toLabel);\n\n createPanel.setBounds(0, 0, 400, 200); //panel\n createEvent.setBounds(20, 90, 100, 25); //Date field\n timeField1.setBounds(150, 90, 80, 25); //Time field\n timeField2.setBounds(280, 90, 80, 25); //Time field 2\n create.setBounds(380, 100, 150, 50); //Create Button\n\n EnterStartLabel.setBounds(150, 65, 80, 25);\n EnterEndLabel.setBounds(280, 65, 80, 25);\n toLabel.setBounds(250, 90, 80, 25);\n EnterDateLabel.setBounds(20, 65, 80, 25);\n EventNameField.setBounds(20, 30, 300, 25); //Event Name Field\n EnterEventLabel.setBounds(20, 5, 150, 25);\n\n\n\n\n createFrame.setVisible(true);\n createFrame.setResizable(false);\n }", "private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "public void clickOnCreateButton() {\n\t\twaitForElement(createButton);\n\t\tclickOn(createButton);\n\t}", "private void initCreateDeckBtn() {\n createBtn = new Button((editWidth - 310) / 2, 400, \"CREATE NEW DECK\", MasterGUI.green, titleField.getWidth(), titleField.getHeight());\n createBtn.setFont(MasterGUI.poppinsFont);\n createBtn.setForeground(MasterGUI.white);\n createBtn.setContentAreaFilled(true);\n createBtn.setFocusPainted(false);\n ActionListener createAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createDeckFromInput();\n user.updateDeckList();\n repaintDeckCards();\n HomeView.repaintHomeView();\n }\n };\n createBtn.addActionListener(e -> {\n MainGUI.confirmDialog(createAction, \"Create new Deck?\");\n });\n editPanel.add(createBtn);\n }", "private void addBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n addBtnActionPerformed();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Createlbl = new javax.swing.JLabel();\n templbl = new javax.swing.JLabel();\n Bplbl = new javax.swing.JLabel();\n pulselbl = new javax.swing.JLabel();\n datelbl = new javax.swing.JLabel();\n temptxt = new javax.swing.JTextField();\n BPtxt = new javax.swing.JTextField();\n pulsetxt = new javax.swing.JTextField();\n datetxt = new javax.swing.JTextField();\n CreateSavetbn = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(243, 206, 206));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Createlbl.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n Createlbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Createlbl.setText(\"Create Vital Sign\");\n add(Createlbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 16, 421, -1));\n\n templbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n templbl.setText(\"Temperature:\");\n add(templbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(97, 80, -1, -1));\n\n Bplbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n Bplbl.setText(\"Blood Pressure:\");\n add(Bplbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(82, 127, -1, -1));\n\n pulselbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n pulselbl.setText(\"Pulse:\");\n add(pulselbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 174, -1, -1));\n\n datelbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n datelbl.setText(\"Date:\");\n add(datelbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(162, 221, -1, -1));\n add(temptxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 78, 105, -1));\n add(BPtxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 125, 105, -1));\n add(pulsetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 172, 105, -1));\n add(datetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 219, 105, -1));\n\n CreateSavetbn.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n CreateSavetbn.setText(\"Save\");\n CreateSavetbn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CreateSavetbnActionPerformed(evt);\n }\n });\n add(CreateSavetbn, new org.netbeans.lib.awtextra.AbsoluteConstraints(155, 263, -1, -1));\n }", "public void actionPerformed(ActionEvent e) {\n \tif(e.getActionCommand()==\"Home\")\n \t\tfireEvent(e.getActionCommand());\n \telse if(e.getActionCommand()==\"Create\"){\n \t\tcheckFields();\n \t\tif(createInputOK==true){\n\t \t\ttry{\n\t\t \t\t//TODO put in error checking \n\t\t \t\t//insertDB(); insert into books table\n\t\t \t\tDBConnect.insertDB(\"users (username,passw,email,books,students)\",\n\t\t \t\t\t\t\"('\"+userNameTxFld.getText()+\"','\"+ encryptedPassW+\"','\"+\n\t\t \t\teMailTxFld.getText()+\"','\"+ \"\"+\"','\"+ \"\"+\"')\");\t\t\n\t\t \t\t//DBConnect.updateDB(\"users\", \"users=CONCAT(user,'\"+id+\" ')\",\"usersid=\"+Globals.userid);\n\t\t \t\t//System.out.println(id+\"\\n\"+titleTxfld.getText());\n\t\t \t\t//http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html <-popup message\n\t\t \t\t//popup message saying book added \n\t\t \t\tJOptionPane.showMessageDialog(BookCheckWindow.frame, userNameTxFld.getText()+\" Has Been Created. Click Cancel to Log-In\");\n\t\t \tcreateInputOK=false;\n\t\t \tcreateUserOK=true;\n\t \t\t}\n\t \t\tcatch(Exception ex){\n\t \t\t\t\n\t \t\t}\n \t\t}\n \t}\n }", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "Button createButton();", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\t \t\n\t \tboolean custCreated = createCustomer();\n\t \t\n\t \t\t\n\t \tif(custCreated){\n\t \t\tdispose();\n\t \t\thome home = new home(cust);\n\t \t\thome.setLocationRelativeTo(null);\n\t \t\thome.setVisible(true);\n\t \t}\n\t \t\n\t \t\n\t }", "@Override public void actionPerformed(java.awt.event.ActionEvent arg0) {\n\t\tJButton jb=new JButton();\n\t\t\n\t\tjb=(JButton) arg0.getSource();\n\t\t\n\t\t//TypeOfJob=jtxp1a.getText();\n\t\t\n\t\tif(jb==Submit)\n\t\t{\n\t\tTypeOfJob=(String) Kindofjobs.getSelectedItem();\n\t\tDescription=jtxp1b.getText();\n\t\t\n\t\tDatess=(String) Dates.getSelectedItem();\n\t\tMonthh=(String) Months.getSelectedItem();\n\t\t\n\t\n\t\tKindofjobs.setEnabled(false);\n\t\tjtxp1b.setEnabled(false);\n\t\tDates.setEnabled(false);\n\t\tMonths.setEnabled(false);\n\t\t\n\t\tAdd_Client(this);\n\n\n\t\tif(count==0)\n\t\t{\n\t\t\tcount++;\n\t\t\tcm1.Make_managerp();\n\t\t}\t\n\t\n\n\t}\n\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == btnNewButton) {\r\n\t\t\t\t\tnew AddPatronGUI();\t\t\r\n\t\t\t\t\tbuildTable();\r\n\t\t\t\t\talphabetize();\r\n\t\t\t\t}\r\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == btnBack){\n\t\t\t//if user presses back, ask user if they are sure\n\t\t\tif (UserInterface.getMethods().yesOrNoDialogBox(\"Are You Sure You Want To Go Back??\", \"Return\")){\n\t\t\t\t//if true then create listMenu and dispose current window\n\t\t\t\ttry {\n\t\t\t\t\tListMenu list = new ListMenu();\n\t\t\t\t\t//Catch for errors\n\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR: Number Format Error\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t\t\t}\n\t\t\t\tdispose();\n\t\t\t}\t\t\t\n\t\t}\n\t\telse if (e.getSource()==btnCreate){\n\t\t\t//if user presses the create button it checks if the required fields are filled if not \n\t\t\t// an error is displayed\n\t\t\tif (txtName.getText().equalsIgnoreCase(\"\")||txtLastName.getText().equalsIgnoreCase(\"\")\n\t\t\t\t\t||txtAddress.getText().equalsIgnoreCase(\"\")||txtPhoneNumber.getText().equalsIgnoreCase(\"\")){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR: Please Fill All Of The Fields!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//if user presses create and all required fields are full then\n\t\t\t\t//create strings for the data and get the text from the text fields\n\t\t\t\tString str, str2;\n\t\t\t\tString name = txtName.getText() + \" \" + txtMiddle.getText() + \" \" + txtLastName.getText();\n\t\t\t\tString address = txtAddress.getText();\n\t\t\t\tString phone = txtPhoneNumber.getText();\n\t\t\t\t//create a new customer \n\t\t\t\tCustomer customer = new Customer (name,address,phone);\n\t\t\t\t//insert the customer into the customerList\n\t\t\t\tUserInterface.getCustList().insert(customer);\n\t\t\t\t//make str get the updated customerList\n\t\t\t\tstr = UserInterface.getCustList().print();\n\t\t\t\t//create a new chequings and savings account using the new customer ID\n\t\t\t\tChequing chequing = new Chequing(customer.getCustomerID());\n\t\t\t\tSavings savings = new Savings(customer.getCustomerID());\n\t\t\t\t//insert the accounts into accountList\n\t\t\t\tUserInterface.getAccountList().insertC(chequing);\n\t\t\t\tUserInterface.getAccountList().insertS(savings);\n\t\t\t\t//get updated accountList\n\t\t\t\tstr2 = UserInterface.getAccountList().print();\n\t\t\t\t//write to the files \n\t\t\t\tUserInterface.getMethods().writeToFile(UserInterface.getCustFileName(), str);\n\t\t\t\tUserInterface.getMethods().writeToFile(UserInterface.getAccFileName(), str2);\n\t\t\t\t//when created go back to the list menu and then dispose current window\n\t\t\t\ttry {\n\t\t\t\t\tListMenu list = new ListMenu();\n\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR: Number Format Error\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t\t\t}\n\t\t\t\tdispose();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Created!\");\n\t\t\t}\n\t\t}\n\t\telse if (e.getSource()==btnChange){\n\t\t\t//if button change is pressed get the data from the fields using the holder variable\n\t\t\tString str;\n\t\t\tString name = holder.txtName.getText() + \" \" + holder.txtMiddle.getText() + \" \" + holder.txtLastName.getText();\n\t\t\tString address = holder.txtAddress.getText();\n\t\t\tString phone = holder.txtPhoneNumber.getText();\n\t\t\t//create a string that combines the data via a comma\n\t\t\tString customerInfo = name + \",\" + address + \",\" + phone; \n\t\t\t//call the change method from the customerList\n\t\t\tif (UserInterface.getCustList().change(customerId, customerInfo)){\n\t\t\t\t//if true and the list is changed \n\t\t\t\t//get the updated customerList\n\t\t\t\tstr = UserInterface.getCustList().print();\n\t\t\t\t//write to the customerRecords file\n\t\t\t\tUserInterface.getMethods().writeToFile(UserInterface.getCustFileName(), str);\n\t\t\t\t//when created go back to the list menu and then dispose current window\n\t\t\t\ttry {\n\t\t\t\t\tListMenu list = new ListMenu();\n\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERROR: Number Format Error\");\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t\t\t}\n\t\t\t\tholder.dispose();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Edited!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//if false\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Failed! Couldn't Change The Account\");\n\t\t\t}\n\t\t}\n\t}", "public void mmCreateClick(ActionEvent event) throws Exception{\r\n displayCreateProfile();\r\n }", "private void btnInventarioActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void gAddActionPerformed(ActionEvent e) {\n }", "public void createOrderBtn(){\n createOrderBtn = new Button(\"Create order\");\n createOrderBtn.setLayoutX(305);\n createOrderBtn.setLayoutY(710);\n createOrderBtn.setPrefWidth(480);\n createOrderBtn.setPrefHeight(50);\n createOrderBtn.setStyle(\"-fx-background-color: #34ffb9\");\n createOrderBtn.setFont(new Font(18));\n createOrderBtn.setOnAction(event -> createOrderInDB());\n\n root.getChildren().addAll(createOrderBtn);\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t\tMySQLConnect dal = new MySQLConnect();\r\n\t\t\ttry {\r\n\t\t\t\tString name;\r\n\t\t\t\tString date;\r\n\t\t\t\tString desc;\r\n\t\t\t\tString course;\r\n\t\t\t\tString type;\r\n\t\t\t\tString prior;\r\n\t\t\t\tScanner scan = new Scanner(System.in);\r\n\t\t\t\tSystem.out.println(\"Name: \");\r\n\t\t\t\tname = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Due Date(YYYY-MM-DD): \");\r\n\t\t\t\tdate = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Description: \");\r\n\t\t\t\tdesc = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Course: \");\r\n\t\t\t\tcourse = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Type: \");\r\n\t\t\t\ttype = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Priority: \");\r\n\t\t\t\tprior = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"The following form was added to the database:\");\r\n\t\t\t\tString[] check = dal.addForm(name.toString(),\"admin\",date.toString(),desc.toString(),course.toString(),type.toString(),prior.toString());\r\n\t\t\t\tfor(int i=0; i<check.length; i++){\r\n\t\t\t\t\tSystem.out.print(check[i] + \" \");\r\n\t\t\t\t}\r\n\t\t\t\t//test confirmation that button works\r\n\t\t\t\ttextArea.append(\"Form Submitted!\\n\");\r\n\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "HasClickHandlers getCreateNewButton();", "public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }", "private void txtidDemActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnRegresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "@Override\npublic void actionPerformed(ActionEvent arg0) {\n\t if (arg0.getSource() == btNewClient){\n\t\t\n\t }\n\t if (arg0.getSource() == btEdit){\n\t \n\t }\n\t\n}", "@FXML public void createBT_handler(ActionEvent e) {\n\t\tString getUser = userNameTF.getText();\n\n\t\tif(getUser.trim().isEmpty()) {\n\t\t\tAlert error = new Alert(AlertType.ERROR, \"Please enter userName.\", ButtonType.OK);\n\t error.showAndWait();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(mgUsr.arrList.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION, \"Do you want to add new user?\", ButtonType.YES, ButtonType.NO);\n\t\t\t alert.showAndWait();\n\t\t\t \n\t\t\t if (alert.getResult() == ButtonType.NO) {\n\t\t\t\t return;\n\t\t\t }\n\t\t\t \n\t\t\taddToArrayList(getUser);\n\t\t\tuserNameTF.clear();\n\t\t}\n\t\telse if((duplicationCheck(getUser))==true) {\n\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION, \"Do you want to add new user?\", ButtonType.YES, ButtonType.NO);\n\t\t\t alert.showAndWait();\n\t\t\t \n\t\t\t if (alert.getResult() == ButtonType.NO) {\n\t\t\t\t return;\n\t\t\t }\n\t\t\t \n\t\t\taddToArrayList(getUser);\n\t\t\tuserNameTF.clear();\n\t\t}\n\t\telse if((duplicationCheck(getUser))==false) {\n\t\t\tAlert error = new Alert(AlertType.ERROR, \"Input userName is already in the list\", ButtonType.OK);\n\t error.showAndWait();\n\t\t\t\n\t\t\tuserNameTF.clear();\n\t\t\treturn;\n\t\t}\n\t}", "private void createButton(int i){\n\t\tint x = 10, y = 120, width = 100, height = 20;\n\t\tint temp = 0;\n\t\t\n\t\tbuttons.add(new JButton(\"New Student\"));\n\t\tbuttons.get(i).addActionListener(this);\n\t\t\n\t\tfor (int a = 0; a<i; a++){\n\t\t\tx += 110;\n\t\t\ttemp++;\n\t\t\tif(temp >= Integer.parseInt(askColumns.getText())){\n\t\t\t\ty += 140;\n\t\t\t\tx = 10;\n\t\t\t\ttemp = 0;\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t\tbuttons.get(i).setBounds(x, y, width, height);\n\t\tthis.add(buttons.get(i));\t\n\t\tbuttons.get(i).revalidate();\n\t\tbuttons.get(i).repaint();\n\t\t\n\t}", "private void createUserInterface()\r\n {\r\n // get content pane for attaching GUI components\r\n Container contentPane = getContentPane();\r\n\r\n // enable explicit positioning of GUI components\r\n contentPane.setLayout( null );\r\n \r\n // set up side1JLabel\r\n side1JLabel = new JLabel();\r\n side1JLabel.setBounds( 16, 16, 40, 24 );\r\n side1JLabel.setText( \"Side1:\" );\r\n contentPane.add( side1JLabel );\r\n \r\n // set up side1JTextField\r\n side1JTextField = new JTextField();\r\n side1JTextField.setBounds( 72, 16, 90, 24 );\r\n side1JTextField.setHorizontalAlignment( JTextField.RIGHT ); \r\n contentPane.add( side1JTextField );\r\n \r\n // set up side2JLabel\r\n side2JLabel = new JLabel();\r\n side2JLabel.setBounds( 16, 56, 40, 24 );\r\n side2JLabel.setText( \"Side2:\" );\r\n contentPane.add( side2JLabel );\r\n \r\n // set up side2JTextField\r\n side2JTextField = new JTextField();\r\n side2JTextField.setBounds( 72, 56, 90, 24 );\r\n side2JTextField.setHorizontalAlignment( JTextField.RIGHT );\r\n contentPane.add( side2JTextField );\r\n \r\n // set up side3JLabel\r\n side3JLabel = new JLabel();\r\n side3JLabel.setBounds( 16, 96, 40, 24 );\r\n side3JLabel.setText( \"Side3:\" );\r\n contentPane.add( side3JLabel );\r\n \r\n // set up side3JTextField\r\n side3JTextField = new JTextField();\r\n side3JTextField.setBounds( 72, 96, 90, 24 );\r\n side3JTextField.setHorizontalAlignment( JTextField.RIGHT );\r\n contentPane.add( side3JTextField );\r\n \r\n // set up messageJTextField\r\n messageJTextField = new JTextField();\r\n messageJTextField.setBounds( 16, 140, 252, 24 );\r\n messageJTextField.setEditable( false );\r\n contentPane.add( messageJTextField );\r\n \r\n // set up createJButton\r\n createJButton = new JButton();\r\n createJButton.setBounds( 178, 16, 90, 24 );\r\n createJButton.setText( \"Create\" );\r\n contentPane.add( createJButton );\r\n createJButton.addActionListener( \r\n \r\n new ActionListener() // anonymous inner class\r\n {\r\n // event handler called when createJButton is pressed\r\n public void actionPerformed( ActionEvent event )\r\n {\r\n createJButtonActionPerformed( event );\r\n }\r\n \r\n } // end anonymous inner class\r\n \r\n ); // end call to addActionListener\r\n \r\n // set properties of application's window\r\n setTitle( \"Triangle Creator\" ); // set title bar string\r\n setSize( 290, 208 ); // set window size\r\n setVisible( true ); // display window\r\n \r\n }", "public void addActionCreate(ActionListener create) {\n btnCreateGame.addActionListener(create);\n }", "private void buttonInitiation() {\n submit = new JButton(\"Submit\");\n submit.setBounds(105, 250, 90, 25);\n this.add(submit);\n goBack = new JButton(\"Return to Main Menu\");\n goBack.setBounds(205, 250, 200, 25);\n this.add(goBack);\n }", "private void jbtn_addActionPerformed(ActionEvent evt) {\n\t\ttry {\n\t\t\tconn cc=new conn();\n \t\t//String query1=\"SELECT * FROM doctor\";\n \t\t//ResultSet rs=cc.st.executeQuery(query1);\n \t\tpst=cc.c.prepareStatement(\"insert into medicine(medicine_name,brand,mfd_date,expiry_date,price)value(?,?,?,?,?)\");\n \t\t\n \t\tpst.setString(1,jtxt_medname.getText());\n \t\tpst.setString(2,jtxt_brand.getText());\n \t\tpst.setString(3,jtxt_mfd.getText());\n \t\tpst.setString(4,jtxt_exp.getText());\n \t\tpst.setString(5,jtxt_price.getText());\n \t\t\n \t\tpst.executeUpdate();\n \t\tJOptionPane.showMessageDialog(this,\"Record Added\");\n \t\tupDateDB();\n \t\ttxtblank();\n \t\t\n\t\t}\n\t\t \n\t\t\n\t\tcatch (SQLException ex)\n\t\t{\n\t\t\tjava.util.logging.Logger.getLogger(show_doc.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent arg0) {\n\t\tCreateTables creator = new CreateTables(tlp);\n\t\tcreator.createLogTable();\n//\t\tcreator.createRacesTable();\n//\t\tcreator.createTravelHistoryTable();\n\t\tSystem.out.println(\"log exist: \"+creator.checkExistingTable(\"log\"));\n\t\tSystem.out.println(\"races exist: \"+creator.checkExistingTable(\"races\"));\n\t\tSystem.out.println(\"travelhistory exist: \"+creator.checkExistingTable(\"travelhistory\"));\n\t}", "private JButton createBookButton() {\n\t\tfinal JButton bookButton = new JButton(\"Create Booking\");\n\n\t\tbookButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\thandleBooking();\n\t\t\t}\n\t\t});\n\n\t\treturn bookButton;\n\t}", "private void Button_CEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_CEActionPerformed\n // TODO add your handling code here:\n \n }", "private void devBtnActionPerformed(ActionEvent evt) {\n }", "private JButton createAddResourceButton() {\n\n JButton addBtn = new JButton(\"Add\");\n addBtn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n\n List<Resource> resourcesList = controller.getResoucesList();\n\n for (Resource resource : controller.getDemonstration().getResourcesList()) {\n resourcesList.remove(resource);\n }\n\n if (resourcesList.isEmpty()) {\n throw new IllegalArgumentException();\n }\n\n DialogSelectable dialogoNewResource = new DialogSelectable(CreateDemonstrationUI.this, resourcesList, \"Select Resource from list:\");\n Resource selectedResource = (Resource) dialogoNewResource.getSelectedItem();\n if (selectedResource == null) {\n throw new NullPointerException();\n }\n\n if (controller.addResource(selectedResource)) {\n updateResourcesList();\n String successMessage = \"Resource added successfully!\";\n String successTitle = \"Resource added.\";\n\n JOptionPane.showMessageDialog(rootPane, successMessage, successTitle, JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (NullPointerException ex) {\n\n } catch (IllegalArgumentException ex) {\n\n String warningMessage = \"There is no more resources to add\";\n String warningTitle = \"No more resources in system\";\n\n JOptionPane.showMessageDialog(rootPane, warningMessage, warningTitle, JOptionPane.WARNING_MESSAGE);\n\n } catch (Exception ex) {\n\n String warningMessage = \"Something wen't wrong please try again.\";\n String warningTitle = \"ERROR 404\";\n\n JOptionPane.showMessageDialog(rootPane, warningMessage, warningTitle, JOptionPane.WARNING_MESSAGE);\n }\n\n }\n });\n return addBtn;\n }", "private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }", "public void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t/*\r\n\t\t\t * If CREATE button is pressed.\r\n\t\t\t */\r\n\t\t\tif (e.getSource() == btnCreate) {\r\n\t\t\t\tString nrStr = txtNrOfBox.getText().trim();\r\n\r\n\t\t\t\t// if there is nothing typed in...\r\n\t\t\t\tif (nrStr.length() == 0) {\r\n\r\n\t\t\t\t\t// ... error message appears.\r\n\t\t\t\t\tErrorDialog errorDialog = new ErrorDialog(\"Error!\");\r\n\t\t\t\t\t// Text of the error message:\r\n\t\t\t\t\terrorDialog.showMessage(\"Please enter ammount\");\r\n\r\n\t\t\t\t\t// Waiting for error dialog to close\r\n\r\n\t\t\t\t\t// release MS Windows resources\r\n\t\t\t\t\terrorDialog.dispose();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Initiate object for amount of boxes\r\n\t\t\t\tint nr = -1;\r\n\r\n\t\t\t\t// Check if it is a number typed in\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// If it's a number, value of \"nr\" is changed successfully\r\n\t\t\t\t\tnr = Integer.parseInt(nrStr);\r\n\t\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\t\t// If it's not a number, error message appears.\r\n\t\t\t\t\tErrorDialog errorDialog = new ErrorDialog(\"Error!\");\r\n\t\t\t\t\t// Text of the error message:\r\n\t\t\t\t\terrorDialog.setLblText(\"You must use numbers.\");\r\n\t\t\t\t\terrorDialog.setVisible(true);\r\n\r\n\t\t\t\t\t// Waiting for error dialog to close\r\n\r\n\t\t\t\t\t// release MS Windows resources\r\n\t\t\t\t\terrorDialog.dispose();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (nr < 0) {\r\n\t\t\t\t\t// If number entered is negative, error message appears.\r\n\t\t\t\t\tErrorDialog errorDialog = new ErrorDialog(\"Error!\");\r\n\t\t\t\t\t// Text of the error message:\r\n\t\t\t\t\terrorDialog.setLblText(\"The ammount must bigger than 0.\");\r\n\t\t\t\t\terrorDialog.setVisible(true);\r\n\r\n\t\t\t\t\t// Waiting for error dialog to close\r\n\r\n\t\t\t\t\t// release MS Windows resources\r\n\t\t\t\t\terrorDialog.dispose();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// New number of a drawer is the last number +1.\r\n\t\t\t\tint drawerNumber = service.getDrawers().get(\r\n\t\t\t\t\t\tservice.getDrawers().size() - 1).getId() + 1;\r\n\t\t\t\tif (drawer == null) {\r\n\t\t\t\t\tservice.addDrawer(new Drawer(drawerNumber, nr));\r\n\t\t\t\t}\r\n\t\t\t\t// new drawer is created.\r\n\r\n\t\t\t\tclosedByCreate = true;\r\n\t\t\t\tCreateDrawer_Dialog.this.setVisible(false);\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * If CANCEL button is pressed.\r\n\t\t\t */\r\n\t\t\tif (e.getSource() == btnCancel) {\r\n\t\t\t\tclosedByCreate = false;\r\n\t\t\t\tCreateDrawer_Dialog.this.setVisible(false);\r\n\t\t\t}\r\n\t\t}", "private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jCAreaActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTemperature = new javax.swing.JLabel();\n lblBloodPressure = new javax.swing.JLabel();\n lblPulse = new javax.swing.JLabel();\n lblDate = new javax.swing.JLabel();\n txtTemperature = new javax.swing.JTextField();\n txtBloodPressure = new javax.swing.JTextField();\n txtPulse = new javax.swing.JTextField();\n txtDate = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n btnSave = new javax.swing.JButton();\n\n lblTemperature.setText(\"Temperature\");\n\n lblBloodPressure.setText(\"Blood Pressure\");\n\n lblPulse.setText(\"Pulse\");\n\n lblDate.setText(\"Date\");\n\n txtTemperature.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtTemperatureActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Create Vital Signs\");\n\n btnSave.setText(\"Save\");\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDate)\n .addComponent(lblPulse)\n .addComponent(lblBloodPressure)\n .addComponent(lblTemperature))\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSave)\n .addComponent(jLabel1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtTemperature, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)\n .addComponent(txtBloodPressure)\n .addComponent(txtPulse)\n .addComponent(txtDate)))\n .addContainerGap(432, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblTemperature)\n .addComponent(txtTemperature, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblBloodPressure)\n .addComponent(txtBloodPressure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54)\n .addComponent(lblPulse))\n .addComponent(txtPulse, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDate)\n .addComponent(txtDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addComponent(btnSave)\n .addContainerGap(167, Short.MAX_VALUE))\n );\n }", "private void btnAjusteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnAjusteMouseClicked\r\n // TODO add your handling code here:\r\n }", "private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnCreateHeroActionPerformed() {// GEN-FIRST:event_btnCreateHeroActionPerformed\r\n\t\tdispose();\r\n\t\tHero h = new Hero(txtCreateName.getText());\r\n\t\tnew MainForm().setVisible(true);\r\n\t\tMainForm.setHero(h);\r\n\t\tMainForm.makeOpponents();\r\n\t\th = null;\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t\tString create_query=\"CREATE TABLE '\" + username.getText() + \"' ('ID' TEXT PRIMARY KEY NOT NULL , 'DATE' TEXT, 'CODE' TEXT, 'NumOfPieces' INTEGER DEFAULT 0,'WEIGHT' DOUBLE DEFAULT 0.000,'PARTICULAR' TEXT, 'DEBIT' DOUBLE DEFAULT 0.00, 'CREDIT' DOUBLE DEFAULT 0.00)\";\n\t\t\t\t\tPreparedStatement pst2 = connection.prepareStatement(create_query);\n\t\t\t\t\tpst2.executeUpdate();\n\t\t\t\t\tString insert_query=\"INSERT INTO JAM_USER(user_name,user_pwd,user_cr,user_db,user_bal) VALUES(?,?,?,?,?)\";\n\t\t\t\t\tPreparedStatement pst3 = connection.prepareStatement(insert_query);\n\t\t\t\t\tpst3.setString(1,username.getText());\n\t\t\t\t\tpst3.setString(2,password.getText());\n\t\t\t\t\t//pst2.setString(3,);\n\t\t\t\t\t//pst2.setString(4,password.getText());\n\t\t\t\t\t//pst2.setString(5,username.getText());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpst3.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"User Created Successfully, Please Login!\",\"Jarvis Account Manager\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t//\tframe.dispose();\n\t\t\t\t//\tSecond_frame sf1= new Second_frame();\n\t\t\t\t//\tsf1.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpst2.close();\n\t\t\t\t\tpst3.close();\n\t\t\t\t}catch(Exception se){\n\t\t\t\t\t//JOptionPane.showMessageDialog(null,se);\n\t\t\t\t\tJOptionPane.showMessageDialog(null,se.getMessage(),\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "void createButton(Button main){\n\t\tActions handler = new Actions();\r\n\t\tmain.setOnAction(handler);\r\n\t\tmain.setFont(font);\r\n\t\t//sets button preference dimensions and label \r\n\t\tmain.setPrefWidth(100);\r\n\t\tmain.setPrefHeight(60);\r\n\t\tmain.setText(\"Close\");\r\n\t}", "private void btnConfirmActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private JButton createButtonAddKeyword() {\n\n JButton btn = new JButton(\"Add Keyword\");\n btn.setEnabled(false);\n btn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (newKeyword(JOptionPane.showInputDialog(\"Insert a Keyword\"))) {\n JOptionPane.showMessageDialog(rootPane, \"Keyword inserted sucessfully!\", \"Sucess\", JOptionPane.PLAIN_MESSAGE);\n }\n\n }\n });\n\n return btn;\n }", "private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }", "private void templateDocActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_templateDocActionPerformed\n // Autogenerated code, no need to do anything here\n }", "private JButton createButtonAddProduct() {\n\n JButton btn = new JButton(\"Add Product\");\n btn.setEnabled(false);\n btn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n // new NewProductDialog(DemonstrationApplication.this);\n }\n });\n\n return btn;\n }", "public void onSelectionCreate(ActionEvent event) throws SQLException {\n //TODO think about creating league model class to get id easily\n if(chooseAgeGroupCreate.getValue() != null && chooseCityBoxCreate.getValue() != null){\n chooseLeagueBoxCreate.setDisable(false);\n chooseLeagueTeamBoxCreate.getItems().clear();\n chooseLeagueBoxCreate.getItems().clear();\n ObservableList<String> leagueList = DatabaseManager.getLeagues(user, chooseCityBoxCreate.getValue().toString(), chooseAgeGroupCreate.getValue());\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate .setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose League\");\n } else {\n setText(item);\n }\n }\n });\n if(leagueList.size() != 0){\n chooseLeagueBoxCreate.getItems().addAll(leagueList);\n }\n }\n }", "private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void Button_RecipricalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_RecipricalActionPerformed\n // TODO add your handling code here:\n }", "void fileNewEmptyWindowActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "private void createEvents() {\n\t\taddBtn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}", "private void ControlsActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel7 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = 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 eventCapJTxtField = new javax.swing.JTextField();\n eventNameJTxtField = new javax.swing.JTextField();\n eventDesJTxtField = new javax.swing.JTextField();\n locJTxtField = new javax.swing.JTextField();\n backJBtn = new javax.swing.JButton();\n createEventJBtn = new javax.swing.JButton();\n eventDate = new com.toedter.calendar.JDateChooser();\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Pics/party-51.jpg\"))); // NOI18N\n jLabel7.setText(\"jLabel7\");\n\n setBackground(new java.awt.Color(0, 0, 0));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 153, 153));\n jLabel1.setText(\"Create New Event\");\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 11, -1, -1));\n\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Event Name: \");\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 61, 120, -1));\n\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Event Description: \");\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 99, 120, -1));\n\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Date: \");\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 134, 120, -1));\n\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"No of People:\");\n add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 175, 120, -1));\n\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Location: \");\n add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 213, 120, -1));\n add(eventCapJTxtField, new org.netbeans.lib.awtextra.AbsoluteConstraints(158, 172, 200, -1));\n add(eventNameJTxtField, new org.netbeans.lib.awtextra.AbsoluteConstraints(158, 58, 200, -1));\n add(eventDesJTxtField, new org.netbeans.lib.awtextra.AbsoluteConstraints(158, 96, 200, -1));\n add(locJTxtField, new org.netbeans.lib.awtextra.AbsoluteConstraints(158, 210, 200, -1));\n\n backJBtn.setText(\"Back\");\n backJBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJBtnActionPerformed(evt);\n }\n });\n add(backJBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 248, -1, -1));\n\n createEventJBtn.setText(\"Create Event\");\n createEventJBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n createEventJBtnActionPerformed(evt);\n }\n });\n add(createEventJBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(158, 248, -1, -1));\n add(eventDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(158, 134, 200, -1));\n }", "private void nombretxtActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private JButton getJButton() {\n\t\tif (new_button == null) {\n\t\t\tnew_button = new JButton();\n\t\t\tnew_button.setText(Locale.getString(\"NEW\"));\n\t\t\tnew_button.setMnemonic(java.awt.event.KeyEvent.VK_N);\n\t\t\tnew_button.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn new_button;\n\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tADMLE.Admin_DDL_Create();\n\t\t\t\tADML.setVisible(false);\n\t\t\t}", "private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void button1ActionPerformed(ActionEvent e) {\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n createUserJButton = new javax.swing.JButton();\r\n nameJTextField = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n userJTable = new javax.swing.JTable();\r\n jLabel2 = new javax.swing.JLabel();\r\n passwordJTextField = new javax.swing.JTextField();\r\n jLabel3 = new javax.swing.JLabel();\r\n employeeJComboBox = new javax.swing.JComboBox();\r\n backjButton1 = new javax.swing.JButton();\r\n jLabel5 = new javax.swing.JLabel();\r\n organizationJComboBox = new javax.swing.JComboBox();\r\n jLabel4 = new javax.swing.JLabel();\r\n roleJComboBox = new javax.swing.JComboBox();\r\n jLabel6 = new javax.swing.JLabel();\r\n\r\n setBackground(new java.awt.Color(102, 0, 102));\r\n setForeground(new java.awt.Color(102, 0, 102));\r\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n createUserJButton.setBackground(new java.awt.Color(153, 153, 153));\r\n createUserJButton.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\r\n createUserJButton.setForeground(new java.awt.Color(51, 0, 51));\r\n createUserJButton.setText(\" CREATE >>\");\r\n createUserJButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 5, true));\r\n createUserJButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n createUserJButtonActionPerformed(evt);\r\n }\r\n });\r\n add(createUserJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 660, 253, 52));\r\n\r\n nameJTextField.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 4, true));\r\n add(nameJTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 529, 198, -1));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel1.setText(\" USER NAME \");\r\n jLabel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 525, -1, -1));\r\n\r\n userJTable.setModel(new javax.swing.table.DefaultTableModel(\r\n new Object [][] {\r\n\r\n },\r\n new String [] {\r\n \"User Name\", \"Role\"\r\n }\r\n ) {\r\n Class[] types = new Class [] {\r\n java.lang.String.class, java.lang.String.class\r\n };\r\n boolean[] canEdit = new boolean [] {\r\n true, false\r\n };\r\n\r\n public Class getColumnClass(int columnIndex) {\r\n return types [columnIndex];\r\n }\r\n\r\n public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return canEdit [columnIndex];\r\n }\r\n });\r\n jScrollPane1.setViewportView(userJTable);\r\n if (userJTable.getColumnModel().getColumnCount() > 0) {\r\n userJTable.getColumnModel().getColumn(0).setResizable(false);\r\n userJTable.getColumnModel().getColumn(1).setResizable(false);\r\n }\r\n\r\n add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 150, 470, 124));\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel2.setText(\" PASSWORD \");\r\n jLabel2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 571, -1, -1));\r\n\r\n passwordJTextField.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 4, true));\r\n add(passwordJTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 575, 198, -1));\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel3.setText(\" EMPLOYEE \");\r\n jLabel3.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 383, -1, -1));\r\n\r\n employeeJComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n add(employeeJComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 387, 198, -1));\r\n\r\n backjButton1.setBackground(new java.awt.Color(153, 153, 153));\r\n backjButton1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\r\n backjButton1.setForeground(new java.awt.Color(51, 0, 51));\r\n backjButton1.setText(\" << BACK \");\r\n backjButton1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 5, true));\r\n backjButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n backjButton1ActionPerformed(evt);\r\n }\r\n });\r\n add(backjButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 660, 160, 52));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel5.setText(\" ORGANIZATION \");\r\n jLabel5.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 343, -1, -1));\r\n\r\n organizationJComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n organizationJComboBox.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n organizationJComboBoxActionPerformed(evt);\r\n }\r\n });\r\n add(organizationJComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 337, 198, -1));\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel4.setText(\" ROLE \");\r\n jLabel4.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 476, -1, -1));\r\n\r\n roleJComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n add(roleJComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 480, 198, -1));\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Lucida Grande\", 1, 36)); // NOI18N\r\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel6.setText(\"MANAGE USER ACCOUNT\");\r\n jLabel6.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 4, true));\r\n add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 40, -1, -1));\r\n }", "void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }", "public String[] creationBox(String title, String message, String button1, String button2) {\n //isCancel is used to know if the cancel button was clicked on\n final int[] isCancel = new int[1];\n //Creating the GUI for the box\n Stage window = new Stage();\n //Ensuring that other windows cannot but used while this one is still up\n window.initModality((Modality.APPLICATION_MODAL));\n window.setTitle(title);\n\n\n //Creating and modifying the layout\n GridPane grid = new GridPane();\n grid.setPadding(new Insets(10, 10, 10, 10));\n grid.setVgap(8);\n grid.setHgap(10);\n\n //components and adding them to the layout\n Label messageToDisplay = new Label(message);\n TextField creationNameField = new TextField();\n creationNameField.setPromptText(\"Characters Not allowed:!@#$%^&*()+{}[]\\\\.\");\n Button okButton = new Button(button1);\n Button cancelButton = new Button(button2);\n grid.maxHeight(700);\n grid.maxWidth(300);\n GridPane.setConstraints(messageToDisplay, 5, 5);\n GridPane.setConstraints(creationNameField, 5, 6);\n GridPane.setConstraints(okButton, 6, 6);\n GridPane.setConstraints(cancelButton, 7, 6);\n grid.getChildren().setAll(messageToDisplay, okButton, cancelButton, creationNameField);\n\n Creations creation = new Creations();\n\n //Setting up event handlers\n cancelButton.setOnAction(e -> {\n isCancel[0] = 1;\n window.close();\n\n });\n okButton.setOnAction(e -> {\n isCancel[0] = 0;\n boolean isInvalidCharacters = creation.reggexChecker(creationNameField.getText());\n int fieldLength= creationNameField.getText().length()-1;\n String fieldInput=creationNameField.getText();\n if (creationNameField.getText() == null || creationNameField.getText().equals(\"\") || isInvalidCharacters || creationNameField.getText().length() > 20 || creationNameField.getText().trim().isEmpty() || fieldInput.charAt(fieldLength)==' ' || fieldInput.charAt(0)==' ') {\n AlertBox(\"Invalid Input\", \"Please enter a valid creation name:\\nWithout special characters, non-empty,not just a space,\\nno space at the end of the name and less than 20 characters long\\n\", 580, 100);\n } else {\n window.close();\n }\n\n });\n\n Scene scene = new Scene(grid, 580, 130);\n window.setScene(scene);\n window.setResizable(false);\n window.centerOnScreen();\n window.showAndWait();\n //Setting up the return array, which returns the boolean if the cancel button was placed and the input to the\n //textfield.\n String[] combinedOutput = new String[2];\n combinedOutput[0] = creationNameField.getText();\n combinedOutput[1] = String.valueOf(isCancel[0]);\n return combinedOutput;\n\n }", "public void actionPerformed(ActionEvent arg0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tborderSelected(dayNumber -1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//show the event items in the box on the right\n\t\t\t\t\t\t\twriteEvents(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchangeDateLabel(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//make these buttons available for use\n\t\t\t\t\t\t\tnextDay.setEnabled(true);\n\t\t\t\t\t\t\tprevDay.setEnabled(true);\n\t\t\t\t\t\t\tcreateButton.setEnabled(true);\n\t\t\t\t\t\t}", "public void buttonNewTab(ActionEvent actionEvent) {\n }", "private void blockBuildIt1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Listen(\"onClick=#createEntryButton\")\n public void createEntryButtonOnClick(){\n Window window = (Window) Executions.createComponents(\"entry.zul\", phonePageWindow, new HashMap());\n window.doModal();\n }", "private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }", "private void fullNameRegisterActionPerformed(java.awt.event.ActionEvent evt) {\n }", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "private void btnMenuActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\r\n public void handle(ActionEvent e) {\n CreateUser create = new CreateUser(txtUserName, txtEmail,\r\n txtFirstName, txtLastName, txtPassword);\r\n\r\n create.createUser(); //Call the createUser method.\r\n confirmUserStage.close(); //Close the confirm stage\r\n\r\n }", "private void createEvents() {\n\t\tbtnPushTheButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t\n\t\t\tprivate List<String> b;\n\n\t\n\t\t\t//@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tact = true;\n\t\t\t\t\n//\t\t\t\tb = new ArrayList<String>();\n//\t\t\t\t\n//\t\t\t\tthis.b= (List<String>) ((List<Object>) (agent.v.getData())).stream().map(item -> {\n//\t\t\t\t\treturn (String) item;\n//\t\t\t\t});\n//\t\t\t\tString c = String.join(\", \", b);\n//\t\t\t\tclassTextArea.setText(c);\n//\t\t\t\n//\t\t\t\tclassTextArea.setText(b.toString());\n//\t\t\t\t\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t}", "private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void addBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMousePressed\n addBtn.setBackground(Color.decode(\"#1e5837\"));\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnumb = 3;\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs = null;\r\n\t\t\t\t\tconn = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n\t\t\t\t\tstmt = conn.createStatement();\r\n\t\t\t\t\tString sql = \"select sqlInsertName from sqlInsert\";\r\n\t\t\t\t\trs = stmt.executeQuery(sql);\r\n\t\t\t\t\tString str_show = \"\";\r\n\t\t\t\t\twhile(rs.next()) {\r\n\t\t\t\t\t\tstr_show += rs.getString(\"sqlInsertName\") + \" \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshowFileName.setText(str_show);\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t\tupJFrame();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public void createnewusersubmitbutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Create new user button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"createnewuserbutton\"));\r\n\t\t\tclick(locator_split(\"createnewuserbutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- create new user button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- create new user button is not clicked \"+elementProperties.getProperty(\"createnewuserbutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"createnewuserbutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}" ]
[ "0.8559808", "0.8241343", "0.76772773", "0.7536922", "0.7350369", "0.732626", "0.7307846", "0.7154335", "0.7139734", "0.7107992", "0.71025014", "0.70447105", "0.7031034", "0.69474113", "0.69385064", "0.69301337", "0.69281596", "0.6917969", "0.68518037", "0.68518037", "0.6836674", "0.68232846", "0.68210626", "0.68073887", "0.6798262", "0.67266667", "0.671326", "0.6637327", "0.66278476", "0.6619215", "0.65882766", "0.658769", "0.658225", "0.65777683", "0.65714467", "0.65659153", "0.6545691", "0.65318716", "0.6527338", "0.6503852", "0.64983165", "0.64850044", "0.64783406", "0.64762455", "0.64538044", "0.64409184", "0.6440693", "0.64374244", "0.6428255", "0.64118844", "0.6408521", "0.6406309", "0.64042926", "0.6403761", "0.6391242", "0.6388875", "0.6388766", "0.6371506", "0.63699293", "0.6363338", "0.63593346", "0.63591504", "0.63544977", "0.63540566", "0.6348225", "0.63470376", "0.6344406", "0.63433194", "0.6343014", "0.63392866", "0.6334597", "0.63095343", "0.63065076", "0.63057417", "0.62991434", "0.6297342", "0.6297342", "0.6297342", "0.6296593", "0.6295979", "0.6291363", "0.62906617", "0.6282405", "0.62790126", "0.62759733", "0.6275197", "0.627496", "0.6270251", "0.626968", "0.6261213", "0.62554854", "0.6241393", "0.6239792", "0.6235996", "0.62310606", "0.6228378", "0.62264705", "0.62191683", "0.6213939", "0.62097394" ]
0.6993837
13
This constructs an instance from a factory and a notifier.
public JuristTypeItemProvider(AdapterFactory adapterFactory) { super(adapterFactory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Factory() {\n this(getInternalClient());\n }", "public Factory() {\n\t\tsuper();\n\t}", "private VerifierFactory() {\n }", "public InternalFloaterFactory() {\n super();\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public static Factory factory() {\n return ext_xspf::new;\n }", "private FactoryTransformer(Factory factory) {\n super();\n iFactory = factory;\n }", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "private LocatorFactory() {\n }", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> defer(\r\n\t\t\t@Nonnull final Func0<? extends Observable<? extends T>> observableFactory) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\treturn observableFactory.invoke().register(observer);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "protected Object buildNewInstanceUsingFactory() throws DescriptorException {\n try {\n // If the method is static, the first argument is ignored and can be null\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getMethod(), this.getFactory(), new Object[0]));\n } catch (PrivilegedActionException exception) {\n Exception throwableException = exception.getException();\n if (throwableException instanceof IllegalAccessException) {\n throw DescriptorException.illegalAccessWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), throwableException);\n } else {\n throw DescriptorException.targetInvocationWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), throwableException);\n }\n }\n } else {\n return PrivilegedAccessHelper.invokeMethod(this.getMethod(), this.getFactory(), new Object[0]);\n }\n } catch (IllegalAccessException exception) {\n throw DescriptorException.illegalAccessWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n } catch (InvocationTargetException exception) {\n throw DescriptorException.targetInvocationWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n } catch (NullPointerException exception) {\n // Some JVMs will throw a NULL pointer exception here\n throw DescriptorException.nullPointerWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n }\n }", "private ServiceFactory() {}", "public ReplicateObjectMessageFactory() {\n super(null);\n }", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public interface AbstractSenderFactory {\n Sender create();\n}", "private Builder(final Function<Builder, DoubleFunction<String>> factory) {\n this.factory = factory;\n }", "private ConcreteFactory() {}", "public interface Factory {\r\n}", "interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }", "Instance createInstance();", "public CertificationFactoryImpl() {\n\t\tsuper();\n\t}", "Reproducible newInstance();", "protected Object buildFactory() throws DescriptorException {\n if (this.getFactoryClass() == null) {\n return null;\n }\n\n // If there is a factory class specified but no factory method name,\n // instantiate the factory using the default constructor\n if (this.getFactoryMethodName() == null) {\n return this.buildFactoryUsingDefaultConstructor();\n }\n\n // If both the factory class and the factory method name have been specified,\n // instantiate the factory by invoking the static factory method\n return this.buildFactoryUsingStaticMethod();\n }", "private NotificationClient() { }", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "public interface Factory<T> {\n T create();\n}", "public static ToUseTimeLineFactory init() {\n\t\ttry {\n\t\t\tToUseTimeLineFactory theToUseTimeLineFactory = (ToUseTimeLineFactory)EPackage.Registry.INSTANCE.getEFactory(ToUseTimeLinePackage.eNS_URI);\n\t\t\tif (theToUseTimeLineFactory != null) {\n\t\t\t\treturn theToUseTimeLineFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ToUseTimeLineFactoryImpl();\n\t}", "public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}", "private VegetableFactory() {\n }", "private MultibinderFactory() { }", "public static ScribbleFactory init()\n {\n\t\ttry {\n\t\t\tScribbleFactory theScribbleFactory = (ScribbleFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.scribble.org/Scribble\"); \n\t\t\tif (theScribbleFactory != null) {\n\t\t\t\treturn theScribbleFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ScribbleFactoryImpl();\n\t}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "private JSONMessageFactory(){}", "public LanterneFactoryImpl() {\n\t\tsuper();\n\t}", "private Notifier(){}", "private static O11y create(\n Context context, CounterFactory counterFactory, DistributionFactory distributionFactory) {\n return new O11y(\n // throttlingMs is a special counter used by dataflow. When we are having to throttle,\n // we signal to dataflow that fact by adding to this counter.\n // Signaling to dataflow is important so that a bundle isn't categorised as hung.\n counterFactory.get(context.getNamespace(), \"throttlingMs\"),\n // metrics specific to each rpc\n counterFactory.get(context.getNamespace(), \"rpc_failures\"),\n counterFactory.get(context.getNamespace(), \"rpc_successes\"),\n counterFactory.get(context.getNamespace(), \"rpc_streamValueReceived\"),\n distributionFactory.get(context.getNamespace(), \"rpc_durationMs\"),\n // qos wide metrics\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_latencyPerDocumentMs\"),\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_batchCapacityCount\"));\n }", "void init(Properties realTimeNotifierProperties, Properties persistentNotifierProperties);", "public static Testing2Factory init() {\n\t\ttry {\n\t\t\tTesting2Factory theTesting2Factory = (Testing2Factory)EPackage.Registry.INSTANCE.getEFactory(Testing2Package.eNS_URI);\n\t\t\tif (theTesting2Factory != null) {\n\t\t\t\treturn theTesting2Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Testing2FactoryImpl();\n\t}", "static NotificationJobInstanceProcessorFactory of(NotificationJobInstanceProcessor<?, ?> jobInstanceProcessor) {\n return new NotificationJobInstanceProcessorFactory() {\n\n @Override\n @SuppressWarnings(\"unchecked\")\n public <T extends NotificationJobInstance<?, ?>> NotificationJobInstanceProcessor<?, T> createJobInstanceProcessor(NotificationJobContext jobContext, T jobInstance) {\n return (NotificationJobInstanceProcessor<?, T>) jobInstanceProcessor;\n }\n\n };\n }", "public BaseNotificationBuilder() {\n this(new Notification());\n }", "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "public HttpUrlFetcher(Call.Factory factory) {\n super(factory);\n Intrinsics.checkParameterIsNotNull(factory, \"callFactory\");\n }", "public CommonsFactoryImpl() {\n\t\tsuper();\n\t}", "public Testing2FactoryImpl() {\n\t\tsuper();\n\t}", "public GpflFactoryImpl()\n {\n super();\n }", "public interface AlertFactoryMethod {\n\n Alert createAlert(String message);\n\n}", "Sticker.Factory getStickerFactory();", "public interface Factory<T> {\n\n /**\n * Returns an instance of the required type. The implementation determines whether or not a new or cached\n * instance is created every time this method is called.\n *\n * @return an instance of the required type.\n */\n T getInstance();\n}", "public static Factory factory() {\n return ext_accdt::new;\n }", "public interface IMessageFetcherFactory {\n /**\n * Create a fetcher for a named queue with given consumer of the item\n *\n * @param queueName Named queue in HzC.\n * @param itemConsumer The logic to be called once the item arrives in the queue\n * @param <T> Type of the item kept in queue\n * @return Constructed instance of the message fetcher\n */\n <T> IMessageFetcher<T> createFetcher(String queueName, Consumer<T> itemConsumer);\n}", "public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }", "private CloneFactory() {\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public ResourceFactory(){}", "public static Factory factory() {\n return text::new;\n }", "private Instantiation(){}", "public EsoFactoryImpl()\r\n {\r\n super();\r\n }", "public static CertificationFactory init() {\n\t\ttry {\n\t\t\tCertificationFactory theCertificationFactory = (CertificationFactory)EPackage.Registry.INSTANCE.getEFactory(CertificationPackage.eNS_URI);\n\t\t\tif (theCertificationFactory != null) {\n\t\t\t\treturn theCertificationFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CertificationFactoryImpl();\n\t}", "public StateMaintainer( final StateCaretaker caretaker, final ThreadFactory threadFactory) {\n _caretaker = caretaker;\n _scheduler = Executors.newSingleThreadScheduledExecutor( threadFactory);\n }", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }", "public EcoreFactoryImpl()\n {\n super();\n }", "private ObjectFactory() { }", "public EcoreFactoryImpl() {\n super();\n }", "public ClientRepositoryFactory(LocalAdapterFactory factory) {\n this.factory = factory;\n }", "Factory<? extends T> buildPersonFactory(String type);", "public static CostFactory init() {\n\t\ttry {\n\t\t\tCostFactory theCostFactory = (CostFactory)EPackage.Registry.INSTANCE.getEFactory(CostPackage.eNS_URI);\n\t\t\tif (theCostFactory != null) {\n\t\t\t\treturn theCostFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CostFactoryImpl();\n\t}", "public Notification() {\n\n\t}", "public ObjectFactory() {\n\t}", "public static XCanopusFactory init()\r\n {\r\n try\r\n {\r\n XCanopusFactory theXCanopusFactory = (XCanopusFactory)EPackage.Registry.INSTANCE.getEFactory(XCanopusPackage.eNS_URI);\r\n if (theXCanopusFactory != null)\r\n {\r\n return theXCanopusFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new XCanopusFactoryImpl();\r\n }", "public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "public ObjectFactory() {\r\n\t}", "public static Factory factory() {\n return ext_dbf::new;\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }", "public ObjectFactory() {\n }" ]
[ "0.6552412", "0.62663656", "0.61089873", "0.6078722", "0.60448784", "0.6043835", "0.6023037", "0.59145784", "0.5897592", "0.589741", "0.5891091", "0.587748", "0.5845498", "0.5832579", "0.5830015", "0.58202285", "0.58190596", "0.5806927", "0.5788405", "0.5746668", "0.57247263", "0.572466", "0.56952083", "0.56870365", "0.5680716", "0.5671546", "0.5670007", "0.56646466", "0.56624913", "0.56499696", "0.564055", "0.5638335", "0.56372815", "0.56372374", "0.56331784", "0.56331784", "0.56331784", "0.5621102", "0.56173295", "0.5610418", "0.56092584", "0.5607408", "0.55994487", "0.5598179", "0.5595532", "0.5594599", "0.5586581", "0.55829763", "0.5579628", "0.5577492", "0.55763733", "0.5571417", "0.55649954", "0.5560161", "0.55570745", "0.55520874", "0.5551652", "0.5548218", "0.5546908", "0.553858", "0.5525443", "0.552457", "0.5514342", "0.5512835", "0.5511446", "0.55048037", "0.54959345", "0.5492714", "0.54906684", "0.54883474", "0.5487236", "0.54848164", "0.54780436", "0.5476836", "0.5476119", "0.5474226", "0.54733646", "0.5471567", "0.54703665", "0.5459194", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876", "0.5458876" ]
0.0
-1
This returns the property descriptors for the adapted class.
@Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addPersonPropertyDescriptor(object); addOrganizationPropertyDescriptor(object); addWishApparatusPropertyDescriptor(object); addLicensePropertyDescriptor(object); } return itemPropertyDescriptors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }", "public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "public List<IPropertyDescriptor<T>> getProperties();", "public java.beans.PropertyDescriptor[] getPropertyDescriptors()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfinal java.beans.PropertyDescriptor[] res =\n\t\t\t\t{ prop(\"TargetType\", \"the type of vessel this model is evading\"),\n\t\t\t\t\t\tprop(\"Name\", \"the name of this detonation model\"),\n\t\t\t\t\t\tprop(\"DetectionLevel\", \"the name of this detonation model\"), };\n\t\t\t\tres[2]\n\t\t\t\t\t\t.setPropertyEditorClass(DetectionEvent.DetectionStatePropertyEditor.class);\n\t\t\t\treturn res;\n\t\t\t}\n\t\t\tcatch (java.beans.IntrospectionException e)\n\t\t\t{\n\t\t\t\treturn super.getPropertyDescriptors();\n\t\t\t}\n\t\t}", "public PropertyDescriptor[] getPropertyDescriptors() {\n\tPropertyDescriptor[] pd = new PropertyDescriptor[3];\n\ttry {\n\t\tpd [0] = new PropertyDescriptor(\"name\", RateTypeAccessBean.class);\n\t\tpd [1] = new PropertyDescriptor(\"ratetype\", RateTypeAccessBean.class);\n\t\tpd [2] = new PropertyDescriptor(\"basecurrency\", RateTypeAccessBean.class, \"getBasecurrency\", null);\n\t\treturn pd;\n\t} catch (IntrospectionException ex) {\n\t\tex.printStackTrace(System.out);\n\t}\n\treturn null;\n}", "public java.beans.PropertyDescriptor[] getPropertyDescriptors() {\n\ttry {\n\t\tjava.beans.PropertyDescriptor aDescriptorList[] = {\n\t\t\tcomponentOrientationPropertyDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "List<? extends T> getDeclaredProperties();", "private static PropertyDescriptor[] getPdescriptor() {\n PropertyDescriptor[] properties = new PropertyDescriptor[4];\n\n try {\n properties[PROPERTY_length] = new PropertyDescriptor(\"length\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getLength\", \"setLength\"); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor(\"name\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getName\", \"setName\"); // NOI18N\n properties[PROPERTY_nullable] = new PropertyDescriptor(\"nullable\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getNullable\", \"setNullable\"); // NOI18N\n properties[PROPERTY_type] = new PropertyDescriptor(\"type\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getType\", \"setType\"); // NOI18N\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n\n // Here you can add code for customizing the properties array.\n\n return properties;\n }", "public final PropertyDescriptor[] getPropertyDescriptors()\n {\n try{\n final PropertyDescriptor[] res={\n prop(\"Color\", \"Color to paint highlight\"),\n prop(\"Size\", \"size to paint highlight (pixels\"),\n };\n return res;\n }\n catch(Exception e)\n {\n MWC.Utilities.Errors.Trace.trace(e);\n return super.getPropertyDescriptors();\n }\n\n }", "public PropertyDescription[] getPropertiesDescriptions() {\n\t\tPropertyDescription[] pds = new PropertyDescription[3];\n\t\tpds[0] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"binMethod\",\n\t\t\t\t\"Discretization Method\",\n\t\t\t\t\"The method to use for discretization. Select 1 to create bins\"\n\t\t\t\t\t+ \" by weight. This will create bins with an equal number of items in \"\n\t\t\t\t\t+ \"each slot. Select 0 to do uniform discretization by specifying the number of bins. \"\n\t\t\t\t\t+ \"This will result in equally spaced bins between the minimum and maximum for \"\n\t\t\t\t\t+ \"each scalar column.\");\n\t\tpds[1] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"binWeight\",\n\t\t\t\t\"Number of Items per Bin\",\n\t\t\t\t\"When binning by weight, this is the number of items\"\n\t\t\t\t\t+ \" that will go in each bin. However, the bins may contain more or fewer values than \"\n\t\t\t\t\t+ \"weight values, depending on how many items equal the bin limits. Typically \"\n\t\t\t\t\t+ \"the last bin will contain less or equal to weight values and the rest of the \"\n\t\t\t\t\t+ \"bins will contain a number that is equal or greater to weight values.\");\n\t\tpds[2] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"numberOfBins\",\n\t\t\t\t\"Number of Bins\",\n\t\t\t\t\"Define the number of bins absolutely. \"\n\t\t\t\t\t+ \"This will give equally spaced bins between \"\n\t\t\t\t\t+ \"the minimum and maximum for each scalar \"\n\t\t\t\t\t+ \"column.\");\n\t\treturn pds;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddDeprecatedPropertyDescriptor(object);\n\t\t\taddExtendsPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "PropertyDesc[] getPropertyDesc()\r\n\t{\r\n\t\tPropertyDesc[] p = new PropertyDesc[properties.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Variable v : properties)\r\n\t\t{\r\n\t\t\tp[i++] = new PropertyDesc(v.name, v.varType, v.classID);\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n if (itemPropertyDescriptors == null) {\n super.getPropertyDescriptors(object);\n\n addOppositePropertyDescriptor(object);\n addRefsToPropertyDescriptor(object);\n addOriginalTypePropertyDescriptor(object);\n addFeaturesPropertyDescriptor(object);\n }\n return itemPropertyDescriptors;\n }", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddConcurrentResourcesPropertyDescriptor(object);\r\n\t\t\taddMemorySpacesPropertyDescriptor(object);\r\n\t\t\taddForkPropertyDescriptor(object);\r\n\t\t\taddExitPropertyDescriptor(object);\r\n\t\t\taddBase_NamespacePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDisplayLabelPropertyDescriptor(object);\n\t\t\taddDisplayedOnPropertyDescriptor(object);\n\t\t\taddRequiresRolePropertyDescriptor(object);\n\t\t\taddTitlePropertyDescriptor(object);\n\t\t\taddCollectionDisplayOptionPropertyDescriptor(object);\n\t\t\taddMaximumDisplaySizePropertyDescriptor(object);\n\t\t\taddTruncatePropertyDescriptor(object);\n\t\t\taddDateFormatPropertyDescriptor(object);\n\t\t\taddDisableInputPropertyDescriptor(object);\n\t\t\taddRequiredPropertyDescriptor(object);\n\t\t\taddMustMatchPropertyDescriptor(object);\n\t\t\taddInterfaceTypePropertyDescriptor(object);\n\t\t\taddPlaceholderPropertyDescriptor(object);\n\t\t\taddValidationPatternPropertyDescriptor(object);\n\t\t\taddInputClassPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddValidationPatternPropertyDescriptor(object);\n\t\t\taddInputClassPropertyDescriptor(object);\n\t\t\taddHiddenPropertyDescriptor(object);\n\t\t\taddContainerUniquePropertyDescriptor(object);\n\t\t\taddPersistentTypePropertyDescriptor(object);\n\t\t\taddOrmTypePropertyDescriptor(object);\n\t\t\taddInterfaceTypePropertyDescriptor(object);\n\t\t\taddSlugFieldsPropertyDescriptor(object);\n\t\t\taddUniquePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddIdentifierPropertyDescriptor(object);\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddProgressPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddDecompositionPropertyDescriptor(object);\n\t\t\taddParentDecompositionPropertyDescriptor(object);\n\t\t\taddTeamMembersPropertyDescriptor(object);\n\t\t\taddTestCasesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddKindPropertyDescriptor(object);\r\n\t\t\taddValuePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddCommentPropertyDescriptor(object);\n\t\t\taddRdatePropertyDescriptor(object);\n\t\t\taddTznamePropertyDescriptor(object);\n\t\t\taddX_propPropertyDescriptor(object);\n\t\t\taddIana_propPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public Class<?>[] getAdapterList() {\n\t\treturn new Class[] { IPropertySource.class };\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)\n\t{\n\t\tif (itemPropertyDescriptors == null)\n\t\t{\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddFrequencyPropertyDescriptor(object);\n\t\t\taddPrintUPSPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public XMLFieldDescriptor[] getAttributeDescriptors() {\n\n XMLFieldDescriptor[] fields\n = new XMLFieldDescriptor[attributeDescriptors.size()];\n\n attributeDescriptors.toArray(fields);\n return fields;\n }", "public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddMp3EntryReferenceParameterPropertyDescriptor(object);\r\n\t\t\taddLinkTextParameterPropertyDescriptor(object);\r\n\t\t\taddLinkDescriptionParameterPropertyDescriptor(object);\r\n\t\t\taddCommentParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastTitleParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastSubtitleParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastSummaryParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastPublishingDateParameterPropertyDescriptor(object);\r\n\t\t\taddPublishedMp3EntryReferenceResultPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddActionPropertyDescriptor(object);\n\t\t\taddSourcePropertyDescriptor(object);\n\t\t\taddTargetPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddIndexPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddCalleePropertyDescriptor(object);\r\n\t\t\taddParameterAssignmentsPropertyDescriptor(object);\r\n\t\t\taddCallerPropertyDescriptor(object);\r\n\t\t\taddNamePropertyDescriptor(object);\r\n\t\t\taddPreCallStateDefinitionsPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddWidgetTypePropertyDescriptor(object);\n\t\t\taddWidgetHintPropertyDescriptor(object);\n\t\t\taddReadOnlyPropertyDescriptor(object);\n\t\t\taddRequiredPropertyDescriptor(object);\n\t\t\taddIgnorePropertyDescriptor(object);\n\t\t\taddMenuActionsPropertyDescriptor(object);\n\t\t\taddElementFormNamePropertyDescriptor(object);\n\t\t\taddMultiLinePropertyDescriptor(object);\n\t\t\taddMultiChoicePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddShapePropertyDescriptor(object);\n\t\t\taddColorPropertyDescriptor(object);\n\t\t\taddWidthPropertyDescriptor(object);\n\t\t\taddStylePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public Result testGetPropertyDescriptors() {\n beanInfo.getPropertyDescriptors();\n PropertyDescriptor[] propertyDescriptors = beanInfo\n .getPropertyDescriptors();\n assertTrue(findProperty(\"property8\", propertyDescriptors));\n assertTrue(findProperty(\"class\", propertyDescriptors));\n assertEquals(propertyDescriptors.length, 2);\n return passed();\n }", "private List<PropertyGenerator> getPropertyGenerators() {\n\t\tList<PropertyGenerator.GeneratorFactory> factories = new ArrayList<PropertyGenerator.GeneratorFactory>();\n\t\t// these bindings will not mangle their property names\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.NONE));\n\t\tfactories.add(new MethodCallableGenerator.Factory());\n\t\t// these bindings will try to drop their prefix and use a shorter name\n\t\t// (e.g. getFoo -> foo)\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.GET));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.HAS));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.IS));\n\t\t// the field binding will use its name or append Field if it was already\n\t\t// taken by get/has/is\n\t\tfactories.add(new FieldPropertyGenerator.Factory());\n\n\t\tSet<String> namesTaken = new HashSet<String>();\n\t\tnamesTaken.add(\"getName\");\n\t\tnamesTaken.add(\"getPath\");\n\t\tnamesTaken.add(\"getType\");\n\t\tnamesTaken.add(\"getParentBinding\");\n\t\tnamesTaken.add(\"getChildBindings\");\n\n\t\tList<Element> elements = this.getAccessibleElements();\n\t\tList<PropertyGenerator> generators = new ArrayList<PropertyGenerator>();\n\n\t\tfor (PropertyGenerator.GeneratorFactory f : factories) {\n\t\t\tfor (Iterator<Element> i = elements.iterator(); i.hasNext();) {\n\t\t\t\tElement enclosed = i.next();\n\t\t\t\ttry {\n\t\t\t\t\tPropertyGenerator pg = f.newGenerator(this.pathBindingClass, this.name, this.element, enclosed,\n\t\t\t\t\t\t\tnamesTaken);\n\t\t\t\t\tif (namesTaken.contains(pg.getPropertyName())) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnamesTaken.add(pg.getPropertyName());\n\t\t\t\t\t}\n\t\t\t\t\ti.remove(); // element is handled, skip any further\n\t\t\t\t\t\t\t\t// generators\n\t\t\t\t\tgenerators.add(pg);\n\t\t\t\t\tthis.sourceElements.add(enclosed);\n\t\t\t\t} catch (WrongGeneratorException e) {\n\t\t\t\t\t// try next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn generators;\n\t}", "public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }", "public abstract List<BeanPropertyDefinition> findProperties();", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddPeersPropertyDescriptor(object);\n\t\t\taddMessagesPropertyDescriptor(object);\n\t\t\taddInitialStatePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddDefaultAutowirePropertyDescriptor(object);\r\n\t\t\taddDefaultInitMethodPropertyDescriptor(object);\r\n\t\t\taddDefaultAutowireCandidatesPropertyDescriptor(object);\r\n\t\t\taddDefaultDestroyMethodPropertyDescriptor(object);\r\n\t\t\taddDefaultLazyInitPropertyDescriptor(object);\r\n\t\t\taddDefaultMergePropertyDescriptor(object);\r\n\t\t\taddProfilePropertyDescriptor(object);\r\n\t\t\taddDescriptionPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "Property[] getProperties();", "public java.beans.MethodDescriptor[] getMethodDescriptors() {\n\ttry {\n\t\tjava.beans.MethodDescriptor aDescriptorList[] = {\n\t\t\tclearMethodDescriptor()\n\t\t\t,main_javalangString__MethodDescriptor()\n\t\t\t,toggleVisibilityMethodDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddAuditingPropertyDescriptor(object);\r\n\t\t\taddBranchingPropertyDescriptor(object);\r\n\t\t\taddWithRangesPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "public XMLFieldDescriptor[] getElementDescriptors() {\n XMLFieldDescriptor[] fields\n = new XMLFieldDescriptor[elementDescriptors.size()];\n elementDescriptors.toArray(fields);\n return fields;\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddNamePropertyDescriptor(object);\n\t\t\taddLocationPropertyDescriptor(object);\n\t\t\taddFlowPropertyDescriptor(object);\n\t\t\taddAuthorizationUrlPropertyDescriptor(object);\n\t\t\taddTokenUrlPropertyDescriptor(object);\n\t\t\taddGlobalNamePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDependant1PropertyDescriptor(object);\n\t\t\taddDependant2PropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddAfterColumnPropertyDescriptor(object);\n\t\t\taddBeforeColumnPropertyDescriptor(object);\n\t\t\taddPositionPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddC1PropertyDescriptor(object);\r\n\t\t\taddC2PropertyDescriptor(object);\r\n\t\t\taddPointReversePropertyDescriptor(object);\r\n\t\t\taddPointNormalPropertyDescriptor(object);\r\n\t\t\taddCrossing2PropertyDescriptor(object);\r\n\t\t\taddCrossing1PropertyDescriptor(object);\r\n\t\t\taddSignalsPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors ( Object object )\n {\n if ( itemPropertyDescriptors == null )\n {\n super.getPropertyDescriptors ( object );\n\n addIdPropertyDescriptor ( object );\n addConnectionDaPropertyDescriptor ( object );\n addConnectionAePropertyDescriptor ( object );\n addSiteOutputDirPropertyDescriptor ( object );\n addHierarchyPropertyDescriptor ( object );\n addAknPatternPropertyDescriptor ( object );\n }\n return itemPropertyDescriptors;\n }", "List<? extends T> getProperties();", "ArrayList<PropertyMetadata> getProperties();", "private List<PropertyDescriptor> getProperties(Control control) {\n \t\tfinal Class<? extends Control> controlClass = control.getClass();\n \t\tList<PropertyDescriptor> propertyDescriptors = CONTROL_PROPERTIES.get(controlClass);\n \t\tif (propertyDescriptors == null) {\n \t\t\tpropertyDescriptors = new ArrayList<PropertyDescriptor>();\n \t\t\ttry {\n \t\t\t\tPropertyDescriptor[] descriptors = Introspector.getBeanInfo(controlClass).getPropertyDescriptors();\n \t\t\t\tfor (PropertyDescriptor pd : descriptors) {\n \t\t\t\t\tpropertyDescriptors.add(pd);\n \t\t\t\t}\n \t\t\t} catch (IntrospectionException e) {\n \t\t\t\tNop.reason(\"ignore\"); //$NON-NLS-1$\n \t\t\t}\n \t\t\tCONTROL_PROPERTIES.put(controlClass, propertyDescriptors);\n \t\t}\n \n \t\treturn propertyDescriptors;\n \t}", "public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddCellIDPropertyDescriptor(object);\n\t\t\taddVisitIDPropertyDescriptor(object);\n\t\t\taddNamePropertyDescriptor(object);\n\t\t\taddEmailPropertyDescriptor(object);\n\t\t\taddStartDatePropertyDescriptor(object);\n\t\t\taddEndDatePropertyDescriptor(object);\n\t\t\taddEnableAutoEmailPropertyDescriptor(object);\n\t\t\taddCalibrantPropertyDescriptor(object);\n\t\t\taddCalibrant_xPropertyDescriptor(object);\n\t\t\taddCalibrant_yPropertyDescriptor(object);\n\t\t\taddCalibrant_exposurePropertyDescriptor(object);\n\t\t\taddEnvSamplingIntervalsPropertyDescriptor(object);\n\t\t\taddEnvScannableNamesPropertyDescriptor(object);\n\t\t\taddNumberOfSamplesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public Collection<ModuleProperty> getProperties();", "@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n if (itemPropertyDescriptors == null) {\n super.getPropertyDescriptors(object);\n\n addEditorPropertyDescriptor(object);\n addTitlePropertyDescriptor(object);\n addYearPropertyDescriptor(object);\n addVolumePropertyDescriptor(object);\n addNumberPropertyDescriptor(object);\n addSeriesPropertyDescriptor(object);\n addAddressPropertyDescriptor(object);\n addMonthPropertyDescriptor(object);\n addOrganizationPropertyDescriptor(object);\n addPublisherPropertyDescriptor(object);\n addNotePropertyDescriptor(object);\n addKeyPropertyDescriptor(object);\n addCrossrefPropertyDescriptor(object);\n addDoiPropertyDescriptor(object);\n addUrlPropertyDescriptor(object);\n }\n return itemPropertyDescriptors;\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddBasisCurvePropertyDescriptor(object);\n\t\t\taddDistancePropertyDescriptor(object);\n\t\t\taddDistanceAsStringPropertyDescriptor(object);\n\t\t\taddSelfIntersectPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public PropertyDescription [] getPropertiesDescriptions () {\n\t PropertyDescription [] pds = new PropertyDescription [1];\n\t pds[0] = new PropertyDescription (\"errorFunctionName\", \"Error Function\", \"The name of the error function, can be Absolute, Classification, Likelihood or Variance.\");\n\t return pds;\n }", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddOtherIdentifyingInfoPropertyDescriptor(object);\r\n\t\t\taddIdentifyingDescriptionsPropertyDescriptor(object);\r\n\t\t\taddDedicatedPropertyDescriptor(object);\r\n\t\t\taddOtherDedicatedDescriptionsPropertyDescriptor(object);\r\n\t\t\taddResetCapabilityPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedForwardingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingPolicyPropertyDescriptor(object);\r\n\t\t\taddHostedFilterListPropertyDescriptor(object);\r\n\t\t\taddRunningOSPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddCdobjPropertyDescriptor(object);\r\n\t\t\taddRec_idPropertyDescriptor(object);\r\n\t\t\taddRec_cdPropertyDescriptor(object);\r\n\t\t\taddRec_valPropertyDescriptor(object);\r\n\t\t\taddPy_cdPropertyDescriptor(object);\r\n\t\t\taddCust_val1PropertyDescriptor(object);\r\n\t\t\taddCust_val2PropertyDescriptor(object);\r\n\t\t\taddCust_val3PropertyDescriptor(object);\r\n\t\t\taddCust_val4PropertyDescriptor(object);\r\n\t\t\taddCust_val5PropertyDescriptor(object);\r\n\t\t\taddCust_val6PropertyDescriptor(object);\r\n\t\t\taddCust_val7PropertyDescriptor(object);\r\n\t\t\taddCust_val8PropertyDescriptor(object);\r\n\t\t\taddCust_val9PropertyDescriptor(object);\r\n\t\t\taddCdobj_idPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "@Override\n public void updateClassDescriptor(ClassDescriptor desc) {\n desc.getters = List.of();\n desc.setters = List.of();\n\n for (Iterator<Binding> iterator = desc.fields.iterator(); iterator.hasNext(); ) {\n Binding binding = iterator.next();\n \n if (!Modifier.isPublic(binding.field.getModifiers())) {\n iterator.remove();\n } else {\n Property property = getProperty(binding.annotations);\n if (property != null) {\n binding.fromNames = new String[]{property.name()};\n binding.toNames = new String[]{property.name()};\n } else {\n iterator.remove();\n }\n }\n }\n }", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddPropietarioPropertyDescriptor(object);\r\n\t\t\taddMarcaPropertyDescriptor(object);\r\n\t\t\taddReferenciaPropertyDescriptor(object);\r\n\t\t\taddModeloPropertyDescriptor(object);\r\n\t\t\taddTipovehiculoPropertyDescriptor(object);\r\n\t\t\taddPlacaPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddChildrenPropertyDescriptor(object);\n\t\t\taddLookaheadLeafNodesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "Collection<PropertyValidationAnnotationHandler> getPropertyHandlers();", "public String[] getPropertyNames()\n {\n return ClassAnalyzer.getPropertyNames(m_Source.getClass());\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "public List<PropertySchema> getProperties() {\n return _properties;\n }", "public abstract List<PropertyType> getBuiltInProperties();", "public\tList<JsClass.Property>\tgetAddedProperties() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.addedProperties);\n\t}", "public List<BeanDescriptor<?>> descriptors(String tableName) {\n return tableToDescMap.get(tableName.toLowerCase());\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddFoldersPropertyDescriptor(object);\r\n\t\t\taddParentPropertyDescriptor(object);\r\n\t\t\taddWorkspacePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddBaseServerNamePropertyDescriptor(object);\n\t\t\taddProfilePathPropertyDescriptor(object);\n\t\t\taddProfileNamePropertyDescriptor(object);\n\t\t\taddBootstrapPortPropertyDescriptor(object);\n\t\t\taddIcpPortPropertyDescriptor(object);\n\t\t\taddSoapPortPropertyDescriptor(object);\n\t\t\taddRemoteOsUserPropertyDescriptor(object);\n\t\t\taddRemoteOsPasswordPropertyDescriptor(object);\n\t\t\taddServerVersionPropertyDescriptor(object);\n\t\t\taddSecurityUserIdPropertyDescriptor(object);\n\t\t\taddSecurityUserPasswordPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "private static MethodDescriptor[] getMdescriptor() {\n MethodDescriptor[] methods = new MethodDescriptor[1];\n\n try {\n methods[METHOD_toString0] = new MethodDescriptor(org.geogurus.gas.objects.GeometryClassFieldBean.class.getMethod(\"toString\", new Class[]{})); // NOI18N\n methods[METHOD_toString0].setDisplayName(\"\");\n } catch (Exception e) {\n }//GEN-HEADEREND:Methods\n\n // Here you can add code for customizing the methods array.\n\n return methods;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public HasDisplayableProperties getProperties();", "@Override\n\tpublic List<MavenDeployableDescriptor> getDeployableDescriptors() {\n\t\treturn descriptors;\n\t}", "@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddVpcWithIVpc_software_amazon_awscdk_services_ec2_IVpc_AsReferencePropertyDescriptor(object);\n\t\t\taddDeletionProtection_java_lang_Boolean_PropertyDescriptor(object);\n\t\t\taddInternetFacing_java_lang_Boolean_PropertyDescriptor(object);\n\t\t\taddLoadBalancerName_java_lang_String_PropertyDescriptor(object);\n\t\t\taddVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\t\t\tobject);\n\t\t\taddHttp2Enabled_java_lang_Boolean_PropertyDescriptor(object);\n\t\t\taddIdleTimeoutWithDuration_software_amazon_awscdk_core_Duration_AsReferencePropertyDescriptor(object);\n\t\t\taddIpAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType_PropertyDescriptor(\n\t\t\t\t\tobject);\n\t\t\taddSecurityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReferencePropertyDescriptor(\n\t\t\t\t\tobject);\n\t\t\taddGeneratedClassNamePropertyDescriptor(object);\n\t\t\taddVarNamePropertyDescriptor(object);\n\t\t\taddIdentifierPropertyDescriptor(object);\n\t\t\taddAdditionalCodePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}", "public PropertyMetaData[] getPropertyMetaData() \n {\n return METADATA;\n }", "public Object getProperties() {\n return this.properties;\n }", "public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {\n\n return ListView.getClassCssMetaData();\n }", "public List<String> propertyColumns() {\n return this.propertyColumns;\n }", "public Iterator<String> listProperties(String ontClass)\r\n\t{\r\n\t\tOntClass ontR = obtainOntClass(ontClass);\r\n\t\treturn new ToStringIterator<String>(ontR.listDeclaredProperties());\r\n\t}", "@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddDefaultValuePropertyDescriptor(object);\r\n\t\t\taddMinimumValuePropertyDescriptor(object);\r\n\t\t\taddMaximumValuePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Hashtable getProperties() {\n\t\treturn _props;\n\t}", "public final List<String> getPropertiesList()\n {\n\n List<String> allProps = new ArrayList<String>();\n Enumeration<?> e = this.fProp.propertyNames();\n\n while (e.hasMoreElements())\n {\n String key = (String) e.nextElement();\n String value = this.fProp.getProperty(key);\n allProps.add(key + \"=\" + value);\n } // end while\n\n Collections.sort(allProps);\n return allProps;\n\n }", "public ClassDescriptor getClassDescriptor() {\n\t\tClassDescriptor desc = getDescriptor();\n\t\tif (desc instanceof ClassDescriptor) {\n\t\t\treturn (ClassDescriptor)desc;\n\t\t} else {\n\t\t\tthrow ValidationException.cannotCastToClass(desc, desc.getClass(), ClassDescriptor.class);\n\t\t}\n }", "public static List<DisplayProperty> getDisplayProperties() {return DISPLAY_PROPERTIES;}" ]
[ "0.74827915", "0.7437152", "0.73936653", "0.71689236", "0.69981146", "0.68416893", "0.6700892", "0.65058213", "0.64298385", "0.640673", "0.6359638", "0.62749296", "0.62353", "0.6228872", "0.6227949", "0.6221954", "0.612216", "0.6121374", "0.6098768", "0.6050726", "0.602448", "0.60213745", "0.59914875", "0.59914696", "0.5983939", "0.5974583", "0.5954966", "0.5937224", "0.59332705", "0.5928393", "0.5905806", "0.58849293", "0.5882805", "0.5878997", "0.5875333", "0.5867438", "0.58579946", "0.5857897", "0.58438206", "0.58438206", "0.5838589", "0.5830204", "0.58275604", "0.5827087", "0.58037084", "0.57941127", "0.57927966", "0.5783101", "0.5781046", "0.577658", "0.5767759", "0.5759265", "0.57588667", "0.5750731", "0.5746345", "0.57400376", "0.57377076", "0.5729014", "0.5716584", "0.5702981", "0.57010984", "0.5677946", "0.56567466", "0.5621221", "0.5614446", "0.56128633", "0.55946195", "0.55624133", "0.55624133", "0.55552924", "0.5550719", "0.55430067", "0.5526791", "0.5516797", "0.5516797", "0.5499401", "0.54862696", "0.5476911", "0.5469154", "0.54659986", "0.54565734", "0.54561114", "0.54413134", "0.5437856", "0.542703", "0.5424944", "0.5410222", "0.540016", "0.5391988", "0.5387996", "0.5384976", "0.53525573", "0.53464633", "0.534416", "0.53436273", "0.5321449", "0.5294323", "0.5291897", "0.52859956", "0.52847004" ]
0.5723351
58
This adds a property descriptor for the Person feature.
protected void addPersonPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_person_feature"), getString("_UI_JuristType_person_description"), ContestPackage.Literals.JURIST_TYPE__PERSON, true, false, true, null, null, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }", "@Override\n\tpublic void addProperty(String name) {\n\t}", "@Schema(hidden = true)\n public void setPerson(Person person) {\n this.person = person;\n }", "private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}", "protected void addTitlePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_title_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_title_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__TITLE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "@Schema(hidden = true)\n public Person getPerson() {\n return person;\n }", "@Test\n\tpublic void addProperty() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tXMLTagParser.editElement(\"Person\", \"residence\", \"milan\");\n\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"isRenting\", \"false\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"isRenting\"), \"false\");\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"hasGarage\", \"true\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"hasGarage\"), \"true\");\n\t}", "public interface PeopleAttribute {\n\n /**\n * Dynamically get the defined additional attribute of People\n * depending on their type\n *\n * @return pair of key indicating the label of the property\n * and value as the actual value of the additional attribute\n * @see Pair\n */\n Pair<String, String> getAdditionalAttribute();\n}", "protected void addEditorPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_editor_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_editor_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__EDITOR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "protected void addNotePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_note_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_note_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__NOTE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "Builder addProperty(String name, SchemaOrgType value);", "@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}", "protected void addPublisherPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_publisher_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_publisher_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__PUBLISHER,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "protected void addX_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_x_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_x_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__XPROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public void setPerson( Person person )\r\n\t{\r\n\t\tthis.person = person;\r\n\t}", "private <V> Definition<V> addPropertyDefinition(String name, Class<V> type,\n String caption, Method getter, Method setter) {\n if (getter == null)\n throw new IllegalArgumentException(\"null getter\");\n return this.addPropertyDefinition(name, type, caption,\n target -> Primitive.wrap(type).cast(ReflectUtil.invoke(getter, target)),\n setter != null ? (target, value) -> ReflectUtil.invoke(setter, target, value) : null);\n }", "protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}", "@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "protected void addPropietarioPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PROPIETARIO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "@Override\n\tpublic <P> void addPropertyMappedColumn(String propertyName, final Transformer<P, String> transformer) {\n\t\tthis.columnPropertyNames.add(propertyName);\n\t\tfinal int index = this.delegatedColumnIndex++;\n\t\tfinal Transformer<R, Object> propertyTransformer = this.columnsLabelProvider.getDelegatingTransformer(index);\n \t\tTransformer<R,String> t = new Transformer<R,String>() {\n\t\t\t@Override\n\t\t\tpublic String transform(R element) {\n\t\t\t\tP propertyValue = (P) propertyTransformer.transform(element);\n\t\t\t\treturn transformer.transform(propertyValue);\n\t\t\t}\n\t\t};\n\t\tthis.addCalculatedColumn(t);\n\t}", "protected void addOrganizationPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_organization_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_organization_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__ORGANIZATION,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "protected void addProfilePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_profile_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_profile_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__PROFILE,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addProfileNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_WebsphereServerTask_profileName_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_WebsphereServerTask_profileName_feature\",\n\t\t\t\t\t\t\"_UI_WebsphereServerTask_type\"),\n\t\t\t\tServerPackage.Literals.WEBSPHERE_SERVER_TASK__PROFILE_NAME, true, false, false,\n\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_name_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addIana_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_iana_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_iana_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__IANA_PROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }", "protected void addAddressPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_address_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_address_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__ADDRESS,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "void addPropertyListener(PropertyListener listener);", "Property createProperty();", "public Person getPerson()\r\n\t{\r\n\t\treturn person;\r\n\t}", "protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_name_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public EJCoreFrameworkExtensionPropertyListEntry()\n {\n _propertyEntries = new HashMap<String, String>();\n }", "protected void addDoiPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_doi_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_doi_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__DOI,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "@Override\n\tpublic void onPropertyModified(PropertyDescriptor descriptor, String oldValue, String newValue) {\n\t\tsuper.onPropertyModified(descriptor, oldValue, newValue);\n\t\t\n\t\t\n\t\t\n\t}", "Builder addProperty(String name, String value);", "private static PropertyDescriptor[] getPdescriptor() {\n PropertyDescriptor[] properties = new PropertyDescriptor[4];\n\n try {\n properties[PROPERTY_length] = new PropertyDescriptor(\"length\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getLength\", \"setLength\"); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor(\"name\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getName\", \"setName\"); // NOI18N\n properties[PROPERTY_nullable] = new PropertyDescriptor(\"nullable\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getNullable\", \"setNullable\"); // NOI18N\n properties[PROPERTY_type] = new PropertyDescriptor(\"type\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getType\", \"setType\"); // NOI18N\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n\n // Here you can add code for customizing the properties array.\n\n return properties;\n }", "@XmlTransient\n\t\t\tpublic Person getPerson() {return person;}", "protected void addTitlePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_UnitField_title_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_UnitField_title_feature\", \"_UI_UnitField_type\"),\n\t\t\t\t WafPackage.Literals.UNIT_FIELD__TITLE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public static void AddPerson(Person person)\n {\n dataWraper.addRecordTrans(person, dataWraper.tables.get(Person.class.getAnnotation(Entity.class).name()), null);\n }", "protected void addAuditingPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(\r\n\t\t\t\t\t\t((ComposeableAdapterFactory) adapterFactory)\r\n\t\t\t\t\t\t\t\t.getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(),\r\n\t\t\t\t\t\tgetString(\"_UI_HorizontalMappingStrategyDef_auditing_feature\"),\r\n\t\t\t\t\t\tgetString(\r\n\t\t\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_auditing_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_type\"),\r\n\t\t\t\t\t\tCDOServerDbDefsPackage.Literals.HORIZONTAL_MAPPING_STRATEGY_DEF__AUDITING,\r\n\t\t\t\t\t\ttrue, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));\r\n\t}", "PersonDetails(String name) {\n this.name = name;\n }", "protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bean_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_description_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addGlobalNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_globalName_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_globalName_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__GLOBAL_NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addTipovehiculoPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__TIPOVEHICULO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addNamePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_OperationCall_name_feature\"),\r\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_OperationCall_name_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_OperationCall_type\"),\r\n\t\t\t\t\t\tSystemModelPackage.Literals.OPERATION_CALL__NAME, true, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\r\n\t}", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_description_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addReferenciaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__REFERENCIA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "PropertyType createPropertyType();", "public String getType() {\n\t\t\treturn \"person\";\n\t\t}", "@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}", "protected void addYearPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_year_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_year_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__YEAR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "public interface IPropertyInfo extends IAttributedFeatureInfo, IIntrinsicTypeReference\n{\n /**\n * @return true if the property is readable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isReadable();\n\n /**\n * @return True if the property is writable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isWritable();\n\n /**\n * @param whosAskin The type querying the property writability. For example, passing in the type the property is on will\n * allow properties that have private access in the setter to be written to. Passing in an unrelated type will only\n * allow properties that are public to be written to.\n *\n * @return True if the property is writable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isWritable( IType whosAskin );\n\n /**\n * @return the PropertyAccessor (for getting and setting) this property.\n */\n public IPropertyAccessor getAccessor();\n\n public IPresentationInfo getPresentationInfo();\n}", "abstract ChildListPropertyDescriptor internalThenDeclarationsProperty();", "public GPerson getPerson() {\r\n\t\treturn person;\r\n\t}", "protected void addPlacaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PLACA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addVisitIDPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(new ItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_visitID_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_visitID_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__VISIT_ID,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null)\n\t\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic Collection<?> getChoiceOfValues(Object object) {\n\t\t\t\t\treturn getVisitIDs();\n\t\t\t\t}\n\t\t\t\t});\n\t}", "public void addPropertyChangeListener(String propertyName, java.beans.PropertyChangeListener listener) {\n\tmPcs.addPropertyChangeListener(propertyName, listener);\n }", "public void addFieldDescriptor(XMLFieldDescriptor descriptor) {\n\n\t boolean added = false;\n\n NodeType nodeType = descriptor.getNodeType();\n switch(nodeType.getType()) {\n case NodeType.ATTRIBUTE:\n if (!attributeDescriptors.contains(descriptor)) {\n attributeDescriptors.add(descriptor);\n added = true;\n }\n break;\n case NodeType.TEXT:\n contentDescriptor = descriptor;\n added = true;\n break;\n default:\n if (!elementDescriptors.contains(descriptor)) {\n elementDescriptors.add(descriptor);\n added = true;\n }\n break;\n }\n if (added) {\n\t descriptor.setContainingClassDescriptor( this );\n\t }\n\n }", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_description_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "@Override\n\tpublic void createPropertyDescriptors(List<IPropertyDescriptor> desc) {\n\t\tvalidator = new ParameterNameValidator();\n\t\tvalidator.setTargetNode(this);\n\t\tJSSValidatedTextPropertyDescriptor nameD = new JSSValidatedTextPropertyDescriptor(JRDesignParameter.PROPERTY_NAME,\n\t\t\t\tMessages.common_name, validator);\n\t\tnameD.setDescription(Messages.MParameterSystem_name_description);\n\t\tdesc.add(nameD);\n\n\t\tNClassTypePropertyDescriptor classD = new NClassTypePropertyDescriptor(JRDesignParameter.PROPERTY_VALUE_CLASS_NAME,\n\t\t\t\tMessages.common_class, ClassTypeComboCellEditor.DEFAULT_ITEMS) {\n\t\t\t@Override\n\t\t\tpublic ASPropertyWidget<RWComboBoxPropertyDescriptor> createWidget(Composite parent, AbstractSection section) {\n\t\t\t\tSPClassTypeCombo<RWComboBoxPropertyDescriptor> classNameWidget = new SPClassTypeCombo<RWComboBoxPropertyDescriptor>(\n\t\t\t\t\t\tparent, section, this);\n\t\t\t\tclassNameWidget.setClassesOfType(classes);\n\t\t\t\tclassNameWidget.setReadOnly(readOnly);\n\t\t\t\treturn classNameWidget;\n\t\t\t}\n\t\t};\n\t\tclassD.setDescription(Messages.MParameterSystem_class_description);\n\t\tdesc.add(classD);\n\t\tclassD.setHelpRefBuilder(\n\t\t\t\tnew HelpReferenceBuilder(\"net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#parameter_class\"));\n\t}", "protected void addOrganizationPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_organization_feature\"),\n\t\t\t\t getString(\"_UI_JuristType_organization_description\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__ORGANIZATION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void addPerson(Person p);", "protected void addCrossrefPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_crossref_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_crossref_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__CROSSREF,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "@Override\n protected PropertiesHandler<Person> getPropertiesHandler() {\n final PropertiesHandler<Address.Builder> addressHandler = new MappedPropertiesHandler<Address.Builder>() {\n @Override\n public Address.Builder getTarget() {\n return Address.builder();\n }\n }\n .map(\"street\", (Address.Builder t, String value) -> t.setStreet(value))\n .map(\"zip\", (Address.Builder t, String value) -> t.setZip(value))\n .map(\"city\", (Address.Builder t, String value) -> t.setCity(value));\n\n /*\n * Map Person to properties\n */\n final PropertiesHandler<Person> personHandler = new MappedPropertiesHandler<Person>() {\n @Override\n public Person getTarget() {\n return new Person();\n }\n }\n .map(\"first-name\", (Person p, String value) -> p.setFirstName(value))\n .map(\"last-name\", (Person p, String value) -> p.setLastName(value))\n .map(\"home-address\", addressHandler, (Person p, Address.Builder a) -> p.setHomeAddress(a.build()))\n .map(\"work-address\", addressHandler, (Person p, Address.Builder a) -> p.setWorkAddress(a.build()));\n\n return personHandler;\n }", "protected void addIdentifierPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_identifier_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_identifier_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__IDENTIFIER,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "@Override\r\n\tpublic void create(Person person) {\n\r\n\t}", "public String getName(){\n return personName;\n }", "@Override\n public String toString() {\n return \"Person{\" + getId() + \" : \" + getUsername() + \" : \" + getJmeno() + \" \" + getPrijmeni() + '}';\n }", "public PersonType_Tp getPersonType() { return personType; }", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "protected void addDescriptionPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_description_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_description_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DESCRIPTION,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "Builder addEditor(Person value);", "Builder addProvider(Person value);", "public void addPerson(Person per) {\r\n\t\tthis.persons.put(per.getPersonID(), per);\r\n\t}", "public com.zzsong.netty.protobuff.two.ProtoData.Person.Builder getPersonBuilder() {\n return getPersonFieldBuilder().getBuilder();\n }", "public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }", "public DocumentationSchema getAdditionalProperties()\n\t{\n\t\treturn additionalProperties;\n\t}", "public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }", "protected void addPersistentTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_persistentType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_persistentType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__PERSISTENT_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_DatabasePropertyCategory\"),\n\t\t\t\t null));\n\t}", "public void setProperty(String propName, Object newValue) {\n _infoTableModel.setProperty(propName, newValue);\n }", "private void addProperties() {\n\t\tfor (PropertyGenerator pg : this.getPropertyGenerators()) {\n\t\t\tpg.generate();\n\t\t\tthis.enqueuePropertyTypeIfNeeded(pg);\n\t\t\tthis.addToSubBindingsIfNeeded(pg);\n\t\t}\n\t}", "protected void addTeamMembersPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_teamMembers_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_teamMembers_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__TEAM_MEMBERS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addDefaultAutowirePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_defaultAutowire_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_defaultAutowire_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DEFAULT_AUTOWIRE,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addIdentifierPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_identifier_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_identifier_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__IDENTIFIER, true,\n\t\t\t\tfalse, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public ListPropertyDescriptor(Object id, String displayName) {\r\n\t\tsuper(id, displayName);\r\n\t}", "@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}", "protected void addCust_val4PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val4_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val4_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL4,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "protected void addPodcastTitleParameterPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_podcastTitleParameter_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_podcastTitleParameter_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__PODCAST_TITLE_PARAMETER,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addPointNormalPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Track_pointNormal_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Track_pointNormal_feature\", \"_UI_Track_type\"),\r\n\t\t\t\t OntrackPackage.Literals.TRACK__POINT_NORMAL,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t true,\r\n\t\t\t\t null,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public PropertySpecBuilder<T> description(String desc)\n {\n Preconditions.checkArgument(description == null, \"property description already set\");\n this.description = desc;\n\n return this;\n }", "protected void addRequiredPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_InterfaceField_required_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_InterfaceField_required_feature\", \"_UI_InterfaceField_type\"),\n\t\t\t\t WafPackage.Literals.INTERFACE_FIELD__REQUIRED,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void setPerPerson(boolean value) {\n this.perPerson = value;\n }", "PropertyRealization createPropertyRealization();", "@Override\n\tpublic void addProperty(String name, String text) {\n\t\tLuceneIndex.addPredicateField(name, text, doc);\n\t\tLuceneIndex.addTextField(text, doc);\n\t}", "@JSProperty(\"description\")\n void setDescription(String value);" ]
[ "0.6978542", "0.63420844", "0.6103939", "0.5832065", "0.5795183", "0.5744922", "0.56993", "0.5678076", "0.5677758", "0.5643461", "0.56267273", "0.558324", "0.55663145", "0.556243", "0.5559324", "0.55471164", "0.5535767", "0.55047715", "0.5490966", "0.54888713", "0.5471473", "0.5449483", "0.54300123", "0.5410475", "0.54090065", "0.53974926", "0.53799087", "0.5378043", "0.53672975", "0.5352742", "0.5326671", "0.53258365", "0.5325388", "0.5323689", "0.5323447", "0.53218573", "0.5315332", "0.52846926", "0.5271404", "0.5268718", "0.52554196", "0.52394325", "0.52292895", "0.5227939", "0.5206777", "0.5197359", "0.51914066", "0.51784104", "0.5169578", "0.5158679", "0.5150698", "0.51437503", "0.51431096", "0.5129479", "0.5127474", "0.5122344", "0.5122106", "0.5120892", "0.5114511", "0.51126915", "0.5109059", "0.5100097", "0.509891", "0.50961417", "0.5091535", "0.5088934", "0.50850606", "0.50795335", "0.5074852", "0.5071973", "0.50672907", "0.50660235", "0.506515", "0.50599277", "0.5057301", "0.50560194", "0.5050128", "0.504544", "0.5035415", "0.50176847", "0.50122714", "0.50109214", "0.5008063", "0.5007", "0.5004615", "0.5003776", "0.50020415", "0.5001976", "0.4994946", "0.4994281", "0.49784324", "0.49774098", "0.49773285", "0.4972483", "0.49592942", "0.49564052", "0.49546304", "0.49435562", "0.49428296", "0.49421847" ]
0.71313393
0
This adds a property descriptor for the Organization feature.
protected void addOrganizationPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_organization_feature"), getString("_UI_JuristType_organization_description"), ContestPackage.Literals.JURIST_TYPE__ORGANIZATION, true, false, true, null, null, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void addOrganizationPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_organization_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_organization_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__ORGANIZATION,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "Builder addProperty(String name, SchemaOrgType value);", "public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }", "Builder addSourceOrganization(Organization value);", "@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }", "public void setOrganization(String organization);", "public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}", "Builder addSourceOrganization(String value);", "Builder addAuthor(Organization value);", "Builder addProducer(Organization value);", "Builder addProvider(Organization value);", "interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "protected void addEditorPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_editor_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_editor_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__EDITOR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "protected void addLicensePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_license_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_JuristType_license_feature\", \"_UI_JuristType_type\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__LICENSE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public String getOrganization ()\n {\n return this.organization;\n }", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "@AutoEscape\n\tpublic String getOrganization();", "public Organization getOrganization() {\n return organization;\n }", "public Organization getOrganization() {\n return organization;\n }", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_description_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public String getOrganization() {\n return organization;\n }", "Builder addPublisher(Organization value);", "Builder addCreator(Organization value);", "@Override\n\tpublic void addProperty(String name) {\n\t}", "interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }", "@ApiModelProperty(value = \"Details of the organization as provided to the issuer.\")\n public OrganizationDetails getOrgDetails() {\n return orgDetails;\n }", "protected void addPersonPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_person_feature\"),\n\t\t\t\t getString(\"_UI_JuristType_person_description\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__PERSON,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void setOrganization(Organization organization){\r\n\t\tthis.organization = organization;\r\n\t}", "public String getOrganizationName() {\n\n \n return organizationName;\n\n }", "Builder addSourceOrganization(Organization.Builder value);", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public interface Organization {\n\n void setName(String name);\n\n String getName();\n\n SubordinatesContainer getHead();\n\n void setHead(SubordinatesContainer head);\n}", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_description_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public String getType() {\n\t\t\treturn \"organization\";\n\t\t}", "protected void addAuditingPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(\r\n\t\t\t\t\t\t((ComposeableAdapterFactory) adapterFactory)\r\n\t\t\t\t\t\t\t\t.getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(),\r\n\t\t\t\t\t\tgetString(\"_UI_HorizontalMappingStrategyDef_auditing_feature\"),\r\n\t\t\t\t\t\tgetString(\r\n\t\t\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_auditing_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_type\"),\r\n\t\t\t\t\t\tCDOServerDbDefsPackage.Literals.HORIZONTAL_MAPPING_STRATEGY_DEF__AUDITING,\r\n\t\t\t\t\t\ttrue, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));\r\n\t}", "public String getOrganization() {\n\t\treturn organization;\n\t}", "protected void addIana_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_iana_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_iana_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__IANA_PROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "protected void addYearPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_year_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_year_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__YEAR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "protected void addPublisherPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_publisher_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_publisher_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__PUBLISHER,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "Builder addCopyrightHolder(Organization value);", "String getOrganization();", "public void createOntProperty(String sourceInstance, String propertyName, String destInstance)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tOntResource di = this.obtainOntResource(destInstance);\r\n\t\tProperty prop = this.obtainOntProperty(propertyName); \r\n\t\tsi.addProperty(prop, di);\r\n\t}", "PropertyType createPropertyType();", "public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "@JSProperty(\"description\")\n void setDescription(String value);", "interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "public String getOrganizationAddress() {\n\n \n return organizationAddress;\n\n }", "Builder addContributor(Organization value);", "protected void addDescriptionPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_description_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_description_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DESCRIPTION,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public AOIComboField addAOIComboField(EntityProperty<AreaOfInterest> property, int dimension) {\n return addAOIComboField(property.getKey(), dimension);\n }", "@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}", "public String organization() {\n return this.organization;\n }", "protected void addAddressPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_address_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_address_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__ADDRESS,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "protected void addOrmTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_ormType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_ormType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__ORM_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_OrmPropertyCategory\"),\n\t\t\t\t null));\n\t}", "protected void addTitlePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_title_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_title_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__TITLE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "@ApiModelProperty(value = \"External ID. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getExternalID() {\n return externalID;\n }", "protected void addDoiPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_doi_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_doi_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__DOI,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }", "public interface AttributePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "protected void addInterfaceTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_interfaceType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_interfaceType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__INTERFACE_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_InterfacePropertyCategory\"),\n\t\t\t\t null));\n\t}", "public String getOrganizationName() {\n return (orgName);\n }", "Builder addAuthor(Organization.Builder value);", "com.microsoft.schemas.xrm._2013.metadata.AttributeTypeDisplayName addNewAttributeTypeDisplayName();", "protected void setOrganization(String organization) {\n this.organization = organization;\n }", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bean_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_description_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "Builder addProducer(Organization.Builder value);", "Builder addProvider(Organization.Builder value);", "public String getOrganizationText() {\n return organizationText;\n }", "protected void addSlugFieldsPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\tgetResourceLocator(),\n\t\t\tgetString(\"_UI_EntityAttribute_slugFields_feature\"),\n\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_slugFields_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\tPersistencePackage.Literals.ENTITY_ATTRIBUTE__SLUG_FIELDS,\n\t\t\ttrue, false, true, null,\n\t\t\tnull,\n\t\t\tnull));\n//\t\titemPropertyDescriptors.add(new ItemPropertyDescriptor(\n//\t\t\t((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n//\t\t\tgetResourceLocator(),\n//\t\t\tgetString(\"_UI_EntityAttribute_slugFields_feature\"),\n//\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_slugFields_feature\", \"_UI_EntityAttribute_type\"),\n//\t\t\tPersistencePackage.Literals.ENTITY_ATTRIBUTE__SLUG_FIELDS,\n//\t\t\ttrue, false, true, null,\n//\t\t\tgetString(\"_UI_ModelPropertyCategory\"),\n//\t\t\tnull) {\n//\t\t\t\t@Override\n//\t\t\t\tpublic Collection<?> getChoiceOfValues(Object object) {\n//\t\t\t\t\tif (object instanceof EntityAttribute) {\n//\t\t\t\t\t\tfinal EntityAttribute attribute = (EntityAttribute) object;\n//\t\t\t\t\t\treturn attribute.getPartOf().getAllFeatures();\n//\t\t\t\t\t}\n//\n//\t\t\t\t\treturn Collections.emptySet();\n//\t\t\t\t}\n//\t\t\t});\n\t}", "protected void addCust_val2PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val2_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val2_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL2,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public\t Organization getOrganizationHeader()\n { return (Organization) this.getHeader(OrganizationHeader.NAME); }", "protected void addIdentifierPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_identifier_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_identifier_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__IDENTIFIER,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }", "protected void addPropietarioPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PROPIETARIO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addAuthorizationUrlPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_authorizationUrl_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_authorizationUrl_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__AUTHORIZATION_URL,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addLinkDescriptionParameterPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_linkDescriptionParameter_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_linkDescriptionParameter_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__LINK_DESCRIPTION_PARAMETER,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "public AOIComboField addAOIComboField(EntityProperty<AreaOfInterest> property, int dimension, Class aoiClass) {\n return addAOIComboField(property.getKey(), dimension, aoiClass);\n }", "interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }", "public String getOrganizationType() {\n\t\treturn organizationType;\n\t}", "Builder addCreator(Organization.Builder value);", "protected void addReferenciaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__REFERENCIA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addCust_val3PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val3_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val3_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL3,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addX_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_x_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_x_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__XPROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "protected void addConnectionAePropertyDescriptor ( Object object )\n {\n itemPropertyDescriptors.add ( createItemPropertyDescriptor ( ( (ComposeableAdapterFactory)adapterFactory ).getRootAdapterFactory (), getResourceLocator (), getString ( \"_UI_Site_connectionAe_feature\" ), getString ( \"_UI_PropertyDescriptor_description\", \"_UI_Site_connectionAe_feature\", \"_UI_Site_type\" ), GlobalPackage.Literals.SITE__CONNECTION_AE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null ) );\n }", "interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n WithCreate withSecurityProfile(SecurityProfile securityProfile);\n }", "@Test\n\tpublic void addProperty() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tXMLTagParser.editElement(\"Person\", \"residence\", \"milan\");\n\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"isRenting\", \"false\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"isRenting\"), \"false\");\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"hasGarage\", \"true\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"hasGarage\"), \"true\");\n\t}", "public String getOrganizationUrl() {\n\n \n return organizationUrl;\n\n }", "interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n Update withSecurityProfile(SecurityProfile securityProfile);\n }", "private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}", "protected void addGlobalNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_globalName_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_globalName_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__GLOBAL_NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public interface OrganizationResource {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the organizationId property: organization id.\n *\n * @return the organizationId value.\n */\n String organizationId();\n\n /**\n * Gets the organizationName property: organization name.\n *\n * @return the organizationName value.\n */\n String organizationName();\n\n /**\n * Gets the billingSource property: Billing source.\n *\n * @return the billingSource value.\n */\n BillingSource billingSource();\n\n /**\n * Gets the inner com.azure.resourcemanager.newrelicobservability.fluent.models.OrganizationResourceInner object.\n *\n * @return the inner object.\n */\n OrganizationResourceInner innerModel();\n}", "@Bean\n\tpublic ExtendedMetadata extendedMetadata() {\n\t\tExtendedMetadata extendedMetadata = new ExtendedMetadata();\n\t\textendedMetadata.setIdpDiscoveryEnabled(true);\n\t\textendedMetadata.setSignMetadata(false);\n\t\textendedMetadata.setEcpEnabled(true);\n\t\treturn extendedMetadata;\n\t}", "Party getOrganizationParty();", "public java.lang.String getId_Organization() {\n return id_Organization;\n }" ]
[ "0.7489816", "0.70999736", "0.6068655", "0.5902736", "0.5796259", "0.5655985", "0.56230366", "0.5563624", "0.55518425", "0.5549134", "0.55406487", "0.5491595", "0.5458637", "0.54491097", "0.5441842", "0.5435506", "0.54347306", "0.5407651", "0.5407651", "0.53606325", "0.5360115", "0.53578", "0.53576106", "0.53550863", "0.5343364", "0.5330868", "0.53158516", "0.5307969", "0.5292762", "0.52891296", "0.52833724", "0.52833724", "0.52802855", "0.52799356", "0.5262847", "0.52603894", "0.5255255", "0.5248489", "0.5244004", "0.5238867", "0.52343637", "0.52277356", "0.5226896", "0.52238834", "0.51912624", "0.516177", "0.51529956", "0.5150508", "0.5148937", "0.51423544", "0.51387846", "0.5135057", "0.51235276", "0.5121694", "0.5121425", "0.5111092", "0.51009095", "0.5078813", "0.50520307", "0.50384796", "0.5034176", "0.5034145", "0.50281113", "0.5026715", "0.50181895", "0.50157905", "0.501225", "0.50084347", "0.50028414", "0.5001567", "0.5000235", "0.49913236", "0.4946836", "0.49464706", "0.49389964", "0.49327376", "0.49307227", "0.4927078", "0.4925372", "0.49107927", "0.49101055", "0.49072334", "0.49028286", "0.489554", "0.48923695", "0.488937", "0.4889113", "0.48871967", "0.48852468", "0.48789644", "0.4877568", "0.48773754", "0.4874019", "0.4864197", "0.4863917", "0.48605922", "0.48571953", "0.48442748", "0.48352185", "0.48317283" ]
0.7323647
1
This adds a property descriptor for the Wish Apparatus feature.
protected void addWishApparatusPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_wishApparatus_feature"), getString("_UI_PropertyDescriptor_description", "_UI_JuristType_wishApparatus_feature", "_UI_JuristType_type"), ContestPackage.Literals.JURIST_TYPE__WISH_APPARATUS, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }", "Builder addAccessibilityFeature(String value);", "public void setWishOfUser(boolean wish) {\n this.wishOfUSer = wish;\n }", "@Override\r\n\tpublic String getPauliscoolStatus() {\n\t\treturn \"Paul Is Cool\";\r\n\t}", "void addHappiness(int Happiness);", "public List<Integer> getWishList() {\n\t\treturn wishList;\n\t}", "void setHappiness(int happiness);", "public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }", "public void setAchieved(Boolean newValue);", "Builder addAccessibilityFeature(Text value);", "public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}", "public boolean getWishOfUser() {\n return wishOfUSer;\n }", "public Informer reqInformWaterHeaterStatus() {\n\t\t\taddProperty(EPC_WATER_HEATER_STATUS);\n\t\t\treturn this;\n\t\t}", "@ApiModelProperty(value = \"状态,1启用,0禁用\")\n\tpublic Short getStatus() {\n\t\treturn status;\n\t}", "public String setInfo(double fats, double w, boolean heart_healthy) {\n\t\treturn \"Is avocado contain heart healthy fatty acid? \" + heart_healthy +\r\n\t\t\t\t\"\\nWeight : \" + w +\r\n\t\t\t\t\"\\nFat Amount (\" + fats + \") : \" + totalFats() + \"g\";\r\n\t\t\r\n\t}", "public void setHarvested(boolean harvested);", "@Override\n\tpublic void addProperty(String name) {\n\t}", "void setStatusProperty(String property, Double value);", "public Boolean getIsHot() {\n return isHot;\n }", "private void setBidded(){\n this.status = \"Bidded\";\n }", "public void setLivingStatus(boolean livingStatus){\n this.livingStatus = livingStatus;\n }", "FeatureWeightPair(FeatureFunction f, float w, boolean increasesHappiness) {\n\t\tfeature = f;\n\t\tweight = w;\n\t\tthis.increasesHappiness = increasesHappiness;\n\t}", "public boolean setPropertyAlive(boolean aValue);", "protected void addHttp2Enabled_java_lang_Boolean_PropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_http2Enabled_java_lang_Boolean__feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_http2Enabled_java_lang_Boolean__feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__HTTP2_ENABLED_JAVA_LANG_BOOLEAN_,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "Builder addAccessibilityAPI(String value);", "@Path(\"status/{avaliability}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public Listings getStatus(@PathParam(\"avaliability\") String avaliability) throws JAXBException, IOException {\r\n appR applicationR = getApp();\r\n Listings listings = applicationR.getListings();\r\n Listings ret = new Listings();\r\n Boolean s = false;\r\n if (avaliability.equals(\"avaliable\") || avaliability.equals(\"true\")) {\r\n s = true;\r\n }\r\n\r\n for (Listing listing : listings.getList()) {\r\n if (listing.isAvailable() == s) {\r\n ret.addListing(listing);\r\n }\r\n }\r\n return ret;\r\n }", "public void setBowDamage(short bowDamage);", "BooleanProperty getOn();", "private void writeCapSenseNotification(boolean value) {\n BLEService.mBluetoothGatt.setCharacteristicNotification(mCapsenseCharacteristic, value);\n byte[] byteVal = new byte[1];\n if (value) {\n byteVal[0] = 1;\n } else {\n byteVal[0] = 0;\n }\n Log.i(TAG, \"CapSense Notification \" + value);\n mCapsenseNotification.setValue(byteVal);\n BLEService.mBluetoothGatt.writeDescriptor(mCapsenseNotification);\n }", "public boolean setPropertyMute(boolean aValue);", "public void setwPrStatus(Integer wPrStatus) {\n this.wPrStatus = wPrStatus;\n }", "public Getter reqGetWaterHeaterStatus() {\n\t\t\taddProperty(EPC_WATER_HEATER_STATUS);\n\t\t\treturn this;\n\t\t}", "@ApiModelProperty(value = \"True if this gift certificate is activated and ready to apply to purchases.\")\n public Boolean isActivated() {\n return activated;\n }", "public void setStatus( Short status ) {\n this.status = status;\n }", "public String getWishPosition() {\n return wishPosition;\n }", "public void setHasCustomHealth(boolean bool) {\n this.hasCustomHealth = bool;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"true\", value = \"Is capable of CPU hot plug (no reboot required)\")\n\n public Boolean getCpuHotPlug() {\n return cpuHotPlug;\n }", "@java.lang.Override\n public int getBattlesWon() {\n return battlesWon_;\n }", "@Override\r\n\tpublic boolean isFruitful() {\r\n\t\treturn true;\r\n\t}", "interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }", "public void setHotGrowable(boolean value) {\n this.hotGrowable = value;\n }", "@Override\n\tpublic void setHungry() {\n\t\t\n\t}", "public ProvisionedBandwidth withStatus(String status) {\n setStatus(status);\n return this;\n }", "public void setPerishable(boolean value) {\r\n this.perishable = value;\r\n }", "public String getTalkingStatus() {\n\t\treturn talkingStatus;\n\t}", "protected void onGetWaterHeaterStatus(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public boolean getStatus(){\n return activestatus;\n }", "public PropertyBoolean(String name) {\n super(name);\n }", "protected void addKindPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\r\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory)\r\n\t\t\t\t\t\t.getRootAdapterFactory(),\r\n\t\t\t\tgetResourceLocator(),\r\n\t\t\t\tgetString(\"_UI_Action_kind_feature\"),\r\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\r\n\t\t\t\t\t\t\"_UI_Action_kind_feature\", \"_UI_Action_type\"),\r\n\t\t\t\tScenarioParticipantPackage.Literals.ACTION__KIND, true, false,\r\n\t\t\t\tfalse, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\r\n\t}", "public boolean getPropertyMute();", "default boolean isSwear() {\n return meta(\"nlpcraft:nlp:swear\");\n }", "@java.lang.Override\n public int getBattlesWon() {\n return battlesWon_;\n }", "public void setAuctionProperty(BoardPiece prop) {\n auctionProperty = (Property) prop;\n }", "@OAOne(\n displayName = \"Helping Hand Award Type\", \n isCalculated = true, \n reverseName = AwardType.P_AvailableHelpingHandItems, \n allowCreateNew = false, \n allowAddExisting = false\n )\n private AwardType getHelpingHandAwardType() {\n return null;\n }", "public void addScAction() {\n\t\taddPairItem(labels.get(Labels.PROP_INFO_SC), true);\n\t}", "public void gainHealth()\n\t{\n\t\tSystem.out.println(\"1 heart gained\");\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.RateBookStatus getStatus();", "public void setStatus(Short status) {\n this.status = status;\n }", "public Byte getApproveStatus() {\n return approveStatus;\n }", "@Override\r\n\tpublic String annoy() \r\n\t{\r\n\t\treturn super.getName() + \" annoys by giving a sales pitch\"; \r\n\t}", "public Integer getwPrStatus() {\n return wPrStatus;\n }", "public void setWishPosition(String wishPosition) {\n this.wishPosition = wishPosition;\n }", "public boolean health(){\n return health;\n }", "public void enablePropertyUnityGain()\n {\n iPropertyUnityGain = new PropertyBool(new ParameterBool(\"UnityGain\"));\n addProperty(iPropertyUnityGain);\n }", "public void setHandThrowDamage(short handThrowDamage);", "Builder addIsFamilyFriendly(Boolean value);", "Builder addAccessibilityHazard(String value);", "public void requestWishList() {\n if (!hasInternetConnection()) {\n PromeetsDialog.show(this, getString(R.string.no_internet));\n } else {\n UserPOJO userPOJO = (UserPOJO) PromeetsUtils.getUserData(PromeetsPreferenceUtil.USER_OBJECT_KEY, UserPOJO.class);\n if (userPOJO == null) finish();\n String[] key = {Constant.USERID, Constant.PAGENUMBER};\n String[] value = {userPOJO.id + \"\", page + \"\"};\n\n PromeetsDialog.showProgress(this);\n HashMap<String, String> header = new HashMap<>();\n header.put(\"ptimestamp\", ServiceHeaderGeneratorUtil.getInstance().getPTimeStamp());\n header.put(\"promeetsT\", ServiceHeaderGeneratorUtil.getInstance().getPromeetsTHeader(Constant.FETCH_MY_WISH_LIST));\n header.put(\"accessToken\", ServiceHeaderGeneratorUtil.getInstance().getAccessToken());\n header.put(\"API_VERSION\", Utility.getVersionCode());\n new GenericServiceHandler(Constant.ServiceType.WISH_LIST, this, PromeetsUtils.buildURL(Constant.FETCH_MY_WISH_LIST, key, value), null, header, IServiceResponseHandler.GET, false, \"Please wait!\", \"Processing..\").execute();\n }\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"true\", value = \"Is capable of CPU hot unplug (no reboot required)\")\n\n public Boolean getCpuHotUnplug() {\n return cpuHotUnplug;\n }", "public Boolean getStatus() {return status;}", "public void updateEnoughCoinProperty(Boolean status) {\n enoughCoins.set(status);\n }", "interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }", "Builder addAccessibilityAPI(Text value);", "public double getHealth() { return health; }", "public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}", "@Override\r\n public String notification(boolean status) {\r\n if (status == true) {\r\n return \"Sepatu Api Terpasang\";\r\n } else {\r\n return \"Sepatu Api Dilepas\";\r\n }\r\n }", "public void setIsHot(Boolean isHot) {\n this.isHot = isHot;\n }", "public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }", "public int getHappiness() {\n \t\treturn happiness;\n \t}", "public int getHealth() { return this.health; }", "public double getHealth(){\r\n return health;\r\n }", "private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.setAttribute(ParserConstants.name.toString(), name);\n\n\t\tElement simple = element;\n\n\t\tif (swagger_property.getRequired()) {\n\t\t\telement.setAttribute(ParserConstants.minOccurs.toString(), ParserConstants.minOccurs.value());\n\t\t}\n\n\t\tif (swagger_property instanceof IntegerProperty) {\n\t\t\tIntegerProperty integerProperty = (IntegerProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.integer_prefix.value());\n\t\t\tif (integerProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(integerProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof LongProperty) {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.long_prefix.value());\n\t\t} else if (swagger_property instanceof StringProperty) {\n\t\t\tStringProperty stringProperty = (StringProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.string_prefix.value());\n\t\t\tif (stringProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(stringProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof DateTimeProperty) {\n\t\t\tDateTimeProperty dateTimeProperty = (DateTimeProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.date_time_prefix.value());\n\t\t\tif (dateTimeProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(dateTimeProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof BooleanProperty) {\n\t\t\tBooleanProperty booleanProperty = (BooleanProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.boolean_prefix.value());\n\t\t} else if (swagger_property instanceof RefProperty) {\n\t\t\tRefProperty refProperty = (RefProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), refProperty.getSimpleRef());\n\t\t} else if (swagger_property instanceof ObjectProperty) {\n\t\t\tObjectProperty objectProperty = (ObjectProperty) swagger_property;\n\t\t\telement.appendChild(js2wadl(name, objectProperty.getProperties()));\n\t\t} else if (swagger_property instanceof ArrayProperty) {\n\t\t\tArrayProperty arrayProperty = (ArrayProperty) swagger_property;\n\t\t\telement.appendChild(addProperty(name, arrayProperty.getItems()));\n\t\t} else {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), swagger_property.getFormat());\n\t\t}\n\n\t\tif (swagger_property.getDescription() != null) {\n\t\t\tElement ann = document.createElement(ParserConstants.annotation_prefix.value());\n\t\t\tElement desc = document.createElement(ParserConstants.documentation_prefix.value());\n\t\t\tdesc.setTextContent(swagger_property.getDescription());\n\t\t\tann.appendChild(desc);\n\t\t\tsimple.appendChild(ann);\n\t\t}\n\n\t\treturn element;\n\t}", "public void setStatusDecription(String statusDecription) {this.statusDecription = statusDecription;}", "public short getBowDamage();", "public void setCoverable(entity.APDCoverable value);", "public String getPunishAdvice() {\n return punishAdvice;\n }", "public Short getStatus() {\n return status;\n }", "public Builder setBonusHP(int value) {\n bitField0_ |= 0x00000001;\n bonusHP_ = value;\n onChanged();\n return this;\n }", "public interface HasCollectUserPreference\n {\n /**\n * not feedback\n */\n String NOT_FEEDBACK = \"0\";\n\n /**\n * Has feedback\n */\n String FEEDBACK = \"1\";\n }", "public void addPotion() {\n setPotion(getPotion() + 1);\n }", "@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}", "public void setRequested(){\n this.status = \"Requested\";\n }", "public int getHealth(){\n return health;\n }", "public void SetWealth(int w)\n{\n\twealth=w;\n}", "public boolean setPropertyUnityGain(boolean aValue);", "public boolean getHasCustomHealth() {\n return this.hasCustomHealth;\n }", "public void setWon(){\n won = true;\n }", "public void setWash(String value) {\n setAttributeInternal(WASH, value);\n }", "@ApiModelProperty(value = \"The status of the auto order\")\r\n public StatusEnum getStatus() {\r\n return status;\r\n }", "private void addProperty(BatchWriter writer, String id, String key, Object value) throws MutationsRejectedException {\n Mutators.apply(writer, new WritePropertyMutator(id, key, value));\n }" ]
[ "0.54913193", "0.5477159", "0.5399092", "0.5256752", "0.5241586", "0.52330756", "0.50880265", "0.5086409", "0.50653756", "0.50504184", "0.50237864", "0.50177604", "0.5005006", "0.48632815", "0.48404598", "0.4819419", "0.48088127", "0.480626", "0.47921863", "0.47716555", "0.4763985", "0.47627002", "0.47501078", "0.47480318", "0.47423053", "0.47421584", "0.4740815", "0.4729916", "0.47156504", "0.471432", "0.4711476", "0.47103143", "0.46948645", "0.46894616", "0.46853542", "0.46781376", "0.4677984", "0.46722326", "0.4656734", "0.46565935", "0.4655908", "0.4650082", "0.46428657", "0.46387488", "0.46310952", "0.46295598", "0.46274132", "0.46268284", "0.4624378", "0.46174893", "0.46150902", "0.46139875", "0.4607138", "0.45980856", "0.45977664", "0.45911005", "0.4588527", "0.45872867", "0.45837748", "0.45834264", "0.45711517", "0.45711482", "0.45706394", "0.45698798", "0.45682362", "0.4557191", "0.45549992", "0.45502952", "0.45502836", "0.45383626", "0.45378855", "0.45333242", "0.45303237", "0.45226145", "0.452072", "0.4519667", "0.45180988", "0.45133418", "0.4513005", "0.45112133", "0.45054626", "0.44990745", "0.44977307", "0.44969815", "0.44956145", "0.44943345", "0.44929108", "0.44924673", "0.44839776", "0.44836712", "0.448086", "0.44799545", "0.4479589", "0.4479549", "0.4478588", "0.44720528", "0.44656512", "0.44652665", "0.4464536", "0.44640982" ]
0.78887475
0
This adds a property descriptor for the License feature.
protected void addLicensePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_license_feature"), getString("_UI_PropertyDescriptor_description", "_UI_JuristType_license_feature", "_UI_JuristType_type"), ContestPackage.Literals.JURIST_TYPE__LICENSE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addLicense(String value);", "Builder addLicense(CreativeWork value);", "License createLicense();", "public String getLicense();", "public String getLicense() {\n\t\treturn license;\n\t}", "public void setLicense(String license) {\n\t\tthis.license = license;\n\t}", "@Value.Default\n public String getLicense() {\n\treturn \"\";\n }", "public void addLicensee(Contact value) {\r\n\t\tBase.add(this.model, this.getResource(), LICENSEE, value);\r\n\t}", "Builder addLicense(CreativeWork.Builder value);", "Builder addLicense(URL value);", "public void addLicensee( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), LICENSEE, value);\r\n\t}", "License update(License license);", "public DataResourceBuilder _customLicense_(URI _customLicense_) {\n this.dataResourceImpl.setCustomLicense(_customLicense_);\n return this;\n }", "protected void addYearPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_year_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_year_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__YEAR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "@Override\n\tpublic void addProperty(String name) {\n\t}", "public T generateLicense();", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_description_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "@Override\n\tpublic java.lang.String getLicense() {\n\t\treturn _scienceApp.getLicense();\n\t}", "public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }", "@Override\r\n\tpublic String getBind_vehicle_license_ind() {\n\t\treturn super.getBind_vehicle_license_ind();\r\n\t}", "public void setLicensee(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), LICENSEE, value);\r\n\t}", "protected void addCust_val4PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val4_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val4_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL4,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_description_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "@Override\n\tpublic void setLicense(java.lang.String license) {\n\t\t_scienceApp.setLicense(license);\n\t}", "public void setLicence(Long licence) {\r\n this.licence = licence;\r\n }", "interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "protected void addIdentifierPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_identifier_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_identifier_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__IDENTIFIER,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }", "public String getLicenseUrl() {\n\t\treturn licenseUrl;\n\t}", "Builder addProperty(String name, SchemaOrgType value);", "public String getLicenseId() {\n\t\treturn licenseId;\n\t}", "protected void addCust_val8PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val8_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val8_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL8,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public static void addLicensee( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, LICENSEE, value);\r\n\t}", "public void setLicenseNumber( int license ) {\n\n licenseNumber = license;\n }", "protected void addRequiresRolePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_UnitField_requiresRole_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_UnitField_requiresRole_feature\", \"_UI_UnitField_type\"),\n\t\t\t\t WafPackage.Literals.UNIT_FIELD__REQUIRES_ROLE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public static void addLicensee(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.add(model, instanceResource, LICENSEE, value);\r\n\t}", "Builder addAccessibilityFeature(String value);", "protected void addPy_cdPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_py_cd_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_py_cd_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__PY_CD,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addCust_val3PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val3_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val3_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL3,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }", "public void setLicensee( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), LICENSEE, value);\r\n\t}", "private void showPropertyDescription(MouseEvent event) {\r\n\t\tPropertyDescriptionStage propertyDescriptionStage = new PropertyDescriptionStage(property);\r\n\t\tpropertyDescriptionStage.show();\r\n\t}", "public String getLicenseModel() {\n return this.licenseModel;\n }", "public String getLicenseModel() {\n return this.licenseModel;\n }", "public Long getLicence() {\r\n return licence;\r\n }", "protected void addAdditionalCodePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_additionalCode_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_additionalCode_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__ADDITIONAL_CODE,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public String getMetnoLicense() {\n\t\treturn this.metnoLicense;\n\t}", "protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}", "protected void addOrganizationPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_organization_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_organization_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__ORGANIZATION,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "protected void addX_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_x_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_x_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__XPROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "ProductProperties productProperties();", "protected void addDescriptionPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_description_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_description_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DESCRIPTION,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "String getLicense_java_lang_String_();", "public DataResourceBuilder _standardLicense_(URI _standardLicense_) {\n this.dataResourceImpl.setStandardLicense(_standardLicense_);\n return this;\n }", "public LicenseType licenseType() {\n return this.licenseType;\n }", "protected void addOrganizationPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_organization_feature\"),\n\t\t\t\t getString(\"_UI_JuristType_organization_description\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__ORGANIZATION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "protected void addVolumePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_volume_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_volume_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__VOLUME,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "@java.lang.Override\n public google.maps.fleetengine.v1.LicensePlateOrBuilder getLicensePlateOrBuilder() {\n return getLicensePlate();\n }", "public interface FormatConstraint extends Constraint {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString copyright = \"Copyright (C) 2012 Bertrand Florat\";\n\n}", "protected void addCust_val2PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val2_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val2_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL2,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "protected void addCust_val9PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val9_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val9_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL9,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "Builder addCopyrightYear(String value);", "public void setPublicCopyrightFlag(String value) {\n setAttributeInternal(PUBLICCOPYRIGHTFLAG, value);\n }", "public List<LicenseAttribution> getAttribution() {\r\n return attribution;\r\n }", "public String getOverseasCopyrightFlag() {\n return (String)getAttributeInternal(OVERSEASCOPYRIGHTFLAG);\n }", "void addCustomization(@NotNull EditorEx editor, @NotNull Feature feature);", "public void setOverseasCopyrightFlag(String value) {\n setAttributeInternal(OVERSEASCOPYRIGHTFLAG, value);\n }", "String getLicensePlate();", "public int getLicenseNumber() {\n\n return licenseNumber;\n }", "public void setElectronicCopyrightFlag(String value) {\n setAttributeInternal(ELECTRONICCOPYRIGHTFLAG, value);\n }", "public boolean isLicensed() {\n\t\tAdvancedConfigurationMeta acMeta = data.getAdvancedConfiguration();\n\t\tif (acMeta.getServiceType() == ServiceType.CVS) { return true; }\n\t\tif ((acMeta.getServiceType() == ServiceType.Web) && !Const.isEmpty(getCustomerID())) { return true; }\n\t\t// check product license\n\t\tif ((acMeta.getProducts() & MDPropTags.MDLICENSE_IPLocator) != 0 || (acMeta.getProducts() & MDPropTags.MDLICENSE_Community) != 0) { return true; }\n\t\treturn false;\n\t}", "protected void addCust_val6PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val6_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val6_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL6,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "@JSProperty(\"description\")\n void setDescription(String value);", "protected void addPlacaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PLACA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public void enablePropertyUnityGain()\n {\n iPropertyUnityGain = new PropertyBool(new ParameterBool(\"UnityGain\"));\n addProperty(iPropertyUnityGain);\n }", "@Override\r\n\tpublic String getBind_driving_license_ind() {\n\t\treturn super.getBind_driving_license_ind();\r\n\t}", "protected void addIana_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_iana_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_iana_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__IANA_PROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public interface ElevatorSystemFloorsProperty extends ElevatorSystemProperty<ElevatorSystem>, ManyReferenceProperty<FloorProperty<Floor>, ElevatorSystem> {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\"\n\t * annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.tetrabox.example.xelevator.elevator.ElevatorPackage.Literals.ELEVATOR_SYSTEM__FLOORS;'\"\n\t * @generated\n\t */\n\tEStructuralFeature getFeature();\n\n}", "interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n Update withSecurityProfile(SecurityProfile securityProfile);\n }", "public String getLicenseNumber() {\n\t\treturn licenseNumber;\n\t}", "protected void addCust_val1PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val1_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val1_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL1,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "Builder addAccessibilityFeature(Text value);", "protected void addServerVersionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_WebsphereServerTask_serverVersion_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_WebsphereServerTask_serverVersion_feature\",\n\t\t\t\t\t\t\"_UI_WebsphereServerTask_type\"),\n\t\t\t\tServerPackage.Literals.WEBSPHERE_SERVER_TASK__SERVER_VERSION, true, false, false,\n\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public String getPublicCopyrightFlag() {\n return (String)getAttributeInternal(PUBLICCOPYRIGHTFLAG);\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"LINUX\", value = \"OS type of this Snapshot\")\n\n public LicenceTypeEnum getLicenceType() {\n return licenceType;\n }", "protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bean_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_description_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void onShowLicences();", "public interface AttributePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public String getLicensePlate() {\n return licensePlate;\n }", "protected void addDecompositionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_decomposition_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_decomposition_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__DECOMPOSITION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_name_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }", "public String getElectronicCopyrightFlag() {\n return (String)getAttributeInternal(ELECTRONICCOPYRIGHTFLAG);\n }", "protected void addCust_val7PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val7_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val7_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL7,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public interface SlamPropertiesEditionPart {\n\n\t/**\n\t * @return the side\n\t * \n\t */\n\tpublic Enumerator getSide();\n\n\t/**\n\t * Init the side\n\t * @param eenum the enum to manage\n\t * @param current the current value\n\t */\n\tpublic void initSide(EEnum eenum, Enumerator current);\n\n\t/**\n\t * Defines a new side\n\t * @param newValue the new side to set\n\t * \n\t */\n\tpublic void setSide(Enumerator newValue);\n\n\n\t/**\n\t * @return the announced\n\t * \n\t */\n\tpublic Boolean getAnnounced();\n\n\t/**\n\t * Defines a new announced\n\t * @param newValue the new announced to set\n\t * \n\t */\n\tpublic void setAnnounced(Boolean newValue);\n\n\n\t/**\n\t * @return the achieved\n\t * \n\t */\n\tpublic Boolean getAchieved();\n\n\t/**\n\t * Defines a new achieved\n\t * @param newValue the new achieved to set\n\t * \n\t */\n\tpublic void setAchieved(Boolean newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "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 String getSupEntPlicense() {\n return supEntPlicense;\n }", "public void enablePropertyVolume()\n {\n iPropertyVolume = new PropertyUint(new ParameterUint(\"Volume\"));\n addProperty(iPropertyVolume);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }" ]
[ "0.6443365", "0.6420278", "0.62014115", "0.6132375", "0.5978334", "0.58843124", "0.58816785", "0.5768707", "0.57586515", "0.5755575", "0.571727", "0.5713272", "0.56685", "0.5642906", "0.55972314", "0.55858636", "0.55502355", "0.54972", "0.54875755", "0.54821175", "0.54804665", "0.5480202", "0.5475846", "0.5475059", "0.5419056", "0.53623885", "0.53166896", "0.52971953", "0.5291353", "0.528794", "0.52590466", "0.5252772", "0.52510846", "0.5249847", "0.5248239", "0.5246358", "0.5227748", "0.52201384", "0.5207417", "0.52012193", "0.51983815", "0.5180349", "0.5163474", "0.5163474", "0.5161169", "0.5148984", "0.5144584", "0.51331615", "0.51242626", "0.5122881", "0.51079804", "0.50988793", "0.50979424", "0.50889397", "0.50880915", "0.5083677", "0.507844", "0.50745916", "0.5066621", "0.50588274", "0.50501955", "0.50494325", "0.5046462", "0.5043829", "0.50438017", "0.5041802", "0.5034783", "0.5031817", "0.502845", "0.5025112", "0.5020673", "0.50114447", "0.5011062", "0.500808", "0.50028414", "0.5002269", "0.49983847", "0.49806526", "0.49649507", "0.49546286", "0.49353844", "0.49302188", "0.49300507", "0.49199548", "0.49175546", "0.49159634", "0.49137095", "0.49134448", "0.49114025", "0.4907295", "0.4900359", "0.48951855", "0.4880803", "0.48769206", "0.48755822", "0.48697224", "0.48691466", "0.48676077", "0.48675522", "0.4863532" ]
0.7444036
0
This returns the label text for the adapted class.
public String getText(Object object) { String retVal = getString("_UI_JuristType_type"); if( object instanceof JuristType ) { retVal += " " + ( ( JuristType ) object ).getName( ); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabelText();", "java.lang.String getLabel();", "public java.lang.String getLabel();", "public abstract String getLabelText();", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "String getLabel();", "String getLabel();", "public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}", "public abstract String getLabel();", "Label getLabel();", "Label getLabel();", "Label getLabel();", "public String getLabel() {\r\n return lbl;\r\n }", "public String getLabel()\n { \n return label;\n }", "public String getLabel(){\n return label;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public String getLabel()\n {\n return label;\n }", "@Override\n public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\n {\n return m_label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public Object getLabel() \n {\n return label;\n }", "String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "private String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel(){\n\t\treturn label;\n\t}", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String toString() {\n return label;\n }", "@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}", "public Object getLabel(T instance) {\n if (labels.containsKey(instance)) {\n return labels.get(instance);\n } else {\n return \"\";\n }\n }", "public String label() {\n return this.label;\n }", "public String getLabel() {\n\t\treturn label;\n\t}", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getContextualizedLabel() {\n\t\tString completeLbl = CodeUnit.getLabel(getRepo(), getArtFrag(), null, true);//this.getLabel();\r\n\t\t\r\n\t\t// strip number for anon class (shows in tooltip)\r\n\t\tif (RSECore.isAnonClassName(completeLbl))\r\n\t\t\tcompleteLbl = RSECore.stripAnonNumber(completeLbl);\r\n\t\t\r\n\t\tTitledArtifactEditPart parentTAFEP = this.getParentTAFEP();\r\n\t\tif (parentTAFEP != null) {\r\n\t\t\tString contextLbl = null;\r\n\t\t\tcontextLbl = getCntxLabel(parentTAFEP);\r\n\t\t\tif (completeLbl.startsWith(contextLbl) && !contextLbl.equals(\".\")) {\r\n\t\t\t\tcompleteLbl = completeLbl.substring(contextLbl.length());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcompleteLbl = strTruncEnd(completeLbl, \".*\");\r\n\t\tcompleteLbl = strTruncBeg(completeLbl, \".\");\r\n\t\tif (completeLbl.length() == 0) completeLbl = \".\";\r\n\t\treturn completeLbl;\r\n\t}", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public String getLabel() {\n\t\t// just return item text until we get the grade levels straighted out for\n\t\t// comm_core\n\t\treturn this.itemText;\n\t\t/*\n\t\t * if (this.label == null) { if (this.getLevel() == 1) { this.label =\n\t\t * this.itemText; } else if (this.getIsLeafNode()) { this.label = \"[\" +\n\t\t * this.getGradeRange() + \"] \" + this.itemText; } else { this.label =\n\t\t * this.itemText + \" [\" + this.getGradeRange() + \"]\"; } } return this.label;\n\t\t */\n\t}", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn Integer.toString(this.mClassLabel);\n\t}", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public String toString()\n {\n return label;\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \": \\\"\" + getLabel() + \"\\\"\";\n\t}", "DatasetLabel getLabel();", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel() {\n\t\treturn this._label;\n\t}", "protected <T> String getLabelText(FormElement<T> element) {\n\t\treturn labelRenderer.getLabelText(element);\n\t}", "public String getLabel() {\r\n return layout.label;\r\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public double getLabel() {\n\t\treturn label;\n\t}", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "String nameLabel();", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "public Label getLabel() {\n return this.label;\n }", "@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}", "public CharSequence getSelectedLabel()\n\t{\n\t\treturn _current.label.getText();\n\t}", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }", "@Override\n\tpublic String getShortLabel()\n\t{\n\t\treturn label;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn (\"\"+label);\n\t}", "com.microsoft.schemas.xrm._2011.contracts.Label getLabel();", "public final Label getLabel() {\n return label;\n }", "double getLabel();", "@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();", "@Nullable\n public CharSequence getLabel() {\n return mPrimaryLabel;\n }", "public JLabel getLabel() {\n return label;\n }", "java.lang.String getViewsLabel();", "public int getLabel() {\n\t\treturn label;\n\t}", "com.google.ads.googleads.v6.resources.Label getLabel();", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}", "@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();", "public JLabel getLabel() {\n return this.label;\n }" ]
[ "0.7866285", "0.7862631", "0.780615", "0.78000176", "0.76271594", "0.755294", "0.755294", "0.755294", "0.755294", "0.7546993", "0.7546993", "0.745652", "0.7416987", "0.7279132", "0.7279132", "0.7279132", "0.725332", "0.7239711", "0.7218232", "0.7210016", "0.72058916", "0.7205661", "0.7167244", "0.7166085", "0.71659577", "0.71659577", "0.7158093", "0.7139879", "0.7139879", "0.7139879", "0.71270454", "0.711787", "0.7116996", "0.7116996", "0.7116996", "0.71122426", "0.7098622", "0.70898575", "0.7075169", "0.70556206", "0.70543754", "0.70528585", "0.70261335", "0.7017035", "0.7017035", "0.7017035", "0.7017035", "0.70153856", "0.70153856", "0.70153856", "0.70153856", "0.6982396", "0.69798696", "0.6978997", "0.6967756", "0.6965524", "0.69547063", "0.6946187", "0.6940005", "0.69391346", "0.6937268", "0.69293433", "0.6917002", "0.69112223", "0.6908707", "0.69023293", "0.68711025", "0.68628305", "0.68424904", "0.6840678", "0.68343735", "0.68115723", "0.6808262", "0.6807868", "0.67967325", "0.67967325", "0.6788413", "0.67773396", "0.67584354", "0.6753206", "0.67357635", "0.6689456", "0.6685848", "0.66592276", "0.6654374", "0.6637526", "0.66370255", "0.66241866", "0.66030127", "0.65854555", "0.6579934", "0.65577686", "0.65536433", "0.6552838", "0.65434283", "0.6537824", "0.6533181", "0.6533181", "0.6533181", "0.6514733", "0.6499105" ]
0.0
-1
Return the resource locator for this item provider's resources.
@Override public ResourceLocator getResourceLocator() { return ContestEditPlugin.INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ResourceLocator getResourceLocator ()\n {\n return ( (IChildCreationExtender)adapterFactory ).getResourceLocator ();\n }", "public ResourceLocator getResourceLocator() {\r\n\t\treturn MARTE_sbEditPlugin.INSTANCE;\r\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}", "@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\t// TODO\r\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\r\n\t\t// Ensure that you remove @generated or mark it @generated NOT\r\n\t\treturn super.getResourceLocator();\r\n\t}", "public ResourceLocator getResourceLocator() {\r\n\t\treturn UmlDomainEditPlugin.INSTANCE;\r\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn ICalEditPlugin.INSTANCE;\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n // TODO\n // Specialize this to return a resource locator for messages specific to this validator.\n // Ensure that you remove @generated or mark it @generated NOT\n return super.getResourceLocator();\n }", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn QFDDPlugin.INSTANCE;\n\t}", "public CwmResourceLocator createCwmResourceLocator();", "List<String> getApplicationContextResourcePaths();", "public List<ResourceMethod> getSubResourceLocators() {\n return subResourceLocators;\n }", "@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn IccEditPlugin.INSTANCE;\r\n\t}", "java.lang.String getResourceUri();", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn OpenAPIEditPlugin.INSTANCE;\n\t}", "public interface IResourceSource\n{\n /**\n * Get resource location based on resource name.\n *\n * @param name Name of resource to be searched\n * @return URL of resource\n */\n public URL getResourceLocation( String name );\n\n /**\n * Get resource locations based on resource name.\n *\n * @param name Name of resources to be searched\n * @return Enumeration of URLs of resources\n */\n public Enumeration getResourceLocations( String name );\n\n /**\n * Get resource path this resource source references. Each entry including the last must be\n * terminated with a semicolon.\n *\n * @return Resource path this resource source references\n */\n public String getResourcePath();\n}", "public String getResourceUri() {\n return resourceUri;\n }", "public interface ResourceLocation\n{\n\t/**\n\t * Create a new location that represents this resource but with a\n\t * different extension.\n\t *\n\t * @param newExtension\n\t * @return\n\t */\n\tResourceLocation withExtension(String newExtension);\n\n\t/**\n\t * Resolve a path relative to this location.\n\t *\n\t * @param path\n\t * @return\n\t */\n\tResourceLocation resolve(String path);\n\n\t/**\n\t * Get the name of this resource.\n\t *\n\t * @return\n\t */\n\tString getName();\n}", "IWrfResourceProvider getProvider();", "public List<String> getResources() {\n return resources;\n }", "ResourceLocation resolve(String path);", "@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn ModelEditPlugin.INSTANCE;\r\n\t}", "public String getResourceLocation() {\n return resourceLocation;\n }", "public Enumeration getResourceLocations( String name );", "public Iterator getResources() {\n return this.resources.iterator();\n }", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn ModelEditPlugin.INSTANCE;\n\t}", "public List<IResource> getResources();", "@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn DataflowsystemEditPlugin.INSTANCE;\r\n\t}", "public List<ResourceItem> resourceList() {\n return this.resourceList;\n }", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn Y3853992EditPlugin.INSTANCE;\n\t}", "public interface IProvider {\n String provide(String resourceAbsolutePath);\n}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn WafEditPlugin.INSTANCE;\n\t}", "public String getResourceIds() {\n return resourceIds;\n }", "@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn SpringConfigDslEditPlugin.INSTANCE;\r\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SampledefinitionEditPlugin.INSTANCE;\n\t}", "protected IResource getResource() {\r\n \t\tIEditorInput input = fTextEditor.getEditorInput();\r\n \t\treturn (IResource) ((IAdaptable) input).getAdapter(IResource.class);\r\n \t}", "public ArrayList<Resource> getResources(){\n\t\treturn _resources;\n\t}", "Collection<? extends Resource> getResources();", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SchemaEditPlugin.INSTANCE;\n\t}", "public IPath[] getAdditionalResources();", "public URL getProviderURL () {\n return impl.getProviderURL ();\n }", "public ResourceManager getResourceManager ()\n {\n return _rsrcmgr;\n }", "public Vector getResourceIds()\n {\n return mResourceIds;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Enumeration<URL> findResources(String name) throws IOException\n\t{\n\t\tList<URL> urlList = null;\n\t\tif (debugEnabled) log.debug(\"resource [\" + name + \"] not found locally, attempting remote lookup\");\n\t\ttry\n\t\t{\n\t\t\tLOCK.lock();\n\t\t\tList<String> locationsList = cache.getResourcesLocations(name);\n\t\t\tif (locationsList == null)\n\t\t\t{\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tmap.put(\"name\", name);\n\t\t\t\tmap.put(\"multiple\", \"true\");\n\t\t\t\tJPPFResourceWrapper resource = loadResourceData(map, true);\n\t\t\t\tList<byte[]> dataList = (List<byte[]>)resource.getData(\"resource_list\");\n\t\t\t\tboolean found = (dataList != null) && !dataList.isEmpty();\n\t\t\t\tif (debugEnabled) log.debug(\"resource [\" + name + \"] \" + (found ? \"\" : \"not \") + \"found remotely\");\n\t\t\t\tif (found)\n\t\t\t\t{\n\t\t\t\t\tcache.registerResources(name, dataList);\n\t\t\t\t\turlList = new ArrayList<URL>();\n\t\t\t\t\tlocationsList = cache.getResourcesLocations(name);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (locationsList != null)\n\t\t\t{\n\t\t\t\tfor (String path: locationsList)\n\t\t\t\t{\n\t\t\t\t\tFile file = new File(path);\n\t\t\t\t\tif (urlList == null) urlList = new ArrayList<URL>();\n\t\t\t\t\turlList.add(file.toURI().toURL());\n\t\t\t\t}\n\t\t\t\tif (debugEnabled) log.debug(\"found the following URLs for resource [\" + name + \"] : \" + urlList);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"resource [\" + name + \"] not found remotely\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tLOCK.unlock();\n\t\t}\n\t\treturn urlList == null ? null : new IteratorEnumeration<URL>(urlList.iterator());\n\t}", "public static interface ResourceProvider {\n\t\t\n\t\t/**\n\t\t * Obtain an input stream pointing to a resource. The argument resource\n\t\t * file name is equivalent to the path info of the argument request,\n\t\t * but provided separately for instant access. The argument request,\n\t\t * in turn, is there to provide access to request parameters, session\n\t\t * info, etc.\n\t\t * @param resName the resource file name\n\t\t * @param request the original HTTP request asking for the resource\n\t\t * @return\n\t\t */\n\t\tpublic abstract ResourceInputStream getResource(String resName, HttpServletRequest request);\n\t}", "public interface ResourcePaths {\n String imageFolderPath();\n String imageResourcePath();\n String videoFolderPath();\n String videoResourcePath();\n}", "String getResourceType();", "public IResource getResource();", "public List<PrimaryType> getResources() {\n return resources;\n }", "@Override\n protected URL\n findResource\n (\n String rname\n )\n {\n LogMgr.getInstance().log\n (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n \"Resource name (\" + rname + \")\");\n\n if(pResources != null) {\n if(pResources.containsKey(rname)) {\n\tPath resourcePath = new Path(pResourceRootPath, rname);\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource path (\" + resourcePath + \")\");\n\n\tFile resourceFile = resourcePath.toFile();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource file (\" + resourceFile + \") exists (\" + resourceFile.exists() + \")\");\n\n\tif(!resourceFile.exists())\n\t return null;\n\n\tURI resourceURI = resourceFile.toURI();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URI (\" + resourceURI + \")\");\n\n\ttry {\n\t URL resourceURL = resourceURI.toURL();\n\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URL (\" + resourceURL + \")\");\n\n\t return resourceURL;\n\t}\n\tcatch(MalformedURLException ex) {\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Warning, \n\t \"Error constructing URL from (\" + rname + \")!\");\n\t}\n }\n }\n\n return null;\n }", "public List<Resource> getFileLocations() throws IOException;", "ResourceType getResource();", "public ICodeBaseEntry lookupResource(String resourceName) throws ResourceNotFoundException;", "public abstract String getResUri();", "protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }", "public String getImageResourceIds(){\n return imageResourceIds;\n }", "public List<DataGridResource> getResources() {\n\t\tif(resources != null) Collections.sort(resources);\n\t\treturn resources;\n\t}", "public List<SecretMetadata> resources() {\n return resources;\n }", "@Override\n\tpublic IResource getCorrespondingResource() {\n\t\treturn getUnderlyingResource();\n\t}", "public RegTapResource[] getResources() {\n return resMap_.values().toArray( new RegTapResource[ 0 ] );\n }", "public ArrayList<VirtualMachineImageResource> getResources() {\n return this.resources;\n }", "@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn ScenarioParticipantEditPlugin.INSTANCE;\r\n\t}", "abstract public String getRingResourcesDir();", "public List<ITranslationResource> getResources(){\n\t\treturn resources;\n\t}", "public ResourceSet getResourceSet()\n {\n return resourceSet;\n }", "List<Resource> resources();", "public Class<? extends Resources> getResourcesClass() {\n\t\treturn Resources.class;\n\t}", "public Map<ResourceId, ResourceConfig> getResourceMap() {\n return _resourceMap;\n }", "public interface ResourceLoader {\n\n\t/** Pseudo URL prefix for loading from the class path: \"classpath:\" */\n\tpublic static final String CLASSPATH_URL_PREFIX = \"classpath:\";\n\n\t/** URL prefix for loading from the file system: \"file:\" */\n\tpublic static final String FILE_URL_PREFIX = \"file:\";\n\n\tResource getResource(String location);\n\n}", "public String getResourceUrl() {\n return this.resourceUrl;\n }", "public Resources resources() {\n return this.resources;\n }", "@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SystemBehaviorEditPlugin.INSTANCE;\n\t}", "public String getResourceUrl() {\n\t\treturn resourceUrl;\n\t}", "public Collection<Resource> getResources() {\n return resourceRegistry.getEntries().values();\n }", "public String getResourceurl() {\n return resourceurl;\n }", "public String getResourceName();", "public URL getResourceLocation( String name );", "public abstract Map<AbstractResource, ResourceResolution> findApplicableResources(\n TreeLogger logger, PathPrefixSet pathPrefixSet);", "public String getProvider() {\r\n return provider;\r\n }", "IconUris iconUris();", "public String getProvider() {\n return provider;\n }", "private ResourceInputStream findResource(String resName, HttpServletRequest request) throws IOException {\n\t\tFile resFile = this.findFile(resName);\n\t\tif (resFile != null)\n\t\t\treturn new ResourceInputStream(resFile);\n\t\t\n\t\t//\ttry resource providers (copy for thread safety, as we don't want concurrent modification exceptions)\n\t\tLinkedList rpList = new LinkedList(this.resourceProviders);\n\t\twhile (rpList.size() != 0) {\n\t\t\tResourceProvider rp = ((ResourceProvider) rpList.removeFirst());\n\t\t\tResourceInputStream ris = rp.getResource(resName, request);\n\t\t\tif (ris != null)\n\t\t\t\treturn ris;\n\t\t}\n\t\t\n\t\t//\tnothing we can do about this one\n\t\treturn null;\n\t}", "protected Enumeration<URL> convertedFindResources(String name) throws IOException {\n ServiceReference reference = bundle.getBundleContext().getServiceReference(PackageAdmin.class.getName());\n PackageAdmin packageAdmin = (PackageAdmin) bundle.getBundleContext().getService(reference);\n try {\n List<URL> resources = findResources(packageAdmin, bundle, name, true);\n if (isMetaInfResource(name)) {\n LinkedHashSet<Bundle> wiredBundles = getWiredBundles();\n for (Bundle wiredBundle : wiredBundles) {\n resources.addAll(findResources(packageAdmin, wiredBundle, name, true));\n }\n }\n return Collections.enumeration(resources);\n } catch (Exception e) {\n throw (IOException) new IOException(\"Error discovering resources: \" + e).initCause(e);\n } finally {\n bundle.getBundleContext().ungetService(reference);\n }\n }", "String getResourceName();", "public String getResourceId();", "public abstract IResource getResource();", "public static Resources getSharedResources() {\n return sharedResource;\n }", "protected Resource getResource() {\n return resource;\n }", "public interface IResource {\n\t// TODO: Have priorities for resources either here or implemented in IResourceView\n\n\n\tpublic String getName();\n\t\n\tpublic IUniformLocation getLocation(); // public IStorageLocation getLocation() ?\n\t\n\tpublic IResourceType getType();\n}", "public String getResourcePath () {\n return resourcePath;\n }", "@Nonnull\n public Optional<ResourcePath> getExposedUri();", "public Resource[] getResourceArray() {\n return resource;\n }", "public String getProviderUrl() {\r\n return providerUrl;\r\n }", "protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}", "public String getProvider() {\n return mProvider;\n }", "private static Hashtable<? super String, Object> getProviderResource(Object obj) throws NamingException {\n if (obj == null) {\n return (new Hashtable<>(1));\n }\n synchronized (propertiesCache) {\n Class<?> c = obj.getClass();\n\n Hashtable<? super String, Object> props = propertiesCache.get(c);\n if (props != null) {\n return props;\n }\n props = new Properties();\n\n InputStream istream = helper.getResourceAsStream(c, PROVIDER_RESOURCE_FILE_NAME);\n\n if (istream != null) {\n try {\n ((Properties) props).load(istream);\n } catch (IOException e) {\n NamingException ne = new ConfigurationException(\n \"Error reading provider resource file for \" + c);\n ne.setRootCause(e);\n throw ne;\n }\n }\n propertiesCache.put(c, props);\n return props;\n }\n }", "@Override\n public Set<Resource> getRegisteredResources(DiscreteResourceId parent) {\n return null;\n }", "public String getResourcePath () {\n return resourcePath;\n }" ]
[ "0.6166506", "0.59952855", "0.58907443", "0.58907443", "0.58907443", "0.58907443", "0.58637655", "0.58444345", "0.575855", "0.56416833", "0.5638885", "0.56322646", "0.56244195", "0.5604224", "0.5569597", "0.54828656", "0.54791564", "0.5466159", "0.546406", "0.5441816", "0.5432531", "0.53950316", "0.5371068", "0.5362817", "0.5358652", "0.5356292", "0.53422666", "0.5316531", "0.53149885", "0.52759343", "0.5251563", "0.5250806", "0.52421534", "0.52319473", "0.5229534", "0.52289784", "0.5189745", "0.5167239", "0.5155121", "0.51523995", "0.5150314", "0.5141256", "0.5110439", "0.5080172", "0.50680226", "0.50624245", "0.50610054", "0.50473654", "0.5040977", "0.50350505", "0.50230753", "0.50153893", "0.5010507", "0.50074345", "0.49921092", "0.49909082", "0.4987239", "0.49752837", "0.49699455", "0.4965779", "0.49488068", "0.494369", "0.4932444", "0.4929061", "0.492275", "0.4921866", "0.4920797", "0.49199066", "0.49080464", "0.49067366", "0.49012163", "0.4893418", "0.48882496", "0.48748654", "0.48711953", "0.48709986", "0.48589295", "0.4858034", "0.4850366", "0.4849653", "0.4832537", "0.48297307", "0.48279262", "0.48149502", "0.48080865", "0.48029038", "0.479149", "0.47879508", "0.47820014", "0.47815436", "0.47812396", "0.4776552", "0.4774347", "0.47721094", "0.47636232", "0.47635612", "0.47623456", "0.47530425", "0.47437266", "0.47375125" ]
0.50693405
44
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ClassNotFoundException, SQLException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { HttpSession s=request.getSession(); String FNAME=(String)s.getAttribute("FNAME1"); String MNAME=(String)s.getAttribute("MNAME1"); String LNAME=(String)s.getAttribute("LNAME1"); String DOB=(String)s.getAttribute("FNAME"); String SUSN1=(String)s.getAttribute("DOB1"); String MAIL1=(String)s.getAttribute("MAIL11"); String SPHONE1=(String)s.getAttribute("SPHONE11"); String SSEX=(String)s.getAttribute("SSEX1"); String PADDRS=(String)s.getAttribute("PADDRS1"); String FRADDRS=(String)s.getAttribute("RADDRS1"); String FANAME=(String)s.getAttribute("FANAME1"); String MONAME=(String)s.getAttribute("MONAME"); String PPHONE1=(String)s.getAttribute("PPHONE11"); String DEP_ID=(String)s.getAttribute("DEP_ID"); String SUB1=(String)s.getAttribute("SUBJECT1"); String SUB2=(String)s.getAttribute("SUBJECT2"); String SUB3=(String)s.getAttribute("SUBJECT3"); String SUB4=(String)s.getAttribute("SUBJECT4"); String SUB5=(String)s.getAttribute("SUBJECT5"); String SUB6=(String)s.getAttribute("SUBJECT6"); String SUB7=(String)s.getAttribute("SUBJECT7"); String SUB8=(String)s.getAttribute("SUBJECT8"); String SEM=(String)s.getAttribute("SEM1"); String SPASWD=(String)s.getAttribute("SPASWD"); String SCFMPSWD=(String)s.getAttribute("SCFMPSWD"); if(SCFMPSWD.equals(SPASWD)){ out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Servlet studb</title>"); out.println("</head>"); out.println("<body>"); // out.println("insert into STUDENT11(First_name,Init,last_name,SDOB,SUSN,SEmail,phone,gender,prem_addr,res_addr,fat_name,mom_name,par_phone,dept2_id,subject1,subject2,subject3,subject4,subject5,subject6,subject7,subject8,section_id,password) values('"+FNAME+"','"+MNAME+"','"+LNAME+"','"+DOB+"','"+SUSN1+"','"+MAIL1+"',"+SPHONE1+",'"+SSEX+"','"+PADDRS+"','"+FRADDRS+"','"+FANAME+"','"+MONAME+"',"+PPHONE1+","+DEP_ID+",'"+SUB1+"','"+SUB2+"','"+SUB3+"','"+SUB4+"','"+SUB5+"','"+SUB6+"','"+SUB7+"','"+SUB8+"','"+SEM+"','"+SPASWD+"')"); Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "system", "manager"); Statement stmt=con.createStatement(); stmt.executeQuery("insert into STUDENT11(First_name,Init,last_name,SDOB,SUSN,SEmail,phone,gender,prem_addr,res_addr,fat_name,mom_name,par_phone,dept2_id,subject1,subject2,subject3,subject4,subject5,subject6,subject7,subject8,section_id,password) values('"+FNAME+"','"+MNAME+"','"+LNAME+"','"+DOB+"','"+SUSN1+"','"+MAIL1+"',"+SPHONE1+",'"+SSEX+"','"+PADDRS+"','"+FRADDRS+"','"+FANAME+"','"+MONAME+"',"+PPHONE1+","+DEP_ID+",'"+SUB1+"','"+SUB2+"','"+SUB3+"','"+SUB4+"','"+SUB5+"','"+SUB6+"','"+SUB7+"','"+SUB8+"','"+SEM+"','"+SPASWD+"')"); con.close(); out.println("<script>alert(\" entry successfull\")</script>"); out.println("<meta http-equiv='refresh' content='0;URL=addstu'>"); out.println("</body>"); out.println("</html>"); }else { response.sendRedirect("adddept"); } }catch(Exception e){ out.println(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7005406", "0.66572356", "0.6604074", "0.65101326", "0.64464515", "0.64432913", "0.6439602", "0.64311135", "0.642902", "0.6425377", "0.6425377", "0.6420841", "0.6420841", "0.6420841", "0.6417446", "0.64133376", "0.64133376", "0.6399404", "0.6395047", "0.6395047", "0.6393712", "0.6393019", "0.6393019", "0.6391477", "0.6391477", "0.6391477", "0.6391477", "0.6387829", "0.6387829", "0.6379409", "0.63793546", "0.6377228", "0.6377206", "0.63759077", "0.63695353", "0.63625795", "0.6361562", "0.6361562", "0.63547134", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943", "0.63537943" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (ClassNotFoundException ex) { Logger.getLogger(studb.class.getName()).log(Level.SEVERE, null, ex); } catch (SQLException ex) { Logger.getLogger(studb.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (ClassNotFoundException ex) { Logger.getLogger(studb.class.getName()).log(Level.SEVERE, null, ex); } catch (SQLException ex) { Logger.getLogger(studb.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365" ]
0.0
-1
List arrival flight delays by airline.
List<AirlineFlightDelays> listArrivalFlightDelaysByAirlineAsAirlineFlightDelays();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> \n getTransitFlightsList();", "public List<String> getAirlines(){\n List<String> airlines = new LinkedList<String>();\n for (Flight flight : flights) {\n airlines.add(flight.getAirlineCode());\n }\n return airlines;\n }", "com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight getTransitFlights(int index);", "Iterable<Airline> getAirlines();", "@Override\n\tpublic void showAirlines() {\n\t\tArrayList<Airline> airlines = Singleton.AirlineRegistDao().findAll();\n\t\tairlineOptions = \"\";\n\t\tfor (Airline airline : airlines) {\n\t\t\tairlineOptions += String.format(\"<li role=\\\"presentation\\\"> <a role=\\\"menuitem\\\" tabindex=\\\"-1\\\" href=javascript:void(0)>%s</a> </li>\\n\", airline.getName());\n\n\t\t}\n\t\tSystem.out.println(airlineOptions);\n\t}", "public List<Flight> TopAirline(int max) throws TravelException;", "public List<Flight> getArriveFlights(String airportCode, String date){\n\t\tList<Flight> flights = new ArrayList<Flight>();\n\t\ttry {\n\t\t\tFlight flight;\n\t\t\tDateFormat formatter = new SimpleDateFormat(\"YYYY-MM-dd\");\n\t\t\tDate inputDate = formatter.parse(date);\n\t\t\tfor (int i = 0; i < this.flights.size(); i++) {\n\t\t\t\tflight = this.flights.get(i);\n\t\t\t\tformatter = new SimpleDateFormat(\"YYYY-MM-dd'T'hh:mm:ss\");\n\t\t\t\tif (flight.getArrivalAirportIATACode().equals(airportCode)\n\t\t\t\t\t\t&& isSameDay(inputDate,formatter.parse(flight.getDepartureDate().split(\" \")[0]))) {\n\t\t\t\t\tflights.add(flight);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn flights;\n\t}", "public String getFlights(){\r\n String str = new String();\r\n Iterator<Flight> iter = flights.iterator();\r\n\r\n while (iter.hasNext()){\r\n Flight temp = iter.next();\r\n str += \"\\n Flight ID: \" + temp.flightID + \"\\n Flight \" + temp.flightDate + \"\\n Plane ID: \" + temp.plane.planeID + \"\\n\";\r\n }\r\n return \"\\n Pilot Flights \\n\" + str + \"\\n\";\r\n }", "public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> getTransitFlightsList() {\n return transitFlights_;\n }", "public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> getTransitFlightsList() {\n if (transitFlightsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(transitFlights_);\n } else {\n return transitFlightsBuilder_.getMessageList();\n }\n }", "java.lang.String getArrivalAirport();", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight getTransitFlights(int index) {\n return transitFlights_.get(index);\n }", "public Map<String,Flight> getAllDepartureFlights() {\n\t\tMap<String,Flight> allFlights = new HashMap<String,Flight> ();\n\t\twaitForElementToAppear(departureFlightSection);\n\t\tList<WebElement> flights = departureFlightSection.findElements(By.tagName(\"li\"));\n\t\tif (!flights.isEmpty()) {\n\t\t for (WebElement flight:flights) {\n\t\t \tString flightInformation = flight.getText();\n\t\t \tString[] flightInformationElements = flightInformation.split(\"\\n\");\n\t\t \tfor (int j = 0; j < flightInformationElements.length; j++) {\n\t\t \t\tSystem.out.println(flightInformationElements[j]);\n\t\t \t}\n\t\t \tFlight newFlight = new Flight();\n\t\t \tString flightNumber = flightInformationElements[0].trim();\n\t\t \tnewFlight.setFlightNumber(flightNumber);\n\t\t \tnewFlight.setStop(flightInformationElements[1].trim());\n\t\t \tnewFlight.setDepartureTime(flightInformationElements[2].trim());\n\t\t \tnewFlight.setArrivalTime(flightInformationElements[3].trim());\n\t\t \tnewFlight.setDuration(flightInformationElements[4].trim());\n\t\t \tnewFlight.setDurationTime(flightInformationElements[5].trim());\n\t\t \tnewFlight.setBusinessPrice(flightInformationElements[6].trim());\n\t\t \tnewFlight.setAnytimePrice(flightInformationElements[7].trim());\n\t\t \tnewFlight.setGetAwayPrice(flightInformationElements[8].trim());\n\t\t \tif (!allFlights.containsKey(flightNumber))\n\t\t \t\tallFlights.put(flightNumber , newFlight);\n\t\t }\n\t\t}\n\t\treturn allFlights;\n\t}", "@Override\n\tpublic List<FlightInfoBean> getFlights() throws AirlineException {\n\t\ttry {\n\t\t\treturn em.createQuery(\"from FlightInfoBean\").getResultList();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new AirlineException(e.getMessage());\n\t\t}\n\t}", "List<Route> getRoutesByArrival(String arrival);", "List<Tour> getTourSchedule(String line);", "public List<flight> timeSwich(List<flight> FlightInfo, List<airportInformation> airport){\n\t flight ThisInfo = new flight();\n\t airportInformation ai = new airportInformation();\n\t Iterator AllInfo = FlightInfo.iterator();\n\t \n\t SimpleDateFormat OTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t OTime.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t SimpleDateFormat NTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t String[] parts;\n\t String ThisTime;\n\t String[] airportName = ai.sortAirportName(airport);\n\t \n\t while (AllInfo.hasNext())\n\t { \n\t ThisInfo= (flight)AllInfo.next();//From this we can get the arriving airport and departing airport\n\t String date = ThisInfo.getDepartingDate()+\" \"+ThisInfo.getDepartingTime();\n\t Date FTime = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getDepartingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t Iterator AllInf = FlightInfo.iterator(); \n\t while (AllInf.hasNext())\n\t { ThisInfo=(flight)AllInf.next();\n\t String date = ThisInfo.getArrivingDate()+\" \"+ThisInfo.getArrivingTime();\n\t Date FTim = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getArrivingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t \n\t return FlightInfo;\n\t }", "@JsonIgnore public Collection<Airport> getArrivalAirports() {\n final Object current = myData.get(\"arrivalAirport\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Airport>) current;\n }\n return Arrays.asList((Airport) current);\n }", "List<FlightResponse> getConnectingFlights(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate, List<Route> allRoutes) throws ValidationException, ServiceException {\n\n List<ConnectionRoute> connectionRoutes = routeService.getConnectionRoutes(departure, arrival, allRoutes);\n List<FlightResponse> responses = new ArrayList<>();\n\n for (ConnectionRoute cr : connectionRoutes) {\n String depFrom = cr.getDeparture().getAirportFrom();\n String depTo = cr.getDeparture().getAirportTo();\n List<Leg> departureLegs = getDirectFlights(depFrom, depTo, departureDate, arrivalDate).getLegs();\n\n String arrFrom = cr.getArrival().getAirportFrom();\n String arrTo = cr.getArrival().getAirportTo();\n List<Leg> arrivalLegs = getDirectFlights(arrFrom, arrTo, departureDate, arrivalDate).getLegs();\n\n for (Leg depLeg : departureLegs) {\n LocalDateTime depFromConnection = depLeg.getArrivalDateTime().plusHours(2);\n List<Leg> filteredArrivalLegs = arrivalLegs.stream()\n .filter(leg -> leg.getDepartureDateTime().isAfter(depFromConnection))\n .filter(leg -> leg.getDepartureAirport().equals(depLeg.getArrivalAirport()))\n .collect(Collectors.toList());\n\n for (Leg leg : filteredArrivalLegs) {\n responses.add(new FlightResponse(1, Stream.of(depLeg, leg).collect(Collectors.toList())));\n }\n }\n }\n\n return responses;\n }", "java.util.List<? extends com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder> \n getTransitFlightsOrBuilderList();", "public String getArrivalAirport();", "public static List<Quote> getFlight(Flight flights){\n List<Quote> flightQuotes=new ArrayList<>();\n List<Carrier> carriers=flights.getCarriers();\n List<Quote> quotes=flights.getQuotes();\n List<Currency> currencies=flights.getCurrencies();\n List<Place> places=flights.getPlaces();\n for (Quote quote:flights.getQuotes()){\n flightQuotes.add(quote);\n }\n return flightQuotes;\n }", "public java.util.List<? extends com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder> \n getTransitFlightsOrBuilderList() {\n if (transitFlightsBuilder_ != null) {\n return transitFlightsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(transitFlights_);\n }\n }", "public java.util.List<? extends com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder> \n getTransitFlightsOrBuilderList() {\n return transitFlights_;\n }", "@Override\n\tpublic ArrayList<String> showFlights(String source, String destination, String date) throws ParseException {\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tTimestamp travelTimestamp = new Timestamp(((new SimpleDateFormat(\"dd/MM/yyyy\")).parse(date)).getTime());\n\t\tArrayList<TransportMode> flights;\n\t\tif(allFlightsByTimestamp.containsKey(travelTimestamp)){\n\t\t\tflights = allFlightsByTimestamp.get(travelTimestamp);\n\t\t\tFlight flight;\n\t\t\tfor(int i = 0;i<flights.size();i++){\n\t\t\t\tflight = (Flight)flights.get(i);\n\t\t\t\tif(flight.getSource().equalsIgnoreCase(source) && flight.getDestination().equalsIgnoreCase(destination))\n\t\t\t\t\tresult.add(\"\"+flight.getModeNumber());\n\t\t\t}\n\t\t}\n\t\tif(result.size() == 0)\n\t\t\tresult = null;\n\t\treturn result;\n\t}", "@Override\n\tpublic List<Airline> listAllAirlines() {\n\t\tConnection con = null;\n\t\tList<Airline> airlines = new ArrayList<Airline>();\n\t\ttry {\n\t\t\tcon = getMySqlConnection();\n\t\t\tCallableStatement callableStatement = con\n\t\t\t\t\t.prepareCall(\"call listAllAirlines\");\n\t\t\tcallableStatement.executeQuery();\n\n\t\t\tResultSet result = callableStatement.getResultSet();\n\t\t\twhile (result.next()) {\n\t\t\t\tAirline airline = new Airline();\n\t\t\t\tairline.setAirlineCode(result.getString(\"airlinecode\"));\n\t\t\t\tairline.setAirlineId(result.getInt(\"airlineid\"));\n\t\t\t\tairline.setAirlineName(result.getString(\"airlinename\"));\n\t\t\t\tairline.setAirlineLogo(result.getString(\"airlinelogo\"));\n\t\t\t\tairlines.add(airline);\n\t\t\t}\n\n\t\t} catch (SQLException s) {\n\t\t\ts.printStackTrace();\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn airlines;\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight getTransitFlights(int index) {\n if (transitFlightsBuilder_ == null) {\n return transitFlights_.get(index);\n } else {\n return transitFlightsBuilder_.getMessage(index);\n }\n }", "com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder getTransitFlightsOrBuilder(\n int index);", "public Map<String,Flight> getAllReturnFlights() {\n\t\tMap<String,Flight> allFlights = new HashMap<String,Flight> ();\n\t\twaitForElementToAppear(returnFlightSection);\n\t\tList<WebElement> flights = returnFlightSection.findElements(By.tagName(\"li\"));\n\t\tif (!flights.isEmpty()) {\n\t\t for (WebElement flight:flights) {\n\t\t \tString flightInformation = flight.getText();\n\t\t \tString[] flightInformationElements = flightInformation.split(\"\\n\");\n\t\t \tfor (int j = 0; j < flightInformationElements.length; j++) {\n\t\t \t\tSystem.out.println(flightInformationElements[j]);\n\t\t \t}\n\t\t \tFlight newFlight = new Flight();\n\t\t \tString flightNumber = flightInformationElements[0].trim();\n\t\t \tnewFlight.setFlightNumber(flightNumber);\n\t\t \tnewFlight.setStop(flightInformationElements[1].trim());\n\t\t \tnewFlight.setDepartureTime(flightInformationElements[2].trim());\n\t\t \tnewFlight.setArrivalTime(flightInformationElements[3].trim());\n\t\t \tnewFlight.setDuration(flightInformationElements[4].trim());\n\t\t \tnewFlight.setDurationTime(flightInformationElements[5].trim());\n\t\t \tnewFlight.setBusinessPrice(flightInformationElements[6].trim());\n\t\t \tnewFlight.setAnytimePrice(flightInformationElements[7].trim());\n\t\t \tnewFlight.setGetAwayPrice(flightInformationElements[8].trim());\n\t\t \tif (!allFlights.containsKey(flightNumber))\n\t\t \t\tallFlights.put(flightNumber , newFlight);\n\t\t }\n\t\t}\n\t\treturn allFlights;\n\t}", "@Test(groups = {\"SMOKE\"})\r\n public void airlinesTest() {\r\n new ChooseFlightPage(driver, url)\r\n .run(new PickFlightScenario(\"Paris\", \"Bunos Aires\"))\r\n .check(new FlightOptionsAssertion())\r\n .verifyFlightNumberOrder(flightNumbersOrderVA)\r\n .verifyFlightNumbersUnordered(flightNumbersUnordered);\r\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder getTransitFlightsOrBuilder(\n int index) {\n return transitFlights_.get(index);\n }", "public void chooseFlight() throws InterruptedException {\n\t\ttry {\n\t\tHomepageobjects home = PageFactory.initElements(driver, Homepageobjects.class);\n\t\t\n\t\tint size =home.listFilghts.size();\n\t\tList<FlightDetails> flightDetailsList = new ArrayList<FlightDetails>();\n\t\t\n\t\t//getting all flight details and create listObjects\n\t\tfor(int i=1;i<=size;i++) {\n\t\tWebElement flightNamex = driver.findElement(By.xpath(home.flightName.replace(\"INDEX\",String.valueOf(i))));\n\t\tWebElement startTimex = driver.findElement(By.xpath(home.startTime.replace(\"INDEX\",String.valueOf(i))));\n\t\tWebElement endTimex = driver.findElement(By.xpath(home.filghtsTravalDuration.replace(\"INDEX\",String.valueOf(i))));\n\t\tWebElement filghtsCostx = driver.findElement(By.xpath(home.filghtsCost.replace(\"INDEX\",String.valueOf(i))));\n\t\tWebElement filghtsCode = driver.findElement(By.xpath(home.flightCode.replace(\"INDEX\",String.valueOf(i))));\n\t\t\n\t\tint filghtsTravalDurationx;\n\t\ttry {\n\t\t filghtsTravalDurationx =\n\t\tInteger.parseInt(startTimex.getText().replace(\":\", \"\"))-Integer.parseInt(endTimex.getText().replace(\":\", \"\"));\n\t\tSystem.out.println(flightNamex.getText()+\"\"+startTimex.getText()+\"\"+filghtsTravalDurationx+\"\"+filghtsCostx.getText());\n\t\t}catch(Exception e) {\n\t\t\tfilghtsTravalDurationx =\n\t\t\t\t\tInteger.parseInt(startTimex.getText().replace(\":\", \"\"))-Integer.parseInt(endTimex.getText().split(\"\\\\+\")[0].replace(\":\", \"\"));\n\t\t\t\t\tSystem.out.println(flightNamex.getText()+\"\"+startTimex.getText()+\"\"+filghtsTravalDurationx+\"\"+filghtsCostx.getText());\n\t\t}\n\t\t\t\t\n\t\tflightDetailsList.add(new FlightDetails(flightNamex.getText(), startTimex.getText(), filghtsTravalDurationx, filghtsCostx.getText(),filghtsCode.getText()));\n\t\t\n\t\t}\n\t\t //APPLICATION_LOGS.info(\"List of objects created with flight details\");\n\t\t//get the value of flight code based on required filters \n\t\tString flightCode1=\"\"; //filterFlightDetails(flightDetailsList);\n\t\t //APPLICATION_LOGS.info(\"Filterd flight details code\"+flightCode1);\n\t\t\n\t\t// book the filtered flight \n\t\tfor(int i=1;i<=size;i++) {\n\t\t\t\n\t\t\tWebElement filghtsCode = driver.findElement(By.xpath(home.flightCode.replace(\"INDEX\",String.valueOf(i))));\n\t\t\t\n\t\t\tif(filghtsCode.getText().equals(flightCode1)) {\n\t\t\t\t\n\t\t\t\tutill.javaScriptClick(driver.findElement(By.xpath(home.view.replace(\"INDEX\",String.valueOf(i)))));\n\t\t\t\tutill.javaScriptClick(driver.findElement(By.xpath(home.booknow.replace(\"INDEX\",String.valueOf(i)))));\n\t\t\t\t//APPLICATION_LOGS.info(\"Filght booking done\");\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t }catch (Exception e) {\n\t\t\t\t//APPLICATION_LOGS.info(e+\"failure at scroll the flight filter page\");\n\t\t\t\t System.out.println(e+\"failure at filter the filght & booking flight process\");\n\t\t\t }\n\n\t}", "private String viewListOfStops() {\n StringBuilder result = new StringBuilder();\n for (TTC stops : this.listOfStops) {\n result.append(stops.toString());\n result.append(\" -> \");\n }\n return (result.toString()).substring(0, result.length() - 2);\n }", "@Override\n\tpublic List<Flight> listAllFlights() {\n\t\tConnection con = null;\n\t\tList<Flight> flights = new ArrayList<Flight>();\n\t\ttry {\n\t\t\tcon = getMySqlConnection();\n\t\t\tCallableStatement callableStatement = con\n\t\t\t\t\t.prepareCall(\"call listAllFlights()\");\n\t\t\tcallableStatement.executeQuery();\n\n\t\t\tResultSet result = callableStatement.getResultSet();\n\t\t\twhile (result.next()) {\n\n\t\t\t\tFlight flight = new Flight();\n\t\t\t\tflight.setFlightId(result.getLong(1));\n\t\t\t\tflight.setFlightName(result.getString(2));\n\t\t\t\tflight.setAirline(new Airline(result.getLong(1)));\n\t\t\t\tflights.add(flight);\n\t\t\t}\n\n\t\t} catch (SQLException s) {\n\t\t\ts.printStackTrace();\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn flights;\n\t}", "private List<Leg> getLegs(Schedule schedule, LocalDateTime departureDateTime, LocalDateTime arrivalDateTime, String airportFrom, String airportTo) {\n\t\tList<Leg> legs = new ArrayList<Leg>();\n\t\tfor (Day day : schedule.getDays()) {\n\t\t\tlog.debug(\"Checking day\");\n\t\t\tif (day.getDay() >= departureDateTime.getDayOfMonth() && day.getDay() <= arrivalDateTime.getDayOfMonth()) {\n\t\t\t\tfor (Flight flight : day.getFlights()) {\n\t\t\t\t\tlog.debug(\"Checking flight time\");\n\t\t\t\t\tString[] departureTime = flight.getDepartureTime().split(\":\");\n\t\t\t\t\tLocalDateTime flightDepartureDateTime = LocalDateTime.of(departureDateTime.getYear(), schedule.getMonth(), day.getDay(), Integer.parseInt(departureTime[0]), Integer.parseInt(departureTime[1]));\n\t\t\t\t\t\n\t\t\t\t\tString[] arrivalTime = flight.getArrivalTime().split(\":\");\n\t\t\t\t\tLocalDateTime flightArrivalDateTime = LocalDateTime.of(arrivalDateTime.getYear(), schedule.getMonth(), day.getDay(), Integer.parseInt(arrivalTime[0]), Integer.parseInt(arrivalTime[1]));\n\t\t\t\t\t\n\t\t\t\t\tif ((flightDepartureDateTime.isAfter(departureDateTime) || flightDepartureDateTime.isEqual(departureDateTime)) \n\t\t\t\t\t\t\t&& (flightArrivalDateTime.isBefore(arrivalDateTime) || flightArrivalDateTime.isEqual(arrivalDateTime))) {\n\t\t\t\t\t\tlog.debug(\"Valid flight. Creating leg.\");\n\t\t\t\t\t\tLeg leg = new Leg();\n\t\t\t\t\t\tleg.setDepartureAirport(airportFrom);\n\t\t\t\t\t\tleg.setArrivalAirport(airportTo);\n\t\t\t\t\t\t\n\t\t\t\t\t\tLocalDateTime auxDateTime = LocalDateTime.of(departureDateTime.getYear(), schedule.getMonth(), day.getDay(), flightDepartureDateTime.getHour(), flightDepartureDateTime.getMinute());\n\t\t\t\t\t\tString formattedAuxDateTime = auxDateTime.format(DateTimeFormatter.ISO_DATE_TIME);\n\t\t\t\t\t\tleg.setDepartureDateTime(formattedAuxDateTime);\n\t\t\t\t\t\t\n\t\t\t\t\t\tauxDateTime = LocalDateTime.of(arrivalDateTime.getYear(), schedule.getMonth(), day.getDay(), flightArrivalDateTime.getHour(), flightArrivalDateTime.getMinute());\n\t\t\t\t\t\tformattedAuxDateTime = auxDateTime.format(DateTimeFormatter.ISO_DATE_TIME);\n\t\t\t\t\t\tleg.setArrivalDateTime(formattedAuxDateTime);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlegs.add(leg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn legs;\n\t}", "FlightResponse getDirectFlights(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate) throws ValidationException, ServiceException {\n\n List<Schedule> schedules = scheduleService.getSchedules(departure, arrival, departureDate, arrivalDate);\n List<Leg> legs = new ArrayList<>();\n\n // Extract the flights from every day of every schedule.\n for (Schedule schedule : schedules) {\n for (Day day : schedule.getDays()) {\n for (Flight flight : day.getFlights()) {\n LocalDateTime dep = getLocalDateTime(schedule, day, flight.getDepartureTime());\n LocalDateTime arr = getLocalDateTime(schedule, day, flight.getArrivalTime());\n\n legs.add(new Leg(departure, arrival, dep, arr));\n }\n }\n }\n return new FlightResponse(0, legs);\n }", "@Query(value = \"from Flight\")\n\tList<Flight> listAllFlights();", "public List<Double> getArrivalTime() {\n return new ArrayList<Double>(arrivalTime);\n }", "public String getDepartureAirports() {\n\t\treturn departFlightAirport.getText();\n\t}", "List<Route> getDirectRoutes(String departure, String arrival);", "public Flight[] getFlights() {\r\n // Get all the table of flights with columns as keys mapped to an ArrayList\r\n // of ordered rows\r\n HashMap<String, ArrayList<String>> flightInfo = getAllTableContents(\"flights\");\r\n ArrayList<Flight> flights = parseFlights(flightInfo);\r\n Flight[] temp = new Flight[flightInfo.get(\"flightNumber\").size()];\r\n return flights.toArray(temp);\r\n }", "public List<Flight> getDepartureFlights(String airportCode, String date) {\n\t\tList<Flight> flights = new ArrayList<Flight>();\n\t\ttry {\n\t\t\tFlight flight;\n\t\t\tDateFormat formatter = new SimpleDateFormat(\"YYYY-MM-dd\");\n\t\t\tDate inputDate = formatter.parse(date);\n\t\t\tfor (int i = 0; i < this.flights.size(); i++) {\n\t\t\t\tflight = this.flights.get(i);\n\t\t\t\tformatter = new SimpleDateFormat(\"YYYY-MM-dd'T'hh:mm:ss\");\n\t\t\t\tif (flight.getDepartureAirportIATACode().equals(airportCode)\n\t\t\t\t\t\t&& isSameDay(inputDate,formatter.parse(flight.getDepartureDate().split(\" \")[0]))) {\n\t\t\t\t\tflights.add(flight);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn flights;\n\t}", "List<Vehicle> getLineVehicles(String line);", "List<Flight> findAllFlights();", "public List<AirportStub> getAirportData(List<AirportStub> airportIn);", "@Override\n\tpublic List<Flight> selectDeparture() {\n\t\treturn flightMapper.selectDeparture();\n\t}", "java.lang.String getTransitAirport();", "@RequestMapping(\"/interconnections\")\n\tpublic List<Interconnection> getInterconnections(@RequestParam String departure, @RequestParam String arrival,\n\t\t\t@RequestParam String departureDateTime, @RequestParam String arrivalDateTime) {\n\t\tlog.debug(\"Start retrieving interconnections\");\n\t\t\n\t\tList<Interconnection> interconnectionList = new ArrayList<Interconnection>();\n\t\t\n\t\tList<Route> routes = routeService.getRoutes();\n\t\t\n\t\tLocalDateTime parsedDepartureDateTime = LocalDateTime.parse(departureDateTime);\n\t\tLocalDateTime parsedArrivalDateTime = LocalDateTime.parse(arrivalDateTime);\n\t\t\n\t\tlog.debug(\"Looking for valid routes\");\n\t\troutes.stream()\n\t\t.filter(route -> route.getConnectingAirport() == null && route.getAirportTo().equals(arrival))\n\t\t.forEach(route -> {\n\t\t\t log.debug(\"Looking for valid flights\");\n\t\t\t if (route.getAirportFrom().equals(departure)) {\n\t\t\t\t log.debug(\"Flight with direct connection\");\n\t\t\t\t //direct connection\n\t\t\t\t Schedule schedule = scheduleService.getSchedule(route.getAirportFrom(), route.getAirportTo(), parsedDepartureDateTime.getYear(), parsedDepartureDateTime.getMonthValue());\n\t\t\t\t //check flights\n\t\t\t\t if (schedule != null) {\n\t\t\t\t\t log.debug(\"Checking direct flights\");\n\t\t\t\t\t List<Leg> legs = getLegs(schedule, parsedDepartureDateTime, parsedArrivalDateTime, route.getAirportFrom(), route.getAirportTo());\n\t\t\t\t\t if (!legs.isEmpty()) {\n\t\t\t\t\t\t log.debug(\"Adding interconnection\");\n\t\t\t\t\t\t Interconnection interconnection = new Interconnection();\n\t\t\t\t\t\t interconnection.setStops(0);\n\t\t\t\t\t\t interconnection.setLegs(legs);\n\t\t\t\t\t\t interconnectionList.add(interconnection);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t } else {\n\t\t\t\t log.debug(\"Flight with no direct connection\");\n\t\t\t\t //search 1 stop connection\n\t\t\t\t Schedule scheduleFromDeparture = scheduleService.getSchedule(departure, route.getAirportFrom(), parsedDepartureDateTime.getYear(), parsedDepartureDateTime.getMonthValue());\n\t\t\t\t if (scheduleFromDeparture != null) {\n\t\t\t\t\t //check departure flights\n\t\t\t\t\t log.debug(\"Checking departure flights\");\n\t\t\t\t\t List<Leg> legsFromDeparture = getLegs(scheduleFromDeparture, parsedDepartureDateTime, parsedArrivalDateTime, departure, route.getAirportFrom());\n\t\t\t\t\t if (!legsFromDeparture.isEmpty()) {\n\t\t\t\t\t\t Schedule scheduleToArrival = scheduleService.getSchedule(route.getAirportFrom(), route.getAirportTo(), parsedDepartureDateTime.getYear(), parsedDepartureDateTime.getMonthValue());\n\t\t\t\t\t\t //check arrival flights\n\t\t\t\t\t\t log.debug(\"Checking arrival flights\");\n\t\t\t\t\t\t if (scheduleToArrival != null) {\n\t\t\t\t\t\t\tList<Leg> legsToArrival = getLegs(scheduleToArrival, parsedDepartureDateTime.plusHours(2), parsedArrivalDateTime, route.getAirportFrom(), arrival);\n\t\t\t\t\t\t\tfor (Leg legToArrival : legsToArrival) {\n\t\t\t\t\t\t\t\tLocalDateTime legToArrivalDepartureTime = LocalDateTime.parse(legToArrival.getDepartureDateTime());\n\t\t\t\t\t\t\t\tfor (Leg legFromDeparture : legsFromDeparture) {\n\t\t\t\t\t\t\t\t\tLocalDateTime legFromDepartureArrivalDateTime = LocalDateTime.parse(legFromDeparture.getArrivalDateTime());\n\t\t\t\t\t\t\t\t\tif (legFromDepartureArrivalDateTime.isBefore(legToArrivalDepartureTime)) {\n\t\t\t\t\t\t\t\t\t\tlog.debug(\"Adding interconnection\");\n\t\t\t\t\t\t\t\t\t\tInterconnection interconnection = new Interconnection();\n\t\t\t\t\t\t\t\t\t\tinterconnection.setStops(1);\n\t\t\t\t\t\t\t\t\t\tList<Leg> legs = new ArrayList<Leg>();\n\t\t\t\t\t\t\t\t\t\tlegs.add(legFromDeparture);\n\t\t\t\t\t\t\t\t\t\tlegs.add(legToArrival);\n\t\t\t\t\t\t\t\t\t\tinterconnection.setLegs(legs);\n\t\t\t\t\t\t\t\t\t\tinterconnectionList.add(interconnection);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t});\n\t\t\n\t\tlog.debug(\"End retrieving interconnections\");\n\t\t\n\t\treturn interconnectionList;\n\t}", "public java.lang.String getArrivalAirport() {\n java.lang.Object ref = arrivalAirport_;\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 arrivalAirport_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder getTransitFlightsOrBuilder(\n int index) {\n if (transitFlightsBuilder_ == null) {\n return transitFlights_.get(index); } else {\n return transitFlightsBuilder_.getMessageOrBuilder(index);\n }\n }", "public String[] obtainStops() {\n\n String[] stopsNone = { \"No stops found\" };\n String[] stopsArbutus = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Hilltop Cir. & Hilltop Rd.\", \"Hilltop Cir. & Walker Ave.\", \"Hilltop Cir. & Center Rd.\", \"Poplar Ave. & Stadium Lot\", \"TRC @ Linden Ave\", \"Westland Blvd. & Circle Dr.\", \"Westland Blvd. & Courtney Rd.\", \"Maiden Choice La. & Westland Blvd\", \"Maiden Choice La. & Warren Tree\", \"Maiden Choice La. & Wilkens Ave\", \"Maiden Choice La. & Grouse Ct\", \"Maiden Choice La. & Symmington Aven.\"};\n String[] stopsArundel = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"BWI Marc Station\", \"Arundel Mills Mall Visitor Entrace #5\", \"BWI Marc Station\", \"Administration Dr. Bus Shelter\", \"Hilltop Circle & Hilltop Rd.\" };\n String[] stopsCatonsville = { \"Commons Dr. & Park Rd.\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Administration Dr. Bus Shelter\", \"Rolling Rd @YMCA\", \"Rolling Rd @Valley Rd (CCBC)\", \"Catonsville High @Bloomsbury Ave\", \"Mellor Ave & Bloomsbury Ave\" };\n String[] stopsDowntownA = { \"Commons Dr. & Park Rd\", \"Park Rd. & Poplar Ave.\", \"Hilltop Cir. & Commons Dr.\", \"Greyhound Station @ Haines\",\"MLK Blvd & Pratt St (UMB)\", \"Green St & Fayette St\", \"Green St & Lombard St (UMB)\" };\n\n if ( this.longName.toLowerCase().contains(\"Arbutus\".toLowerCase()) ) {\n return stopsArbutus;\n }\n if ( this.longName.contains(\"Arundel\") ) {\n return stopsArundel;\n }\n if ( this.longName.contains(\"Catonsville\") ) {\n return stopsCatonsville;\n }\n if ( this.longName.contains(\"Downtown\") ) {\n return stopsDowntownA;\n }\n\n return stopsNone;\n\n }", "public void displayAvailableSeatsInSpecificFlight(int flight_id) {\n\n\t\tArrayList<Seat> listOfSeats = fetchSeatDatabaseContentToList(); // prepare listOfSeats ArrayList for use by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// fetching content from database\n\n\t\tfor (int i = 0; i < listOfSeats.size(); i++) {\n\n\t\t\tif ((listOfSeats.get(i).getFlight().getFlightId() == flight_id) && listOfSeats.get(i).isSeatAvailable()) {\n\t\t\t\tSystem.out.println(listOfSeats.get(i));\n\t\t\t}\n\t\t}\n\t}", "List<Stop> getStops();", "public java.lang.String getArrivalAirport() {\n java.lang.Object ref = arrivalAirport_;\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 arrivalAirport_ = s;\n return s;\n }\n }", "private List<Flight> getListOfFlights(ProxyConnection connection) throws LogicException {\n List<Flight> flights;\n try {\n FlightDAO flightDAO = new FlightDAO(connection);\n flights = flightDAO.findAll();\n } catch (DAOException e) {\n throw new LogicException(e);\n }\n return flights;\n }", "@JsonIgnore public Collection<String> getArrivalTerminals() {\n final Object current = myData.get(\"arrivalTerminal\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<String>) current;\n }\n return Arrays.asList((String) current);\n }", "public double getArrivalTime(int index){\n\t\treturn arrivalTimes.get(index);\n\t}", "List<AirportDTO> getAirportsByIata(String iata);", "@JsonIgnore public Airport getArrivalAirport() {\n return (Airport) getValue(\"arrivalAirport\");\n }", "public Airline(String title) {\r\n\t\tthis.title = title;\r\n\t\tflights = new Flight[size];\r\n\t\tthis.size = 2;\r\n\t}", "public void generateFlight(String originAirport,\n\t\t\t\t\t\t\t String destinationAirport,\n\t\t\t\t\t\t\t Time departureTime,\n\t\t\t\t\t\t\t Time arrivalTime,\n\t\t\t\t\t\t\t int flightNumber,\n\t\t\t\t\t\t\t int airfare) {\n\t\tFlight newFlight = new Flight(originAirport, destinationAirport, departureTime, arrivalTime, flightNumber, airfare);\n\t\tflights.add(newFlight);\n\t}", "public AdminModel[] getAllFlights() {\n\t\tflights = adminManager.getAllFlights();\n\t\t\n\t\treturn flights;\n\t}", "public List<Airport> allAirports() {\n\t\ttry {\n\t\t\tList<Airport> airPosrtList = airPortCache.get(FlightConstants.AIRPORT_KEY);\n\t\t\treturn airPosrtList;\n\t\t} catch (Exception exception) {\n\t\t\tlogger.error(\"Exception occured while searching AirPorts {}\", exception);\n\t\t\tthrow new AirPortSearchException();\n\t\t}\n\t}", "java.lang.String getDepartureAirport();", "@Override\r\n\tpublic int connectingTime() {\r\n\t\tint totalTime = 0;\r\n\t\tfor (int i = 0; i < flights.size()-1; i++) {\r\n\t\t\tString time1 = \"\" + flights.get(i).getData().getArrivalTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time1.length() < 4)\r\n\t\t\t\ttime1 = \"0\" + time1;\r\n\t\t\t\r\n\t\t\tString time2 = \"\" + flights.get(i+1).getData().getDepartureTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time2.length() < 4)\r\n\t\t\t\ttime2 = \"0\" + time2;\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"HHmm\");\r\n\t\t\tDate date1 = null;\r\n\t\t\tDate date2 = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tdate1 = format.parse(time1);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tdate2 = format.parse(time2);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tlong difference = 0;\r\n\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\tif(difference < 0) {\r\n\t\t\t\tdifference += 24*60*60*1000;\r\n\t\t\t}\r\n\t\t\ttotalTime += difference;\r\n\t\t}\r\n\t\treturn totalTime;\r\n\t}", "public void setupArrivals() {\n \t\tmRdsArray = Data.getAllRdsWithStopTitle(mStopTitle, mRouteTag,\n \t\t\t\tmDirectionTag);\n \n \t\tarrivalList.setAdapter(new ArrivalAdapter(getApplicationContext(),\n \t\t\t\tmRdsArray));\n \n \t\tarrivalList.setOnItemClickListener(null);\n \t\t/*\n \t\t * Listener for arrival drawer thing. If a cell is clicked, open the\n \t\t * stop for that route\n \t\t */\n \t\tarrivalList.setOnItemClickListener(new OnItemClickListener() {\n \t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n \t\t\t\t\tint position, long id) {\n \t\t\t\tif (!mArrivalsArray[0].equals(\"No other arrivals\")) {\n \t\t\t\t\tRouteDirectionStop rds = mRdsArray[position];\n \t\t\t\t\tIntent intent = StopViewActivity.createIntent(\n \t\t\t\t\t\t\tgetApplicationContext(), rds.route.tag,\n \t\t\t\t\t\t\trds.direction, rds.stop);\n \t\t\t\t\tstartActivity(intent);\n \t\t\t\t}\n \t\t\t}\n \t\t});\n \n \t}", "public static ArrayList<Flight> GetAllFlights(String departure, String destination){\n\n ArrayList<Flight> Flights = new ArrayList<>();\n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight\")){\n \n while(resultSet.next())\n {\n Flight flight = new Flight();\n \n //sql date required\n flight.setFlightNumber(resultSet.getString(\"FlightNumber\"));\n flight.setDepartureAirport(resultSet.getString(\"DepartureAirport\"));\n flight.setDestinationAirport(resultSet.getString(\"DestinationAirport\"));\n flight.setPrice(resultSet.getDouble(\"Price\"));\n flight.setDatetime(resultSet.getDate(\"datetime\"));\n flight.setPlane(resultSet.getString(\"Plane\"));\n flight.setSeatsTaken(resultSet.getInt(\"SeatsTaken\"));\n\n Flights.add(flight);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Flights;\n \n \n }", "public List<String> getBusSchedule(String start, Duration frequency) {\n\t\t\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"[HH::mm]\");\n\t\tLocalTime startTime = LocalTime.parse(start);\n\t\tLocalTime endTime = LocalTime.MIDNIGHT;\n\t\tint gap = (int) frequency.toMinutes();\n\t\tList<String> busTimings = new ArrayList();\n\t\tint startMinVal = startTime.getHour()*60 + startTime.getMinute();\n\t\tint endMinVal = endTime.minusHours(1).getHour()*60 + endTime.minusMinutes(1).getMinute();\n\t\t while(endMinVal - startMinVal > gap) {\n\t\t busTimings.add(startTime.format(formatter));\n\t\t startTime = startTime.plusMinutes(gap);\n\t\t startMinVal = startMinVal+gap;\n\t\t \n\t\t }\n\t\t busTimings.add(startTime.format(formatter));\n\t\t busTimings.forEach(logger::debug);\n\t\t\n\t\treturn busTimings;\n\t}", "@Override\n public String getArrivalString() {\n return this.arriveDate + \" \" + this.arriveTime;\n }", "public void addflight(Flight f)\n {\n \t this.mLegs.add(f);\n \t caltotaltraveltime();\n \t caltotalprice();\n }", "java.lang.String getTransitFlightDuration();", "public com.google.protobuf.ByteString\n getArrivalAirportBytes() {\n java.lang.Object ref = arrivalAirport_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n arrivalAirport_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Itinerary(Flight flight) {\n \n // Initializes other instance variables for this Itinerary based\n // on the given first flight.\n this.departDateTime = flight.getDepartDateTime();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.origin = flight.getOrigin();\n this.destination = flight.getDestination();\n this.price = flight.getCost();\n this.travelTime = this.arrivalDateTime.timeDiff(this.departDateTime);\n \n // Initializes first flight for this Itinerary,\n this.itinerary = new ArrayList<Flight>();\n this.itinerary.add(flight);\n \n // Initializes places (stop over points) for this Itinerary.\n this.places = new ArrayList<String>();\n this.places.add(origin);\n this.places.add(destination);\n }", "Flight(String airline, String flightNumber, String src, String departDate, String departTime, String dest, String arriveDate, String arriveTime) {\n this.airline = airline;\n this.flightNumber = flightNumber;\n\n // src should be 3 characters! (no numbers or special characters)\n if(src.length() != 3 || Pattern.compile(\"[^a-zA-Z]\").matcher(src).find()) {\n throw new IllegalArgumentException(\"Airport code is not a 3 character letter-only code.\");\n }\n this.src = src;\n\n // Date should be in ##/##/#### format\n if(!departDate.matches(\"([0-9]{2})/([0-9]{2})/([0-9]{4})\")) {\n throw new IllegalArgumentException(\"Depart date is not in correct format. (##/##/####)\");\n }\n this.departDate = departDate;\n\n // Time should be in ##:## format\n if(!departTime.matches(\"([0-9]{2}):([0-9]{2})\")) {\n throw new IllegalArgumentException(\"Depart time is not in correct format. (##:##)\");\n }\n this.departTime = departTime;\n\n // src should be 3 characters! (no numbers or special characters)\n if(dest.length() != 3 || Pattern.compile(\"[^a-zA-Z]\").matcher(dest).find()) {\n throw new IllegalArgumentException(\"Airport code is not a 3 character letter-only code.\");\n }\n this.dest = dest;\n\n // Date should be in ##/##/#### format\n if(!arriveDate.matches(\"([0-9]{2})/([0-9]{2})/([0-9]{4})\")) {\n throw new IllegalArgumentException(\"Arrive date is not in correct format. (##/##/####)\");\n }\n this.arriveDate = arriveDate;\n\n // Time should be in ##:## format\n if(!arriveTime.matches(\"([0-9]{2}):([0-9]{2})\")) {\n throw new IllegalArgumentException(\"Arrive time is not in correct format. (##:##)\");\n }\n this.arriveTime = arriveTime;\n }", "com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight getFlightdetails();", "public ZonedDateTime getArrivalTime() {\n return flights.get(flights.size() - 1).getArrivalTime();\n }", "public static List<FlightInfo> AssignMultipleFlightData() {\n\n FlightInfo flight1 = new FlightInfo();\n flight1.setDeparts(new Date(2017 - 1900, 04, 21));\n\n Person person1 = new Person();\n person1.setFirstName(\"Tim\");\n //person1.setLastName(\"John\");\n\n Ticket ticket1 = new Ticket();\n ticket1.setPrice(200);\n\n ticket1.setPassenger(person1);\n\n flight1.setTickets(ticket1);\n\n FlightInfo flight2 = new FlightInfo();\n flight2.setDeparts(new Date(2017 - 1900, 04, 21));\n\n Person person2 = new Person();\n person2.setFirstName(\"Will\");\n person2.setLastName(\"Smith\");\n\n Ticket ticket2 = new Ticket();\n ticket2.setPrice(400);\n ticket2.setPassenger(person2);\n flight2.setTickets(ticket2);\n\n return Arrays.asList(flight1, flight2);\n }", "public void addAircrafts(Aircraft A) {\n\t\t\r\n\t\tfor (int y = 0; y < getServiceLineSize(); y++) {\r\n\t\t\tfor (int x = 0; x < getServiceStations(); x++) {\r\n\t\t\t\tif (!(SD[y][x].flag)) {\r\n\t\t\t\t\tSD[y][x] = A;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t}", "private List<RouteInfo> createList() {\r\n\r\n List<RouteInfo> results = new ArrayList<>();\r\n\r\n for (String temp [] : stops) {\r\n\r\n RouteInfo info = new RouteInfo();\r\n info.setTitle(temp[0]);\r\n info.setRouteName(\"Stop ID: \" + temp[1]);\r\n info.setRouteDescription(\"Next bus at: \");\r\n results.add(info);\r\n }\r\n\r\n return results;\r\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight.Builder addTransitFlightsBuilder() {\n return getTransitFlightsFieldBuilder().addBuilder(\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight.getDefaultInstance());\n }", "@Override\n\tpublic List<flightmodel> getflights() {\n\t\t\n\t\tSystem.out.println(\"heloo\"+repo.findAll());\n\t\treturn repo.findAll();\n\t}", "List<Stop> getStopsPerLine(String line);", "public com.google.protobuf.ByteString\n getArrivalAirportBytes() {\n java.lang.Object ref = arrivalAirport_;\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 arrivalAirport_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getAirlineName(){\n\t\treturn this.airlineName;\n\t}", "public ArrayList<Coordinate> transportLinePath()\r\n {\r\n Coordinate next_street1 = null;\r\n Coordinate next_street2 = null;\r\n Street next_street = null;\r\n ArrayList<Coordinate> line_coordinates = new ArrayList<Coordinate>();\r\n\r\n for (int i = 0; i < getStreetsMap().size(); i++)\r\n {\r\n Street s = getStreetsMap().get(i);\r\n Coordinate this_street1 = s.getCoordinates().get(0);\r\n Coordinate this_street2 = s.getCoordinates().get(2);\r\n\r\n if (i + 1 < getStreetsMap().size())\r\n {\r\n next_street = getStreetsMap().get(i+1);\r\n next_street1 = next_street.getCoordinates().get(0);\r\n next_street2 = next_street.getCoordinates().get(2);\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n\r\n for (Stop stop : getStopsMap())\r\n {\r\n if (stop.getStreet().equals(s))\r\n {\r\n line_coordinates.add(stop.getCoordinate());\r\n }\r\n }\r\n\r\n if (s.getCoordinates().get(1) != null)\r\n {\r\n line_coordinates.add(s.getCoordinates().get(1));\r\n }\r\n\r\n //11\r\n if (this_street1.getX() == next_street1.getX() && this_street1.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n //12\r\n else if (this_street1.getX() == next_street2.getX() && this_street1.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street1);\r\n }\r\n // 21\r\n else if (this_street2.getX() == next_street1.getX() && this_street2.getY() == next_street1.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n //22\r\n else if (this_street2.getX() == next_street2.getX() && this_street2.getY() == next_street2.getY())\r\n {\r\n line_coordinates.add(this_street2);\r\n }\r\n\r\n }\r\n\r\n line_coordinates.add(getStopsMap().get(getStopsMap().size()-1).getCoordinate());\r\n return line_coordinates;\r\n }", "@JsonIgnore public Collection<Airport> getDepartureAirports() {\n final Object current = myData.get(\"departureAirport\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Airport>) current;\n }\n return Arrays.asList((Airport) current);\n }", "com.google.protobuf.ByteString\n getArrivalAirportBytes();", "@Override\n public List<FlightResponse> findInterconnections(String departure, String arrival, LocalDateTime departureDate,\n LocalDateTime arrivalDate) throws ValidationException, RestClientException, ServiceException {\n\n flightServiceValidation.validateInterconnectionsParameters(departure, arrival, departureDate, arrivalDate);\n\n List<Route> allRoutes = routeService.getRoutes();\n\n // If direct routes exist, check for direct flights, else create an emtpy list of flights.\n FlightResponse directFlights = routeService.existDirectFlight(departure, arrival, allRoutes)\n ? getDirectFlights(departure, arrival, departureDate, arrivalDate)\n : new FlightResponse(0);\n\n List<FlightResponse> connectingFlights = getConnectingFlights(departure, arrival, departureDate, arrivalDate,\n allRoutes);\n\n List<FlightResponse> responses = new ArrayList<>();\n responses.add(directFlights);\n responses.addAll(connectingFlights);\n\n return responses;\n }", "Trip(Time start_time, TTC start_station, String type, String number){\n this.START_TIME = start_time;\n this.START_STATION = start_station;\n this.deducted = 0;\n this.listOfStops = new ArrayList<>();\n this.TYPE = type;\n this.NUMBER = number;\n }", "public void roadList(){\n for(int i = 0; i < roads.size(); i++){\n System.out.println(i + \" \" + roads.get(i).start.getCityName() + \", \" + roads.get(i).end.getCityName());\n }\n }", "public List<Tripulante> obtenerTripulantes();", "public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight.Builder> \n getTransitFlightsBuilderList() {\n return getTransitFlightsFieldBuilder().getBuilderList();\n }", "public double[] getArrivalTime() {\n\t\treturn arrivalTime;\n\t}", "List<Route> getRoutesByDeparture(String departure);", "public Duration getTravelTime() {\n return Duration.between(flights.get(0).getDepartureTime(), flights.get(flights.size()-1).getArrivalTime());\n }", "List<AirportDTO> getAirportsByName(String name);", "public List<Flight> searchFlights(SearchParametersForFlights searchFlight) throws AirlineException\n {\n return null;\n }", "public Queue<Integer> goToDepartureTerminal() {\n\t\tClientCom clientCom = new ClientCom(RunParameters.ArrivalQuayHostName, RunParameters.ArrivalQuayPort);\n\t\twhile (!clientCom.open()) {\n\t\t\tSystem.out.println(\"Arrival Quay not active yet, sleeping for 1 seccond\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t\t;\n\t\tBusDriver busDriver = (BusDriver) Thread.currentThread();\n\t\tMessage pkt = new Message();\n\t\tpkt.setType(MessageType.BD_DRIVING);\n\n\t\tclientCom.writeObject(pkt);\n\t\tpkt = (Message) clientCom.readObject();\n\n\t\tint[] seats = pkt.getIntArray1();\n\t\tbusDriver.setBusDriverState(pkt.getState());\n\n\t\tQueue<Integer> q = new LinkedList<>();\n\t\tfor (int i : seats) {\n\t\t\tq.add(i);\n\t\t}\n\t\tclientCom.close();\n\t\treturn q;\n\t}", "public AdminModel[] addNewFlight(int flightnumber, String departure, String arrival,\n\t\t\tString departDate, String departTime, String arrivalDate, String arrivalTime,\n\t\t\tint seats, int price) {\n\t\t\n\t\tadminManager.addNewFlight(flightnumber, departure, arrival, departDate, departTime, arrivalDate, arrivalTime, seats, price);\n\t\t\n\t\treturn null;\n\t}", "public Builder addTransitFlights(com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight value) {\n if (transitFlightsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTransitFlightsIsMutable();\n transitFlights_.add(value);\n onChanged();\n } else {\n transitFlightsBuilder_.addMessage(value);\n }\n return this;\n }" ]
[ "0.7073379", "0.6991291", "0.62891066", "0.62106544", "0.6077333", "0.6074261", "0.6011611", "0.60084575", "0.5970261", "0.59341455", "0.59087884", "0.58789444", "0.5875854", "0.5866623", "0.58609164", "0.5846171", "0.58295614", "0.57869405", "0.5767436", "0.5759448", "0.57340866", "0.5710761", "0.56872183", "0.5686912", "0.5682927", "0.56685895", "0.5654437", "0.5606288", "0.5596054", "0.5584416", "0.5569343", "0.55340034", "0.5532463", "0.55277133", "0.54706216", "0.5464994", "0.5464271", "0.54639846", "0.5457794", "0.54356265", "0.5430809", "0.54257834", "0.54195267", "0.54147583", "0.5394882", "0.53402066", "0.5331806", "0.53198045", "0.53059214", "0.5304664", "0.5301906", "0.5272427", "0.52688044", "0.52579796", "0.5254517", "0.5250003", "0.52393365", "0.5238248", "0.52373606", "0.52249485", "0.5212139", "0.52116007", "0.51997656", "0.5198682", "0.5182644", "0.51795065", "0.5177928", "0.51755464", "0.51694244", "0.5167244", "0.51665646", "0.51451665", "0.51442504", "0.51404095", "0.5139473", "0.51375335", "0.5126655", "0.5125682", "0.5124193", "0.511899", "0.51049787", "0.5094099", "0.50934327", "0.5091914", "0.50883263", "0.5085487", "0.5083191", "0.50801665", "0.5079675", "0.5075475", "0.50692594", "0.5065342", "0.5055813", "0.5035971", "0.50290775", "0.50285107", "0.5027347", "0.50248903", "0.50230885", "0.5012652" ]
0.85554284
0
Metadata: 05 = direction of screen back; bit 3 = reserved for future use
public BlockScreen(String assetName) { super(Material.CIRCUITS); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(LEFT, false).withProperty(RIGHT, false).withProperty(UP, false).withProperty(DOWN, false)); this.setHardness(0.1F); this.setSoundType(SoundType.GLASS); this.setUnlocalizedName(assetName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "public GImage getBack(){\r\n \t\t return back;\r\n\t }", "private void createBack() {\n String backString = \"\";\n if(host.locale == host.FINNISH) {\n backString = \"TAKAISIN\";\n } else if(host.locale == host.ENGLISH) {\n backString = \"BACK\";\n }\n back = new FontActor(backString,\n screenWidth * 1 / 8,\n screenHeight * 1 / 8);\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "@Override\n public int convertToAbsoluteDirection(int flags, int layoutDirection) {\n\n if (mSwipeBack) {\n\n mSwipeBack = mButtonShowedState != ButtonsState.GONE;\n\n return 0;\n }\n\n return super.convertToAbsoluteDirection(flags, layoutDirection);\n }", "@Override\n public void backward() {\n }", "void moveBack()\n\t{\n\t\tif (length != 0) \n\t\t{\n\t\t\tcursor = back; \n\t\t\tindex = length - 1; //cursor will be at the back\n\t\t\t\n\t\t}\n\t}", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}", "public int[] getBackward() { return _backwardDiag; }", "public JoystickButton getButtonBack() {\n\t\treturn button[6];\n\t}", "public boolean canSeekBackwards() {\n/* 131 */ return true;\n/* */ }", "@Override public int convertToAbsoluteDirection(int flags, int layoutDirection) {\n if (swipeBack) {\n swipeBack = buttonState != ButtonState.GONE;\n return 0;\n }\n return super.convertToAbsoluteDirection(flags, layoutDirection);\n }", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}", "void reverseDirection();", "public void past(int back);", "public int getBackward() {\n return this.backward;\n }", "boolean isBackwardPredicted()\n {\n return (mbType & BACKWARD)!=0;\n }", "@Override\r\n\tpublic String moveBack() {\n\t\tif((0<=x && x<=50) && (0<=y && y<=10) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (40<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (0<=z && z<10))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=10) && (0<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (40<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((40<=x && x<=50) && (0<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "public void onClickBack(View view){\n cam = mMap.getCameraPosition();//saves camara position\r\n Intent intent = new Intent(this,MainWindow.class);//needed to send the user to another screen\r\n startActivity(intent);\r\n }", "@JSProperty(\"back\")\n @Nullable\n Chart3dFrameBackOptions getBack();", "private Image getBackImage() {\n return getImage(\"playing-cards/blue-back.png\");\n }", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "private void readAndEditFrame()\n\t{\n\t\tmirror();\n\t\tinvert();\n\t\tgreenScreen();\n\t\tbackgroundSubtraction();\n\t}", "public void moveBack() {\r\n\t\tsetY(getY() - 134);\r\n\t\tmyImage = myImage.getScaledInstance(100, 100, 60);\r\n\r\n\t}", "public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }", "public void setBack(int x) {\r\n back = x;\r\n }", "@Override\n\tpublic void backButton() {\n\n\t}", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "public void onBackButton() {\n WindowLoader wl = new WindowLoader(backButton);\n wl.load(\"MenuScreen\", getInitData());\n RETURN_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }", "public double getDirectionFace();", "public HexDirection opposite() {\n return values()[(ordinal() + 3) % 6];\n }", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "void flipUp( ) {\n\t\t\t\t\t\tUpCommand . execute ( ) ;\n\n\n\t\t}", "private int getDirection(boolean isFrontCamera) {\n\t\tif (mAccListener != null) {\n\t\t\tint dir = mAccListener.dir;\n\t\t\t// 当且仅当为前置摄像头且画面是上下方向(portrait、portrait-inverse)的颠倒\n\t\t\tif (isFrontCamera && ((dir & 1) == 1)) {\n\t\t\t\tdir = (dir ^ 2);\n\t\t\t}\n\t\t\treturn dir;\n\t\t}\n\t\treturn -1; // default value is -1\n\t}", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "private void backward() {\n index--;\n if(column == 0) {\n line--;\n linecount = column = content.getColumnCount(line);\n }else{\n column--;\n }\n }", "public void updateDirectionFace();", "public void back() {\n Views.goBack();\n }", "private void setupBack() {\n\t\tmakeButton(\"Back\", (ActionEvent e) -> {\n\t\t\tchangeView(\"login\");\n\t\t});\n\t}", "private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}", "@Override\n public void onBackPressed() {\n \tToast.makeText(mContext, R.string.rotate_device_to_go_back, Toast.LENGTH_LONG).show();\n }", "void setBackwardFCode(int value)\n {\n backwardVector.setMotionFCode(value);\n }", "@Override\r\n\tpublic boolean canSeekBackward() {\n\t\treturn true;\r\n\t}", "public boolean getBack()\n {\n return m_bBackLock;\n }", "private void showBack() {\n Drawable buttonDrawableBack = new TextureRegionDrawable(new TextureRegion((Texture)game.getAssetManager().get(\"buttonBack.png\")));\n BackButton = new ImageButton(buttonDrawableBack);\n BackButton.setSize(MENU_WIDTH/7,MENU_HEIGHT/7);\n BackButton.setPosition(7*MENU_WIDTH/8 - BackButton.getWidth()/2, MENU_HEIGHT/7 -DELTA_Y_MENU);\n stage.addActor(BackButton);\n }", "@JSProperty(\"back\")\n void setBack(Chart3dFrameBackOptions value);", "public void previous();", "public void back() {\n\t\tstate.back();\n\t}", "public final void mo59855b(boolean z) {\n if (this.f110070i) {\n int i = 0;\n this.f110066e.setVisibility(0);\n this.f110066e.setContentDescription(mo59852a());\n if (z) {\n i = 400;\n }\n if (this.f110069h) {\n this.f110067f.reverseTransition(i);\n } else {\n this.f110067f.startTransition(i);\n }\n } else {\n this.f110066e.setVisibility(8);\n }\n }", "public void setDirection(byte value) \n\t{\n\t\tdirection = value;\n\t}", "public final int getZOff() {\r\n\t\treturn zOff;\r\n\t}", "void takeBack() {\n\tside ^= 1;\n\txside ^= 1;\n\tHistoryData h = histDat[--hply];\n\tpawnBits = h.pawnBits;\n\tpieceBits = h.pieceBits;\n\tBouger m = h.m;\n\tcastle = h.castle;\n\tep = h.ep;\n\tfifty = h.fifty;\n\tint from = m.getFrom();\n\tint to = m.getTo();\n\tcolor[from] = side;\n\tif ((m.bits & 32) != 0) {\n\tpiece[from] = PAWN;\n\tpieceMat[side] -= pieceValue[h.m.promote];\n\t} else {\n\tint thePiece = piece[to];\n\tif (thePiece == KING)\n\tkingSquare[side] = from;\n\tpiece[from] = thePiece;\n\t}\n\tif (h.capture == EMPTY) {\n\tcolor[to] = EMPTY;\n\tpiece[to] = EMPTY;\n\t} else {\n\tcolor[to] = xside;\n\tpiece[to] = h.capture;\n\tif (h.capture != PAWN)\n\tpieceMat[xside] += pieceValue[h.capture];\n\t}\n\tif ((m.bits & 2) != 0) {\n\tint cfrom, cto;\n\n\tswitch (to) {\n\tcase 62:\n\tcfrom = F1;\n\tcto = H1;\n\tbreak;\n\tcase 58:\n\tcfrom = D1;\n\tcto = A1;\n\tbreak;\n\tcase 6:\n\tcfrom = F8;\n\tcto = H8;\n\tbreak;\n\tcase 2:\n\tcfrom = D8;\n\tcto = A8;\n\tbreak;\n\tdefault: /* shouldn't get here */\n\tcfrom = -1;\n\tcto = -1;\n\tbreak;\n\t}\n\tcolor[cto] = side;\n\tpiece[cto] = ROOK;\n\tcolor[cfrom] = EMPTY;\n\tpiece[cfrom] = EMPTY;\n\t}\n\tif ((m.bits & 4) != 0) {\n\tif (side == LIGHT) {\n\tcolor[to + 8] = xside;\n\tpiece[to + 8] = PAWN;\n\t} else {\n\tcolor[to - 8] = xside;\n\tpiece[to - 8] = PAWN;\n\t}\n\t}\n\t}", "public int getDirection();", "@Override\n\tpublic Collection<Offset> getBackwardOffsets()\n\t{\n\t\tArrayList<Offset> offsets = new ArrayList<Offset>();\n\n\t\t// offsets in the z+1 plane\n\t\toffsets.add(new Offset(-1, -1, +1, floatWeights[2], shortWeights[2]));\n\t\toffsets.add(new Offset( 0, -1, +1, floatWeights[1], shortWeights[1]));\n\t\toffsets.add(new Offset(+1, -1, +1, floatWeights[2], shortWeights[2]));\n\t\toffsets.add(new Offset(-1, 0, +1, floatWeights[1], shortWeights[1]));\n\t\toffsets.add(new Offset( 0, 0, +1, floatWeights[0], shortWeights[0]));\n\t\toffsets.add(new Offset(+1, 0, +1, floatWeights[1], shortWeights[1]));\n\t\toffsets.add(new Offset(-1, +1, +1, floatWeights[2], shortWeights[2]));\n\t\toffsets.add(new Offset( 0, +1, +1, floatWeights[1], shortWeights[1]));\n\t\toffsets.add(new Offset(+1, +1, +1, floatWeights[2], shortWeights[2]));\n\n\t\t// offsets in the current plane\n\t\toffsets.add(new Offset(-1, +1, 0, floatWeights[1], shortWeights[1]));\n\t\toffsets.add(new Offset( 0, +1, 0, floatWeights[0], shortWeights[0]));\n\t\toffsets.add(new Offset(+1, +1, 0, floatWeights[1], shortWeights[1]));\n\t\toffsets.add(new Offset(+1, 0, 0, floatWeights[0], shortWeights[0]));\n\n\t\treturn offsets;\n\t}", "@Override\r\n\tpublic void backward(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "public void moveTileBack()\n {\n if(!(activeTile-1 < 0) && activeTile > 0)\n {\n Tile tmpTile = tiles[activeTile];\n PImage tmpPreview = previews[activeTile];\n PImage tmpPreviewGradients = previewGradients[activeTile];\n boolean tmpPreviewHover = previewHover[activeTile];\n \n tiles[activeTile-1].setStartColor(tmpTile.getStartColor());\n tiles[activeTile-1].setEndColor(tmpTile.getEndColor());\n tmpTile.setStartColor(tiles[activeTile-1].getStartColor());\n tmpTile.setEndColor(tiles[activeTile-1].getEndColor());\n \n tiles[activeTile-1].setTileLevel(tiles[activeTile-1].getTileLevel()+1);\n tiles[activeTile] = tiles[activeTile-1];\n previews[activeTile] = previews[activeTile-1];\n previewGradients[activeTile] = previewGradients[activeTile-1];\n previewHover[activeTile] = previewHover[activeTile-1];\n \n \n tmpTile.setTileLevel(tmpTile.getTileLevel()-1);\n tiles[activeTile-1] = tmpTile;\n tiles[activeTile-1].setStartColor(tiles[activeTile-1].getStartColor());\n previews[activeTile-1] = tmpPreview;\n previewGradients[activeTile-1] = tmpPreviewGradients;\n previewHover[activeTile-1] = tmpPreviewHover;\n \n activeTile -= 1;\n createPreviewGradients();\n }\n }", "public void reverseDirection(Position ep) throws InvalidPositionException;", "private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}", "@FXML public void goBackward(ActionEvent e){\n\t\tphotoNumber--;\n\t\tif (photoNumber<0){\n\t\t\tphotoNumber=listOfPhotos.size()-1;\n\t\t}\n\t\tPhoto photo = listOfPhotos.get(photoNumber);\n\t\tImage photoImage = new Image(photo.getLocation(),610,450,false,false);\n\t\tphotoImageView.setImage(photoImage);\n Tooltip tt = new Tooltip();\n tt.setText(photo.printAttributes());\n tt.setStyle(\"-fx-font: normal bold 20 Langdon; \"\n + \"-fx-base: #AE3522; \"\n + \"-fx-text-fill: orange;\");\n infoHoverButton.setTooltip(tt);\n\t}", "public void setReverseDirection(boolean reverseDirection)\n {\n mDirection = reverseDirection ? -1 : 1;\n }", "@Override\n\tpublic void backToHomePosition() {\n\t\t\n\t}", "void onGoBackButtonClick();", "public Boolean down()\r\n\t{\r\n\t\tString cmd;\r\n\t\t\r\n\t\tcmd = \"flippers/down?null=true\";\r\n\t\treturn cmdSimpleResult(cmd);\r\n\t}", "public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }", "void switchScreen()\n {\n\n byte[] data = new byte[13];\n data[0] = (byte)0xF0;\n data[1] = (byte)0x00;\n data[2] = (byte)0x01;\n data[3] = (byte)0x05;\n data[4] = (byte)0x21;\n data[5] = (byte)DEFAULT_ID; //(byte)getID();\n data[6] = (byte)0x02; // \"Write Dump\" What??? Really???\n data[7] = (byte)0x15; // UNDOCUMENTED LOCATION\n data[8] = (byte)0x00; // UNDOCUMENTED LOCATION\n data[9] = (byte)0x01; // UNDOCUMENTED LOCATION\n data[10] = (byte)0x00; \n data[11] = (byte)0x00;\n data[12] = (byte)0xF7;\n tryToSendSysex(data);\n }", "public String getBack() {\n index--;\n return (String) history.get(index);\n }", "@Override\n public void goBack() {\n\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n Write_data();\n overridePendingTransition(R.anim.open_main, R.anim.close_next);\n }", "public void backArrowButtonOnTouch1(int scaledX, int scaledY, OnePlayerState oneplayerstate){\n if(backArrowButton.isPressed(scaledX, scaledY)){\n instructionsScreen = false;\n }\n }", "public backCard() {\n\t\tsuper(null,null);\n\t}", "public void flipCard() {\n this.faceUp = !faceUp;\n }", "boolean turnFaceDown();", "public final void setPreviousScreen(Displayable previousScreen) {\r\n\t\tthis.previousScreen = previousScreen;\r\n\t}", "@Test\n public void shouldPredictByRotatingPreviousMoveInReverseDirection() {\n ReverseRotationStrategy strategy = new ReverseRotationStrategy();\n\n strategy.addHistory(Shape.ROCK, Shape.PAPER);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.ROCK.defeatedBy()));\n\n strategy.addHistory(Shape.ROCK, Shape.ROCK);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.SPOCK.defeatedBy()));\n }", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "@Override\n public final void switchBack() {\n }", "@Override\n\tpublic void keyBack() {\n\t\t\n\t}", "int getDirection();", "public Command getBackCommand () {\nif (backCommand == null) {//GEN-END:|35-getter|0|35-preInit\n // write pre-init user code here\nbackCommand = new Command (\"Back\", Command.BACK, 0);//GEN-LINE:|35-getter|1|35-postInit\n // write post-init user code here\n}//GEN-BEGIN:|35-getter|2|\nreturn backCommand;\n}", "public boolean goBack() {\n if (historyStack.size() > 0) {\n switchToScreen(historyStack.pop(), true, lastTransition != null ? lastTransition : TransitionAnimation.getTransition(TransitionAnimationType.RIGHT_TO_LEFT));\n return true;\n }\n return false;\n }", "public void GoBack(){\n if (prev_hostgui != null){\n this.setVisible(false);\n prev_hostgui.setVisible(true);\n } else{\n this.setVisible(false);\n prev_guestgui.setVisible(true);\n }\n }", "void setupBtnBack() {\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n String str = bundle.getString(\"str\");\n\n ToastTip(str);\n\n Button btn_back = (Button)findViewById(R.id.btn_btn_back);\n\n btn_back.setOnClickListener(back_listener);\n }", "@Override\n public boolean keyDown(int keyCode) {\n if (keyCode == Input.Keys.BACK) {\n\n screenControl.setnScreen(1);\n }\n return super.keyDown(keyCode);\n }", "@Override\n public void backButton() {\n\n\n }", "void unsetDirection();", "@Override\r\n\tpublic void onBackPressed() {\n\t\tgame.getController().undoLastMove();\r\n\t}", "@Override\n\tpublic boolean isBackable() {\n\t\treturn false;\n\t}", "public void backward(int step) {\r\n\t\tString s;\r\n\t\tthis.x = checkValidX(this.x + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][0]); // Move back without turning\r\n\t\tthis.y = checkValidX(this.y + Constant.SENSORDIRECTION[(this.getDirection()+2)%4][1]);\r\n\t\tswitch (this.getDirection()) {\r\n\t\t\tcase Constant.NORTH:\r\n\t\t\t\ts = \"Up\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.EAST:\r\n\t\t\t\ts = \"Right\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.SOUTH:\r\n\t\t\t\ts = \"Down\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Constant.WEST:\r\n\t\t\t\ts = \"Left\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\ts = \"Error\";\r\n\t\t}\r\n\t\ttoggleValid();\r\n\t\tfor (int i = 0; i < step * Constant.GRIDWIDTH; i++) {\r\n\t\t\tt.schedule(new MoveImageTask(robotImage, s, 1), delay * (i + 1));\r\n\t\t}\r\n\t}", "public byte getDirection() {\n return this.direction;\n }", "public byte getDirection() {\n return this.direction;\n }", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "void flip() {\n _flipped = !_flipped;\n }", "public void backButtonClicked()\r\n {\n manager = sond.getManager();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n else if (manager.canUndo())\r\n {\r\n manager.undo();\r\n }\r\n }", "@Override\n protected void onAdjustProperties() {\n super.onAdjustProperties();\n mContentViewId = R.layout.activity_order_detail;\n mLeftButtonType = CommonConstant.LeftButton.BACK;\n }", "public Bearing reverse() {\n return Bearing.get( (this.bearing + 4) % 8);\n }", "@Override\n protected boolean canGoBack() {\n return false;\n }", "Activity getTransformBackwardActivity();" ]
[ "0.61406684", "0.58358485", "0.58344966", "0.5788202", "0.5758616", "0.57544005", "0.56655616", "0.5571645", "0.5553889", "0.5547028", "0.55315655", "0.5506677", "0.5502502", "0.54730034", "0.545795", "0.54184127", "0.540842", "0.5395645", "0.5392156", "0.53655875", "0.5324033", "0.5314007", "0.52745265", "0.5251757", "0.52312654", "0.523054", "0.52184886", "0.5205145", "0.52021796", "0.51819366", "0.5181924", "0.51723504", "0.51550275", "0.51514846", "0.5147582", "0.51447284", "0.51272887", "0.5104969", "0.5102084", "0.50962895", "0.5081211", "0.5080495", "0.50757486", "0.5073758", "0.5071861", "0.506614", "0.5063186", "0.5062157", "0.5060775", "0.50591666", "0.50518495", "0.5050766", "0.5042427", "0.5035939", "0.50346625", "0.5026003", "0.5017057", "0.5016202", "0.50139546", "0.5010726", "0.5009727", "0.50079936", "0.50074464", "0.5000607", "0.49987134", "0.49986133", "0.49897593", "0.4987879", "0.49871787", "0.49809414", "0.49767002", "0.4972034", "0.49694863", "0.49617293", "0.49514797", "0.4951295", "0.49509892", "0.49495384", "0.49468488", "0.49457267", "0.49430922", "0.49430647", "0.49397942", "0.49392876", "0.493073", "0.49299937", "0.49283063", "0.4924368", "0.49180436", "0.49157223", "0.4913895", "0.49129912", "0.49068058", "0.49068058", "0.4906722", "0.49063525", "0.49059713", "0.48980638", "0.4895472", "0.48954162", "0.48943704" ]
0.0
-1
/ Test that getContent() correctly returns the assigned TypeDefinition content object
public void testGetContent() { String content = "tdContentObject"; ((TypeDefinitionImpl) fTypeDefinition).setContent(content); assertEquals("The TypeDefinition content Object differs from that set -", content, fTypeDefinition.getContent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetContentModel()\n\t{\n\t\tString contentModel = TypeDefinition.API_W3C_DOM; // one of the presets available\n\t\t((TypeDefinitionImpl) fTypeDefinition).setContentModel(contentModel);\n\t\tassertEquals(\"The TypeDefinition content model String differs from that set -\", contentModel, fTypeDefinition.getContentModel());\n\t}", "abstract ContentType getContnentType();", "public T getContent();", "com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType();", "public abstract Object getContent();", "public T getContent() {\n return content;\n }", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "public String getContenttype() {\n return contenttype;\n }", "public String getContenttype() {\n return contenttype;\n }", "int getContentTypeValue();", "String getContentType();", "String getContentType();", "String getContentType();", "public String getContentType();", "public String getContentType();", "public ContentTypeSelDTO getContentType() {\r\n\t\ttype(ConfigurationItemType.CONTENT_TYPE);\r\n\t\treturn contentTypeValue;\r\n\t}", "public @Nullable T getContent() {\n logger.trace(\"Get Content of Message, content type : \" + contentType + \" / Content : \" + content);\n try {\n Class type = Class.forName(contentType);\n return (T) gson.fromJson(content, type);\n } catch (ClassNotFoundException e) {\n logger.error(\"Problem when change message content (json) in object\", e);\n }\n return null;\n }", "public String getContenttype() {\n\t\treturn contenttype;\n\t}", "public java.lang.Object getContentType() {\r\n return contentType;\r\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "@Test\r\n public void test_getContentType_Accuracy() {\r\n assertEquals(\"incorrect default value\", null, instance.getContentType());\r\n instance.setContentType(\"a\");\r\n assertEquals(\"incorrect value after setting\", \"a\", instance.getContentType());\r\n }", "Content<?> one();", "ContentFactory getContentFactory();", "public CharSequence getContentType() {\n return contentType;\n }", "public String getContentType() {\n return this.contentType;\n }", "public void testGetContentType() throws Exception {\n\t\tString testFileName = \"testGetContentType.pdf\";\n\t\tString absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH);\n\t\tString localFileName = FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 2);\n\n\t\tString targetIrodsFile = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties(\n\t\t\t\ttestingProperties, IRODS_TEST_SUBDIR_PATH + '/' + testFileName);\n\t\tFile localFile = new File(localFileName);\n\n\t\t// now put the file\n\n\t\tIRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties);\n\t\tDataTransferOperations dto = irodsFileSystem.getIRODSAccessObjectFactory()\n\t\t\t\t.getDataTransferOperations(irodsAccount);\n\t\tIRODSFile destFile = irodsFileSystem.getIRODSFileFactory(irodsAccount).instanceIRODSFile(targetIrodsFile);\n\n\t\tdto.putOperation(localFile, destFile, null, null);\n\n\t\tIrodsSecurityManager manager = Mockito.mock(IrodsSecurityManager.class);\n\n\t\tIrodsFileSystemResourceFactory factory = new IrodsFileSystemResourceFactory(manager);\n\n\t\tLockManager lockManager = Mockito.mock(LockManager.class);\n\t\tfactory.setLockManager(lockManager);\n\n\t\tWebDavConfig config = new WebDavConfig();\n\t\tfactory.setWebDavConfig(config);\n\n\t\tIrodsFileContentService service = Mockito.mock(IrodsFileContentService.class);\n\n\t\tIrodsFileResource resource = new IrodsFileResource(\"host\", factory, destFile, service);\n\n\t\tString actual = resource.getContentType(\"\");\n\t\tAssert.assertNotNull(\"null content type\", actual);\n\t\tAssert.assertEquals(\"did not find pdf\", \"application/pdf\", actual);\n\t}", "public void testGetType() {\n System.out.println(\"getType\"); // NOI18N\n \n TypeID expResult;\n TypeID result;\n String value = \"Test value\"; // NOI18N\n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n \n result = PropertyValue.createValue(primitveDescritor, type,value).getType();\n expResult = type;\n assertEquals(expResult, result);\n }", "public String getContentType() {\r\n try {\r\n ContentType newCtype = new ContentType(super.getContentType());\r\n ContentType retCtype = new ContentType(cType.toString());\r\n retCtype.setParameter(\"boundary\", newCtype.getParameter(\"boundary\"));\r\n return retCtype.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return \"null\";\r\n }", "public String getContentTypes() {\n return contentTypes;\n }", "public Content createContent();", "TypeDescription validated();", "@Override\n\tpublic String getContentType()\n\t{\n\t\treturn contentType;\n\t}", "@Override\n public int getContentType() {\n return 0;\n }", "public interface Content {\n}", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public String getContent();", "Rule DefinitionType() {\n // No direct effect on value stack\n return FirstOf(BaseType(), ContainerType());\n }", "@Override\n\tpublic String getType() {\n\t\treturn this.description.getType();\n\t}", "TypeDefinition createTypeDefinition();", "TypeSystemDefinition createTypeSystemDefinition();", "abstract public Type getType();", "public String getContentType() {\n return contentType;\n }", "public Object getContent() {\n return null;\n }", "public String getContentType() {\n return this.contentType;\n }", "public String getContentType() {\n return this.contentType;\n }", "public String getContentType() {\n return this.contentType;\n }", "public TypeDefinitionElements getTypeDefinitionAccess() {\r\n\t\treturn pTypeDefinition;\r\n\t}", "@Override\n\tpublic String getContentType() {\n\t\treturn CONTENT_TYPE;\n\t}", "public String getType(String name) {\n/* 164 */ return \"CDATA\";\n/* */ }", "public abstract jq_Type getDeclaredType();", "public String getContent() { return this.content; }", "public Content getContent() {\n return this.content;\n }", "abstract public Content createContent();", "public MetadataType getType();", "com.google.protobuf.AnyOrBuilder getContentOrBuilder();", "public java.lang.String getContent() {\n return content;\n }", "public abstract String getContentDescription();", "public String getContent()\n/* */ {\n/* 1329 */ return this.content;\n/* */ }", "@Override\n\tpublic\n\tObject getContent() {\n\t\treturn this.content;\n\t}", "@Test\r\n public void test_setContentType_Accuracy() {\r\n instance.setContentType(\"a\");\r\n assertEquals(\"incorrect value after setting\", \"a\", instance.getContentType());\r\n }", "public ContentType () {\n\t\tsuper();\n\t}", "private String getType(){\r\n return type;\r\n }", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "public abstract Type getType();", "public String getDefinition_type() {\r\n\t\treturn definition_type;\r\n\t}", "@NonNull\n private static String getContentType(Content content) {\n\n String type = TYPE_VIDEO;\n if (content.getSubtitle() != null && !content.getSubtitle().isEmpty()) {\n type = TYPE_EPISODE;\n }\n return type;\n }", "public List<ContentTypeMappingValue> getContentTypes() {\r\n\t\treturn contentTypes;\r\n\t}", "public String getContent() {\n return this.content;\n }", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "protected abstract String getType();", "public Mass getFatContent() throws ClassCastException;", "abstract public String getType();", "ContentType(String value){\n\t\t_value = value;\n\t}", "abstract String getContent();", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "UnNamedDomainType getDefinition();", "HateosContentType() {\n super();\n }", "public String getContent(ContentType type) throws IOException {\n String charset = type.getCharset();\n \n if(charset == null) {\n charset = \"UTF-8\";\n }\n return body.getContent(charset);\n }", "@Override\n public Map<String, Object> contentDescription(URI uri, InputStream inputStream, Map<?, ?> options, Map<Object, Object> context) throws IOException\n {\n Map<String, Object> result = super.contentDescription(uri, inputStream, options, context);\n \n XMLResource xmlResource = load(uri, inputStream, options, context);\n EList<EObject> contents = xmlResource.getContents();\n if (!contents.isEmpty())\n {\n EObject eObject = contents.get(0);\n if (eObject instanceof XMLTypeDocumentRoot)\n {\n XMLTypeDocumentRoot documentRoot = (XMLTypeDocumentRoot)eObject;\n EList<EObject> rootContents = documentRoot.eContents();\n String rootElementName = null;\n String rootElementNamespace = null;\n if (!rootContents.isEmpty())\n {\n EObject root = rootContents.get(0);\n EReference eContainmentFeature = root.eContainmentFeature();\n rootElementName = eContainmentFeature.getName();\n rootElementNamespace = ExtendedMetaData.INSTANCE.getNamespace(eContainmentFeature);\n if (XMI_KIND.equals(kind) && isXMINameAndNamespace(rootElementName, rootElementNamespace))\n {\n // Look for the first non-XMI element.\n //\n for (EObject candidate : root.eContents())\n {\n eContainmentFeature = candidate.eContainmentFeature();\n rootElementNamespace = ExtendedMetaData.INSTANCE.getNamespace(eContainmentFeature);\n if (!isXMINamespace(rootElementNamespace))\n {\n rootElementName = eContainmentFeature.getName();\n break;\n }\n }\n }\n }\n \n if (rootElementName != null && isMatchingNamespace(rootElementNamespace))\n {\n boolean elementNameMatched = false;\n if (elementNames == null || elementNames.length == 0)\n {\n elementNameMatched = true;\n }\n else\n {\n for (String elementName : elementNames)\n {\n if (rootElementName.equals(elementName))\n {\n elementNameMatched = true;\n break;\n }\n }\n }\n if (elementNameMatched)\n {\n result.put(VALIDITY_PROPERTY, ContentHandler.Validity.VALID);\n result.put(CONTENT_TYPE_PROPERTY, contentTypeID == null ? rootElementNamespace == null ? \"\" : rootElementNamespace : contentTypeID);\n return result;\n }\n }\n }\n }\n return result;\n }", "public java.lang.String getContent() {\n return content;\n }", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "abstract public Type type();", "public String getContentType() {\n return getProperty(Property.CONTENT_TYPE);\n }", "public String getContent() {\r\n return content;\r\n }" ]
[ "0.72962654", "0.68179387", "0.63424736", "0.62772924", "0.62427026", "0.6139671", "0.6105705", "0.6006561", "0.6006561", "0.60015774", "0.59813595", "0.59813595", "0.59813595", "0.59252125", "0.59252125", "0.5923554", "0.59233415", "0.59082824", "0.59065235", "0.59010935", "0.59010935", "0.59010935", "0.59010935", "0.59010935", "0.59010935", "0.5877929", "0.5828435", "0.5791161", "0.5776033", "0.57564217", "0.57361156", "0.57231903", "0.57149816", "0.5704903", "0.56964916", "0.56866926", "0.56856626", "0.5681141", "0.5655312", "0.56529593", "0.56483024", "0.5638209", "0.56361973", "0.56305826", "0.56269985", "0.5616763", "0.5615262", "0.5612049", "0.55993176", "0.55993176", "0.55993176", "0.55903095", "0.5584975", "0.55806845", "0.55797577", "0.5578499", "0.5578004", "0.55754095", "0.55714244", "0.55637234", "0.55634856", "0.5557985", "0.5557157", "0.55564374", "0.55418026", "0.5530566", "0.5528644", "0.55210173", "0.551485", "0.5514222", "0.5512878", "0.5502061", "0.54943985", "0.54869413", "0.5484803", "0.5480105", "0.5479298", "0.54733783", "0.54713106", "0.5465255", "0.5465255", "0.5465255", "0.5465255", "0.5465255", "0.5460258", "0.5460103", "0.5458865", "0.5458143", "0.54553896", "0.545386", "0.545386", "0.545386", "0.545386", "0.545386", "0.545386", "0.545386", "0.545386", "0.5440415", "0.5429212", "0.5425779" ]
0.7668956
0
/ Test that getContentModel() correctly returns the assigned TypeDefinition content model reference
public void testGetContentModel() { String contentModel = TypeDefinition.API_W3C_DOM; // one of the presets available ((TypeDefinitionImpl) fTypeDefinition).setContentModel(contentModel); assertEquals("The TypeDefinition content model String differs from that set -", contentModel, fTypeDefinition.getContentModel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract ContentType getContnentType();", "public void testGetContent()\n\t{\n\t\tString content = \"tdContentObject\";\n\t\t((TypeDefinitionImpl) fTypeDefinition).setContent(content);\n\t\tassertEquals(\"The TypeDefinition content Object differs from that set -\", content, fTypeDefinition.getContent());\n\t}", "com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType();", "public ContentTypeSelDTO getContentType() {\r\n\t\ttype(ConfigurationItemType.CONTENT_TYPE);\r\n\t\treturn contentTypeValue;\r\n\t}", "public TypeToken<?> modelType() {\n return this.modelType;\n }", "public String getContenttype() {\n return contenttype;\n }", "public String getContenttype() {\n return contenttype;\n }", "public String getContenttype() {\n\t\treturn contenttype;\n\t}", "public MoC getContentClass() {\r\n \t\tMoC clasz = null;\r\n \r\n \t\tif (isActor()) {\r\n \t\t\tclasz = actor.getMoC();\r\n \t\t} else {\r\n \t\t\tclasz = network.getMoC();\r\n \t\t}\r\n \r\n \t\treturn clasz;\r\n \t}", "int getContentTypeValue();", "ContentFactory getContentFactory();", "public java.lang.Object getContentType() {\r\n return contentType;\r\n }", "public T getContent();", "ContentItemContractInner innerModel();", "public T getContent() {\n return content;\n }", "public String getContentType() {\r\n try {\r\n ContentType newCtype = new ContentType(super.getContentType());\r\n ContentType retCtype = new ContentType(cType.toString());\r\n retCtype.setParameter(\"boundary\", newCtype.getParameter(\"boundary\"));\r\n return retCtype.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return \"null\";\r\n }", "public @Nullable T getContent() {\n logger.trace(\"Get Content of Message, content type : \" + contentType + \" / Content : \" + content);\n try {\n Class type = Class.forName(contentType);\n return (T) gson.fromJson(content, type);\n } catch (ClassNotFoundException e) {\n logger.error(\"Problem when change message content (json) in object\", e);\n }\n return null;\n }", "@Override\r\n public Class<Doc> getEntityType() {\n return Doc.class;\r\n }", "public String getContentType() {\n return this.contentType;\n }", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "public abstract Object getContent();", "public CharSequence getContentType() {\n return contentType;\n }", "EReference getModelReference();", "@Test\r\n public void test_getContentType_Accuracy() {\r\n assertEquals(\"incorrect default value\", null, instance.getContentType());\r\n instance.setContentType(\"a\");\r\n assertEquals(\"incorrect value after setting\", \"a\", instance.getContentType());\r\n }", "public ModelType getModelType() {\n\t\treturn mtype;\n\t}", "public String getContentType();", "public String getContentType();", "public ModelObjectType getType() {\n return type;\n }", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public BaseSlingModel getGenericModel() {\n return model;\n }", "String getContentType();", "String getContentType();", "String getContentType();", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "@Override\n\tpublic String getContentType()\n\t{\n\t\treturn contentType;\n\t}", "@java.lang.Override\n public com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType() {\n @SuppressWarnings(\"deprecation\")\n com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType result = com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.valueOf(contentType_);\n return result == null ? com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.UNRECOGNIZED : result;\n }", "public String getDefinition_type() {\r\n\t\treturn definition_type;\r\n\t}", "public String getContentType() {\n return this.contentType;\n }", "public String getContentType() {\n return this.contentType;\n }", "public String getContentType() {\n return this.contentType;\n }", "private PresentationModel convertEntityToPresentationModel(Object content, String requestPath, boolean generalLinks) {\n try {\n PresentationModel model = (content != null) ? (PresentationModel) presentationModelMap.get(content.getClass()).newInstance()\n : new ApiPresentationModel();\n model.setEntity(content);\n\n return addLinksToPresentationModel(model, requestPath, generalLinks);\n } catch (InstantiationException | IllegalAccessException | NullPointerException e) {\n logger.error(\"Encountered an unknown entity: {}\", content.getClass(), e);\n return null;\n }\n }", "public String getContentType() {\n return contentType;\n }", "@java.lang.Override public com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType() {\n @SuppressWarnings(\"deprecation\")\n com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType result = com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.valueOf(contentType_);\n return result == null ? com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.UNRECOGNIZED : result;\n }", "public String getContentObj() {\n return contentObj;\n }", "public String getContentTypes() {\n return contentTypes;\n }", "public interface ContentItemContract {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the properties property: Properties of the content item.\n *\n * @return the properties value.\n */\n Map<String, Object> properties();\n\n /**\n * Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.ContentItemContractInner object.\n *\n * @return the inner object.\n */\n ContentItemContractInner innerModel();\n}", "TypedModel getModel();", "@ApiModelProperty(value = \"class type of target specification\")\n\n\n public String getType() {\n return type;\n }", "@Override\n public int getContentType() {\n return 0;\n }", "private Class<? extends Model> getModelType(Uri uri) {\n// final int code = URI_MATCHER.match(uri);\n// if (code != UriMatcher.NO_MATCH) {\n// return TYPE_CODES.get(code);\n// }\n\n return null;\n }", "public Content getContent() {\n return this.content;\n }", "public String getDocumentType();", "public <T> T get(ContentType<T> type, T defaultValue) {\n Entity e = null;\n if (parent != null) {\n e = parent.get(ContentType.EntityType, null);\n } else if (root != null) {\n e = root;\n }\n if (e != null) {\n if (isIndexSelector()) {\n if (!(e instanceof EntityList)) {\n return null;\n }\n if (!type.isEntity()) {\n return null;\n }\n EntityList el = (EntityList)e;\n return (T)index.get(el);\n \n }\n Property prop = property;\n if (prop == null) {\n prop = e.getEntity().getEntityType().findProperty(tags);\n }\n if (prop != null) {\n //if (type == ContentType.EntityType && !e.isEntity(prop)) {\n // return defaultValue;\n //}\n if (!prop.getContentType().canConvertTo(type) && !type.canConvertFrom(prop.getContentType())) {\n return defaultValue;\n }\n T out = e.getEntity().get(prop, type);\n if (out == null) {\n return defaultValue;\n }\n return out;\n }\n }\n return defaultValue;\n }", "@java.lang.Override public int getContentTypeValue() {\n return contentType_;\n }", "public TypeToken<?> returnType() {\n return this.modelType;\n }", "public ModelDef getModelDefinition(Class<?> modelType, Set<LovRef> requiredLovs)\r\n\t{\r\n\t\tString modelName = getModelName(modelType);\r\n\t\t\r\n\t\t//create model def instance and set basic properties\r\n\t\tModelDef modelDef = new ModelDef();\r\n\t\tmodelDef.setName(modelName);\r\n\t\tmodelDef.setLabel(defUtils.getLabel(modelType, modelType.getSimpleName(), modelType.getName()));\r\n\t\t\r\n\t\tExtendableModel extendableModelAnnot = modelType.getAnnotation(ExtendableModel.class);\r\n\t\t\r\n\t\tif(extendableModelAnnot != null && IExtendableModel.class.isAssignableFrom(modelType))\r\n\t\t{\r\n\t\t\tmodelDef.setExtensionName(extendableModelAnnot.name());\r\n\t\t}\r\n\t\t\r\n\t\t//fetch field definitions and set it on model type def\r\n\t\tList<FieldDef> fieldDefLst = new ArrayList<>();\r\n\t\tClass<?> curCls = modelType;\r\n\t\t\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tif(curCls.getName().startsWith(\"java\"))\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tField fields[] = curCls.getDeclaredFields();\r\n\t\t\t\r\n\t\t\tfor(Field field : fields)\r\n\t\t\t{\r\n\t\t\t\t//ignore static fields\r\n\t\t\t\tif(Modifier.isStatic(field.getModifiers()))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if field is marked to be ignore, ignore\r\n\t\t\t\tif(field.getAnnotation(IgnoreField.class) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfieldDefLst.add(fieldDefBuilder.getFieldDef(modelType, field, requiredLovs));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurCls = curCls.getSuperclass();\r\n\t\t}\r\n\t\t\r\n\t\tmodelDef.setFields(fieldDefLst);\r\n\t\tmodelDef.setDateFormat(configuration.getDateFormat().toPattern());\r\n\t\tmodelDef.setJsDateFormat(configuration.getJsDateFormat());\r\n\t\t\r\n\t\treturn modelDef;\r\n\t}", "public List<ContentTypeMappingValue> getContentTypes() {\r\n\t\treturn contentTypes;\r\n\t}", "public Content createContent();", "public String entityType();", "public String getLBR_MDFeDocType();", "public Object getContent() {\n return null;\n }", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "public String getContentType() {\n return contentType;\n }", "void modelType(Class<?> modelType);", "@Override\n\tpublic String getContentType() {\n\t\treturn CONTENT_TYPE;\n\t}", "public static void setContentType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, CONTENTTYPE, value);\r\n\t}", "public int getDescriptionType(){\n return localDescriptionType;\n }", "public abstract jq_Type getDeclaredType();", "@java.lang.Override public int getContentTypeValue() {\n return contentType_;\n }", "public java.lang.String getContentType() {\n return contentType;\n }", "Content<?> one();", "public abstract String getContentDescription();", "protected void addContentModel(WorkflowDefinitionConversion conversion, String processId) {\n\t\tM2Model model = new M2Model();\n\t\tmodel.setName(AlfrescoConversionUtil.getQualifiedName(processId, \n\t\t\t\tCONTENT_MODEL_UNQUALIFIED_NAME));\n\t\t\n\t\tM2Namespace namespace = AlfrescoConversionUtil.createNamespace(processId);\n\t\tmodel.getNamespaces().add(namespace);\n\t\t\n\t\t\n\t\t// Import required alfresco models\n\t\tmodel.getImports().add(DICTIONARY_NAMESPACE);\n\t\tmodel.getImports().add(CONTENT_NAMESPACE);\n\t\tmodel.getImports().add(BPM_NAMESPACE);\n\t\t\n\t\t// Store model in the conversion artifacts to be accessed later\n\t\tAlfrescoConversionUtil.storeContentModel(model, conversion);\n\t\tAlfrescoConversionUtil.storeModelNamespacePrefix(namespace.getPrefix(), conversion);\n }", "private String getType(){\r\n return type;\r\n }", "public String getContentType() {\n\t\treturn contentType;\n\t}", "public String getContentType() {\n\t\treturn contentType;\n\t}", "public static ReferenceDocModel buildTestReferenceDocModel( String text, String typeSuffix)\n {\n ReferenceDocModel referenceDocModel = new ReferenceDocModel();\n\n referenceDocModel.setCreatedBy( \"buildTestReferenceDocModel DateCreated\" );\n referenceDocModel.setDateCreated( getDate() );\n referenceDocModel.setModifiedBy( \"buildTestReferenceDocModel DateModified\" );\n referenceDocModel.setDateModified( getDate() );\n\n referenceDocModel.setDocName( \"DocName_\" + text );\n referenceDocModel.setDocType( \"DocType_\" + text + typeSuffix);\n referenceDocModel.setDocIDSeq( \"IDSeq_\" + text );\n referenceDocModel.setDocText( \"DocText_\" + text );\n referenceDocModel.setLang( \"Lang_\" + text );\n referenceDocModel.setUrl( \"URL_\" + text );\n referenceDocModel.setContext( buildTestContextModel() );\n\n return referenceDocModel;\n }", "public Class<M> getModelClass();", "public static String getSampleDefintion() throws IOException\n\t{\n\t\tInputStream is = ResourceHelper.getResourceAsStream(\"org/infoglue/cms/controllers/TestContentDefinition.xml\", ContentTypeDefinitionControllerTest.class);\n\n\t\tif(is == null)\n\t\t\tfail(\"Unable to read test document, make sure it got copied to the test classpath\");\n\n\t\tString line = null;\n\t\tStringBuffer sb = new StringBuffer();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is));\n\t\twhile((line = reader.readLine()) != null)\n\t\t\tsb.append(line);\n\n\t\treader.close();\n\t\treturn sb.toString();\n\t}", "ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;", "public String getContentType() {\n\t\treturn null;\n\t}", "public RDR_RDR_DEFINITION getDEFINITION() { \r\n return getTyped(\"DEFINITION\", RDR_RDR_DEFINITION.class);\r\n }", "@JsonProperty(\"contentType\")\n public String getContentType() {\n return contentType;\n }", "public ViewMetamodel getMetamodel();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "public final RelationType<List<RelationType<?>>> getViewContentParam()\n\t{\n\t\treturn aViewContentParam;\n\t}", "public static void addContentType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, CONTENTTYPE, value);\r\n\t}", "public String getContentType() {\n return getProperty(Property.CONTENT_TYPE);\n }", "public int getC_DocTypeTarget_ID();", "public gov.ucore.ucore._2_0.ContentMetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.ContentMetadataType target = null;\n target = (gov.ucore.ucore._2_0.ContentMetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Document getModel(){\n return getDocument();\n }", "@SuppressWarnings(\"rawtypes\")\r\n\tprivate Example getExample(final Map<String, Schema> schemas, final Content content, final String contentType) {\r\n\t\tExample example = null;\r\n\t\tif(content != null) {\r\n\t\t\tSchema<?> schema = null;\r\n\t\t\tif (content.get(contentType) != null) {\r\n\t\t\t\tschema = content.get(contentType).getSchema();\r\n\t\t\t} else if (content.get(\"*/*\") != null) {\r\n\t\t\t\tschema = content.get(\"*/*\").getSchema();\r\n\t\t\t}\r\n\t\t\tif(schema != null) {\r\n\t\t\t\texample = ExampleBuilder.fromSchema(schema, schemas);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn example;\r\n\t}" ]
[ "0.6588233", "0.6443824", "0.5985358", "0.5770584", "0.57516634", "0.5717869", "0.5717869", "0.5666572", "0.56558657", "0.5621516", "0.56194526", "0.55941314", "0.55755657", "0.5504892", "0.55016476", "0.54945534", "0.5476639", "0.54668945", "0.54500234", "0.5429809", "0.54230666", "0.5418741", "0.5417019", "0.5414937", "0.54004806", "0.536201", "0.536201", "0.5361101", "0.53534126", "0.53525084", "0.53470236", "0.53470236", "0.53470236", "0.533895", "0.53383327", "0.5323828", "0.5318457", "0.53138924", "0.53138924", "0.53138924", "0.529246", "0.5287438", "0.52770656", "0.5264528", "0.5263189", "0.5250864", "0.5242629", "0.52364135", "0.52294344", "0.52133757", "0.52108943", "0.5205554", "0.52039254", "0.519314", "0.51857215", "0.51757014", "0.5160501", "0.5158371", "0.51561356", "0.5154731", "0.51525265", "0.51514536", "0.51514536", "0.51514536", "0.51514536", "0.51514536", "0.5150304", "0.51463836", "0.512399", "0.51186377", "0.51186275", "0.5117312", "0.5113257", "0.5098877", "0.5096647", "0.50848365", "0.50757045", "0.50711894", "0.50711894", "0.5067482", "0.50672543", "0.5061805", "0.50484633", "0.5048036", "0.5044101", "0.5042771", "0.50384915", "0.5037347", "0.5037347", "0.5037347", "0.5037347", "0.5037347", "0.5037347", "0.5033767", "0.50261414", "0.5025631", "0.50202566", "0.50183016", "0.5006568", "0.49968418" ]
0.782065
0
/ Test that getName() correctly returns the assigned TypeDefinition name
public void testGetName() { ((TypeDefinitionImpl)fTypeDefinition).setName(new QName("tdName")); assertEquals("The TypeDefinition name QName differs from that set-", "tdName", fTypeDefinition.getName().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String typeName();", "public abstract String getTypeName();", "public String getTypeName();", "public String getTypeName();", "@Override\n public String getName() {\n return type.getName();\n }", "public Type type(String name);", "public String getTypeName() {\n \treturn typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "String provideType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "public String ofType() {\n\t\t return name;\n\t}", "NamedType createNamedType();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "public String getTypeName() {\n return type.name();\n }", "public String getTypeName()\n {\n return this.typeName;\n }", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public String getTypeName() {\n return this.typeName;\n }", "String getTypeAsString();", "private static String getCorrectTypeName(final String typeName)\n {\n String result = \"\";\n\n // Type is an XSD built-in type\n if (mapping.containsKey(typeName))\n {\n result = mapping.get(typeName);\n }\n // Type is a custom type\n else\n {\n result = typeName;\n }\n\n return result;\n }", "private String defineName(final TypeMirror typeMirror, final TypeNodeKind typeNodeKind, final TypeScriptType typeScriptTypeAnnotation) {\n if (typeScriptTypeAnnotation != null) {\n final String typeFromAnnotation = defineTypeFromAnnotation(typeScriptTypeAnnotation);\n if (!UNDEFINED.equals(typeFromAnnotation)) {\n return typeFromAnnotation;\n }\n }\n\n final String name;\n switch (typeNodeKind) {\n case ARRAY:\n name = defineNameFromArrayType((ArrayType) typeMirror);\n break;\n case COLLECTION:\n name = defineNameFromCollectionType((DeclaredType) typeMirror);\n break;\n case MAP:\n name = defineNameFromMapType((DeclaredType) typeMirror);\n break;\n case SIMPLE:\n default:\n name = defineNameFromSimpleType(typeMirror);\n break;\n }\n return name;\n }", "public String typeName() {\n return typeName;\n }", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "public String getName() {\n return type.toString();\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "public String getTypeName() {\n\t\treturn this.typeName;\n\t}", "public NameType getType() {\n return type;\n }", "@Override\n\tpublic String getTypeAsName() {\n\t\treturn null;\n\t}", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "TypeSystemDefinition createTypeSystemDefinition();", "public void setTypeName(java.lang.String value);", "protected abstract String getType();", "public String typeName() {\n return this.typeName;\n }", "@Override\n public String getType() {\n return this.name; \n }", "public TypeDefinition tdef(String n){\n TypeDefinition rc = isType(n);\n if (rc == null){\n return(null);\n }\n else\n return(rc);\n }", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "abstract public String getType();", "public String getType() {\n // or only getDeclaringType().getName()\n // return getDeclaringType().getFullName();\n if(getNamespace() != null && getNamespace().length() > 0) {\n // when using getDeclareType().getName() some objects return lowercase\n // names, hence we capitalize (using getDeclaringType().getFullName() does\n // not exhibit this behavior but has the issue that it might return names\n // that include generic types and their mappings, which cause issues in\n // the code elements that use this method\n return getNamespace()+\".\"+Utilities.capitalize(getDeclaringType().getName());\n }\n return Utilities.capitalize(getDeclaringType().getName());\n }", "String getSimpleName();", "String getSimpleName();" ]
[ "0.75132954", "0.73520285", "0.7252674", "0.7252674", "0.71646404", "0.71547025", "0.69672936", "0.69230133", "0.69230133", "0.69230133", "0.69230133", "0.6893872", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.68786967", "0.6846091", "0.6834911", "0.6806314", "0.67862207", "0.6769977", "0.6760667", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.67431986", "0.6737466", "0.6732775", "0.6716637", "0.66823155", "0.6667859", "0.6650804", "0.6619152", "0.6587006", "0.6582141", "0.65589434", "0.654525", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.6542253", "0.65377796", "0.64958864", "0.64512134", "0.642451", "0.6386074", "0.6361951", "0.635303", "0.635303", "0.6344978", "0.63217247", "0.63212144", "0.63212144" ]
0.72355694
4
/ Test that getSystem() correctly returns the assigned TypeDefinition type system
public void testGetSystem() { ((TypeDefinitionImpl) fTypeDefinition).setSystem(fTypeSystem); assertEquals("The TypeDefinition type system URI differs from that set-", fTypeSystem, fTypeDefinition.getSystem()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TypeSystemDefinition createTypeSystemDefinition();", "public String getSystemType() {\n \t\treturn fSystemType;\n \t}", "java.lang.String getMachineType();", "public TypeSystemNode getTypeSystemNode() {\r\n return typeSystemNode;\r\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "private SpaceSystemType getSpaceSystemByName(String systemName, SpaceSystemType startingSystem)\n {\n // Search the space system hierarchy, beginning at the specified space system\n return searchSpaceSystemsForName(systemName, startingSystem, null);\n }", "MachineType getType();", "java.lang.String getSystem();", "OperatingSystemTypes osType();", "String getSType();", "public String getSysType() {\n return sysType;\n }", "boolean hasMachineType();", "String provideType();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "public T caseSystemType(SystemType object) {\r\n\t\treturn null;\r\n\t}", "SystemPropertiesType createSystemPropertiesType();", "org.hyperflex.roscomponentmodel.System getSystem();", "public PlatformType getPlatformType();", "@Override\n public byte getType() {\n return TYPE_MONETARY_SYSTEM;\n }", "public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }", "Type_use getType_use();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public String getIsSystem() {\n return isSystem;\n }", "public abstract String getSystem( );", "public AS400 getSystem() {\r\n return system;\r\n }", "private SystemDef getSystemDef(String systemDefName) {\n for (DatacollectionGroup group : externalGroupsMap.values()) {\n for (SystemDef sd : group.getSystemDefCollection()) {\n if (sd.getName().equals(systemDefName)) {\n return sd;\n }\n }\n }\n return null;\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public String getSystem() {\r\n return this.system;\r\n }", "public String type();", "public UnitSystems GetCurrentUnitSystem()\n {\n return MethodsCommon.GetSystemFromUnit(Unit, false, true);\n }", "public abstract String getSystemName();", "String getDefaultType();", "@Test\n public void osTypeTest() {\n // TODO: test osType\n }", "@Override\n public com.gensym.util.Symbol getFormatType() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.FORMAT_TYPE_);\n return (com.gensym.util.Symbol)retnValue;\n }", "public TypeDefinition findInternalType(DefinitionName name){\n \treturn(internalTypeDefs.get(name));\n }", "String getTypeAsString();", "type getType();", "public abstract String getWorldType();", "String primaryImplementationType();", "@SuppressWarnings(\"unchecked\")\n\tpublic <T extends GameSystem> T getSystemOfType(Class<T> systemType) {\n\t\tif (systemType == null) {\n\t\t\tthrow new IllegalArgumentException(\"systemType is null\");\n\t\t}\n\t\tfor (SystemWithPriority<? extends GameSystem> systemWithPriority : systems) {\n\t\t\tif (systemWithPriority.system.getClass().equals(systemType)) {\n\t\t\t\treturn (T) systemWithPriority.system;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public ObjectType getJVMType();", "public static String umlType(String s)\n {\n read_if_needed_();\n \n int index = _builtins.length;\n \n while (index-- != 0)\n if (_builtins[index].java.equals(s))\n return _builtins[index].uml;\n \n return null;\n }", "protected abstract String getType();", "Type type();", "Type type();" ]
[ "0.7500091", "0.7280685", "0.67928755", "0.6685668", "0.66174835", "0.6612406", "0.6596001", "0.6553866", "0.6515309", "0.65078515", "0.64684767", "0.64017886", "0.6333292", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.63126034", "0.6269149", "0.62358344", "0.6219449", "0.6139469", "0.61271375", "0.6122437", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.6118409", "0.60649645", "0.60629964", "0.60417247", "0.59897435", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59456235", "0.59144974", "0.5880062", "0.5878666", "0.58711517", "0.5868672", "0.5851867", "0.5831347", "0.5808507", "0.5805343", "0.5792933", "0.5789669", "0.57672614", "0.5735587", "0.5731468", "0.5727187", "0.572689", "0.57234454", "0.57234454" ]
0.74640554
1