query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Creates new form Estadistica
public Estadisticas() { initComponents(); llenar_tabla(); setCellRender(tbResult); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "@RequestMapping(value = { \"/new\" }, method = RequestMethod.POST)\n\tpublic String saveEntity(@Valid ENTITY tipoConsumo, BindingResult result, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\t\n\t\t\tabm.guardar(tipoConsumo);\n\t\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\t\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten se realiz&oacute correctamente.\");\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tmodel.addAttribute(\"success\", \"La creaci&oacuten no pudo realizarse.\");\n\t\t}\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn \"redirect:list\";\n\t}", "public FormInserir() {\n initComponents();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "FORM createFORM();", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "public void crear(Tarea t) {\n t.saveIt();\n }", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "Secuencia createSecuencia();", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }", "public CrearQuedadaVista() {\n }", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "Compuesta createCompuesta();", "CounselorBiographyTemp create(CounselorBiographyTemp entity);", "@PostMapping(\"/addFormation/{eid}\")\n\t\tpublic Formation createFormation(@PathVariable(value = \"eid\") Long Id, @Valid @RequestBody Formation formationDetails) {\n\n\t\t \n\t\t Formation me=new Formation();\n\t\t\t Domaine domaine = Domainev.findById(Id).orElseThrow(null);\n\t\t\t \n\t\t\t \n\t\t\t\t me.setDom(domaine);\n\t\t\t me.setTitre(formationDetails.getTitre());\n\t\t\t me.setAnnee(formationDetails.getAnnee());\n\t\t\t me.setNb_session(formationDetails.getNb_session());\n\t\t\t me.setDuree(formationDetails.getDuree());\n\t\t\t me.setBudget(formationDetails.getBudget());\n\t\t\t me.setTypeF(formationDetails.getTypeF());\n\t\t\t \n\t\t\t \n\n\t\t\t //User affecterUser= \n\t\t\t return Formationv.save(me);\n\t\t\t//return affecterUser;\n\t\t\n\n\t\t}", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "OperacionColeccion createOperacionColeccion();", "Documento createDocumento();", "Operacion createOperacion();", "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 }", "public CadastroProdutoNew() {\n initComponents();\n }", "public Estudiante() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public CrearPedidos() {\n initComponents();\n }", "public VistaInicial crearventanaInicial(){\n if(vistaInicial==null){\n vistaInicial = new VistaInicial();\n }\n return vistaInicial;\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "@PostMapping(\"/add\")\n public ModelAndView addSocio(Persona persona) {\n personaService.addPersona(persona);\n return new ModelAndView(\"redirect:/admin/socios\");\n }", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public abstract Anuncio creaAnuncioIndividualizado();", "@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public IEstadoLectura crearEstado();", "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }", "@PostMapping(\"/creargrupo\")\n public String create(@ModelAttribute (\"grupo\") Grupo grupo) throws Exception {\n try {\n grupoService.create(grupo);\n return \"redirect:/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/creargrupo\" + e.getMessage());\n return \"redirect:/error\";\n }\n }", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "public NovaContaFisica() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabelMatricula = new javax.swing.JLabel();\n jTextFieldAtividadesMatricula = new javax.swing.JTextField();\n jLabelNome = new javax.swing.JLabel();\n jTextFieldAtividadesNome = new javax.swing.JTextField();\n jComboBoxAtividadesTipo = new javax.swing.JComboBox<>();\n jLabelData = new javax.swing.JLabel();\n jLabelTipo = new javax.swing.JLabel();\n jTextFieldAtividadesData = new javax.swing.JFormattedTextField();\n jLabelLocal = new javax.swing.JLabel();\n jTextFieldAtividadesLocal = new javax.swing.JTextField();\n jLabelDescricao = new javax.swing.JLabel();\n jButtonAtividadesInserir = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaAtividadesDescricao = new javax.swing.JTextArea();\n jButtonLimpar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Inserir Atividades\");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameActivated(evt);\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameOpened(evt);\n }\n });\n\n jLabelMatricula.setText(\"Matrícula:*\");\n\n jLabelNome.setText(\"Nome:*\");\n\n jComboBoxAtividadesTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecione\", \"Lazer\", \"Trabalho\", \"Escola\", \"Faculdade\", \"Física\" }));\n jComboBoxAtividadesTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxAtividadesTipoActionPerformed(evt);\n }\n });\n\n jLabelData.setText(\"Data:*\");\n\n jLabelTipo.setText(\"Tipo: *\");\n\n try {\n jTextFieldAtividadesData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabelLocal.setText(\"Local:*\");\n\n jLabelDescricao.setText(\"Descrição:\");\n\n jButtonAtividadesInserir.setText(\"Inserir\");\n jButtonAtividadesInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAtividadesInserirActionPerformed(evt);\n }\n });\n\n jTextAreaAtividadesDescricao.setColumns(20);\n jTextAreaAtividadesDescricao.setRows(5);\n jScrollPane1.setViewportView(jTextAreaAtividadesDescricao);\n\n jButtonLimpar.setText(\"Limpar\");\n jButtonLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLimparActionPerformed(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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelMatricula)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesNome))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonAtividadesInserir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonLimpar))\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelTipo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelData)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelLocal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldAtividadesNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNome))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMatricula)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelData)\n .addComponent(jLabelTipo)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelLocal)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAtividadesInserir)\n .addComponent(jButtonLimpar))\n .addGap(1, 1, 1))\n );\n\n pack();\n }", "public ArticulosAdd() {\n initComponents();\n Sistema.lblNotificacion.setText(\"Ingreso Artítuclos\");\n this.setLocationRelativeTo(null);\n\n Date date = new Date();\n\n dtDesde.setDate(date);\n dtHasta.setDate(date);\n\n articulos.searchArticulo(cboArticulos, \"\", 0, 1000, 0);\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ConsultarVeiculo() {\n initComponents();\n }", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "@FXML\n public void insereCidade(){\n try{ \t\n \tif(txtNome.getText().equals(\"\"))\n \t\tthrow new NullPointerException();\n \t\n \tif(txtNome.getText().matches(\".*\\\\d+.*\"))\n \t\tthrow new TemNumeroException();\n \t\n \tif(txtUf.getSelectionModel().isEmpty())\n \t\tthrow new NullPointerException();\n\n \tCidade c = new Cidade();\n \tc.setNome(txtNome.getText());\n \tc.setUf(txtUf.getSelectionModel().getSelectedItem());\n \tc.insere(conn);\n \tattTblCidade();\n \tlimpaCidade();\n \tMensagens.msgInformacao(\"Parabéns\",\"Cidade cadastrada com sucesso\");\n \t\n \t}catch (TemNumeroException e){\n \t\tMensagens.msgErro(\"FALHA\",\"O campo destacado não pode conter números\"); \n \t\t}catch (NullPointerException e){\n \t\t\tMensagens.msgErro(\"FALHA\",\"Preencha todos os campos\"); \n \t}catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\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 void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public abstract Anuncio creaAnuncioTematico();", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "@GetMapping(path = \"/realizar\")\n public ModelAndView getForm(){\n\n return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject(\"compraMinorista\", new CompraMinorista());\n }", "public Estado() {\r\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@RequestMapping(value = \"/estados\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void create(@RequestBody Estado estado) {\n log.debug(\"REST request to save Estado : {}\", estado);\n estadoRepository.save(estado);\n }", "public com.alain.puntocoma.model.Catalogo create(long catalogoId);", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "public co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.soltec\n\t\t.datos_publicacion\n\t\t.ejb\n\t\t.sb\n\t\t.DatosPublicacionSTLocal create()\n\t\tthrows javax.ejb.CreateException;", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public telaCadastro() {\n initComponents();\n populaTabela();\n }", "Motivo create(Motivo motivo);", "public FrmInsertar() {\n initComponents();\n }", "public TareasEvento() {\n initComponents();\n setTitle (\"Tareas\");\n mostrardatos(jTextField1.getText());\n \n }", "public Estado() {\n }", "@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }", "private void populaFaixaEtariaCat()\n {\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Até 15 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 16 a 19 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 20 a 30 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 31 a 45 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 46 a 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Mais de 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Todas as idades\"));\n\n }", "@GetMapping(\"/students/new\")\n\tpublic String createStudentForm(Model model) throws ParseException\n\t{\n\t\t\n\t\tStudent student=new Student(); //To hold form Data.\n\t\t\n\t\tmodel.addAttribute(\"student\",student);\n\t\t\n\t\t// go to create_student.html page\n\t\treturn \"create_student\";\n\t}", "public VistaCrearEmpleado() {\n\t\tsetClosable(true);\n\t\tsetFrameIcon(new ImageIcon(VistaCrearEmpleado.class.getResource(\"/com/mordor/mordorLloguer/recursos/account_circle24dp.png\")));\n\t\tsetBounds(100, 100, 467, 435);\n\t\tgetContentPane().setLayout(new MigLayout(\"\", \"[152px][235px]\", \"[19px][19px][19px][19px][19px][19px][45px][24px][19px][25px]\"));\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI: \");\n\t\tgetContentPane().add(lblDni, \"cell 0 0,growx,aligny center\");\n\t\t\n\t\ttxtDNI = new JTextField();\n\t\tgetContentPane().add(txtDNI, \"cell 1 0,growx,aligny top\");\n\t\ttxtDNI.setColumns(10);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre: \");\n\t\tgetContentPane().add(lblNombre, \"cell 0 1,growx,aligny center\");\n\t\t\n\t\ttxtNombre = new JTextField();\n\t\tgetContentPane().add(txtNombre, \"cell 1 1,growx,aligny top\");\n\t\ttxtNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos: \");\n\t\tgetContentPane().add(lblApellidos, \"cell 0 2,growx,aligny center\");\n\t\t\n\t\ttxtApellidos = new JTextField();\n\t\tgetContentPane().add(txtApellidos, \"cell 1 2,growx,aligny top\");\n\t\ttxtApellidos.setColumns(10);\n\t\t\n\t\tJLabel lblDomicilio = new JLabel(\"Domicilio:\");\n\t\tgetContentPane().add(lblDomicilio, \"cell 0 3,growx,aligny center\");\n\t\t\n\t\ttxtDomicilio = new JTextField();\n\t\tgetContentPane().add(txtDomicilio, \"cell 1 3,growx,aligny top\");\n\t\ttxtDomicilio.setColumns(10);\n\t\t\n\t\tJLabel lblCp = new JLabel(\"CP:\");\n\t\tgetContentPane().add(lblCp, \"cell 0 4,growx,aligny center\");\n\t\t\n\t\ttxtCp = new JTextField();\n\t\tgetContentPane().add(txtCp, \"cell 1 4,growx,aligny top\");\n\t\ttxtCp.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tgetContentPane().add(lblEmail, \"cell 0 5,growx,aligny center\");\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\tgetContentPane().add(txtEmail, \"cell 1 5,growx,aligny top\");\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJLabel lblFechaDeNacimiento = new JLabel(\"Fecha de Nacimiento:\");\n\t\tgetContentPane().add(lblFechaDeNacimiento, \"cell 0 6,alignx left,aligny center\");\n\t\t\n\t\ttxtDate = new WebDateField();\n\t\tgetContentPane().add(txtDate, \"cell 1 6,growx,aligny top\");\n\t\t\n\t\tJLabel lblCargo = new JLabel(\"Cargo:\");\n\t\tgetContentPane().add(lblCargo, \"cell 0 7,growx,aligny center\");\n\t\t\n\t\tcomboBoxCargo= new JComboBox<String> ();\n\t\tgetContentPane().add(comboBoxCargo, \"cell 1 7,growx,aligny top\");\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"Contraseña:\");\n\t\tgetContentPane().add(lblContrasea, \"cell 0 8,growx,aligny center\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tgetContentPane().add(passwordField, \"cell 1 8,growx,aligny top\");\n\t\t\n\t\tbtnAdd = new JButton(\"Add\");\n\t\tgetContentPane().add(btnAdd, \"cell 0 9,growx,aligny top\");\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(btnCancel, \"cell 1 9,growx,aligny top\");\n\n\t}", "private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public TelaCidadaoDescarte() {\n initComponents();\n }", "Klassenstufe createKlassenstufe();", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "public Estado() {\r\n //Constructor vacio\r\n }", "public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }" ]
[ "0.66369236", "0.6632203", "0.6294881", "0.6183144", "0.6161786", "0.6148725", "0.6148138", "0.61345506", "0.610866", "0.6075481", "0.6037135", "0.59917593", "0.59841883", "0.5980374", "0.59727836", "0.59584916", "0.590683", "0.59053826", "0.5902857", "0.5900335", "0.5894067", "0.58815676", "0.586931", "0.5857111", "0.5851909", "0.5850312", "0.583961", "0.5837735", "0.58021516", "0.5797967", "0.57899785", "0.57827276", "0.57680064", "0.5761819", "0.5760138", "0.57550174", "0.5751852", "0.5751219", "0.57318777", "0.5729077", "0.57199275", "0.570452", "0.5699761", "0.56976676", "0.56969476", "0.5678806", "0.5678199", "0.565131", "0.5645607", "0.5642035", "0.5636686", "0.56277895", "0.5619062", "0.5618301", "0.5617054", "0.56094736", "0.5604459", "0.56018996", "0.5599454", "0.55888873", "0.55851316", "0.55779344", "0.55775416", "0.55612063", "0.5551944", "0.5543132", "0.55391085", "0.5534927", "0.5532992", "0.55238587", "0.5518424", "0.55130386", "0.5511038", "0.5510607", "0.551055", "0.5501195", "0.5500599", "0.5496147", "0.54871666", "0.5479622", "0.5471847", "0.5471251", "0.54615426", "0.546108", "0.5460074", "0.5456914", "0.5454531", "0.5442763", "0.54421103", "0.5436935", "0.54334015", "0.5431495", "0.542658", "0.5425682", "0.54162884", "0.5409103", "0.5408998", "0.5405872", "0.5405342", "0.54049885", "0.5404259" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); tbResult = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); setBackground(new java.awt.Color(153, 255, 153)); setClosable(true); setIconifiable(true); setMaximizable(true); setTitle("Estadistica"); setToolTipText(""); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); tbResult.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { } )); jScrollPane1.setViewportView(tbResult); getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, 630, 160)); jLabel1.setFont(new java.awt.Font("Castellar", 2, 18)); // NOI18N jLabel1.setForeground(new java.awt.Color(0, 0, 153)); jLabel1.setText("SU RESULTADO OBTENIDO EN CADA NIVEL ES EL SIGUIENTE :"); getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 120, 700, 20)); jButton1.setBackground(new java.awt.Color(0, 102, 51)); jButton1.setForeground(new java.awt.Color(0, 102, 153)); jButton1.setText("ACTUALIZAR"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 410, 120, 30)); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "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}", "@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 LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\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 JFFornecedores() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73201853", "0.7291607", "0.7291607", "0.7291607", "0.7285772", "0.7248832", "0.721371", "0.72083634", "0.71965843", "0.7190274", "0.71847606", "0.71592176", "0.71481156", "0.70935035", "0.70799935", "0.70570904", "0.6987588", "0.6977819", "0.69557554", "0.6953564", "0.6945299", "0.6942377", "0.69355065", "0.69326174", "0.69278985", "0.69251215", "0.69248855", "0.6911974", "0.6911815", "0.68930984", "0.68926644", "0.6890748", "0.689013", "0.6889194", "0.68833196", "0.68817353", "0.68812305", "0.68779206", "0.6875422", "0.6874629", "0.687249", "0.6859694", "0.6857467", "0.6855978", "0.68553996", "0.68549085", "0.6853271", "0.6853271", "0.68530285", "0.68427855", "0.6837456", "0.68367314", "0.682818", "0.6828002", "0.6826416", "0.6823491", "0.6823434", "0.68172073", "0.6816386", "0.6810029", "0.68090403", "0.680861", "0.6807909", "0.6807168", "0.680365", "0.67955285", "0.6795115", "0.6792028", "0.6790702", "0.6789993", "0.67889", "0.67872643", "0.6782707", "0.67665267", "0.6765798", "0.6765086", "0.6755966", "0.6755084", "0.6751955", "0.6750892", "0.67433685", "0.67388666", "0.6737211", "0.6735823", "0.673344", "0.67278177", "0.67267376", "0.67203826", "0.6716326", "0.67144203", "0.6713941", "0.6707991", "0.67068243", "0.6704236", "0.6701207", "0.66996884", "0.6698865", "0.6697606", "0.6693878", "0.6691149", "0.6689875" ]
0.0
-1
Created by Andrew on 17.08.2017.
public interface GitHubService { String BASE_URL = "https://api.github.com/"; String SEARCH_USERS = "search/users"; String GET_USER = "/users/{username}"; String GET_USER_REPOS = "/users/{username}/repos"; @GET(SEARCH_USERS) Observable<SearchResult> searchUsers(@Query("q") String query, @Query("page") int page); @GET(GET_USER) Observable<GitHubUserFullProfile> getUser(@Path("username") String username); @GET(GET_USER_REPOS) Observable<List<UserRepo>> getUserRepos(@Path("username") String username, @Query("page") int page); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n public int describeContents() { return 0; }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "public void mo38117a() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n void init() {\n }", "private void init() {\n\n\t}", "public void method_4270() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void gored() {\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public void init() {}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\n public int describeContents()\n {\n return 0;\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void m23075a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }" ]
[ "0.5648486", "0.55824107", "0.55787665", "0.5564343", "0.5485983", "0.5476072", "0.5439622", "0.5434285", "0.5418019", "0.5399654", "0.5383864", "0.5350686", "0.53502166", "0.53502166", "0.5347847", "0.53121376", "0.5284861", "0.525657", "0.5255295", "0.5242737", "0.52395695", "0.523766", "0.52318543", "0.5216556", "0.52072066", "0.52072066", "0.52072066", "0.52072066", "0.52072066", "0.5199403", "0.519705", "0.51958215", "0.518331", "0.51756763", "0.51749736", "0.51677626", "0.51677626", "0.51677626", "0.51677626", "0.51677626", "0.51677626", "0.51638585", "0.51638585", "0.51638234", "0.51598555", "0.5154407", "0.5152339", "0.5148248", "0.51462585", "0.51409334", "0.5139195", "0.5138808", "0.51000804", "0.5098812", "0.50915307", "0.5089228", "0.50886726", "0.5076685", "0.5073498", "0.50622046", "0.50597703", "0.50597703", "0.50597703", "0.5052807", "0.5052807", "0.50504196", "0.50481516", "0.50477576", "0.5047199", "0.50458175", "0.50458175", "0.50458175", "0.5041194", "0.50369984", "0.503492", "0.50274503", "0.502745", "0.50264037", "0.5025441", "0.5025441", "0.5025441", "0.5021669", "0.5021233", "0.5021233", "0.5021233", "0.5021233", "0.5021233", "0.5021233", "0.5021233", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723", "0.50155723" ]
0.0
-1
TODO Autogenerated method stub
@Override public void update(Subject subject) { observerState = ((ConcreteSubject)subject).getSubjectState(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Sends a number of messages over the last 5 days
public void generate(int messages) throws IOException, TemplateException, ExecutionException, InterruptedException { // Calculate messages sent per day if (messages % 5 != 0) { throw new IllegalArgumentException("Messages must be a multiple of 5"); } int messagesPerDay = messages / 5; //for each day of last week, generate x trades //todo: skip weekend days (and holidays?) LocalDate start = dateHelper.minusWorkingDays(LocalDate.now(), 5); LocalDate end = LocalDate.now(); long timerStart = System.nanoTime(); System.out.println("Start sending swaps"); int totalSwapMessagesSent = 0; int totalRiskMessagesSent = 0; int totalAmendmentsSent = 0; for (LocalDate date = start; date.isBefore(end); date = dateHelper.addWorkingDays(date, 1)) { LocalTime startTime = LocalTime.of(8, 0); LocalTime endTime = LocalTime.of(17, 0); int messagesGenerated = 0; List<ApiFuture<String>> swapMessageIdFutures = new ArrayList<>(); List<ApiFuture<String>> riskMessageIdFutures = new ArrayList<>(); for (LocalTime time = startTime; time.isBefore(endTime) && messagesGenerated < messagesPerDay; time = time.plusNanos(random.nextInt(8, 5000000))) { Map<String, Object> data = swapGenerator.nextData(date.atTime(time)); String xml = swapGenerator.next(data); //String riskEntry = riskHelper.getSwapEntry(data); // Send swap trade String uuid = bigTableHelper.write(xml, "swap", "xml", date); ApiFuture<String> messageIdFuture = pubsubHelper.send(uuid, "swap", "xml", date); swapMessageIdFutures.add(messageIdFuture); // Send risk entry //messageIdFuture = pubsubHelper.send(riskEntry, "risk", date); //riskMessageIdFutures.add(messageIdFuture); messagesGenerated++; // increment version to simulate amendments boolean amendTrade = random.nextInt(0,1000) == 0; if (amendTrade) { String xml2 = xml.replace("<sequenceNumber>1</sequenceNumber>","<sequenceNumber>2</sequenceNumber>"); String uuid2 = bigTableHelper.write(xml2, "swap", "xml", date); ApiFuture<String> messageIdFuture2 = pubsubHelper.send(uuid2, "swap", "xml", date); swapMessageIdFutures.add(messageIdFuture2); messagesGenerated++; totalAmendmentsSent++; // Send risk entry (with incremented version) //String riskEntry2 = riskEntry.replace("\"tradeVersion\": \"1\"","\"tradeVersion\": \"2\""); //messageIdFuture = pubsubHelper.send(riskEntry2, "risk", date); //riskMessageIdFutures.add(messageIdFuture); } // workaround for DEADLINE_EXCEEDED runtime exception if (messagesGenerated % 50 == 0) { List<String> acks = ApiFutures.allAsList(swapMessageIdFutures).get(); swapMessageIdFutures.clear(); totalSwapMessagesSent += acks.size(); System.out.print("Sent " + totalSwapMessagesSent + "/" + messages + " swaps in " + (System.nanoTime() - timerStart)/1000000 + "ms"); acks = ApiFutures.allAsList(riskMessageIdFutures).get(); riskMessageIdFutures.clear(); totalRiskMessagesSent += acks.size(); System.out.println(" (" + acks.size() + " risks)"); } } // Wait for pubsub message acks List<String> acks = ApiFutures.allAsList(swapMessageIdFutures).get(); totalSwapMessagesSent += acks.size(); System.out.print("Sent " + totalSwapMessagesSent + "/" + messages + " swaps in " + (System.nanoTime() - timerStart)/1000000 + "ms"); acks = ApiFutures.allAsList(riskMessageIdFutures).get(); totalRiskMessagesSent += acks.size(); System.out.println(" (" + acks.size() + " risks)"); } long timerEnd = System.nanoTime(); System.out.println("Sent total of " + totalSwapMessagesSent + " swaps in " + (timerEnd - timerStart)/1000000 + "ms"); System.out.println("Sent total of " + totalAmendmentsSent + " amendments"); System.out.println("Sent total of " + totalRiskMessagesSent + " risks"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMessageCounterHistoryDayLimit();", "@Override\r\n public void run() {\n d5++;\r\n if (d5 == 1) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP5_EXPIRE});\r\n }\r\n\r\n }", "void setMessageCounterHistoryDayLimit(int days);", "@Override\n public void run() {\n\n try {\n LocalDateTime now = LocalDateTime.now();\n voda bot = new voda();\n\n List<Integer> notifyTime = Arrays.asList(7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23);\n int currentHour = now.getHour();\n\n ArrayList<Integer> consulted = dbmodel.MysqlCon.getFollowers();\n\n for (Integer ntime : notifyTime) {\n if (ntime == currentHour) {\n for (Integer consultedUser : consulted) {\n bot.sendTextToIdMessage(consultedUser, dbmodel.MysqlCon.getEveryDayWaterUserWaterCountView(consultedUser));\n }\n }\n }\n\n\n } catch (Exception e) {\n System.out.println();\n }\n }", "private void sendPreviousMessagesToClient() throws IOException {\n String previousMessages = messagesManager.toString(); // Gets the contents of the queue containing the last 15 messages\n outputFromServer.println(previousMessages); // Sends a message to client\n }", "public void incMessagesSent() {\n this.messagesSent++;\n }", "public int[] getDataMsgSentLast30Days() {\n\t\tint[] result = new int[30];\n\t\tint it = 0;\n\t\tfor (LocalDate date = LocalDate.now().minusDays(29); date\n\t\t\t\t.isBefore(LocalDate.now().plusDays(1)); date = date.plusDays(1)) {\n\t\t\tLocalDate day = date;\n\t\t\tcontador = 0;\n\t\t\tcurrentUser.getContacts().forEach(contact -> {\n\t\t\t\tcontador += contact.getMessages().stream()\n\t\t\t\t\t\t.filter(m -> (m.getTime().toLocalDate().getDayOfYear() == day.getDayOfYear())\n\t\t\t\t\t\t\t\t&& (m.getSpeaker() == currentUser.getId()))\n\t\t\t\t\t\t.count();\n\t\t\t});\n\t\t\tresult[it] = contador;\n\t\t\tit++;\n\t\t}\n\t\treturn result;\n\t}", "private ArrayList<Message> getMyMessages(String requestId, String msg){\n\n ArrayList<Message> myMessages = new ArrayList<Message>();\n long elapsedTime = 0;\n int i = 1;\n long startTime = System.currentTimeMillis();\n do{\n try{\n Thread.sleep(100);\n elapsedTime = System.currentTimeMillis() - startTime;\n if(elapsedTime >= 5000*i){ \n //resend message from client at 5 seconds interval, ensuring that client receives an answer if server is down \n multicast.sendMessage(msg);\n i++;\n }\n } catch(Exception e){\n System.out.print(e);\n }\n myMessages.addAll(getMessagesByRequestId(requestId));\n } while (myMessages.size() < 2 && (elapsedTime < 1000 || myMessages.size() <= 0) && elapsedTime < 30000);\n return myMessages;\n }", "@Override\n public void run() {\n while (isRun) {\n count--;\n handler.sendEmptyMessage(10);\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n }", "@Scheduled(fixedRate = 1000)\n private void send(){\n jmsTemplate.send(\"test.messages\", session -> {\n TextMessage message = session.createTextMessage(Instant.now().toString());\n return message;\n });\n }", "private void publishRequest(int number) throws MqttException {\n for (int i = 1; i < number+1; i++) {\n for (int j = 1; j < NUMBER_OF_USERS+1; j++) {\n sendRequest(fakeBooking(j, i));\n }\n }\n }", "@Override\n public void run() {\n while (count > 0) {\n count++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (count == 10)\n customHandler.sendEmptyMessage(COUNT_10);\n if (count == 15)\n customHandler.sendEmptyMessage(COUNT_15);\n\n if (count > 30) {\n customHandler.sendEmptyMessage(COUNT_COMPLETE);\n break;\n }\n\n System.out.println(tag + \":: count =\" + count);\n if (!run)\n break;\n }\n }", "void sendInterval() {\n OscilloscopeMsg omsg = new OscilloscopeMsg();\n\n omsg.set_version(version);\n omsg.set_interval(interval);\n omsg.set_token(Constants.TOKEN_SECRET_PC);\n\n System.out.println(\"Send out omsg\");\n try {\n mote.send(MoteIF.TOS_BCAST_ADDR, omsg);\n }\n catch (IOException e) {\n window.error(\"Cannot send message to mote\");\n }\n }", "@Scheduled(every = \"1s\")\n void schedule() {\n if (message != null) {\n final String endpointUri = \"azure-eventhubs:?connectionString=RAW(\" + connectionString.get() + \")\";\n producerTemplate.sendBody(endpointUri, message + (counter++));\n }\n }", "public void sendList(String msg, int count) {\n\t\t\toutput.println((count + 1) + \". \" + msg);\n\t\t}", "public int[] getDataMsgReceivedLast30Days() {\n\t\tint[] result = new int[30];\n\t\tint it = 0;\n\t\tfor (LocalDate date = LocalDate.now().minusDays(29); date\n\t\t\t\t.isBefore(LocalDate.now().plusDays(1)); date = date.plusDays(1)) {\n\t\t\tLocalDate day = date;\n\t\t\tcontador = 0;\n\t\t\tcurrentUser.getContacts().forEach(contacto -> {\n\t\t\t\tcontador += contacto.getMessages().stream()\n\t\t\t\t\t\t.filter(m -> (m.getTime().toLocalDate().getDayOfYear() == day.getDayOfYear())\n\t\t\t\t\t\t\t\t&& !(m.getSpeaker() == currentUser.getId()))\n\t\t\t\t\t\t.count();\n\t\t\t});\n\t\t\tresult[it] = contador;\n\t\t\tit++;\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testJmsBatchTimeoutExpiryWithAggregationDelay() throws Exception {\n MockEndpoint resultEndpoint = resolveMandatoryEndpoint(\"mock:result\", MockEndpoint.class);\n resultEndpoint.setSleepForEmptyTest(3000);\n resultEndpoint.expectedMessageCount(1);\n for (int i = 1; i <= 2; i++) {\n String body = \"message:\" + i;\n sendExchange(timeOutEndpointUri, body);\n }\n\n resultEndpoint.assertIsSatisfied();\n }", "private void sendPayloads(int numPayloads) {\n\t\tfor (int i = 0; i < numPayloads; i++) {\n\t\t\tint destination = rand.nextInt(allNodes.length);\n\t\t\twhile (allNodes[destination] == myAssignedID) {\n\t\t\t\tdestination = rand.nextInt(allNodes.length);\n\t\t\t}\n\t\t\tint payload = rand.nextInt();\n\t\t\tthis.sendSummation += payload;\n\t\t\tint[] traceField = { myAssignedID };\n\t\t\tOverlayNodeSendsData dataPacket = new OverlayNodeSendsData(\n\t\t\t\t\tallNodes[destination], myAssignedID, payload, 1, traceField);\n\t\t\ttry {\n\t\t\t\tnodesToSendTo.getConnections()\n\t\t\t\t\t\t.get(relayPayloadDestination(dataPacket)).getSender()\n\t\t\t\t\t\t.sendData(dataPacket.getBytes());\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t\t+ \" trouble sending packet to first hop\");\n\t\t\t}\n\t\t\tthis.sendTracker++;\n\t\t}\n\t\ttry {\n\t\t\tregistry.getSender().sendData(\n\t\t\t\t\tnew OverlayNodeReportsTaskFinished(myIPAddress,\n\t\t\t\t\t\t\tincomingMsgNodes.getPort(), myAssignedID)\n\t\t\t\t\t\t\t.getBytes());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" trouble reporting task finished.\");\n\t\t}\n\t}", "private void sendNotifications() {\n for (long sid : self.getCurrentAndNextConfigVoters()) {\n QuorumVerifier qv = self.getQuorumVerifier();\n ToSend notmsg = new ToSend(\n ToSend.mType.notification,\n proposedLeader,\n proposedZxid,\n logicalclock.get(),\n QuorumPeer.ServerState.LOOKING,\n sid,\n proposedEpoch,\n qv.toString().getBytes(UTF_8));\n\n LOG.debug(\n \"Sending Notification: {} (n.leader), 0x{} (n.zxid), 0x{} (n.round), {} (recipient),\"\n + \" {} (myid), 0x{} (n.peerEpoch) \",\n proposedLeader,\n Long.toHexString(proposedZxid),\n Long.toHexString(logicalclock.get()),\n sid,\n self.getMyId(),\n Long.toHexString(proposedEpoch));\n\n sendqueue.offer(notmsg);\n }\n }", "public void sendVoteRequests() {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n }\n //Initiate count vote timer\n voteCountTimer = scheduleTimer((long) 5, 2);\n }", "private void sendMsgBurst(long stopTime)\n {\n for (ClientChannelInfo clientChannelInfo : _channelHandler.activeChannelList())\n {\n ProviderSession providerSession = (ProviderSession)clientChannelInfo.userSpec;\n\n // The application corrects for ticks that don't finish before the time \n // that the next update burst should start. But don't do this correction \n // for new channels.\n if(providerSession.timeActivated() == 0)\n {\n continue;\n }\n \n int ret = TransportReturnCodes.SUCCESS;\n\n // Send burst of updates\n if(ProviderPerfConfig.updatesPerSec() != 0 && providerSession.updateItemList().count() != 0)\n {\n ret = sendUpdateBurst(providerSession, _error);\n if (ret > TransportReturnCodes.SUCCESS)\n {\n \t // Need to flush\n if (!ProviderPerfConfig.useReactor()) // use UPA Channel\n {\n _channelHandler.requestFlush(clientChannelInfo);\n }\n }\n }\n \n // Send burst of generic messages\n if(ProviderPerfConfig.genMsgsPerSec() != 0 && providerSession.genMsgItemList().count() != 0)\n {\n ret = sendGenMsgBurst(providerSession, _error);\n if (ret > TransportReturnCodes.SUCCESS)\n {\n \t // Need to flush\n if (!ProviderPerfConfig.useReactor()) // use UPA Channel\n {\n _channelHandler.requestFlush(clientChannelInfo);\n }\n }\n }\n\n // Use remaining time in the tick to send refreshes.\n while(ret >= TransportReturnCodes.SUCCESS && providerSession.refreshItemList().count() != 0 && currentTime() < stopTime)\n ret = sendRefreshBurst(providerSession, _error);\n \n if(ret < TransportReturnCodes.SUCCESS)\n {\n switch(ret)\n {\n case TransportReturnCodes.NO_BUFFERS:\n if (!ProviderPerfConfig.useReactor()) // use UPA Channel\n {\n _channelHandler.requestFlush(clientChannelInfo);\n }\n break;\n default:\n \t if (!Thread.interrupted())\n \t {\n \t\t System.out.printf(\"Failure while writing message bursts: %s (%d)\\n\", _error.text(), ret);\n \t\t if (!ProviderPerfConfig.useReactor()) // use UPA Channel\n {\n \t\t _channelHandler.closeChannel(clientChannelInfo, _error); //Failed to send an update. Remove this client\n }\n else // use UPA VA Reactor\n {\n System.out.println(\"Channel Closed.\");\n \n long inactiveTime = System.nanoTime();\n getProvThreadInfo().stats().inactiveTime(inactiveTime);\n \n --_connectionCount;\n \n // unregister selectableChannel from Selector\n try\n {\n SelectionKey key = clientChannelInfo.reactorChannel.selectableChannel().keyFor(_selector);\n key.cancel();\n }\n catch (Exception e) { } // channel may be null so ignore\n \n if (providerSession.clientChannelInfo().parentQueue.size() > 0)\n {\n providerSession.clientChannelInfo().parentQueue.remove(providerSession.clientChannelInfo());\n }\n\n clientChannelInfo.reactorChannel.close(_errorInfo); //Failed to send an update. Remove this client\n }\n \t }\n break;\n }\n }\n else if (ret > TransportReturnCodes.SUCCESS)\n {\n // need to flush\n if (!ProviderPerfConfig.useReactor()) // use UPA Channel\n {\n _channelHandler.requestFlush(clientChannelInfo);\n }\n }\n }\n }", "void sendRetryMessage(int retryNo);", "public void testMaximumMessages() throws Exception {\n for (int i = 0; i < 1024 + 1; i++) {\n sendMessage(i);\n waitForMs(50);\n }\n\n sendMessage(0);\n waitForMs(40);\n // Check if the oldest one has been already evicted.\n CellBroadcastMessage cbmTest =\n (CellBroadcastMessage) mServiceIntentToVerify.getExtras().get(\"message\");\n CellBroadcastMessage cbm = new CellBroadcastMessage(createMessage(0));\n\n compareCellBroadCastMessage(cbm, cbmTest);\n mActivityIntentToVerify = null;\n }", "public synchronized void setHistoryFromChat(int numberOfStrings, String clientEmail) {\n }", "void sendMessage(int cycleCount, int index, int offset, long time)\n {\n Message msg = handler.obtainMessage(state, index, offset); //pos.offset);\n handler.sendMessage(msg);\n }", "private void check() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date date = new Date();\n Date date2 = new Date();\n\n Calendar calendar = Calendar.getInstance();\n date = calendar.getTime();\n\n // Se traen todos los miembros.\n Iterator e = memberBroker.getList(\"name\", \"ASC\");\n membersData member;\n accountsData account;\n //Calendar hoy = Calendar.getInstance();\n StringBuffer managerBody = new StringBuffer(\"\");\n StringBuffer memberBody = new StringBuffer(\"\");\n sendMail sm = new sendMail();\n\n\n while (e.hasNext()) { \n member = new membersData();\n account = new accountsData();\n member = (membersData) e.next();\n account=(accountsData) accountBroker.getData(member.getId_account());\n \n \n System.out.println(\"CHECKING (\" + member.getname() + -+member.getid() + -+member.getId_account() + \")\");\n\n //String mainURL = TMSConfigurator.getMainURL();\n String mainURL = account.getMain_url();\n managerBody = new StringBuffer(\"\");\n\n memberBody = new StringBuffer(\"\");\n\n // Se toma la fecha de hoy y la fecha de expiracion y se calcula la diferencia\n date2 = member.getExpired_date();\n long days = daysBetween(new Date(date.getTime()), new Date(date2.getTime()));\n \n if (days == 1) {\n System.out.println(\"un dia antes\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n\n }\n if (days == 0) {\n System.out.println(\"ultimo dia\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n if (days == 7) {\n System.out.println(\"a una semana\");\n memberBody.append(\"Cuenta: \" + member.getname() + \"<br>\");\n memberBody.insert(0, \"La cuenta esta apunto de expirar le queda \" + days + \".<br>\");\n sm.sendCheckTasks(member.getemail_work(), memberBody.toString());\n\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + member.getname() + \"<br>\");\n managerBody.insert(0, \"La cuenta esta apunto de expirar le queda \"+days+\".<br>\");\n \n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n sm.sendCheckTasks(account.getEmail(),\n managerBody.toString());\n }\n /*if (hoy.getTimeInMillis() > end) {\n // Ya estas atrasado mas alla del umbral maximo permitido!!\n System.out.println(\"\\t\\t\\tAtrasada!!\");\n if (atrasadoEquipo == false) {\n // Al menos un miembro del equipo esta atrazado.\n managerBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n atrasadoEquipo = true;\n }\n if (atrasado == false) {\n // Este member no estaba atrasado, se agrega el encabezado para\n // su email. \n memberBody.append(\"Proyecto: \" + proyecto.getname() + \"<br>\");\n managerBody.append(\"<BLOCKQUOTE>Miembro: \" + team.getparentMember().getname() + \"<br>\");\n }\n if (team.getparentMember().getprofile().equals(\"0\") ||\n team.getparentMember().getprofile().equals(\"1\")) {\n // Siempre el mensaje de atrazo, pero no es un usuario externo\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n } else {\n // Se trata de un usuario del cliente\n memberBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/portalTasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" +\n \"</BLOCKQUOTE>\");\n }\n managerBody.append(\"<BLOCKQUOTE>Tarea (<a href='\" + mainURL + \"/tasks.do?operation=view&id=\" +\n task.getid() + \"'>\" + task.getname() + \"</a>):\\tAtrasada<br>\" + \"\\t Asignada a: \" +\n (task.getassigned_to() == 0 ? \"No Asignada\" : task.getparentAssigned().getname()) +\n \"</BLOCKQUOTE>\");\n // Se cambia el valor\n atrasado = true;\n } else {\n System.out.println(\"\\t\\t\\tOK!!\");\n }\n // Se le envia el email al miembro del equipo si y solo si esta atrazado\n if (atrasado) {\n // enviar correo al usuario\n memberBody.insert(0, \"Las siguientes tareas est&aacute;n atrasadas m&aacute;s all&aacute; del umbral de tolerancia permitido.<br>\");\n managerBody.append(\"</BLOCKQUOTE>\");\n sm.sendCheckTasks(team.getparentMember().getemail_work(),\n memberBody.toString());\n }\n // Si alguien del proyecto esta atrazado se envia la lista de cada member\n // al administrador\n if (atrasadoEquipo) {\n managerBody.insert(0, \"Las siguientes tareas est&aacute;n atrasadas m&aacute;s all&aacute; del umbral de tolerancia permitido.<br>\");\n sm.sendCheckTasks(proyecto.getparentOwner().getemail_work(),\n managerBody.toString());\n }\n */\n\n\n // while de miembros\n\n\n }\n }", "public void run() {\n while (true) {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (connectionsPool < 10) {\n NotificationService.getInstance().sendEmail(\"operator@telco.com\", \"BaseStation \" + id + \" is really busy\", \"We're running out of free connection on base station!\");\n } else {\n System.out.println(\"connection pool ok\");\n }\n }\n }", "public ArrayList<Message> getTop10Messages(String logUser, String friendUser, String date){\n ArrayList<Message> myMessageList = new ArrayList<>();\r\n //System.out.println(\"getTop10Date: \" + date);\r\n this.query = \"SELECT * FROM cristomessenger.message\\n\" +\r\n \"WHERE ((id_user_orig = \\\"\" + logUser + \"\\\" and id_user_dest = \\\"\" + friendUser + \"\\\") or (\"\r\n + \"id_user_orig = \\\"\" + friendUser + \"\\\" and id_user_dest = \\\"\" + logUser + \"\\\")) and \"\r\n + \"datetime < \\\"\" + date + \"\\\" \" +\r\n \"order by datetime asc LIMIT 10;\";\r\n try {\r\n this.ConnectDatabase();\r\n this.QuerySQLExecute();\r\n while (this.rs.next()) {\r\n Message MessageAux = new Message();\r\n MessageAux.setTransmitter(this.rs.getString(\"id_user_orig\"));\r\n MessageAux.setReceiver(this.rs.getString(\"id_user_dest\"));\r\n MessageAux.setText(this.rs.getString(\"text\"));\r\n MessageAux.setDate(this.rs.getString(\"datetime\"));\r\n myMessageList.add(MessageAux);\r\n }\r\n //System.out.println(\"getTop10MSG: \" + myMessageList.size());\r\n } catch (SQLException e ) {\r\n System.out.println(e.getMessage());\r\n } finally {\r\n if (this.stmt != null) { \r\n try {\r\n this.stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UsersModel.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n \r\n return myMessageList;\r\n }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public synchronized void checkTimeoutMessages() {\n SQSMessage SQSMessage;\n String receiptHandler;\n long currentTimeStampDifference;\n for (Map.Entry pairs : receivedMessages.entrySet()) {\n SQSMessage = (SQSMessage) pairs.getValue();\n currentTimeStampDifference = System.currentTimeMillis() - SQSMessage.getReceivedTimeStamp();\n if (currentTimeStampDifference > SQSMessage.getDefaultVisibilityTimeout()) {\n receiptHandler = (String) pairs.getKey();\n SQSMessageQueue.addFirst(SQSMessage);\n receivedMessages.remove(receiptHandler);\n }\n }\n }", "void requestRebuildNextTime(String message);", "@Override\n public void run() {\n int time = 59;\n while (time >= -1) {\n try {\n Message message = new Message();\n message.what = AppConfig.CHECKCODE;\n message.obj = time;\n handler.sendMessage(message);\n Thread.sleep(1000);\n time--;\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "@Scheduled(cron = \"0 1 * * * *\")\n public void dailyTasks(){\n logger.info(\"Daily task started\");\n\n logger.info(\"Sending overdue emails\");\n List<Payment> overduePayments = new ArrayList<>();\n List<Payment> futurePayments = new ArrayList<>();\n paymentService.addPendingPayments(futurePayments, overduePayments);\n for(Payment overdue: overduePayments){\n Client client = overdue.getClient();\n if(client == null) throw new IllegalStateException(\"Payment \" + overdue.getId() + \" should have a valid client \");\n String email = client.getEmail();\n if(StringUtils.isEmpty(email)) continue;\n overdueEmailBody.replaceAll(\"\\\\$name\", client.getFirstName()).replaceAll(\"\\\\$unit\", overdue.getUnit().getName()).replaceAll(\"\\\\amount\", String.valueOf(overdue.getAmount()));\n emailSender.sendEmail(email, overdueEmailSubject, overdueEmailBody );\n }\n for(Payment payment: futurePayments){\n Client client = payment.getClient();\n if(client == null) throw new IllegalStateException(\"Payment \" + payment.getId() + \" should have a valid client \");\n String email = client.getEmail();\n if(StringUtils.isEmpty(email)) continue;\n futureEmailBody.replaceAll(\"\\\\$name\", client.getFirstName()).replaceAll(\"\\\\$unit\", payment.getUnit().getName()).replaceAll(\"\\\\amount\", String.valueOf(payment.getAmount()));\n emailSender.sendEmail(email, futureEmailSubject, futureEmailBody );\n }\n\n }", "@Override\n public void startTimeLoop() {\n MyLog.log(\"startTimeLoop::\");\n // handler.sendEmptyMessage(5);\n }", "void resetReceivedEventsCount();", "protected void sendEmails() {\n\t\tboolean sent;\n\t\tVector<Email> unsent = new Vector<Email>();\n\n\t\twhile (messages.size() > 0) {\n\t\t\tEmail email = messages.remove(0);\n\t\t\tsent = sendEmail(email);\n\n\t\t\t// If the mail can not be sent, trace the email\n\t\t\tif (!sent) {\n\t\t\t\temail.increaseRetryCount();\n\t\t\t\t// Only if maximum retries has not exceed\n\t\t\t\tif (email.getRetryCount() <= maxRetries) {\n\t\t\t\t\tunsent.add(email);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// At the end of the loop, store all emails which were not able to be sent, for \n\t\t// later sending.\n\t\tmessages.addAll(unsent);\n\t}", "public void startSendingStockReadings(final long noOfStockEvents) {\n\n ExecutorService xrayExecutor = Executors.newSingleThreadExecutor();\n\n xrayExecutor.submit(new Runnable() {\n public void run() {\n LOG.debug(getStartingMessage());\n int count = 0;\n while (count < noOfStockEvents) {\n StockEvent se = new StockEvent(\"AMZN\", \"Amazon\", \"stock\",\n new Date(), new Random().nextInt(30) + 20);\n eventHandler.handle(se);\n count++;\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n LOG.error(\"Thread Interrupted\", e);\n }\n }\n }\n });\n\n xrayExecutor.shutdown();\n }", "@Scheduled(cron = \"0 * * * * *\")\r\n\tpublic void run() {\r\n\r\n\t\tString[] emailArray = new String[emailRecipientList.size()];\r\n\t\temailArray = emailRecipientList.toArray(emailArray);\r\n\t\tLOGGER.debug(\"Sending a email to \" + emailArray);\r\n //Current time\r\n\t\tLocalDateTime now = LocalDateTime.now();\r\n\t\t//Current time - 1 hour\r\n\t\tLocalDateTime after = LocalDateTime.now().minusHours(1);\r\n\r\n\t\tTimestamp dateCreatedBefore = Timestamp.valueOf(now);\r\n\t\tTimestamp dateCreatedAfter = Timestamp.valueOf(after);\r\n\t\t// Search for file id's added for the last hour \r\n\t\tList<Long> ids = infoDataService.searchFileId(null, null, \r\n\t\t\t\tdateCreatedBefore, dateCreatedAfter, null, null,null);\r\n\t\t// Create a email body \r\n\t\tStringBuffer emailBody =new StringBuffer();\r\n\t\temailBody.append(\"New Files Uploaded:\");\r\n for(Long id : ids) {\r\n \ttry {\r\n \t FileInfo metaData = infoDataService.findRecordById(id);\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"*******************************************************\");\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"ID:\"+metaData.getId());\r\n \t emailBody.append(\", ORIGINAL NAME: \"+metaData.getFileName());\r\n \t Long size = metaData.getSize()/1000;\r\n \t emailBody.append(\", SIZE (KB):\"+size);\r\n \t emailBody.append((metaData.getPublicAccess())?\", PUBLIC ACCESS: true\":\" , PUBLIC ACCESS: false\");\r\n \t emailBody.append(\", TIME UPLOADED:\"+metaData.getUploadedTs().toLocalDateTime());\r\n \t emailBody.append(System.lineSeparator());\r\n \t}\r\n \tcatch(Exception e) {\r\n \t\temailBody.append(Utilities.NO_DATA_FOR_ID+id); \t\t\r\n \t}\r\n }\r\n // Sending a scheduled email \r\n SimpleMailMessage msg = new SimpleMailMessage();\r\n\t\tmsg.setTo(emailArray);\r\n\t\tmsg.setSubject(Utilities.SCHEDULER_SUBJECT);\r\n\t\tmsg.setText(emailBody.toString());\r\n\t\tmsg.setFrom(emailSender);\r\n\r\n\t\t// TODO\r\n\t\t// Uncomment the next line after adding a correct credentials to the\r\n\t\t// application.properies file\r\n\t\t// javaMailSender.send(msg);\r\n\r\n\t}", "@Override\r\n public void run() {\n d1++;\r\n if (d1 == 1) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP1_EXPIRE});\r\n }\r\n if (d1 == 10) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP1_EXPIRE_N});\r\n }\r\n }", "void createDailyMessageRaport(String stringCurrentDate);", "@Override\r\n public void run() {\n d7++;\r\n if (d7 == 1) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP7_EXPIRE});\r\n }\r\n }", "public static void sendMessagesByNumber(int number, String directory, Pollable jmsInstance) throws IOException {\n List<File> files = JmsUtils.getMessagesFromDirectory(directory);\n for (int i = 0; i < number; i++) {\n int index = i % files.size();\n String text = FileUtils.readFileToString(files.get(index));\n String threadNumber = Long.toString(Thread.currentThread().getId());\n jmsInstance.send(text, System.currentTimeMillis(), threadNumber, text.length(), \"Rex-thread\", \"\");\n logger.info(String.format(\">> Message[%s] has been sent\", i));\n }\n }", "@Scheduled(fixedDelay = 3000)\n public void sendAdhocMessages() {\n log.info(loadQuotations.loadLastQuotations());\n simpMessagingTemplate.convertAndSend(\"/topic/user\", loadQuotations.loadLastQuotations());\n }", "public static void send(String msg) {\n for (int i = 0; i < 10000; i++) {\n EchoClient.os.println(msg + \" \" + i);\n }\n\n }", "protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsendData(\"<ping />\");\n\t}", "@Override\n\tpublic void onMail(Message m) {\n\n\t\tHashMap<String,String> map = new HashMap<String,String>();\n\t\tmap.put(\"a\",\"A\");\n\t\tmap.put(\"b\",\"B\");\n\t\tmap.put(\"long\",new String(new byte[10000]));\n\t\tHeader header = new Header(map);\n\t\ttry {\n\t\t\tif (count % burstSize == 0) {\n\t\t\t\tfor (int i=0; i < burstSize; i++)\n\t\t\t\t\tsend(new Message(header, new Body()));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tcount++;\n\t\tif (count % 1000 == 0) {\n\t\t\tlong nano = System.nanoTime() - time;\n\t\t\tlong sec = nano / 1000000000L;\n\t\t\tfloat mps = count * 1.0F / sec;\n\t\t\tlogger.info(String.format(\"Count: %20d Msg/s: %5.2f\", count, mps));\n\t\t\t//log.info(String.format(\"%n%s%n\", m));\n\t\t}\n\t\t// for (String s : m.getHeader().keySet())\n\t\t//\tSystem.out.println(s);\n\t}", "private void scheduleTasks() {\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Prepare JSON Ping Message\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 7000, 282000);\n\t}", "private void sendQueuedNotifications() {\n Notification n;\n while ((n = pendingNotifs.poll()) != null) {\n broadcaster.sendNotification(n);\n }\n }", "@Override\r\n public void run() {\n d4++;\r\n if (d4 == 1) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP4_EXPIRE});\r\n }\r\n if (d4 == 10) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP4_EXPIRE_N});\r\n }\r\n }", "public void send(Message message) {\n\t\tthis.clockSer.addTS(this.localName);\n\t\t((TimeStampedMessage)message).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\n\t\ttry {\n\t\t\tparseConfig();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessage.set_source(localName);\n\t\tmessage.set_seqNum(currSeqNum++);\n\t\t\t\t\n\t\tRule rule = null;\n\t\tif((rule = matchRule(message, RuleType.SEND)) != null) {\n\t\t\tif(rule.getAction().equals(\"drop\")) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"duplicate\")) {\n\t\t\t\tMessage dupMsg = message.makeCopy();\n\t\t\t\tdupMsg.set_duplicate(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/* Send 'message' and 'dupMsg' */\n\t\t\t\tdoSend(message);\n\t\t\t\t/* update the timestamp */\n\t\t\t\tthis.clockSer.addTS(this.localName);\n\t\t\t\t((TimeStampedMessage)dupMsg).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\t\t\t\tdoSend(dupMsg);\n\t\t\t\t\n\t\t\t\t/* We need to send delayed messages after new message.\n\t\t\t\t * This was clarified in Live session by Professor.\n\t\t\t\t */\n\t\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\t\tdoSend(m);\n\t\t\t\t}\n\t\t\t\tdelaySendQueue.clear();\n\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"delay\")) {\n\t\t\t\tdelaySendQueue.add(message);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"We get a wierd message here!\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdoSend(message);\n\t\t\t\n\t\t\t/* We need to send delayed messages after new message.\n\t\t\t * This was clarified in Live session by Professor.\n\t\t\t */\n\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\tdoSend(m);\n\t\t\t}\n\t\t\tdelaySendQueue.clear();\n\t\t}\n\t\t\n\t}", "public void onRecieve(RoundTimeMessage message) {\n\n\n }", "static void sendNotifications() {\n\t\testablishConnection();\n\t\tSystem.out.println(\"sending multiple notificatiosn\");\n\t}", "public void run() {\n int counter = 0;\n while (true) {\n counter++;\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(counter);\n if (counter > 5) break;\n }\n }", "public void grantTickets(){\n //45mins\n if (tempTime >= 10){\n addTicket();\n }\n tempTime = 0;\n }", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "private void getLatestMessageFromSocialService(String[] decrList) {\n Request request = new Request(Request.RequestCode.MESSAGES);\n prototype.sendRequest(serviceName,request,getNewResponseListener(decrList));\n }", "List<ChatMessage> getMessages(int roomId, int count) throws IOException;", "public void a(int i) {\n JobInfo.Builder builder = new JobInfo.Builder(2050, new ComponentName(this.f79003a.getPackageName(), AccsJobService.class.getName()));\n long j = (long) (i * PushConstants.PUSHSERVICE_INFO_SENDMESSAGE_BY_NOTIFICATIONSERVICE);\n ((JobScheduler) this.f79003a.getSystemService(\"jobscheduler\")).schedule(builder.setMinimumLatency(j).setOverrideDeadline(j).setRequiredNetworkType(1).build());\n }", "private void sendTimelineNotification(int timelineUpdateCount) {\n\t\tLog.d(TAG, \"sendTimelineNotification'ing\");\n\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(this, -1,\n\t\t new Intent(this, TwitterTimelineActivity.class),\n\t\t PendingIntent.FLAG_UPDATE_CURRENT);\n\t\tthis.noti.when = System.currentTimeMillis();\n\t\tthis.noti.flags |= Notification.FLAG_AUTO_CANCEL;\n\t\tCharSequence notiTitle = this.getText(R.string.titleNotification);\n\t\tCharSequence notiSummary = this.getString(R.string.descNotification, timelineUpdateCount);\n\t\t\n\t\tthis.noti.setLatestEventInfo(this, notiTitle, notiSummary, pendingIntent);\n\t\tthis.notiManager.notify(0, this.noti);\n\t\t\n\t\tLog.d(TAG, \"sendNotificationed\");\n\t}", "long getReceivedEventsCount();", "@Override\n public void run(){\n while(true){\n ArrayList<Thread> threads = new ArrayList<Thread>();\n \n //construct the string\n String message = String.format(\"hb|%d|%d\", serverPort, sequence);\n\n //have a thread to send heart beat\n for(ServerInfo peer : serverStatus.keySet()){\n //pass it to the client runnable\n Thread thread = new Thread(new SenderRunnable(peer, message));\n threads.add(thread);\n thread.start();\n }\n\n //wait for the completion\n for(Thread thread : threads){\n try{\n thread.join();\n }catch(Exception e){}\n \n \n }\n\n //increment the sequence by 1\n sequence += 1;\n\n //sleep for 2 secs\n try{\n Thread.sleep(2000);\n }catch(InterruptedException e){\n //System.err.println(e);\n }\n\n }\n }", "private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }", "void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}", "public void sendHeartbeat();", "String getMaximumRedeliveryDelay();", "@Override\n public void broadcast(T msg) {\n for (Integer i : activeUsers.keySet()) {\n this.send(Integer.valueOf(i), msg);\n }\n\n }", "private void createMessagesForPhones() {\n int msgQtd = getMessageQuantityInterval().randomValue();\n getEvents().forEach((event)->{\n Phone originPhone = event.getOriginPhone();\n \n Message message = new Message(originPhone, event.getDestinationPhone(), MessageStatus.PHONE_TO_ANTENNA);\n if ( msgQtd > 0 ) {\n message.setSendQuantity(msgQtd);\n message.setSendAgain(false);\n \n originPhone.addMessageToOutbox(message);\n }\n });\n }", "public void incrementSent() {\n\t\tmessagesSent.incrementAndGet();\n\t}", "@Override\n\tpublic void run() {\n\n\t\tint loop = 0;\n\n\t\tdo {\n\t\t\tthis.onCallTeam.setCountTimer(loop);\n\t\t\tloop++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tSystem.out.println(\"Interrupted\");\n\t\t\t}\n\t\t} while (loop != 900);// 15 minutes\n\n\t}", "public void setMessageCount(Integer messageCount) {\r\n this.messageCount = messageCount;\r\n }", "public void getSentMessages(Long since, Long max, AsyncHttpResponseHandler handler) {\n\n String apiUrl = getApiUrl(\"direct_messages/sent.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"count\", 25);\n if (since != null) {\n params.put(\"since_id\", since);\n } else if (max != null) {\n params.put(\"max_id\", max);\n }\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "public void getUsersByDays() throws IOException, SystemException {\n List<UserSubscribeDTO> usersList = planReminderService.getUsersByDays();\n LOGGER.info(\"userLIst Recievec:\" + usersList);\n shootReminderMails(usersList);\n }", "public synchronized void incrementNumSent(){\n numSent++;\n }", "public void sendAll(String message) {\n for (String id : sessions.keySet()) {\n send(id, message);\n }\n }", "public ArrayList<Message> getMessages(String logUser, String friendUser, String date){\n String dateAux = date.split(\" \")[0];\r\n String lastDay = sdf.format(Timestamp.valueOf(date).getTime() - (24*60*60*1000));\r\n lastDay = lastDay.split(\" \")[0];\r\n ArrayList<Message> myMessageList = new ArrayList<>();\r\n this.query = \"SELECT * FROM cristomessenger.message\\n\" +\r\n \"WHERE ((id_user_orig = \\\"\" + logUser + \"\\\" and id_user_dest = \\\"\" + friendUser + \"\\\") or (\"\r\n + \"id_user_orig = \\\"\" + friendUser + \"\\\" and id_user_dest = \\\"\" + logUser + \"\\\")) and \"\r\n + \"datetime >= \\\"\" + lastDay + \"%\\\" and \" + \"datetime < \\\"\" + date + \"\\\" order by datetime asc;\";\r\n //System.out.println(\"getMessagesDate: \" + date);\r\n try {\r\n this.ConnectDatabase();\r\n this.QuerySQLExecute();\r\n while (this.rs.next()) {\r\n Message MessageAux = new Message();\r\n MessageAux.setTransmitter(this.rs.getString(\"id_user_orig\"));\r\n MessageAux.setReceiver(this.rs.getString(\"id_user_dest\"));\r\n MessageAux.setText(this.rs.getString(\"text\"));\r\n MessageAux.setDate(this.rs.getString(\"datetime\"));\r\n myMessageList.add(MessageAux);\r\n }\r\n //System.out.println(\"getMessages: \" + myMessageList.size());\r\n } catch (SQLException e ) {\r\n System.out.println(e.getMessage());\r\n } finally {\r\n if (this.stmt != null) { \r\n try {\r\n this.stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UsersModel.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n if (myMessageList.isEmpty()) {\r\n //myMessageList = getTop10Messages(logUser,friendUser,date);\r\n }\r\n return myMessageList;\r\n }", "@Test\n public void shouldFireNotifyMultipleTimes() throws Exception {\n int target = 6;\n CountDownLatch latch = new CountDownLatch(1);\n EventCountClient eventCountClient = new EventCountClient(target, latch);\n\n try (EventStream streamEvents = new WebSocketEventStream(uri, new Token(\"token\"), 0, 0, 0, eventCountClient)) {\n latch.await(30, TimeUnit.SECONDS);\n Assert.assertTrue(eventCountClient.counter == target);\n }\n }", "List<Integer> getIdUsersToSendOtherAlert( Timestamp alertMaxDate, Timestamp timeBetweenAlerts, int maxNumberAlerts );", "List<Message> listMessages(final long sinceMessageId,\n final int count);", "public static void startSendingMails(int mailsCount, int threadsCount) {\n\t\tExecutorService executor = Executors.newFixedThreadPool(threadsCount); \n\t\tSystem.out.println(\"\\nSending mails...\\n\");\n\t\tif (mailsCount > 0) {\n\t\t\t\n\t\t\tint batchSize = getBatchSize(mailsCount, threadsCount);\n\t\t\t\n\t\t\t// Start [threadsCount] MailSender threads\n\t\t\tfor (int i=1; i<=threadsCount; i++) {\n\t\t\t\tThread thread = new Thread(new MailSender(i, batchSize));\n\t\t\t\texecutor.execute(thread);\n\t\t\t}\n\t\t}\n\t\texecutor.shutdown();\n\t\ttry {\n\t\t\texecutor.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} \n\n\t}", "@Scheduled(fixedRate = 2000)\n private void doSendRpcUsage() {\n List<MethodCallDTO> items = stats.values()\n .stream()\n .map(stat -> new MethodCallDTO(\n stat.name,\n stat.count.longValue(),\n stat.lastCall.longValue(),\n stat.lastResult.get(),\n stat.curl))\n .sorted((s1, s2) -> s1.getMethodName().compareTo(s2.getMethodName()))\n .collect(Collectors.toList());\n\n clientMessageService.sendToTopic(\"/topic/rpcUsage\", items);\n }", "void messageSent();", "public void retrySending()\n {\n try\n {\n EmailConfig emailConfig = getEmailConfig();\n int maxRetries = emailConfig.getMaxRetries().intValue();\n boolean saveFailedMails = emailConfig.getSaveFailedEmails();\n List messageFileList = getMessagesInFolder(IEmailConfiguration.EMAIL_RETRY_PATH);\n \n if (maxRetries > 0 && messageFileList.size()>0)\n {\n Session session = getMailSession(true);\n for (Iterator i = messageFileList.iterator(); i.hasNext();)\n {\n resendMail(session, (File)i.next(), maxRetries, saveFailedMails);\n }\n }\n }\n catch (Throwable th)\n {\n AlertLogger.warnLog(CLASSNAME,\"retrySending\",\"Error in retrySending\",th);\n }\n }", "@Override\n public int numberOfMessages() {\n return messages.size();\n }", "@Scheduled(fixedRate=20000)\n\tpublic void generateMessages()\n\t{\t\t\n\t\tsynchronized (map_)\n\t\t{\n\t\t\tif (!map_.isEmpty())\n\t\t\t{\n\t\t\t\tint index = generateIndex(map_.size());\n\t\t\t\tint messageIdx = generateIndex(1000);\n\t\t\t\tString topic = topics_.get(index);\n\t\t\t\tBroadcaster b = map_.get(topic);\n\t\t\t\tUserDTO dto = dtoMap_.get(topic);\n\t\t\t\tdto.setAvailability(\"\" + messageIdx);\n\t\t\t\tString stringified;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tstringified = mapper_.writeValueAsString(dto);\n\t\t\t\t\tSystem.out.println(\"broadcasting to topic \" + topic + \" message: \" + stringified);\n\t\t\t\t\tb.broadcast(stringified);\n\t\t\t\t} catch (JsonGenerationException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JsonMappingException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"publisher map was empty, skipping this time\");\n\t\t\t}\n\t\t}\n\t}", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "private void createScheduledNotification(List<SessionModel> values, int test)\n\t{\n\n\t\t// Get new calendar object and set the date to now\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTimeInMillis(System.currentTimeMillis());\n\t\t// Add defined amount of days to the date\n\n\t\tgetBaseContext();\n\t\t// Retrieve alarm manager from the system\n\t\tAlarmManager alarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);\n\n\t\tfor (SessionModel element : values) {\n\n\t\t\tString[] ymd = element.getStartDateSplit();\n\t\t\tint month = Integer.parseInt(ymd[0]);\n\t\t\tint date = Integer.parseInt(ymd[1]);\n\t\t\tint year = Integer.parseInt(ymd[2]);\n\n\t\t\tString[] hm = element.getStartTimeSplit();\n\t\t\tint hour = Integer.parseInt(hm[0]);\n\t\t\tint min = Integer.parseInt(hm[1]);\n\n\t\t\tcalendar.set(Calendar.YEAR, year);\n\t\t\tcalendar.set(Calendar.MONTH, month);\n\t\t\tcalendar.set(Calendar.DATE, date);\n\t\t\tcalendar.set(Calendar.HOUR, hour);\n\t\t\tcalendar.set(Calendar.MINUTE, min);\n\n\t\t\tlong secs = calendar.getTimeInMillis();\n\t\t\tsecs -= 600000;\n\t\t\tcalendar.setTimeInMillis(secs);\n\t\t\tLog.w(\"AlarmManager-TDC2014 \", \"Setting Alarm Time : \" + calendar.toString());\n\t\t\tint id = (int) System.currentTimeMillis();\n\t\t\tIntent intent = new Intent(\"net.redirectme.apps.SESSION_NOTIFY\");\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_TEXT, element.getId());\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_TITLE, element.getName());;\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_SUBJECT, element.getAuthor());\n\n\t\t\tint trackIcon = element.getTrackIcon();\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_SHORTCUT_ICON, trackIcon);\n\n\n\t\t\tPendingIntent pendingIntent = PendingIntent.getBroadcast(this, id, intent, PendingIntent.FLAG_ONE_SHOT);\n\t\t\talarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);\n\n\t\t}\n\t\tif(test==1)\n\t\t{\n\t\t\t// 5secs from now\n\t\t\tcalendar.setTimeInMillis(System.currentTimeMillis() + 10000);\n\t\t\tLog.w(\"AlarmManager-TEST \", \"Setting Alarm Time : \" + calendar.getTime());\n\t\t\tint id = (int) System.currentTimeMillis();\n\t\t\tIntent intent = new Intent(\"net.redirectme.apps.SESSION_NOTIFY\");\n\t\t\tlong value = 1;\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_TEXT, value);\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_TITLE, \"Test Session\");;\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Sanjeev BA\");\n\t\t\tintent.putExtra(android.content.Intent.EXTRA_SHORTCUT_ICON, R.drawable.track_43_general);\n\n\t\t\tPendingIntent pendingIntent = PendingIntent.getBroadcast(this, id, intent, 0);\n\t\t\talarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);\n\t\t}\n\n\t}", "@Override\n\tpublic void onMessageReceived(Message msg) {\n\t\tif ( msgSendTimes.containsKey(\"\"+msg.Payload)) {\n\t\t\tlong startTime = msgSendTimes.get((String)msg.Payload);\n\t\t\tlong elapsedTime = System.nanoTime() - startTime;\n\t\t\tmsgSendTimes.remove((String)msg.Payload);\n\t\t\tmsgTimes.add(elapsedTime);\n\t\t\tSystem.out.println(elapsedTime / 1000000000f);\n\t\t}\n\t}", "public void sendDiscrepancyEmail() throws Exception;", "@Scheduled(fixedRateString = \"PT120M\")\n\tvoid someJob(){\n//\t\tString s = \"Testing message.\\nNow time is : \"+new Date();\n////\t\tSystem.out.println(s);\n//\t\tPushNotificationOptions.sendMessageToAllUsers(s);\n//\n\t\t//get all schedules in current dayOfWeek\n\t\tCollection<Notification> notifications = notificationService.findAllByDayOfWeekAndTime();\n\t\tfor(Notification notification : notifications){\n//\t\t\tSystem.out.println(notification.toString());\n//\t\t\tSystem.out.println(!notification.getStatus());\n////\t\t\tSystem.out.println(check(notification.getStartTime()));\n//\t\t\t//check for already not sent notifications , also check for time difference < TIME_CONSTANT\n//\t\t\tif(!notification.getStatus() && check(notification.getStartTime())){\n//\t\t\t\t//send push notification\n//\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n//\t\t\t\t//mark the notification as sent\n//\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n//\t\t\t}\n\t\t\tif(checkForDayTime()){\n\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}", "public synchronized void broadcastMsg(String msg) {\n try (BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(\"chatHistory.txt\", true)));) {\n bufferedWriter.append(msg).append(\"\\n\");\n } catch (IOException e) {\n LOG.error(\"Try save history to file\", e);\n e.printStackTrace();\n }\n\n for (ClientHandler clientHandler : clients) {\n clientHandler.sendMsg(msg);\n }\n }", "public void run() {\n // If we've sent all the messages\n if (count >= bombAmount)\n {\n SwapSendButton(0);\n }\n // If we get our defuseal text\n if (bombDefuse.equals(SmsListener.messageBody))\n {\n SwapSendButton(0);\n Toast.makeText(getApplicationContext(), \"Bomb Defused\", Toast.LENGTH_SHORT).show();\n }\n else if (count < bombAmount && !bombDefuse.equals(SmsListener.messageBody))\n {\n // a delay of 0 doesn't work IRL\n // So in truth the quickest you can send a text bomb is 1 second apart\n if (delayAmount < 1)\n {\n smsManager.sendTextMessage(phoneNumber, \"ME\", messageToSend, null, null);\n handler.postDelayed(this, ((delayAmount + 1) * 1000));\n ++count;\n }\n else\n {\n smsManager.sendTextMessage(phoneNumber, \"ME\", messageToSend, null, null);\n handler.postDelayed(this, (delayAmount * 1000));\n ++count;\n }\n }\n }", "public void send_message(){\n logical_clock++;\n System.out.println(\"Send Message Clock:\" +logical_clock);\n encrypt(logical_clock);\n\n }", "public void sendFromMessageQueue() throws IOException {\n Date canSendDate = new Date(lastReceiveMsgDate.getTime() + 2000);\n if (canSendDate.before(new Date())) {\n String msg = messageQueue.poll();\n if (msg == null)\n return;\n\n output.writeBytes(msg + \"\\n\");\n }\n }", "private void sendNotifications(String userMessage) {\n if (this.notifications == null) {\n this.notifications = new ConcurrentLinkedQueue<Notification>();\n }\n \n // not sure if the synchronize is needed here, let's see ...\n // synchronized (notifications) {\n if (!this.notifications.isEmpty()) {\n ObjectName source = getObjectName();\n Notification n = new Notification(NotificationType.setOfNotifications, source, counter++,\n userMessage);\n n.setUserData(this.notifications);\n super.sendNotification(n);\n this.notifications.clear();\n // }\n }\n }", "void SendScoutBees()\n\t{\n\tint maxtrialindex,i;\n\tmaxtrialindex=0;\n\tfor (i=1;i<FoodNumber;i++)\n\t {\n\t if (trial[i]>trial[maxtrialindex])\n\t maxtrialindex=i;\n\t }\n\tif(trial[maxtrialindex]>=limit)\n\t{\n\t\tinit(maxtrialindex);\n\t}\n\t}", "@Override\n\tpublic int numberOfMessages() {\n\t\treturn 0;\n\t}", "private static void performMessageExchange(List<Integer> users, int dosIDForHour){\n // For all pairs of users, send messages from one queue to the other with queue constraints in mind.\n MobyUser mobyUser1, mobyUser2;\n Collections.sort(users);\n for (int u1 : users) {\n mobyUser1 = mobyUserHashMap.get(u1);\n mobyUser1.performDosExchangeForHour(dosIDForHour, dosNumber);\n for (int u2 : users) {\n mobyUser2 = mobyUserHashMap.get(u2);\n mobyUser1.performMessageExchangeTailDrop(mobyUser2, dosNumber, dosIDForHour);\n }\n }\n\n }", "public static String message(String count) {\n return \"SELECT * FROM \" + TableList.TABLE_MESSAGE + \" ORDER BY \" + Constants.LAST_UPDATED +\n \" DESC LIMIT \" + count;\n }" ]
[ "0.624352", "0.5965701", "0.59542716", "0.5908412", "0.5634527", "0.5626417", "0.5577251", "0.5554221", "0.5518447", "0.5499255", "0.5497783", "0.5430998", "0.54149175", "0.5413031", "0.5383724", "0.53755957", "0.53633803", "0.53156126", "0.5299498", "0.529786", "0.52928025", "0.5292286", "0.52708405", "0.5254715", "0.5251085", "0.523991", "0.5237703", "0.5230335", "0.5208175", "0.5208175", "0.5208175", "0.5200794", "0.52000195", "0.51925904", "0.5185564", "0.5181365", "0.51649076", "0.51638055", "0.514785", "0.51462126", "0.5146173", "0.514231", "0.5139002", "0.51371765", "0.5135721", "0.5125949", "0.5121576", "0.50933415", "0.50925064", "0.50789815", "0.5072446", "0.5070053", "0.5063227", "0.5055518", "0.50443053", "0.50423247", "0.50346106", "0.5032507", "0.5023235", "0.5020743", "0.50174123", "0.50141025", "0.5010815", "0.5010094", "0.50034285", "0.50009656", "0.49902737", "0.499027", "0.497825", "0.49561676", "0.4951476", "0.4948284", "0.49449354", "0.494233", "0.49392313", "0.49377826", "0.49341238", "0.49332806", "0.49327502", "0.4932471", "0.4917168", "0.49170226", "0.4915028", "0.49105337", "0.4907423", "0.49053478", "0.4899977", "0.48865202", "0.48810822", "0.4879938", "0.48799157", "0.4879209", "0.48765948", "0.48757467", "0.48677835", "0.4867591", "0.48602533", "0.4855297", "0.48545372", "0.4853652" ]
0.5749656
4
Crea un objeto para poder inflarse el layout
@Override public View getView(final int position, View convertView, ViewGroup parent) { LayoutInflater inflater = LayoutInflater.from(getContext()); View item = inflater.inflate(R.layout.lista_template, null); //Define los objetos que se encuentran en el layout TextView articulo = (TextView)item.findViewById(R.id.articulo); final TextView activo = (TextView)item.findViewById(R.id.activo); Switch btSwitch = (Switch)item.findViewById(R.id.btActivar); //Se asigna los valores del Adapter articulo.setText(getItem(position).getArticulo()); if (getItem(position).isActivo()) activo.setText("Activo"); else activo.setText("Inactivo"); //Se crea el evento del Switch btSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked) activo.setText("Activo"); else activo.setText("Inactivo"); getItem(position).setActivo(isChecked); } }); return item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Layout() {\n }", "public LayoutCampo() {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for (int i = 0; i < 4; i++) {\n matrix[0][i] = Estados.EXTERNO;\n }\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = Estados.ROOM;\n }\n\n matrix[2][1] = Estados.ROOM_EMPTY;\n matrix[2][2] = Estados.ROOM_EMPTY2;\n\n matrix[2][0] = Estados.ACESSO_EXTERNO;\n matrix[2][3] = Estados.ACESSO_INTERNO;\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = Estados.ROOM;\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[4][i] = Estados.EXTERNO2;\n }\n\n }", "protected abstract void iniciarLayout();", "Board createLayout();", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}", "public OverlayLayout() {}", "protected LayoutManager createLayout() {\n return new SpinnerLayout(); }", "private VerticalLayout getCanvas() {\n return new VerticalLayout();\n }", "public Object getLayoutInfo() { return _layoutInfo; }", "private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void init() {\n mainll = new LinearLayout(getContext());\n mainll.setId(View.generateViewId());\n mainll.setLayoutParams(new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT, ActionBar.LayoutParams.WRAP_CONTENT));\n mainll.setOrientation(LinearLayout.VERTICAL);\n\n map = new HashMap<>();\n\n RelativeLayout mainrl = new RelativeLayout(getContext());\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,\n ActionBar.LayoutParams.WRAP_CONTENT);\n\n params.addRule(RelativeLayout.BELOW, mainll.getId());\n\n save = new Button(getContext());\n\n save.setLayoutParams(params);\n save.setText(\"save\");\n\n mainrl.addView(mainll);\n mainrl.addView(save);\n addView(mainrl);\n }", "private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "public void createInitialLayout(IPageLayout layout) {\n \n\t}", "private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}", "private HorizontalLayout getMainContainer() {\n HorizontalLayout main = new HorizontalLayout();\n main.setWidth(\"100%\");\n main.setHeight(\"100%\");\n\n return main;\n }", "public mainLayoutController() {\n\t }", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "ViewElement createViewElement();", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "View createView();", "public View create(Element elem) {\n return null;\n }", "@Override\n\tpublic View onMainCreateView(Activity activity) {\n\t\tlayout = new FrameLayout(activity);\n\t\treturn layout;\n\t}", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }", "private void inicializar () {\n String infService = Context.LAYOUT_INFLATER_SERVICE;\n LayoutInflater li = (LayoutInflater)getContext().getSystemService(infService);\n li.inflate(R.layout.activity_control_login,this,true);\n\n //Obtenemos las referencias a los distintos controles\n txtUsuario = (EditText) findViewById(R.id.TxtUsuario);\n txtPassword = (EditText) findViewById(R.id.TxtPassword);\n btnAceptar = (Button) findViewById(R.id.BtnAceptar);\n lblMensaje = (TextView) findViewById(R.id.LblMensaje);\n\n //Asignamos los eventos necesarios\n asignarEventos();\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "NodeLayout createNodeLayout();", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tif (mObjView == null) {\n\t\t\tmObjView = inflater.inflate(R.layout.jeep_airset, container, false);\n\t\t\tinit();\n\t\t}\n\n\t\treturn mObjView;\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "public CommonPopWindow loadLayout(@LayoutRes int layoutResId) {\n/* 48 */ this.mLayoutResId = layoutResId;\n/* */ \n/* 50 */ if (this.mLayoutResId != 0) {\n/* 51 */ mContentView = LayoutInflater.from(this.mContext).inflate(this.mLayoutResId, null);\n/* */ }\n/* */ \n/* 54 */ return this;\n/* */ }", "private View createAccountLayout() {\r\n\t\tLinearLayout accountLayout = new LinearLayout(getContext());\r\n\t\tLayoutParams aclp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT, 3);\r\n\t\taccountLayout.setOrientation(VERTICAL);\r\n\t\taccountLayout.setLayoutParams(aclp);\r\n\t\tTextView t = new TextView(getContext());\r\n\t\tLayoutParams tlp = new LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\r\n\t\tt.setLayoutParams(tlp);\r\n\t\tt.setText(account.getName());\r\n\t\tt.setTextSize(16);\r\n\t\tt.setTypeface(Typeface.DEFAULT_BOLD);\r\n\t\tt.setTextColor(getContext().getResources().getColor(R.color.black));\r\n\t\taccountLayout.addView(t);\r\n\r\n\t\tTextView desc = new TextView(getContext());\r\n\t\tif (account.getLastOperation() != null) {\r\n\t\t\tdesc.setText(\"\" + DateUtil.defaultDateFormat.format(account.getLastOperation()));\r\n\t\t}\r\n\t\taccountLayout.addView(desc);\r\n\t\treturn accountLayout;\r\n\t}", "ViewContainer createViewContainer();", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tinflater = LayoutInflater.from(getApplicationContext());\n\t}", "@Override\n\tprotected int initView() {\n\t\treturn R.layout.activity_zhusu_detail;\n\t}", "public FinalEditLayout(ViewGroup parent){\n this.parent = parent;\n onCreate();\n }", "private void init() {\n refreshLayout = new TurbolinksSwipeRefreshLayout(getContext(), null);\n addView(refreshLayout, 0);\n }", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();", "@LayoutRes\n protected abstract int getLayoutId();", "private Component createDateLayout() {\n btnToday.addClickListener(e -> {\n dtpSightingDate.setValue(LocalDate.now());\n });\n\n HorizontalLayout dateLayout = new HorizontalLayout(dtpSightingDate, btnToday);\n dateLayout.setDefaultVerticalComponentAlignment(FlexComponent.Alignment.BASELINE);\n dateLayout.expand(dtpSightingDate);\n\n return dateLayout;\n }", "public View create(Element elem, int p0, int p1) {\n return null;\n }", "public Object addScreenLayout()\n {\n LayoutManager screenLayout = null;\n if (this.getScreenLayout() == null) // Only if no parent screens\n { // EVERY BasePanel gets a ScreenLayout!\n Container panel = (Container)this.getControl();\n screenLayout = new ScreenLayout(this); // My LayoutManager\n if ((panel != null) && (screenLayout != null))\n panel.setLayout(screenLayout);\n }\n return screenLayout;\n }", "private void InitView() {\n\n\t\tframe_element = new Frame_element();// 初始化保存框架元素的类\n\n\t\tframe_element\n\t\t\t\t.setRel_body_content((RelativeLayout) findViewById(R.id.rel_body_content));// 保存中间内容框架\n\t\tframe_element\n\t\t\t\t.setRel_top_bar((RelativeLayout) findViewById(R.id.rel_top_bar));// 保存顶部BAR框架\n\n\t\tframe_element\n\t\t\t\t.setRel_frist_bar((RelativeLayout) findViewById(R.id.rel_frist_bar));// 保存顶部首页BAR\n\t\t// 顶部右侧‘更多’按钮点击事件\n\t\timagebtn_more = (ImageButton) findViewById(R.id.imagebtn_more);\n\t\timagebtn_userhead_icon = (ImageButton) findViewById(R.id.imagebtn_userhead_icon);\n\t\timagebtn_more.setOnClickListener(this);\n\t\timagebtn_userhead_icon.setOnClickListener(this);\n\n\t}", "public void onCreate(android.os.Bundle r8) {\n /*\n r7 = this;\n android.view.Window r0 = r7.getWindow()\n r1 = 2\n r0.requestFeature(r1)\n android.view.Window r0 = r7.getWindow()\n r2 = -1\n r0.setFeatureInt(r1, r2)\n super.onCreate(r8)\n android.widget.LinearLayout r8 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15166b = r8 // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r8 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r0 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0.setLayoutParams(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0 = 1\n r8.setOrientation(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n java.lang.String r3 = \"IAInternalBrowserView\"\n r8.setContentDescription(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout r8 = new android.widget.RelativeLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r3 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r4 = -2\n r3.<init>(r2, r4) // Catch:{ Exception -> 0x01e1 }\n r8.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r3.addView(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r3.setId(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r4 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n android.content.res.Resources r5 = r7.getResources() // Catch:{ Exception -> 0x01e1 }\n int r6 = com.fyber.inneractive.sdk.C7636R.integer.ia_ib_toolbar_height_dp // Catch:{ Exception -> 0x01e1 }\n int r5 = r5.getInteger(r6) // Catch:{ Exception -> 0x01e1 }\n int r5 = com.fyber.inneractive.sdk.util.C8006j.m18072b(r5) // Catch:{ Exception -> 0x01e1 }\n r4.<init>(r2, r5) // Catch:{ Exception -> 0x01e1 }\n r5 = 12\n r4.addRule(r5) // Catch:{ Exception -> 0x01e1 }\n r3.setLayoutParams(r4) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_background // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n com.fyber.inneractive.sdk.util.C8006j.m18071a(r3, r4) // Catch:{ Exception -> 0x01e1 }\n r8.addView(r3) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_left_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15168d = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_right_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15169e = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_refresh // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15170f = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_close // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15171g = r4 // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15168d // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15169e // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15170f // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15171g // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = new android.webkit.WebView // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15167c = r3 // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.C7637id.inneractive_webview_internal_browser // Catch:{ Exception -> 0x01e1 }\n r3.setId(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r3 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n r3.addRule(r1, r0) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r1.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r8.addView(r1) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r7.setContentView(r8) // Catch:{ Exception -> 0x01e1 }\n android.content.Intent r8 = r7.getIntent()\n android.webkit.WebView r1 = r7.f15167c\n android.webkit.WebSettings r1 = r1.getSettings()\n r1.setJavaScriptEnabled(r0)\n r1.setSupportZoom(r0)\n r1.setBuiltInZoomControls(r0)\n r1.setUseWideViewPort(r0)\n r1.setLoadWithOverviewMode(r0)\n android.webkit.WebView r0 = r7.f15167c\n disableWebviewZoomControls(r0)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1\n r1.<init>()\n r0.setWebViewClient(r1)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2\n r1.<init>()\n r0.setWebChromeClient(r1)\n java.lang.String r0 = \"extra_url\"\n java.lang.String r8 = r8.getStringExtra(r0)\n boolean r0 = m16888b(r8)\n if (r0 == 0) goto L_0x016a\n java.lang.String r0 = \"http%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 != 0) goto L_0x013f\n java.lang.String r0 = \"https%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 == 0) goto L_0x012e\n goto L_0x013f\n L_0x012e:\n boolean r8 = r7.m16890c(r8)\n if (r8 == 0) goto L_0x013b\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$InternalBrowserListener r8 = f15165a\n if (r8 == 0) goto L_0x013b\n r8.onApplicationInBackground()\n L_0x013b:\n r7.finish()\n goto L_0x016f\n L_0x013f:\n java.lang.String r0 = \"utf-8\"\n java.lang.String r0 = java.net.URLDecoder.decode(r8, r0) // Catch:{ Exception -> 0x0154 }\n java.net.URL r1 = new java.net.URL // Catch:{ Exception -> 0x0154 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0154 }\n android.webkit.WebView r8 = r7.f15167c // Catch:{ Exception -> 0x0151 }\n r8.loadUrl(r0) // Catch:{ Exception -> 0x0151 }\n goto L_0x0169\n L_0x0151:\n r8 = move-exception\n r8 = r0\n goto L_0x0155\n L_0x0154:\n r0 = move-exception\n L_0x0155:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"Failed to open Url: \"\n r0.<init>(r1)\n r0.append(r8)\n java.lang.String r8 = r0.toString()\n com.fyber.inneractive.sdk.util.IAlog.m18023d(r8)\n r7.finish()\n L_0x0169:\n goto L_0x016f\n L_0x016a:\n android.webkit.WebView r0 = r7.f15167c\n r0.loadUrl(r8)\n L_0x016f:\n android.widget.ImageButton r8 = r7.f15168d\n r0 = 0\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15168d\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15168d\n java.lang.String r1 = \"IABackButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15169e\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15169e\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15169e\n java.lang.String r1 = \"IAForwardButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15170f\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15170f\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15170f\n java.lang.String r1 = \"IARefreshButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15171g\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15171g\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6 r0 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6\n r0.<init>()\n r8.setOnClickListener(r0)\n android.widget.ImageButton r8 = r7.f15171g\n java.lang.String r0 = \"IACloseButton\"\n r8.setContentDescription(r0)\n int r8 = android.os.Build.VERSION.SDK_INT\n r0 = 21\n if (r8 >= r0) goto L_0x01dd\n android.content.Context r8 = com.fyber.inneractive.sdk.util.C8006j.m18075n()\n android.webkit.CookieSyncManager.createInstance(r8)\n android.webkit.CookieSyncManager r8 = android.webkit.CookieSyncManager.getInstance()\n r8.startSync()\n L_0x01dd:\n com.fyber.inneractive.sdk.util.C8006j.m18079r()\n return\n L_0x01e1:\n r8 = move-exception\n r7.finish()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity.onCreate(android.os.Bundle):void\");\n }", "@Override\n\tpublic int bindLayout() {\n\t\treturn R.layout.activity_init;\n\t}", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "@Override\n public JQLayout getLayout()\n {\n return layout;\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\n\t\t// top-level component properties\n\t\tsetWidth(\"60.0%\");\n\t\tsetHeight(\"60.0%\");\n\n\t\t// lblHeading\n\t\tlblHeading = new Label();\n\t\tlblHeading.setImmediate(false);\n\t\tlblHeading.setWidth(\"-1px\");\n\t\tlblHeading.setHeight(\"-1px\");\n\t\tlblHeading.setValue(\"This is class 4\");\n\t\tmainLayout.addComponent(lblHeading);\n\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Button\");\n\t\tbutton_1.setImmediate(false);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1);\n\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"-1px\");\n\t\tmainLayout.setHeight(\"29px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"-1px\");\n\t\tsetHeight(\"29px\");\n\t\t\n\t\t// pnToolbar\n\t\tpnToolbar = buildPnToolbar();\n\t\tmainLayout.addComponent(pnToolbar);\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}", "private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }", "public MainViews(Context context) {\n this.context = context;\n layoutParams =new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layoutParams.setMargins(0,0,0,5);\n }", "@Override\n public View initView() {\n\n View picture_menu_page = View.inflate(mActivity, R.layout.picture_menu_page, null);\n\n lv_pitruemenupage_content = (ListView) picture_menu_page.findViewById(R.id.lv_pitruemenupage_content);\n\n gv_pitruemenupage_content = (GridView) picture_menu_page.findViewById(R.id.gv_pitruemenupage_content);\n return picture_menu_page;\n\n }", "private void init(Context context) {\n getViewTreeObserver().addOnGlobalLayoutListener(this);\n inflate(context, R.layout.new_rp_resultview, this);\n mMainPanel = (ViewAnimator) findViewById(R.id.viewanimator);\n mInfoPanel = (ViewAnimator) findViewById(R.id.va_text);\n \n \n mInfoPanelText1 = (TextView) mInfoPanel.findViewById(R.id.tv1);\n mMainPanel.setDisplayedChild(0);\n\t}", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// tablaGestionEvaluaciones\n\t\ttablaGestionEvaluaciones = new Table();\n\t\ttablaGestionEvaluaciones.setImmediate(false);\n\t\ttablaGestionEvaluaciones.setWidth(\"100.0%\");\n\t\ttablaGestionEvaluaciones.setHeight(\"100.0%\");\n\t\tmainLayout.addComponent(tablaGestionEvaluaciones,\n\t\t\t\t\"top:57.0px;right:20.0px;bottom:20.0px;left:20.0px;\");\n\t\t\n\t\t// botonCrearEvaluacion\n\t\tbotonCrearEvaluacion = new Button();\n\t\tbotonCrearEvaluacion.setCaption(\"Crear Evaluación\");\n\t\tbotonCrearEvaluacion.setImmediate(true);\n\t\tbotonCrearEvaluacion.setWidth(\"-1px\");\n\t\tbotonCrearEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(botonCrearEvaluacion, \"top:14.0px;left:20.0px;\");\n\t\t\n\t\t// buttonEditarEvaluacion\n\t\tbuttonEditarEvaluacion = new Button();\n\t\tbuttonEditarEvaluacion.setCaption(\"Editar Evaluación\");\n\t\tbuttonEditarEvaluacion.setImmediate(false);\n\t\tbuttonEditarEvaluacion.setWidth(\"-1px\");\n\t\tbuttonEditarEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(buttonEditarEvaluacion,\n\t\t\t\t\"top:14.0px;left:160.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "GraphLayout createGraphLayout();", "private void inicializar() {\n\t\treporte = new Jasperreport();\n\t\tdiv = new Div();\n\t}", "@Nullable\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n if (null == view) {\n myContainer = new LinearLayout(mContext);\n view = inflater.inflate(R.layout.listitem_banner, null);\n view.setMinimumHeight(((WindowManager) getActivity()\n .getSystemService(Context.WINDOW_SERVICE))\n .getDefaultDisplay().getHeight());\n view.setMinimumWidth(((WindowManager) getActivity()\n .getSystemService(Context.WINDOW_SERVICE))\n .getDefaultDisplay().getWidth());\n initData();\n myContainer.addView(view);\n } else {\n myContainer.removeAllViews();\n myContainer = new LinearLayout(getActivity());\n myContainer.addView(view);\n }\n return myContainer;\n }", "public RootLayoutController(){}", "private void initLayout() {\n ListView<PropertyWrapper> attributes = new ListView<PropertyWrapper>(\"attributes\", createAttributesModel()) {\n\n @Override\n protected void populateItem(ListItem<PropertyWrapper> listItem) {\n populateListItem(listItem);\n\n if (!showEmptyProperties && isEmpty(listItem)) {\n listItem.setVisible(false);\n }\n }\n };\n add(attributes);\n\n //todo remove !!!\n final MultiLineLabel label = new MultiLineLabel(\"debug\", new AbstractReadOnlyModel<String>() {\n\n @Override\n public String getObject() {\n return showStatus();\n }\n });\n label.add(new AjaxEventBehavior(\"onClick\") {\n\n @Override\n protected void onEvent(AjaxRequestTarget target) {\n target.add(label);\n }\n });\n add(label);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmRoot = inflater.inflate(R.layout.mouse_layout, container, false); \n\t\tinitializeUI();\n\t\treturn mRoot; \n }", "private void init(){\n\t\tmIV = new ImageView(mContext);\r\n\t\tFrameLayout.LayoutParams param1 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n\t\tmIV.setLayoutParams(param1);\r\n\t\tmIV.setScaleType(ScaleType.FIT_XY);\r\n//\t\tmIVs[0] = iv1;\r\n\t\tthis.addView(mIV);\r\n//\t\tImageView iv2 = new ImageView(mContext);\r\n//\t\tFrameLayout.LayoutParams param2 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n//\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n//\t\tiv2.setLayoutParams(param2);\r\n//\t\tiv2.setScaleType(ScaleType.CENTER_CROP);\r\n//\t\tmIVs[1] = iv2;\r\n//\t\tthis.addView(iv2);\r\n\t\tthis.mHandler = new Handler();\r\n\t}", "public RootLayoutController() {\n }", "public CalcLayout() {\n\t\tthis(0);\n\t}", "@AutoGenerated\r\n\tprivate VerticalLayout buildLayoutFondo() {\n\t\tlayoutFondo = new VerticalLayout();\r\n\t\tlayoutFondo.setImmediate(false);\r\n\t\tlayoutFondo.setWidth(\"-1px\");\r\n\t\tlayoutFondo.setHeight(\"-1px\");\r\n\t\tlayoutFondo.setMargin(false);\r\n\t\t\r\n\t\t// pnlFondo\r\n\t\tpnlFondo = buildPnlFondo();\r\n\t\tlayoutFondo.addComponent(pnlFondo);\r\n\t\t\r\n\t\treturn layoutFondo;\r\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\tmainLayout.addComponent(verticalLayout_1);\n\t\t\n\t\t// verticalLayout_2\n\t\tverticalLayout_2 = buildVerticalLayout_2();\n\t\tmainLayout.addComponent(verticalLayout_2);\n\t\tmainLayout.setExpandRatio(verticalLayout_2, 1.0f);\n\t\t\n\t\treturn mainLayout;\n\t}", "public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }", "@Override\n\tprotected View initContentView(Context context)\n\t{\n\n\t\tmContainer = new FrameLayout(mContext);\n\t\treturn mContainer;\n\t}", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tv = inflater.inflate(R.layout.wisata, container, false);\r\n \r\n\t\t\r\n\t\t\r\n\t\treturn v;\r\n\t}", "private VerticalLayout getNavigation() {\n VerticalLayout nav = new VerticalLayout();\n\n NavigationView navigationView = new NavigationView();\n new NavigationPresenter(navigationView);\n nav.addComponent(navigationView);\n\n return nav;\n }", "public abstract int presentViewLayout();", "protected void onLoadLayout(View view) {\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.read_layout,container,false);\n mContext = view.getContext();\n if(readPresenter ==null)\n readPresenter = new ReadPresenter(getContext(),this);\n initUI(view);\n return view;\n\n }", "@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.book_list, container, false);\n\n /** RETURN THE VIEW INSTANCE TO SETUP THE LAYOUT **/\n return view;\n }", "private void initBaseLayout() {\n if (topText != null) {\n TextView topicText = new TextView(mainContext);\n topicText.setText(topText);\n dimensionsContainer.setViewStyle(KEY_TOPIC_TEXT, topicText);\n topicText.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_topic));\n topicText.setClickable(true);\n topicText.setOnClickListener(generalClickListener);\n blankLayout.addView(topicText);\n }\n//Add topLayout\n //if (topLayout == null) {\n topLayout = new LinearLayout(mainContext);\n topLayout.setOrientation(LinearLayout.HORIZONTAL);\n topLayout.setLayoutParams(layoutParams_WC_WC);\n topLayout.setBackgroundColor(bgColor_Table);\n blankLayout.addView(topLayout);\n//Add numTop\n TextView numTop = new TextView(mainContext);\n numTop.setText(R.string.symbol_num);\n dimensionsContainer.setViewStyle(KEY_NUM_TOP, numTop);\n numTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_top));\n numTop.setClickable(true);\n numTop.setOnClickListener(generalClickListener);\n topLayout.addView(numTop);\n//Add nameTop\n TextView nameTop = new TextView(mainContext);\n nameTop.setText(nameTopTextResId);\n dimensionsContainer.setViewStyle(KEY_NAME_TOP, nameTop);\n nameTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_name_top));\n nameTop.setClickable(true);\n nameTop.setOnClickListener(generalClickListener);\n topLayout.addView(nameTop);\n\n\n\n\n\n\n//Add topHScrollView\n// if (layoutHandler.topHScrollView == null) {\n topHScrollView = new SyncedHorizontalScrollView(mainContext);\n topHScrollView.setLayoutParams(layoutParams_WC_MP);\n topHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor() !=\n null) //OverScrollColor\n {\n topHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor());\n }\n topLayout.addView(topHScrollView);\n\n//Add topScrollLayout\n // if(layoutHandler.topScrollLayout == null) {\n topScrollLayout = new LinearLayout(mainContext);\n topScrollLayout.setBackgroundColor(bgColor_Table);\n topHScrollView.addView(topScrollLayout);\n\n//Add bodyScrollView\n //if(layoutHandler.bodyScrollView == null) {\n bodyScrollView = new ScrollView(mainContext);\n bodyScrollView.setLayoutParams(layoutParams_MP_WC);\n bodyScrollView.setVerticalScrollBarEnabled(false);\n //bodyScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n blankLayout.addView(bodyScrollView);\n//Add bodyLayout\n //if(layoutHandler.bodyLayout == null) {\n bodyLayout = new LinearLayout(mainContext);\n bodyLayout.setOrientation(LinearLayout.HORIZONTAL);\n bodyLayout.setLayoutParams(layoutParams_WC_WC);\n bodyScrollView.addView(bodyLayout);\n\n//Add bodyLeftLayout\n //if(layoutHandler.bodyLeftLayout == null) {\n bodyLeftLayout = new LinearLayout(mainContext);\n bodyLeftLayout.setOrientation(LinearLayout.VERTICAL);\n bodyLeftLayout.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.setBackgroundColor(bgColor_Table);\n bodyLayout.addView(bodyLeftLayout);\n\n//Add bodyHScrollView\n //if(layoutHandler.bodyHScrollView == null) {\n bodyHScrollView = new SyncedHorizontalScrollView(mainContext);\n bodyHScrollView.setLayoutParams(layoutParams_WC_WC);\n bodyHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor() !=\n null)//OverScrollColor\n {\n bodyHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor());\n }\n bodyLayout.addView(bodyHScrollView);\n\n//Add bodyRightLayout\n //if(layoutHandler.bodyRightLayout == null) {\n bodyRightLayout = new LinearLayout(mainContext);\n bodyRightLayout.setOrientation(LinearLayout.VERTICAL);\n bodyRightLayout.setBackgroundColor(bgColor_Table);\n bodyHScrollView.addView(bodyRightLayout);\n\n//Add Scroll Listeners\n\n ScrollManager scrollManager = new ScrollManager();\n scrollManager.setScrollDirection(ScrollManager.SCROLL_HORIZONTAL);\n scrollManager.addScrollClient(topHScrollView);\n scrollManager.addScrollClient(bodyHScrollView);\n\n// bodyScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// bodyHScrollView.getParent().requestDisallowInterceptTouchEvent(false);\n// return false;\n// }\n// });\n// bodyHScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// v.getParent().requestDisallowInterceptTouchEvent(true);\n// return false;\n// }\n// });\n\n //ScrollManager.disallowParentScroll(bodyHScrollView, 100);\n //ScrollManager.disallowChildScroll(bodyHScrollView, bodyLayout, 100);\n //bodyHScrollView.getWidth());\n //Dimensions.dipToPixels(mainContext, 800));\n// ScrollManager\n// .disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 200));\n //TODO: disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 50));\n\n }", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "String getLayout();", "void createMainContent() {\n appContent = new DashboardMain(this);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ctx = getActivity();\n View view = inflater.inflate(getLayoutID(),null);\n mPreenter = createPresenter();\n loading = new MyProgressLoading(ctx, R.style.DialogStyle);\n sp = ctx.getSharedPreferences(SpUtiles.SP_Mode,Context.MODE_PRIVATE);\n HideUtil.init(getActivity());\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n initListener();\n return view;\n }", "void computeNewLayout();", "private VHorizontalLayout initLockInformationLayout() {\r\n VHorizontalLayout layout = new VHorizontalLayout();\r\n if(report.isLocked()) {\r\n Utils.removeAllThemes(layout);\r\n layout.getThemeList().add(ThemeAttribute.LOCKED);\r\n layout.add(getTranslation(\"reportView.reportLocked.label\", report.getLockOwner().getName() + \" \" +report.getLockOwner().getLastname()));\r\n }\r\n return layout;\r\n }", "protected abstract\n @LayoutRes\n int getLayoutRes(int position);", "public testLayout() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private View setupView(ViewGroup container, int layoutResId) {\n View view = getActivity().getLayoutInflater().inflate(layoutResId, container, false);\n // Set the current page index as the View's tag (useful in the PageTransformer)\n view.setTag(mPage);\n return view;\n }", "public View initContentView() {\n return null;\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tmContext = getActivity();\n\t\tll = new LinearLayout(getActivity());\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT,\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT);\n\t\tthis.getActivity().addContentView(ll, params);\n\t}", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(C0354R.layout.layout_edit_main);\n loadLayoutFromPref();\n this.mImageView = (LayoutView) findViewById(C0354R.C0356id.layoutview);\n this.mLayoutAdapter = new LayoutAdapter(this, (LayoutItem) this.mLayoutItems.get(this.mCurrentLayout), this.mImageView);\n switchLayout(0);\n setupActionBarDropdown(getIntent().getIntExtra(KEY_INITIAL_LAYOUT, 0));\n registerForContextMenu(this.mImageView);\n this.mImageView.setOnCreateContextMenuListener(new ContextMenuListener(this));\n this.mImageView.setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n SingleView viewFromLastPosition = LayoutEditorActivity.this.mImageView.getViewFromLastPosition();\n if (viewFromLastPosition != null) {\n LayoutEditorActivity.this.addOrEditView(viewFromLastPosition);\n }\n }\n });\n ((Button) findViewById(C0354R.C0356id.btncancel)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.finish();\n }\n });\n ((Button) findViewById(C0354R.C0356id.btnsave)).setOnClickListener(new OnClickListener() {\n public void onClick(View view) {\n LayoutEditorActivity.this.saveLayoutToPref();\n Intent intent = new Intent();\n intent.setClass(LayoutEditorActivity.this, MainActivity.class);\n intent.setAction(Constants.ACTION_EDIT_LAYOUT);\n LayoutEditorActivity.this.startActivity(intent);\n LayoutEditorActivity.this.finish();\n }\n });\n GAHelper.recordScreen(this, TAG);\n }", "@Override\n public void Create() {\n\n initView();\n }", "private void initView() {\n\n }", "public void setupLayout() {\n // left empty for subclass to override\n }", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\tBundle savedInstanceState) {\n\t\t\tint position;\n\t\t\tBundle args = getArguments();\n\t\t\tposition = args.getInt(ARG_OBJECT);\n\t\t\t// }\n\n\t\t\tint tabLayout = 0;\n\t\t\tswitch (position) {\n\t\t\tcase 0:\n\t\t\t\ttabLayout = R.layout.pagina1;\n\t\t\t\tnView = 0;\n\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttabLayout = R.layout.pagina2;\n\t\t\t\tnView = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tView rootView = inflater.inflate(tabLayout, container, false);\n\n\t\t\treturn rootView;\n\t\t}", "@AutoGenerated\r\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"800px\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"800px\");\r\n\t\t\r\n\t\t// verticalLayout_5\r\n\t\tverticalLayout_5 = buildVerticalLayout_5();\r\n\t\tmainLayout.addComponent(verticalLayout_5);\r\n\t\tmainLayout.setComponentAlignment(verticalLayout_5, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "EdgeLayout createEdgeLayout();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }", "@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }" ]
[ "0.739026", "0.65792286", "0.651356", "0.64693767", "0.6447906", "0.6409196", "0.6335053", "0.6327599", "0.62977165", "0.62836033", "0.61887395", "0.6186909", "0.61592287", "0.6146448", "0.6143086", "0.6128864", "0.6117142", "0.61054856", "0.60963494", "0.60679543", "0.6056218", "0.6054201", "0.60398644", "0.5987432", "0.5970479", "0.5966323", "0.5940611", "0.5912191", "0.59119815", "0.591074", "0.5908295", "0.58964825", "0.5884716", "0.5884497", "0.58810884", "0.58781815", "0.5872826", "0.5868695", "0.5867209", "0.58484924", "0.5842132", "0.5838623", "0.58312213", "0.5830403", "0.58290094", "0.5817975", "0.58132523", "0.580846", "0.5805059", "0.58046377", "0.5796335", "0.57904756", "0.5785037", "0.5777854", "0.57729423", "0.5770356", "0.57698655", "0.5764332", "0.57597965", "0.5752985", "0.5742964", "0.5733896", "0.5723723", "0.572007", "0.5716359", "0.57088876", "0.5706566", "0.57032675", "0.5681618", "0.56808007", "0.5680028", "0.5675396", "0.56728464", "0.56723654", "0.566107", "0.5657336", "0.5654473", "0.5644819", "0.56431794", "0.5642244", "0.5640885", "0.5638121", "0.5633387", "0.5633236", "0.56305057", "0.5627839", "0.5625457", "0.5620204", "0.56197035", "0.5617875", "0.5616198", "0.561309", "0.5612755", "0.5610206", "0.56082183", "0.5606941", "0.5604975", "0.56023926", "0.55996996", "0.5592918", "0.55861694" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static StepViewFragment newInstance(String param1, String param2) { StepViewFragment fragment = new StepViewFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public LogFragment() {\n }", "public FragmentMy() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public HeaderFragment() {}", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public PeersFragment() {\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public PersonDetailFragment() {\r\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.72587806", "0.72315", "0.71128035", "0.6989915", "0.69888663", "0.68323874", "0.68284166", "0.6811231", "0.6799868", "0.6799074", "0.6764381", "0.6738079", "0.6738079", "0.67268246", "0.6715347", "0.67061615", "0.6690773", "0.6689529", "0.6687659", "0.6661806", "0.6644326", "0.66413724", "0.6639174", "0.66334546", "0.66162664", "0.6612923", "0.66066813", "0.6604181", "0.65985304", "0.65916866", "0.6590765", "0.6590542", "0.6580825", "0.65777844", "0.6563632", "0.656029", "0.6557861", "0.65497226", "0.6549494", "0.65420955", "0.6539689", "0.653395", "0.65324813", "0.6528364", "0.6523803", "0.65223694", "0.6521728", "0.65150344", "0.65042657", "0.6497416", "0.649707", "0.6494283", "0.6493901", "0.6485082", "0.64849406", "0.64794314", "0.64767885", "0.64747125", "0.6469636", "0.64654803", "0.64569527", "0.64559346", "0.64538103", "0.6451536", "0.645034", "0.64483374", "0.6447979", "0.64471924", "0.6442164", "0.6442164", "0.6442164", "0.6441202", "0.64404285", "0.6439219", "0.64367384", "0.6434118", "0.64292616", "0.6427671", "0.6423538", "0.6419575", "0.6418982", "0.6413233", "0.6412808", "0.6402954", "0.64015436", "0.6396632", "0.6396196", "0.63905257", "0.6388367", "0.63835037", "0.6379759", "0.6375117", "0.6375117", "0.6375117", "0.6373985", "0.6364944", "0.63644207", "0.63595194", "0.6353178", "0.635139", "0.6351071" ]
0.0
-1
Recover player status if any:
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Log.d("StepViewFragment", "onCreateView: "+"lifecycle"); if (savedInstanceState != null) { recoveredPlayerState = savedInstanceState.getBoolean(PLAYER_PLAY_STATE, false); recoveredPlayerPosition = savedInstanceState.getLong(PLAYER_POSITION, 0); } // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_step_view, container, false); if (view.findViewById(R.id.stepDescriptionTV) == null) fullscreen = true; else fullscreen = false; if(view.findViewById(R.id.previousArrowIV) == null) tablet = true; else tablet = false; ingredientsDB = IngredientsDB.getsInstance(getContext()); int recipeIdToView = getActivity().getIntent().getIntExtra(RecipesList.RECIPE_KEY, 0); // LiveData<List<RecipesDesc>> recipesDesc = ingredientsDB.recipesDescDao().getThisRecipe(recipeIdToView); LiveData<List<RecipeSteps>> recipeSteps = ingredientsDB.recipeStepsDao().getStepsFor(recipeIdToView); recipeSteps.observe(this, new Observer<List<RecipeSteps>>() { @Override public void onChanged(@Nullable List<RecipeSteps> recipeSteps) { if (recipeSteps.size() > 0) { noOfSteps = recipeSteps.size(); if (stepIndicator > noOfSteps) stepIndicator = noOfSteps; if (noOfSteps != 0 & !fullscreen) { stepDescriptionTV.setText(recipeSteps.get(stepIndicator - 1).getDescription()); } else { Log.i(TAG, "onCreateView: " + "No Steps to view"); } if (!fullscreen) setNavigationUI(); instantiatePlayer(recipeSteps.get(stepIndicator - 1).getVideoURL()); recipeStock = recipeSteps; } } }); ButterKnife.bind(this, view); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "@Override\n public boolean handlePlayerStatusUpdate(PlayerState playerState) {\n return true;\n }", "private void checkRemotePlayerReady(){\n String data = getJSON(hostUrl + \"retrieve_remote_ready.php?matchId=\" + matchId\n + \"&player=\" + oppositePlayer, 2000);\n\n System.out.println(\"Ready: \" + data);\n\n // Get first character, as, for some reason, it returns one extra character.\n int ready = Integer.parseInt(data.substring(0, 1));\n\n if (ready == 1){\n remotePlayerReady = true;\n }\n\n }", "private void getPlayerStatusFromServer()\r\n\t{\r\n\t\ttry {\r\n\t\t\t// Create data input stream\r\n\t\t\tDataInputStream playerStatusInputFromServer = new DataInputStream(\r\n\t\t\t\t\tsocket.getInputStream());\r\n\t\t\tisPlayerAlive = playerStatusInputFromServer.readBoolean();\r\n\t\t\thasPlayerWon = playerStatusInputFromServer.readBoolean();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void resetPlayerPassed() {\n d_PlayerPassed = false;\n }", "private void setGameStatus() {\n this.gameStatus = false;\n }", "private void initializeStatus()\n\t{\n\t\tif (playerList == null || playerList.isEmpty())\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Cast die to determine starting player until one player has a better result (no tie)\n\t\tList<Player> startingPlayers = playerList;\n\t\twhile (startingPlayers.size() > 1)\n\t\t{\n\t\t\tList<Player> maxResultPlayers = new ArrayList<Player>();\n\t\t\tint maxResult = 0;\n\t\t\t\n\t\t\t// All players with best result must roll die\n\t\t\t// In the first round that consists of all players\n\t\t\tfor(Player player : startingPlayers)\n\t\t\t{\n\t\t\t\tint result = board.rollDice();\n\t\t\t\t\n\t\t\t\t// The player having the better result is remembered\n\t\t\t\tif (result > maxResult)\n\t\t\t\t{\n\t\t\t\t\tmaxResultPlayers.clear();\n\t\t\t\t\tmaxResultPlayers.add(player);\n\t\t\t\t\tmaxResult = result;\n\t\t\t\t}\n\t\t\t\t// If tied, the player is added for another round of die rolling\n\t\t\t\telse if (result == maxResult)\n\t\t\t\t{\n\t\t\t\t\tmaxResultPlayers.add(player);\n\t\t\t\t}\n\t\t\t}\n\t\t\tstartingPlayers = maxResultPlayers;\n\t\t}\n\t\t\n\t\t// Set current game status\n\t\tPlayer starting = startingPlayers.get(0);\n\t\tincreaseTurnCount();\n\t\tthis.currentPlayerID = starting.getId();\n\t}", "private void playerHasLost(Model model)\n {\n model.getTurn().getCurrentPlayer().setHasLost();\n\n }", "private void checkPlayerCondition()\n\t{\n\t\tif (playerExists() && PlayerAccess.getPlayer().isInExit())\n\t\t{\n\t\t\twon = true;\n\t\t}\n\t\tif (playerIsDead())\n\t\t{\n\t\t\tMapInstance.getInstance().levelRestart();\n\t\t}\n\t\tif (playerHasLost())\n\t\t{\n\t\t\tlost = true;\n\t\t}\n\t\tif (runOutOfTime())\n\t\t{\n\t\t\tPlayerAccess.getPlayer().die();\n\t\t}\n\t}", "public void playerLost()\r\n {\r\n \r\n }", "public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }", "private Boolean infect( Player player ){\n try {\n player.setHealth( false );\n return true;\n } catch (Exception e) {\n System.out.println(\"Something went wrong.\");\n return false;\n }\n }", "static void checkIfPlayerPlayedBefore() throws Exception{\n\t\tjava.io.File playerData = new java.io.File(\"Players/\" + Player.getName() +\".txt\");\n\t\tif (!playerData.exists()){\n\t\t\tPlayer.setFirstGame(true);\n\t\t\tplayerData.createNewFile();\n\t\t}\n\t\telse{\n\t\t\tPlayer.setFirstGame(false);\n\t\t}\n\t\tPlayerMessage.welcomePlayer();\n\t}", "private void resume() { player.resume();}", "private void checkPlayerHealth(){\n if(currentPlayer.getHealth().equals(\"0\")){\n results = new ArrayList<String>();\n results.add(\"You are dead.\");\n ArrayList<Artefacts> inv = currentPlayer.getArifacsts();\n System.out.println(inv.size());\n for(int i = 0; i < inv.size(); i++){\n currentLocation.addArtefactToCurrentLocation(inv.get(i));\n }\n System.out.println(inv.size());\n for(int i = inv.size() - 1; i >= 0; i--){\n inv.remove(i);\n }\n currentPlayer.resetHealth();\n currentPlayer.setCurrentLocation(locations.get(0));\n }\n }", "private void RedEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n RedPlayer player_to_eat = (RedPlayer) player;\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n }\n }\n\n //player_to_be_eaten.println(\"red_player_to_be_eaten\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "boolean hasReplacePlayerResponse();", "private void gameOver(final int status) {\n // Play R.raw.robot_bleep\n soundPool.play(this.soundIds[2], 1, 1, 3, 0, (float) 1.0);\n this.gameOverDisplayed = true;\n ((PongGame) context).gameState = PongGame.GAME_OVER;\n this.touchEnabled = false;\n\n ((PongGame) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n DialogInterface.OnDismissListener listener = new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(@NonNull DialogInterface dialog) {\n dialog.dismiss();\n }\n };\n GeneralFunctions.displayDialog(context, status, listener);\n }\n });\n }", "private void reportPlay (Player player) {\n System.out.println(\"Player \" + player.name() +\n \" takes \" + player.numberTaken() +\n \" stick(s), leaving \" + game.sticksLeft()\n + \".\");\n }", "public void resetStatusEffects() {\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tp.resetStats();\r\n\t\t}\r\n\t}", "public void loadCurrentPlayer() {\n\t\tScanner sc;\n\t\tFile file = new File(\"data/current_player\");\n\t\tif(file.exists()) {\n\t\t\ttry {\n\t\t\t\tsc = new Scanner(new File(\"data/current_player\"));\n\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\tString player = sc.nextLine();\n\t\t\t\t\t_currentPlayer= player;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t_currentPlayer = null;\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\t\t_currentPlayer = null;\n\t\t}\n\t}", "private void updatePlayersStatus() {\n PlayerModel[] playersInLobby = this.lobbyModel.getPlayersInLobby();\n int i = 0;\n for (; i < playersInLobby.length; i++) {\n final PlayerModel playerInLobby = playersInLobby[i];\n final TextField playerStatus = this.playersStatus[i];\n playerStatus.setColor(playerInLobby.isReady() ? Color.GREEN : Color.RED);\n playerStatus.setText(playerInLobby.getUsername());\n playerInLobby.clearPropertyChangeListeners();\n this.addPropertyChangeListener(playerInLobby, new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n String propertyName = evt.getPropertyName();\n if (propertyName.equals(\"username\")) {\n playerStatus.setText((String) evt.getNewValue());\n } else if (propertyName.equals(\"ready\")) {\n playerStatus.setColor((boolean) evt.getNewValue() ? Color.GREEN : Color.RED);\n }\n }\n });\n if (i >= 1 && this.host) {\n TextButton kickButton = kickButtons[i - 1];\n kickButton.clearListeners();\n kickButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent e, float x, float y) {\n Connection connection = ConnectionManager.getInstance().getConnection();\n if (connection instanceof ServerConnection) {\n UUID playerUUID = playerInLobby.getPlayerUUID();\n ServerSenderReceiver client = ((ServerConnection) connection).getClientByUUID(playerUUID);\n if (client != null) {\n connection.sendPacket(new KickPlayerPacket(playerUUID));\n ((ServerConnection) connection).removeClient(client);\n connection.getPlayer().getLobby().removePlayer(client.getPlayer());\n }\n }\n }\n });\n kickButton.setDisabled(false);\n }\n }\n for (int j = i; j < this.playersStatus.length; j++) {\n final TextField playerStatus = this.playersStatus[j];\n playerStatus.setColor(Color.RED);\n playerStatus.setText(\"\");\n if (j >= 1 && this.host) {\n TextButton kickButton = kickButtons[j - 1];\n kickButton.clearListeners();\n kickButton.setDisabled(true);\n }\n }\n }", "private boolean try2GetRedPlayerFromHome(Player player)\n {\n try\n {\n RedPlayer redPlayer = (RedPlayer) player;\n if (RedPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //RedPlayer.setNumber_of_buttons_allowed(RedPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "private void loseCondition() {\n if (player.getHealth() <= 0) {\n lose();\n }\n }", "private boolean try2GetYellowPlayerFromHome(Player player)\n {\n try\n {\n YellowPlayer yellowPlayer = (YellowPlayer) player;\n if (YellowPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //YellowPlayer.setNumber_of_buttons_allowed(YellowPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "public static void getStatus( Player player ) {\n Tools.Prt( player, ChatColor.GREEN + \"=== Premises Messages ===\", programCode );\n Messages.PlayerMessage.keySet().forEach ( ( gn ) -> {\n String mainStr = ChatColor.YELLOW + Messages.PlayerMessage.get( gn );\n mainStr = mainStr.replace( \"%player%\", ChatColor.AQUA + \"%player%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%message%\", ChatColor.AQUA + \"%message%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%tool%\", ChatColor.AQUA + \"%tool%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%digs%\", ChatColor.AQUA + \"%digs%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%nowDurability%\", ChatColor.AQUA + \"%nowDurability%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%targetDurability%\", ChatColor.AQUA + \"%targetDurability%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%score%\", ChatColor.AQUA + \"%score%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%AreaCode%\", ChatColor.AQUA + \"%AreaCode%\" + ChatColor.YELLOW );\n Tools.Prt( player, ChatColor.WHITE + gn + \" : \" + mainStr, programCode );\n } );\n Tools.Prt( player, ChatColor.GREEN + \"=========================\", programCode );\n }", "private void reDrowStatusCard() {\n \t\tint currentInstance= Storage_access.getCurrentProjectInstanceBDDID() ;\n \t\t\n \t\tdispatcher.execute(new GetActivityStateAction(currentInstance), new AsyncCallback<GetActivityStateActionResult>() {\n \n \t\n \n \t\t\t@Override public void onFailure(Throwable arg0) {\n \t\t\t\tSystem.out.println(\"!!!!!!!!!!!!!!!!!!!!!**** failed to get activities status\");\n \n \t\t\t}\n \n \t\t\t@Override public void onSuccess(GetActivityStateActionResult result) {\n \t\t\t\tfor (int i=0; i< Storage_access.getNumberOfCard(); i++) {\n \t\t\t\t\tString card = Storage_access.getCard(i);\n \t\t\t\t\tActivityState_dto a = result.getActivitiesState().get(\"\"+Storage_access.getBddIdCard(card));\n \t\t\t\t\tif (a == null) \n \t\t\t\t\t\tStorage_access.revoveFromSlot(i);\t\n \t\t\t\t\telse \n \t\t\t\t\t\tStorage_access.setSlotCard(i, a.getDay(), a.getPeriod());\t\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\teventBus.fireEvent( \n \t\t\t\t\t\tnew BoardViewChangedEvent(getView().getCombo_viewChoice1().getSelectedIndex(),\n \t\t\t\t\t\t\t\t\t\t\t\t getView().getCombo_viewChoice2().getSelectedIndex())\n \t\t\t\t\t\t);\n \t\t\t\t//Storage_access.printStorage();\n \t\t\t}\n \n \t\t\t});\n \n \t\t\n \t}", "public GuessGameStat getGameStatus(String username) {\n GuessGameStat guessGameStat = (GuessGameStat) super.getGameStatus(username);\n if (guessGameStat == null) {\n guessGameStat = new GuessGameStat(username);\n }\n return guessGameStat;\n }", "boolean notifyWhenReady(int playerNr);", "public String getPlayersStatus(){\n\t\tString pStatus = \"\";\n\t\tPlayer player;\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tplayer = this.players.get(i);\n\t\t\tpStatus += \"[\" +player.getName() + \": \";\n\t\t\tpStatus += Integer.toString(player.numCards()) + \"] \";\n\t\t} \n\t\t\n\t\treturn pStatus;\n\t}", "private void checkPlayProgress() {\n\n if (playState == PLAY_STATE_PLAYING) {\n sendPosition();\n\n Runnable notification = new Runnable() {\n public void run() {\n checkPlayProgress();\n }\n };\n\n // keep updating while playing\n handler.postDelayed(notification, UPDATE_DELAY);\n }\n }", "private void GreenEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n Player player_to_eat = player;\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n }\n }\n //println(\"green_player_to_be_eaten=\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "public void failedMultiPlayer() {\r\n\t\tmultiplayer.setEnabled(true);\r\n\t\tToast.makeText(this, R.string.con_err, Toast.LENGTH_LONG)\r\n\t\t .show();\r\n\t}", "public void doUpdateStatus() throws GameException\r\n {\n \r\n }", "private void YellowEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n YellowPlayer player_to_eat = (YellowPlayer) player;\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsBluePlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n }\n }\n //println(\"yellow_player_to_be_eaten=\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "private void updatePlayerList() \n\t{\n\t\tplayerStatus.clear();\n\n\t\tfor(Player thisPlayer: players) // Add the status of each player to the default list model.\n\t\t{\n\t\t\tplayerStatus.addElement(thisPlayer.toString());\n\t\t}\n\n\t}", "public void endTurnCurrent() {\n playerStatus.nActionsDone = 0;\n playerStatus.isActive = false;\n playerStatus.isFirstTurn = false;\n }", "private void CheckFaintedPokemon() {\n \tif(user.getTeam(user.getCurrentPokemonIndex()).getStats().getStatus()==Status.FNT){\n \t\tuser.getTeam(user.getCurrentPokemonIndex()).getInfo().setUsedInBattle(false);\n \t\tbattleMessage.add(user.getTeam(user.getCurrentPokemonIndex()).getInfo().getNickname()+\" has lost the battle. \");\n \t\tbattleOver=true;\n \t}\n \tif(opponent.getTeam(opponent.getCurrentPokemonIndex()).getStats().getStatus()==Status.FNT){\n \t\topponent.getTeam(opponent.getCurrentPokemonIndex()).getInfo().setUsedInBattle(false);\n \t\tCalculateXP(user.getTeam(),opponent.getTeam(opponent.getCurrentPokemonIndex()));\n \t\tbattleMessage.add(opponent.getTeam(opponent.getCurrentPokemonIndex()).getInfo().getNickname()+\" has lost the battle. \");\n \t\tbattleOver=true;\n \t}\n \t\n }", "@Override\r\n public void checkWarGameOver(){\r\n if(this.checkOnePlayerDecksEmpty(0)){\r\n // Set gameOver flag to true\r\n this.isGameOver = true; \r\n \r\n }\r\n \r\n }", "private void checkLoosePLayer(){\n if (hero.getHp()<=0){\n loose();\n }\n\n }", "private boolean checkGameStatus() {\n int res = model.getWinner();\n if (res == Model.DRAW) {\n draw();\n return false;\n } else if (res == Model.WHITE) {\n whiteScore++;\n view.getPrompt().setText(whiteName + \" win!\");\n prepareRestart();\n return false;\n } else if (res == Model.BLACK) {\n blackScore++;\n view.getPrompt().setText(blackName + \" win!\");\n prepareRestart();\n return false;\n }\n return true;\n }", "static void playerLost() {\n\n\t\tSystem.exit(0); // This code ends the program\n\t}", "@Override\n\tpublic boolean playerWon() {\n\t\treturn lastPlayerWin;\n\t}", "private void resume()\r\n {\r\n player.resume();\r\n }", "public void resetPlayerInfo() {\r\n\t\tthis.damageDealt = 0;\r\n\t\tthis.damageTaken = 0;\r\n\t\tthis.robotsDestroyed = 0;\r\n\t\tthis.tilesMoved = 0;\r\n\t\tthis.turnsSinceLastMove = 0;\r\n\t\tthis.turnsSinceLastFire = 0;\r\n\t\t\r\n\t\tthis.robots = new ArrayList<Robot>(3);\r\n\t\t\r\n\t\t/* 0 = scout , 1 = sniper, 2 = tank */\r\n\t\tthis.robots.add(new Robot(playerID, 0));\r\n\t\tthis.robots.add(new Robot(playerID, 1));\r\n\t\tthis.robots.add(new Robot(playerID, 2));\r\n\t}", "public void checkHealth()\n {\n if(player.getHealth() <= 0)\n {\n System.out.println(\"\\n\" + \"You are dead :(\" + \"\\n\");\n alive = false;\n }\n }", "public boolean unloadPlayer(P player){\n if(playerMap.containsKey(player)){\n //Player is safe to unload\n playerMap.remove(player);\n return true;\n } else {\n //Player isn't safe to save\n System.out.println(\"Tried to unload player \" + player.getName() + \"'s data, but it's not available\");\n return false;\n }\n }", "public void playerWon()\r\n {\r\n \r\n }", "private void checkPlayerScoreboard(Player player) {\n\t\tScoreboard known = knownScoreboards.get(player);\n\t\t\n\t\tif (player.hasPermission(\"pandora.movement.nopush\")) {\n\t\t\tif (known == null || known != player.getScoreboard()) {\n\t\t\t\tknown = player.getScoreboard();\n\t\t\t\tknownScoreboards.put(player, known);\n\t\t\t\tsendFakeTeam(player);\n\t\t\t}\n\t\t} else {\n\t\t\tif (known != null) {\n\t\t\t\tdeleteFakeTeam(player);\n\t\t\t\tknownScoreboards.put(player, null);\n\t\t\t}\n\t\t}\n\t}", "void resumeGame(String playerName) throws GameServiceException;", "private void checkFinish() {\n for (Player temp: players) {\n if (temp.getNumberOfCards() == 0) {\n System.out.println(\"...................................................................................................................................................................\");\n System.out.println(\"Game finished.\\n\");\n System.out.println(Color.PURPLE.getPrintColor() + temp.getName() + \" is winner.\\n\" + Color.RESET.getPrintColor());\n setGameStatus();\n }\n }\n if (!gameStatus) {\n System.out.println(Color.RESET.getPrintColor() + \"Results:\\n\");\n for (Player temp: players) {\n if (temp.getNumberOfCards() != 0) {\n System.out.println(Color.CYAN.getPrintColor() + temp.toString());\n System.out.print(temp.handToString() + Color.RESET.getPrintColor());\n }\n }\n }\n }", "public boolean checkPlays(Player player){\n return true;\n }", "private boolean try2GetGreenPlayerFromHome(Player player)\n {\n try\n {\n GreenPlayer greenPlayer = (GreenPlayer) player;\n if (GreenPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //GreenPlayer.setNumber_of_buttons_allowed(GreenPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }", "private void checkStatus()\n {\n // If the last command failed\n if(!project.getLastCommandStatus())\n {\n view.alert(\"Error: \" + project.getLastCommandStatusMessage());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCommand lastCmd = project.getLastCommand();\n\t\t\tif (lastCmd != null && lastCmd.hasOptionalState())\n\t\t\t{\n\t\t\t\tview.loadFromJSON(lastCmd.getOptionalState());\n\t\t\t\tview.onUpdate(project.getProjectSnapshot(), false);\n\t\t\t}\n\t\t}\n }", "public void resetPlayer() {\n\t\thealth = 3;\n\t\tplayerSpeed = 5f;\n\t\tmultiBulletIsActive = false;\n\t\tspeedBulletIsActive = false;\n\t\tquickFireBulletIsActive = false;\n\t\tinvincipleTimer = 0;\n\t\txPosition = 230;\n\t}", "@Override\n\tpublic void onStopLookUp(PlatformPlayer player) {\n\t\t\n\t}", "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "public void endsGameAndSetsWinner(Player player) {\n this.winner = player.getId(); \n this.gameStarted = false; \n \n }", "private void updatePlayerMovingStatus(){\n // get player's moving status\n if(keyPressed.contains(KeyCode.LEFT)){\n player.setFacing(Direction.LEFT);\n player.setIsMoving(true);\n } else if(keyPressed.contains(KeyCode.RIGHT)){\n player.setFacing(Direction.RIGHT);\n player.setIsMoving(true);\n } else if(keyPressed.contains(KeyCode.UP)){\n player.setFacing(Direction.UP);\n player.setIsMoving(true);\n } else if(keyPressed.contains(KeyCode.DOWN)){\n player.setFacing(Direction.DOWN);\n player.setIsMoving(true);\n } else {\n player.setIsMoving(false);\n }\n }", "private void scoreloss() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1-1;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2-1;\n }\n }", "private void updateLastCardDiscarded(){\r\n\t\tint x = 0;\r\n\t\twhile(this != game.getPlayer(x++)){} // find the nextPlayer\r\n\t\tx = x % game.getNumberOfPlayers();\r\n\t\tnextPlayer = game.getPlayer(x);\r\n\t\t\r\n\t\tif(latestRound != game.getRoundNumber()){ // if it's a new Round, reset\r\n\t\t\tpickedUpCards = new ArrayList<Card>();\r\n\t\t\tlastCardDiscarded = null;\r\n\t\t\tlatestRound = game.getRoundNumber();\r\n\t\t\t\r\n\t\t\tfor(int y = 0; y < game.getNumberOfPlayers(); y++){ // ?????\r\n\t\t\t\tif(game.getPlayer(y) != this && \r\n\t\t\t\t\t\t(getScore() >= game.getPlayer(y).getScore() || getPhase() > game.getPlayer(y).getPhase())){//????\r\n\t\t\t\t\tsetName(oldName);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetName(oldName + \"is#WINNING\"); // ?????\r\n\t\t}else if(lastCardDiscarded != null && Configuration.getTypeRequired(nextPlayer.getPhase(), 0) == Configuration.SET_PHASE){\r\n\t\t\tif(nextPlayer.drewFromDiscard())\r\n\t\t\t\tpickedUpCards.add(lastCardDiscarded); // add the card to picked up card if it was picked up \r\n\t\t}\r\n\t}", "private void checkForPlayerChance()\n\t\t\t{\n\t\t\t\tf = false;\n\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (win[j] == 2 && lose[j] == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tf = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\tif (f == false)\n\t\t\t\t\tj = 10;\n\n\t\t\t}", "private char getGameStatus() {\n int row;\n int col;\n\n Map<Character, Integer> lineCounts = new HashMap<>();\n\n for (row = 0; row < this.boardSize; row++) {\n countLine(getLineStatus(this.board[row]), lineCounts);\n }\n\n for (col = 0; col < this.boardSize; col++) {\n countLine(getLineStatus(getColumn(col)), lineCounts);\n }\n\n countLine(getLineStatus(getMajorDiag()), lineCounts);\n countLine(getLineStatus(getSubDiag()), lineCounts);\n\n boolean player1Won = lineCounts.getOrDefault(players[0].symbol, 0) > 0;\n boolean player2Won = lineCounts.getOrDefault(players[1].symbol, 0) > 0;\n boolean boardIsFull = lineCounts.getOrDefault(' ', 0) == 0;\n if (player1Won && player2Won) // both players completed lines, it is a tie\n return 'T';\n if (player1Won)\n return players[0].symbol;\n if (player2Won)\n return players[1].symbol;\n if (boardIsFull)\n return 'T';\n return '?';\n }", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public void removeTempStatusEffects()\n\t{\n\t\tfor(Pokemon pokemon : getParty())\n\t\t\tif(pokemon != null)\n\t\t\t\tpokemon.removeStatusEffects(false);\n\t}", "@Override\n protected String checkIfGameOver() {\n if(pgs.getP0Score() >= 50){\n return playerNames[0] + \" \" + pgs.getP0Score();\n }else if(pgs.getP1score() >= 50){\n return playerNames[1] + \" \" + pgs.getP1score();\n }\n\n return null;\n }", "private void updateStatusText() {\n Piece.Color playerColor = board.getTurnColor();\n\n if(board.isGameOver()) {\n if(board.isDraw()) {\n tvShowStatus.setTextColor(Color.BLUE);\n tvShowStatus.setText(\"DRAW\");\n }\n else if (board.getWinnerColor() == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK WINS\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE WINS\");\n }\n }\n else if(playerColor == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE\");\n }\n }", "public void printPlayerStatus() {\n System.out.println(getName() + \" owns \" +\n getOwnedCountries().size() + \" countries and \"\n + getArmyCount() + \" armies.\");\n\n String ownedCountries = \"\";\n for (Country c : getOwnedCountries())\n {\n ownedCountries += c.getCountryName().name() + \": \" + c.getArmyOccupied() + \"\\n\";\n }\n System.out.println (ownedCountries);\n }", "public void lostGame(){\n\t\tSystem.out.println(\"Schade, du hast verloren. Möchtest du es noch einmal versuchen?\");\n\t\tif(!singleplayer){\n\t\t\tif(player.getLifes() == 0){\n\t\t\t\tSystem.out.println(\"Spieler 2 gewinnt!\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Spieler 1 gewinnt!\");\n\t\t\t}\n\t\t\n\t\t}\n\t\tstopGame();\n\t\tstarted = false;\n\t\tspiel_status = 0;\n\t\tpaintMenu();\n\t}", "@Override\r\n public void checkDefaultGameOver() {\r\n if (this.checkAllDecksEmpty(0)) {\r\n // Set gameOver flag to true\r\n this.isGameOver = true;\r\n \r\n // Set the return values for this game end state\r\n this.currentAction.addActionReturnValue(this.players.get(0),\r\n this.players.get(1));\r\n }\r\n }", "private void BlueEatsPlayer(Player player)\n {\n Player player_to_be_eaten = null;\n try\n {\n BluePlayer player_to_eat = (BluePlayer) player;\n player_to_be_eaten = checkIfEatsRedPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsGreenPlayer(player_to_eat);\n if (player_to_be_eaten == null)\n {\n player_to_be_eaten = checkIfEatsYellowPlayer(player_to_eat);\n }\n }\n //player_to_be_eaten.println(\"blue_player_to_be_eaten\" + player_to_be_eaten.toString());\n if (player_to_be_eaten != null)\n {\n playPersonEatenMusic();\n returnPlayerHome(player_to_be_eaten);\n }\n }\n catch (Exception e)\n {\n \n }\n return;\n }", "public void checkPaused()\n {\n paused = true;\n }", "public GamePlayStatus() {}", "public void setMainPlayerOpening(final boolean status) {\n this.mainPlayer = status;\n }", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tsummaryPanel.updatePlayerStatus(player.getPlayerId());\n\t\t\t}", "PlayerState getPlayerState() {\n return playerState;\n }", "public void saveCurrentPlayer() {\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/current_player\",_currentPlayer));\n\t}", "public void deadPlayer() {\r\n\t\tthis.nbPlayer --;\r\n\t}", "public void updatePlayer(Player player) {\n\t\t// update the flag GO TO JAIL in Player class\n\t}", "private boolean isOver() {\r\n return players.size() == 1;\r\n }", "public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }", "@Override\n \tpublic boolean imprisonPlayer(String playerName) {\n \t\treturn false;\n \t}", "public void checkConditions(){\n\t\t// check game over conditions\n\t\tif(!status.isGameOver() && status.isGameStarted()){\n\t\t\tif(status.getShipsLeft() == 0){\n\t\t\n\t\t\t\tsoundMan.StopMusic3();\n\t\t\t\tsoundMan.StopMusic4();\n\t\t\t\tsoundMan.StopMusic5();\n\t\t\t\tsoundMan.StopMusic6();\n\t\t\t\tsoundMan.BackgroundMusic2();\n\t\t\t\tgameOver();\n\t\t\t\tsoundMan.StopMusic();\n\t\t\t}\n\t\t}\n\t\tif(!status.isGameOver() && status.isBossDestroyed()&& status.isGameStarted()){\n\t\t\tif(status.isBossDestroyed()){\n\t\t\t\tsoundMan.StopMusic5();\n\t\t\t\tsoundMan.BackgroundMusic4();\n\t\t\t\tgameWinner();\n\n\t\t\t}\n\n\t\t}\n\t}", "private void checkStatus() {\n if (switchOff) {\n String msg = \"Locker is switched off - no data source accessible.\";\n log.error(msg);\n throw new IllegalStateException(msg);\n }\n }", "private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }", "@Override\n public void suspendPlayer(String username) {\n if (match != null && username != null) {\n match.suspendPlayer(username);\n }\n }", "@Override\n public void timerExpired() {\n //Inform the player they have failed\n if (isEnglish) {\n Toast.makeText(this, LOSS, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, LOSS_CHINESE, Toast.LENGTH_SHORT).show();\n }\n\n //Set visibility for replay button to visible\n replayButton.setVisibility(View.VISIBLE);\n retryButton.setVisibility(View.VISIBLE);\n scoreboardButton.setVisibility(View.VISIBLE);\n }", "public void showPlayerStats(Player player)\n\t{\n\t\tsynchronized (offlineDataYml)\n\t\t{\n\t\t\tYamlConfiguration yaml = YamlConfiguration.loadConfiguration(offlineDataYml);\n\t\t\tif(!yaml.isSet(player.getUniqueId().toString()))\n\t\t\t{\n\t\t\t\t//no datas\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tDouble earnings = 0.0;\n\t\t\tDouble losses = 0.0;\n\t\t\t\n\t\t\t\n\t\t\tString earningspath = player.getUniqueId().toString() + \".earnings\";\n\t\t\tString lossespath = player.getUniqueId().toString() + \".losses\";\n\t\t\tif(yaml.isSet(earningspath))\n\t\t\t{\n\t\t\t\tearnings = yaml.getDouble(earningspath);\n\t\t\t}\n\t\t\tif(yaml.isSet(lossespath))\n\t\t\t{\n\t\t\t\tlosses = yaml.getDouble(lossespath);\n\t\t\t}\n\t\t\t\n\t\t\tyaml.set(player.getUniqueId().toString(), null); //delete node to reset\n\t\t\t\n\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-message\")\n\t\t\t.replace(\"%earnings%\", Main.econ.format(earnings))\n\t\t\t.replace(\"%losses%\", Main.econ.format(losses)));\n\t\t\t\n\t\t\tif(earnings > losses)\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-plus\")\n\t\t\t\t.replace(\"%win%\", Main.econ.format(earnings - losses)));\n\t\t\t}\n\t\t\telse if(earnings < losses)\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-minus\")\n\t\t\t\t.replace(\"%loss%\", Main.econ.format(losses - earnings)));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-equal\"));\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tyaml.save(offlineDataYml);\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\tCasinoManager.LogWithColor(ChatColor.RED + \"Error while trying to save offlinedata.yml! \" + e.getMessage());\n\t\t\t\te.printStackTrace(CasinoManager.getPrintWriterForDebug());\n\t\t\t}\n\t\t}\n\t}", "public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }", "public void lose() {\n status.setText(\"You're finished\");\n gamegoing = false;\n }", "private void processPlayerStatusChange(JSONObject playerjson, PlayerModel playerModel, int id) throws JSONException {\n\t\tplayerModel.setPlayerStatus(playerjson.getString(\"Status\"));\n\t\tif (!playerModel.isInitalized()) {\n\t\t\ttry {\n\t\t\t\tplayerModel.setPlayerName(playerjson.getString(\"Name\"));\n\t\t\t\tplayerModel.setPlayerColor(parsePlayerColor(playerjson.getString(\"Farbe\")));\n\t\t\t\tplayerModel.setInitalized(true);\n\t\t\t} catch (JSONException npe) {\n\t\t\t\tlog.warning(\"Farbe oder Name von \" + id + \" ist noch nicht bekannt\");\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tJSONObject ressources = playerjson.getJSONObject(\"Rohstoffe\");\n\t\t\tplayerModel.setResourceCards(parseRessourcesArray(ressources));\n\n\t\t} catch (JSONException npe) {\n\t\t\tplayerModel.setResourceCardSum(playerjson.getInt(\"Rohstoffe\"));\n\t\t}\n\n\t\tint newvp = playerjson.getInt(\"Siegpunkte\");\n\n\t\t// Setze die Siegpunkte neu wenn sie sich geändert haben\n\t\tif (newvp != playerModel.getVictoryPoints()) {\n\t\t\tplayerModel.setVictoryPoints(newvp);\n\n\t\t\t// Zeichne sie neu sobald die View da ist\n\t\t\tif (controller.getView() != null) {\n\t\t\t\tSystem.out.println(\"Neue Siegespunkte für andere Spieler: \" + playerModel.getVictoryPoints());\n\t\t\t\tPlayerPanel playerPanel = controller.getView().getPlayerpanels().get(id);\n\t\t\t\tplayerPanel.getVictoryPoints().setText(playerModel.getVictoryPoints() + \"\");\n\t\t\t\tplayerPanel.repaint();\n\t\t\t}\n\t\t}\n\t}", "void notifyPlayerReconnected(String username);", "public boolean activeFor(String player);", "public void playerMissedBall(){ active = false;}", "public void restart(){\n for(Player p: players)\n if(p.getActive())\n p.reset();\n turn = 0;\n currentPlayer = 0;\n diceRoller=true;\n }", "public boolean loadPlayer(P player){\n\n //Is the player already loaded?\n if(playerMap.containsKey(player)){\n System.out.println(\"Tried to load player \" + player.getName() + \"'s data, even though it's already loaded!\");\n return false;\n } else {\n\n if(data.getConfig().contains(player.getUniqueId().toString())){\n //Load player\n PlayerProfile playerProfile = new PlayerProfile(false, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n } else {\n //Create player profile\n PlayerProfile playerProfile = new PlayerProfile(true, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n }\n }\n }", "public void loadStatus (){\n\t}", "void skipNextPlayer() {\n endTurn();\n }", "Optional<Player> getHoldingPlayer();" ]
[ "0.6521892", "0.6255471", "0.61301273", "0.60703826", "0.6020031", "0.60124946", "0.59916097", "0.5985798", "0.59606826", "0.59471035", "0.59276074", "0.5926344", "0.5872361", "0.5858654", "0.5835673", "0.58207446", "0.5793049", "0.5789794", "0.57872885", "0.578062", "0.5777238", "0.5769655", "0.57567763", "0.57512826", "0.57202303", "0.57190824", "0.5699801", "0.56856996", "0.56853837", "0.5673977", "0.5671117", "0.566071", "0.5655032", "0.5652453", "0.5650005", "0.56487954", "0.56350726", "0.56339127", "0.5590015", "0.5582608", "0.5581419", "0.5574019", "0.55649346", "0.5553826", "0.55516785", "0.5538423", "0.5534202", "0.5530355", "0.5527694", "0.5511407", "0.550718", "0.5493554", "0.54783964", "0.5468922", "0.5466494", "0.54660285", "0.54630053", "0.54613423", "0.5460279", "0.5448715", "0.54456836", "0.544243", "0.5440751", "0.543374", "0.54313725", "0.54313725", "0.5429494", "0.5425645", "0.5423317", "0.5420809", "0.5418647", "0.540647", "0.54003257", "0.5399653", "0.53957033", "0.5395465", "0.5390367", "0.53865767", "0.5383942", "0.53805953", "0.5376587", "0.5371592", "0.5370112", "0.53650016", "0.53624624", "0.5361899", "0.53587353", "0.5355137", "0.53540784", "0.53526646", "0.5349222", "0.5347173", "0.53470695", "0.5346248", "0.5341305", "0.534046", "0.5337544", "0.53369087", "0.53335166", "0.5330463", "0.5324676" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnStepViewFragmentInteractionListener { void onStepViewFragmentInteraction(int position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "void onFragmentInteraction(int position);", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}" ]
[ "0.7325317", "0.7209285", "0.7136769", "0.7125", "0.71222794", "0.7015571", "0.6976405", "0.6976405", "0.6976405", "0.69750535", "0.69684756", "0.696636", "0.69612736", "0.6954515", "0.694358", "0.6934953", "0.69307446", "0.6928857", "0.69236445", "0.69108784", "0.69035834", "0.6897696", "0.6894794", "0.6883755", "0.6881693", "0.68762213", "0.6864976", "0.6861802", "0.6860837", "0.68601984", "0.685738", "0.6844361", "0.68402916", "0.6830564", "0.6818788", "0.68176484", "0.6810633", "0.67869633", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6770152", "0.6769278", "0.6766519", "0.67622006", "0.6755259", "0.6754422", "0.67000836", "0.6682742", "0.6674323", "0.667107", "0.66703165", "0.66625565", "0.666218", "0.6655887", "0.66529083", "0.6645084", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6644105", "0.6638883", "0.6636765", "0.6632825", "0.6626393", "0.6626087", "0.6619544", "0.66110307", "0.6610578", "0.66097426", "0.66045195", "0.659754", "0.6597511", "0.6587135", "0.6572878", "0.6570346", "0.65613157", "0.65607333", "0.6555527", "0.65499026", "0.65496886", "0.6543482", "0.6539677", "0.6534717", "0.6534717", "0.6534717", "0.65200627", "0.6517923", "0.6517733" ]
0.0
-1
Sender Part for Random Number.
public void sendMessage(Channel queueChannel, int number) throws IOException, TimeoutException { // Queue Creation queueChannel.queueDeclare(QUEUE_NAME,false,false,false,null ); String message = Integer.toString(number); // Publish queueChannel.basicPublish("", QUEUE_NAME, null, message.getBytes()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ReactMethod\n public void sendRandom() {\n long maxPayloadLength = chirpConnect.maxPayloadLength();\n long size = (long) new Random().nextInt((int) maxPayloadLength) + 1;\n byte[] payload = chirpConnect.randomPayload((byte)size);\n\n ChirpError error = chirpConnect.send(payload);\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n }\n }", "private String genSenderID(String phoneNumber) {\r\n String sid = phoneNumber.replaceAll(senderIDRegex, \"\");\r\n return sid.length() > 11 ? sid.substring(sid.length() - 11, sid.length()) : sid;\r\n }", "java.lang.String getSenderId();", "public String generateRandomEmail() {\n return generateLocalPart() + \"@test\" + getRandNumber() + \".com\";\n }", "@Override\n\tprotected void beforeSendingMessage(Message message) {\n\t\tmessage.receiver = getNextRandomClient();\n\t}", "@Override\n public void sendMessage(Token token) throws JSimSecurityException, JSimInvalidParametersException {\n double random_number = uniform(0.5, 2.5);\n switch((int) Math.round(random_number)){\n //Notificar\n case 1:{\n //this.PE9.receiveMessage(token);\n System.out.println(\"** Enviando mensaje desde PE7 hacia PE9\");\n token.setSender(this.getName());\n token.setPosting(\"PE9\");\n JSimLink link = new JSimLink(token);\n link.into(this.getProcessor().getQueue());\n break;\n }\n //Llamar a emergencias\n case 2:{\n //this.PE8.receiveMessage(token);\n System.out.println(\"** Enviando mensaje desde PE7 hacia PE8\");\n token.setSender(this.getName());\n token.setPosting(\"PE8\");\n JSimLink link = new JSimLink(token);\n link.into(this.getProcessor().getQueue());\n break;\n }\n \n }\n \n }", "private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }", "public void testGetSender() {\r\n int expected;\r\n \r\n for (int i = 0; i < NUMBER_OF_TESTS; i++) {\r\n expected = (rand.nextInt() & 0x0F);\r\n assertEquals(expected, NetworkDatagram.getSender(expected << 4)); \r\n }\r\n }", "String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tRandom ra=new Random();\r\n\t\t\t\tint val=ra.nextInt(999);\r\n\t\t\t\tSmsManager sms=SmsManager.getDefault();\r\n\t\t\t\tsms.sendTextMessage(txt_phone.getText().toString(), null, val+\"\", null, null);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(), OTP_Reg.class);\r\n\t\t\t\ti.putExtra(\"name\", txt_name.getText().toString());\r\n\t\t\t\ti.putExtra(\"phone\", txt_phone.getText().toString());\r\n\t\t\t\ti.putExtra(\"otp\", val+\"\");\r\n\t\t\t\t\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t}", "void generateControlMessage(UDPAddress sender, int missingNum, int type) {\n DatagramPacket outPacket = null;\n byte[] outData = new byte[UDPTransportLayer.PACKET_SIZE];\n\n // Write out message header\n writeByte(outData, 0, type);\n writeInt (outData, 1, missingNum);\n\n // Create new packet\n outPacket = new DatagramPacket(outData, UDPTransportLayer.PACKET_SIZE, sender.hostAddr, sender.hostPort);\n try {\n socket.send(outPacket);\n } catch (IOException e) {\n Debug.exit(e.toString());\n }\n// toResend.enqueue(outPacket);\n\n // Now wake up the sending thread if it isn't already\n// synchronized (msgsToSend) {\n// msgsToSend.notifyAll();\n// }\n }", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "public int getSenderId() {\r\n\t\treturn senderId;\r\n\t}", "public int getSenderId() {\n return senderId;\n }", "private static String smsCode() {\n\t\t\tString random=new Random().nextInt(1000000)+\"\";\r\n\t\t\treturn random;\r\n\t\t}", "public synchronized void sendNo() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_NO);\r\n\t\tendMessage();\r\n\t}", "private String getRandomContactPhoneNumber() {\n \t\treturn contactPhoneNumbers.get(randy.nextInt(contactPhoneNumbers.size()));\n \t}", "int getSendid();", "public String getSender ()\r\n\t{\r\n\t\treturn sender;\r\n\t}", "private void getRandomNumber() {\n\t\tRandom random = new Random();\n\t\tint randomCount = 255;\n\t\tint randNum = 0; \n\t\tfor(int i = 0; i < numberAmt; i++) {\n\t\t\trandNum = random.nextInt(randomCount);\n\t\t\tswitch (numberType) {\n\t\t\tcase 1:\n\t\t\t\trandomNumbers.add(Integer.toString(randNum));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(randNum > 15)\n\t\t\t\t\trandomNumbers.add(String.format(\"%8s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\telse\n\t\t\t\t\trandomNumbers.add(String.format(\"%4s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\trandomNumbers.add(Integer.toHexString(randNum));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void setPeerId(){\n Random ran = new Random();\n int rand_id = ran.nextInt(5555555 - 1000000 + 1) + 1000000;\n String peer_id_string = \"GROUP4AREL33t\" + rand_id;\n PEER_ID = peer_id_string.getBytes();\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\tsender.send();\n\t\tsender.send(123);\n\t}", "String getPublicKeyActorSend();", "@Benchmark\n @BenchmarkMode(Mode.Throughput)\n public void send()\n {\n _sender1.send(_account);\n }", "public String getReceivedSerialNumber() ;", "private String getRandomUniqueId() {\r\n return \"WEBSOCKET.\" + new Random().nextInt(100);\r\n }", "public String getSenderPhoneNumber();", "private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }", "public String getSender() {\n\t\treturn senderId;\n\t}", "private void sendMessagetoRespectivePlayer(int num) {\n Message msg1;\n if(flag == \"player1\"){\n prevP1 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p1Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p1Handler.obtainMessage(4);\n }\n else{\n msg1 = p1Handler.obtainMessage(5);\n }\n p1Handler.sendMessage(msg1);\n }\n else{\n prevP2 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p2Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p2Handler.obtainMessage(4);\n }\n else{\n msg1 = p2Handler.obtainMessage(5);\n }\n p2Handler.sendMessage(msg1);\n }\n }", "private byte[] generateRandomMessage(int size) {\r\n\t\t\r\n\t\tif (size < 10) { // minimum length is 10, since first 9 digits \r\n\t\t\t\t\t\t // are used as message id\r\n\t\t\tsize = 10;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString message = \"\";\r\n\t\t\r\n\t\tfor(int j=0; j<size; j++) {\r\n\t\t\t\r\n\t\t\tmessage += (char)(random.nextInt(10)+'0');\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn message.getBytes();\r\n\t\t\r\n\t}", "void setSenderId(int id) {\n this.senderId = id;\n }", "public static int offset_senderNodeID() {\n return (8 / 8);\n }", "public static int RandomNum(){\n\n Random random = new Random();\n int ItemPicker = random.nextInt(16);\n return(ItemPicker);\n }", "public String senderId() {\n return senderId;\n }", "public void makeAndSendAgentID(){\n sendID(id, x, y);\n }", "public int getSenderPort() {\n return senderPort;\n }", "public void setSender(String sender){\n this.sender = sender;\n }", "private static void SendToAuctioneer(BigInteger msg) {\r\n\t\tmsg=auctioneer_pk.encrypt(msg)[0];\r\n\t\tsendToClient(auctioneer,msg);\r\n\t}", "public void generateRandomNumber(String customer) {\n int randomNumber;\n\n SecureRandom secureRandom = new SecureRandom();\n String s = \"\";\n for (int i = 0; i < length; i++) {\n int number = secureRandom.nextInt(range);\n if (number == 0 && i == 0) { // to prevent the Zero to be the first number as then it will reduce the length of generated pin to three or even more if the second or third number came as zeros\n i = -1;\n continue;\n }\n s = s + number;\n }\n\n\n randomNumber = Integer.parseInt(s);\n final Intent emptyIntent = new Intent(this, AdminCusList.class);\n NotificationManager notificationManager = (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);\n\n String channelId = \"channel-01\";\n String channelName = \"Channel Name\";\n int importance = NotificationManager.IMPORTANCE_HIGH;\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {\n NotificationChannel mChannel = new NotificationChannel(\n channelId, channelName, importance);\n notificationManager.createNotificationChannel(mChannel);\n }\n\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this, channelId)\n .setSmallIcon(R.mipmap.jihuzurapplogo)\n .setContentTitle(\"You have message\")\n .setContentText(\"Check your helpcentre, you have message from \"+ customer);\n\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\n /* stackBuilder.addNextIntent(intent);*/\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, emptyIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n mBuilder.setContentIntent(pendingIntent);\n notificationManager.notify(5, mBuilder.build());\n\n final Map<String, Object> adminnotify = new HashMap<>();\n\n adminnotify.put(\"Chat\", \"Customer\");\n\n db.collection(\"AdminChatNotify\").document(\"Admin\").set(adminnotify).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n }\n });\n\n // Toast.makeText(getApplicationContext(), randomNumber + \" number\", Toast.LENGTH_LONG).show();\n\n }", "public synchronized void incrementNumSent(){\n numSent++;\n }", "public String getSender() {\n\t\treturn sender;\n\t}", "public String getSender() {\n return this.sender;\n }", "public java.lang.String getSenderId() {\r\n return senderId;\r\n }", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "public String getSender() {\n return sender;\n }", "private String generateLocalPart() {\n StringBuffer addr = new StringBuffer();\n for(int i=0; i<LOCAL_LENGTH; i++) {\n int num = getRandNumber();\n char c = LIST.charAt(num);\n addr.append(c);\n }\n return addr.toString();\n }", "public final Player getSender() {\n return sender;\n }", "private String genrateOrderTrakingnumber() {\n return UUID.randomUUID().toString();\n }", "public Node getSender() {\n return sender;\n }", "void sendTo(String from, String to, String m_id);", "public static int getRandomAmount(){\n return rand.nextInt(1000);\n }", "private String setProtocolNumber() {\n\t\tRandom rnd = new Random();\n\t\treturn Integer.toString(rnd.nextInt(999999));\n\t}", "java.lang.String getSenderName();", "public static String getSSN() {\n\t\tint part1 = getRandomInt(100, 999);\n\t\tint part2 = getRandomInt(0, 99);\n\t\tint part3 = getRandomInt(0, 9999);\t\t\n\t\tString ssn = paddingNumber(part1, 3) + \"-\" + paddingNumber(part2, 2) + \"-\" + paddingNumber(part3, 4);\n\t\treturn ssn;\n\t}", "@DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.516 -0500\", hash_original_method = \"C8C31043DDFE26EC3BE146F1B2B418E3\", hash_generated_method = \"4278121A770EE39DDEB6E37D007DBBC8\")\n \npublic void sendMessage(int what) {\n Message msg = Message.obtain();\n msg.what = what;\n sendMessage(msg);\n }", "public String getSender() {\n return msgSender;\n }", "private static void sendToBidder(int clientNo, BigInteger msg) {\r\n\t\tmsg=pk[clientNo].encrypt(msg)[0];\r\n\t\tsendToClient(bidders.get(clientNo),msg);\r\n\t}", "public void setSender(Processor process) {\n System.out.println(\"Setting sender as: \" + process.id);\n this.senderProcess = process;\n }", "public static String randomEmail() {\n\t\tRandom randomGenerator = new Random(); \n\t\tint randomInt = randomGenerator.nextInt(10000); \n\t\treturn \"username\"+ randomInt +\"@yopmail.com\"; \n\t}", "void receiveSequenceNumber() {\r\n\t\t\r\n\t}", "public Term getSender() {\n return sender;\n }", "public static String generateMobNum() {\n\t\tString number = RandomStringUtils.randomNumeric(10);\t\n\t\treturn (number);\n\t}", "public void setSender(String sender) {\n Sender = sender;\n }", "public BICorIBAN getSender() {\n\n // Get the sender of the missive document\n return this.missiveHeader.getSnd();\n }", "void send();", "public Reply sender(String senderText) throws ThingsException, InterruptedException;", "private static void sendToClient(Socket socket,BigInteger msg) {\r\n\t\ttry {\r\n\t\t\tOutputStream stream=socket.getOutputStream();\r\n\t\t\tcryptoMessaging.sendBigInteger(stream,msg);\r\n\t\t} catch (IOException io) {\r\n\t\t\tSystem.out.println(\"ERROR: IO Exception. Could not send message to client.\");\r\n\t\t\tgiveUp();\r\n\t\t}\r\n\t}", "public void setSender(String sender) {\n this.sender = sender;\n }", "public void send() {\n\t}", "public short get_senderNodeID() {\n return (short)getUIntBEElement(offsetBits_senderNodeID(), 8);\n }", "public String getSender() {\n return Sender;\n }", "void messageSent();", "@Override\n public void onCodeSent(String s, PhoneAuthProvider.ForceResendingToken forceResendingToken) {\n super.onCodeSent(s, forceResendingToken);\n // when we receive the OTP it\n // contains a unique id which\n // we are storing in our string\n // which we have already created.\n verificationId = s;\n }", "public String getFromSenderName() {\n return fromSenderName;\n }", "int getReceiverid();", "@Override\n\tpublic String sendOTP(String toNumber, String fromNumber, String abc) {\n\t\tredisRepo.getHashOps();\n\t\tString value = redisRepo.getValue(toNumber, toNumber);\n\t\t\n\t\tif (value != null)\n\t\t\treturn value;\n\t\tString otp = generateOtp();\n\t\tSystem.out.println(\"Inside the sendOtp method\");\n\t\t\n\t\tif (value == null) {\n\t\t\tredisRepo.putKey(toNumber, toNumber, otp);\n\t\t\tSystem.out.println(redisRepo.expireKey(toNumber));\n\t\t}\n\t\t\n\t\ttwService.sendMessage(toNumber,fromNumber, otp);\n\t\t\n\t\treturn otp;\n\t}", "public int getSenderId() {\n return messages.get(messages.size()-1).getNodeId();\n }", "public int getNumberSent()\r\n {\r\n return this.numberSent;\r\n }", "Message(SENDER sender, TYPE type, int value, Socket senderSocket) {\n\t\tthis.sender = sender;\n\n\t\tthis.type = type;\n\t\tthis.value = value;\n\n\t\tthis.senderSocket = senderSocket;\n\t}", "private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\r\n }", "public synchronized int getNumSent(){\n return numSent;\n }", "public void send(int number){\n\t\ttry{\n\t\t\tSystem.out.println(\"Sende \" + number);\n\t\t\tout.writeInt(number);\n\t\t\tout.flush();\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private int randomAddress() {\n\t\tint randomAddressId = (int) (Math.random() * 603);\n\t\treturn randomAddressId;\n\t}", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "private void sendSMS() {\n String msg = \"\";\n\n switch (s) {\n case \"Accelerometre\":\n msg = acce;\n break;\n case \"Lumiere\":\n msg = light;\n break;\n case \"Proximite\":\n msg = proxi;\n break;\n case \"Gyroscope\":\n msg = gyro;\n break;\n }\n\n String num = numero.getText().toString();\n\n final int PERMISSION_REQUEST_CODE = 1;\n\n if (checkSelfPermission(android.Manifest.permission.SEND_SMS) ==\n PackageManager.PERMISSION_DENIED) {\n Log.d(\" permission \", \" permission denied to SEND_SMS - requesting it \");\n String[] permissions = {android.Manifest.permission.SEND_SMS};\n requestPermissions(permissions, PERMISSION_REQUEST_CODE);\n } else {\n if (num.length() == 10) {\n SmsManager.getDefault().sendTextMessage(num, null, msg, null, null);\n numero.setText(\"\");\n } else {\n //On affiche un petit message d'erreur dans un Toast\n Toast toast = Toast.makeText(CapteurActivity.this, \"Veuilliez écrire un numero a 10 chiffres\", Toast.LENGTH_LONG);\n toast.show();\n\n }\n }\n }", "public Reply sender(String senderText, DSN dsn) throws ThingsException, InterruptedException;", "public void send(byte[] m, BFT.util.Role role, int index);", "com.lvl6.proto.UserProto.MinimumUserProto getSender();", "com.lvl6.proto.UserProto.MinimumUserProto getSender();", "com.lvl6.proto.UserProto.MinimumUserProto getSender();", "com.lvl6.proto.UserProto.MinimumUserProto getSender();", "public Processor getSender() {\n return this.senderProcess;\n }", "private void addObj() {\n Random rnd = new Random(); // random priority\n\n Tuple<T1, Integer> obj = new Tuple<>(message, (int)(rnd.nextDouble()*10) );\n\n cons.addElement(obj); // send a message\n }", "public int getRandomsNumber(){\n Random random = new Random();\n int number = random.nextInt(12) + 1;\n return number;\n }" ]
[ "0.668708", "0.6310438", "0.61146194", "0.60389435", "0.6022113", "0.5997344", "0.598389", "0.59116894", "0.58925974", "0.5889141", "0.5889141", "0.5889141", "0.5889141", "0.5889141", "0.5889141", "0.5837818", "0.57822347", "0.57787997", "0.5753357", "0.5733932", "0.57248896", "0.5702333", "0.5681982", "0.5664603", "0.5642721", "0.5625254", "0.5615185", "0.55970174", "0.5586968", "0.5540018", "0.5531972", "0.553033", "0.55290526", "0.55199623", "0.55110073", "0.5503981", "0.54805446", "0.54715884", "0.5463207", "0.54593474", "0.54475963", "0.54345846", "0.5432437", "0.5414929", "0.5408541", "0.5403089", "0.54024786", "0.53865486", "0.5384212", "0.5384147", "0.538391", "0.5375191", "0.5372849", "0.5371654", "0.536381", "0.5363553", "0.5356086", "0.5352275", "0.5350545", "0.53396964", "0.5324211", "0.53101164", "0.53094167", "0.53075415", "0.5306434", "0.53063464", "0.53055817", "0.53049046", "0.53018355", "0.5294866", "0.5285961", "0.5278872", "0.5269361", "0.52652115", "0.52571875", "0.5249632", "0.52492136", "0.52396107", "0.52381355", "0.5238074", "0.523799", "0.523745", "0.5235563", "0.5233648", "0.5223833", "0.52199805", "0.521906", "0.5216814", "0.5195749", "0.5189015", "0.5188394", "0.5187402", "0.51850164", "0.51837474", "0.51635194", "0.51635194", "0.51635194", "0.51635194", "0.51603246", "0.5157683", "0.5152121" ]
0.0
-1
/ renamed from: a
public final void mo12783a(String str) { Parcel z = mo11432z(); z.writeString(str); mo11430b(3, z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
this properties are necessary for RMI servers to work in some cases: if we are behind a firewall, if the network connection is lost, etc. do not use domain or http address for server
public static void setupRMI(final boolean localHostOnly) { if (System.getProperty(SERVER_HOSTNAME) == null) { System.setProperty(SERVER_HOSTNAME, getLoopbackAddress()); } // do not use HTTP tunnelling System.setProperty("java.rmi.server.disableHttp", "true"); if (RMISocketFactory.getSocketFactory() != null) return; try { RMISocketFactory.setSocketFactory(new RMISocketFactory() { final InetAddress loopbackAddress = InetAddress.getByName(getListenAddress(localHostOnly)); @Override public Socket createSocket(String host, int port) throws IOException { Socket socket = new Socket(host, port); socket.setKeepAlive(true); return socket; } @Override public ServerSocket createServerSocket(int port) throws IOException { return new ServerSocket(port, 0, loopbackAddress); } }); } catch (IOException e) { throw new AssertionError(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic String getRemoteAddr() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic String getRemoteAddr() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteAddr() {\n\t\treturn null;\n\t}", "abstract String getRemoteAddress();", "@Override\n\t\tpublic String getServerName() {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic String getRemoteHost() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic String getServerName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getServerName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getRemoteHost() {\n\t\treturn null;\n\t}", "default String remoteAddr() {\n return (String) metadata().get(\"x-remote-addr\");\n }", "public RMIServer() {\n System.setProperty(\"java.security.policy\", \"AllPermission.policy\");\n this.config = RMIConfiguration.getInstance();\n }", "java.lang.String getServerAddress();", "private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }", "@Override\n\tpublic Collection<InetSocketAddress> getAvaliableServers() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getServerName();", "public void setupWebServers(){\n if(rwsServer == null || csaServer == null){\n String serverURL = getFirstAttribute(cn,FRONTEND_ADDRESS_TAG);\n setupWebServers(serverURL);\n }\n }", "public String getServerBase() {\n HttpServletRequest request = FxJsfUtils.getRequest().getRequest();\n return \"http\" + (request.isSecure() ? \"s://\" : \"://\") + FxRequestUtils.getExternalServerName(request);\n }", "public String getHostName() {\n return null;\n }", "public String getServerAddress() {\r\n\t\treturn this.serverAddress;\r\n\t}", "public String getHost() { return host; }", "public String getURL(){\r\n\t\tString url = \"rmi://\";\r\n\t\turl += this.getAddress()+\":\"+this.getPort()+\"/\";\r\n\t\treturn url;\r\n\t}", "public interface IRemoteCacheServerAttributes\n extends ICommonRemoteCacheAttributes\n{\n /**\n * Gets the localPort attribute of the IRemoteCacheAttributes object.\n * <p>\n * @return The localPort value\n */\n int getServicePort();\n\n /**\n * Sets the localPort attribute of the IRemoteCacheAttributes object.\n * <p>\n * @param p\n * The new localPort value\n */\n void setServicePort( int p );\n\n /**\n * Should we try to get remotely when the request does not come in from a\n * cluster. If local L1 asks remote server R1 for element A and R1 doesn't\n * have it, should R1 look remotely? The difference is between a local and a\n * remote update. The local update stays local. Normal updates, removes,\n * etc, stay local when they come from a client. If this is set to true,\n * then they can go remote.\n * <p>\n * @return The localClusterConsistency value\n */\n boolean isAllowClusterGet();\n\n /**\n * Should cluster updates be propagated to the locals.\n * <p>\n * @param r\n * The new localClusterConsistency value\n */\n void setAllowClusterGet( boolean r );\n\n /**\n * Gets the ConfigFileName attribute of the IRemoteCacheAttributes object.\n * <p>\n * @return The configuration file name\n */\n String getConfigFileName();\n\n /**\n * Sets the ConfigFileName attribute of the IRemoteCacheAttributes object.\n * <p>\n * @param s\n * The new configuration file name\n */\n void setConfigFileName( String s );\n\n /**\n * Should we try to keep the registry alive\n * <p>\n * @param useRegistryKeepAlive the useRegistryKeepAlive to set\n */\n void setUseRegistryKeepAlive( boolean useRegistryKeepAlive );\n\n /**\n * Should we try to keep the registry alive\n * <p>\n * @return the useRegistryKeepAlive\n */\n boolean isUseRegistryKeepAlive();\n\n /**\n * @param registryKeepAliveDelayMillis the registryKeepAliveDelayMillis to set\n */\n void setRegistryKeepAliveDelayMillis( long registryKeepAliveDelayMillis );\n\n /**\n * @return the registryKeepAliveDelayMillis\n */\n long getRegistryKeepAliveDelayMillis();\n}", "protected String getServerUrl() {\r\n\t\treturn server;\r\n\t}", "public String getServerUrl() {\r\n return this.fedoraBaseUrl;\r\n }", "public String getHost();", "public String getHost();", "public void updateSystemSettings()\r\n {\r\n System.setProperty( \"http.agent\", Environment.getPhexVendor() );\r\n if ( isHttpProxyUsed )\r\n {\r\n System.setProperty( \"http.proxyHost\", httpProxyHost );\r\n System.setProperty( \"http.proxyPort\", String.valueOf( httpProxyPort ) );\r\n }\r\n else\r\n {\r\n System.setProperty( \"http.proxyHost\", \"\" );\r\n System.setProperty( \"http.proxyPort\", \"\" );\r\n }\r\n \r\n // cache DNS name lookups for only 30 minutes\r\n System.setProperty( \"networkaddress.cache.ttl\", \"1800\" );\r\n Security.setProperty( \"networkaddress.cache.ttl\", \"1800\" );\r\n }", "@Override\n\t\tpublic String getLocalAddr() {\n\t\t\treturn null;\n\t\t}", "java.lang.String getHost();", "java.lang.String getHost();", "public Boolean getHostNetwork() {\n return hostNetwork;\n }", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "@Override\n\tpublic InetAddress getRemoteAddress() {\n\t\treturn null;\n\t}", "@Column(length = 1024)\r\n @PlaceHolder(key = \"host\")\r\n public String getServerName() {\r\n return serverName;\r\n }", "@Override\n public NetworkAddress getRemoteAddress() {\n return remoteAddress;\n }", "public String getServerUrl() {\n return ipAddress;\n }", "private ObjectName getRMIConnectorServerName()\n throws javax.management.MalformedObjectNameException {\n return new ObjectName(\"connectors:protocol=rmi\");\n }", "java.lang.String getRemoteHost();", "@Override\n\tpublic String getLocalAddr() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getLocalAddr() {\n\t\treturn null;\n\t}", "public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }", "public String getNiceServerIP(){\n\t\treturn(niceServerAddress);\n\t}", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHostName (){\n return hostName;\n }", "boolean isOmniProxyServer();", "default String getHost() {\n return \"localhost\";\n }", "String getHost()\n {\n return host;\n }", "public String getServerAddress() {\n\t\treturn mServerAddress;\n\t}", "default String protocol() {\n return (String) metadata().get(\"x-server-protocol\");\n }", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "public String getServerName() {\n return serverName;\n }", "public String getServerName() {\n return serverName;\n }", "@PostConstruct\n\tprivate void init() {\n\t\ttry {\n\t\t\tif (environment.getProperty(\"marathon.uri\") != null)\n\t\t\t\tmarathonUrl = environment.getProperty(\"marathon.uri\");\n\t\t\tif (environment.getProperty(\"quay.url\") != null)\n\t\t\t\tquayHost = environment.getProperty(\"quay.url\");\n\t\t\t{\n\t\t\t\tint slashslash = quayHost.indexOf(\"//\") + 2;\n\t\t\t\tquayHost = quayHost.substring(slashslash, quayHost.indexOf('/', slashslash));\n\t\t\t\t/*\n\t\t\t\t * URL aURL = new URL(\"quayhost\"); quayhost = aURL.getHost();\n\t\t\t\t */\n\t\t\t}\n\t\t\tif (environment.getProperty(\"chronos.uri.prefix\") != null) {\n\t\t\t\tchronosUrlPrefix = environment.getProperty(\"chronos.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"docker.uri.prefix\") != null) {\n\t\t\t\tdockerUri = environment.getProperty(\"docker.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"websocket.retsapi.server.url\") != null) {\n\t\t\t\twebsocketServerUrl = environment.getProperty(\"websocket.retsapi.server.url\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"tomcat.url\") != null) {\n\t\t\t\ttomcatUri = environment.getProperty(\"tomcat.url\");\n\t\t\t\t// String myString = tomcatUri;\n\t\t\t\t// tomcatUri = myString.replace(\"http://\",\"\").replace(\"http://\n\t\t\t\t// www.\",\"\").replace(\"www.\",\"\");\n\t\t\t\t// int slashslash = tomcatUri.indexOf(\"//\") + 2;\n\t\t\t\t// tomcatUri = tomcatUri.substring(slashslash,\n\t\t\t\t// tomcatUri.indexOf('/', slashslash));\n\t\t\t\t// System.out.println(a);\n\t\t\t}\n\t\t\tif (environment.getProperty(\"nvidia.host\") != null) {\n\t\t\t\tnvidiaHost = environment.getProperty(\"nvidia.host\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"mesos.slave.prefix\") != null) {\n\t\t\t\tmesosSlvaePrefix = environment.getProperty(\"mesos.slave.prefix\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error while reading properties for Marathon\", e);\n\n\t\t}\n\t}", "public String getIpServer()\n \t{\n \t\treturn ipServer;\n \t}", "@Override\n public List<String> getDnsServerAddresses()\n {\n final List<String> servers = new ArrayList<>();\n final Network network = getActiveNetwork();\n if (network == null) {\n return null;\n }\n\n LinkProperties linkProperties = connectivityManager.getLinkProperties(network);\n if (linkProperties == null) {\n return null;\n }\n\n int vpnOffset = 0;\n final NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network);\n final boolean isVpn = networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_VPN;\n final List<String> v4v6Servers = getIPv4First(linkProperties.getDnsServers());\n // Timber.d(\"hasDefaultRoute: %s activeNetwork: %s || isVpn: %s || IP: %s\",\n // hasDefaultRoute(linkProperties), network, isVpn, toListOfStrings(linkProperties.getDnsServers()));\n\n if (isVpn) {\n servers.addAll(0, v4v6Servers);\n // vpnOffset += v4v6Servers.size();\n }\n // Prioritize the DNS servers of links which have a default route\n else if (hasDefaultRoute(linkProperties)) {\n servers.addAll(vpnOffset, v4v6Servers);\n }\n else {\n servers.addAll(v4v6Servers);\n }\n\n // Timber.d(\"dns Server Addresses (linkProperty): %s\", servers);\n return servers;\n }", "@Override\n\tpublic java.lang.String getRemoteAddr() {\n\t\treturn _userTracker.getRemoteAddr();\n\t}", "String getHost();", "@Override\n\tpublic ArrayList<String> getHost() {\n\t\treturn null;\n\t}", "final boolean detectProxyServer()\r\n {\r\n DataInputStream dis=null;\r\n\tString url=\"\";\r\n\r\n\t// Allow for non-Demon Home page\r\n\tif(app.server==null)\r\n\t{\r\n\t if(app.indexName==null)\r\n\t url=\"http://www.\"+hostName+\"/index.html\";\r\n else url=\"http://www.\"+hostName+\"/\";\r\n\t}\r\n\telse\r\n\t{\r\n\t if(app.indexName==null)\r\n\t url=app.server+\"index.html\";\r\n\t else url=app.server+app.indexName; \t\r\n\t}\r\n\t//Attempt to connect to this url\r\n\ttry\r\n\t{\r\n\t URL doc=new URL(url);\r\n\t dis=new DataInputStream(doc.openStream());\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t // Unable to connect. This may be an incorrect applet parameter. Let's assume though it's a \r\n\t // proxy server that's stopping use using the hostname.\r\n\t return true;\r\n\t}\r\n\treturn false;\r\n }", "public void setHost(String host);", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public JMXServiceURL getRMIAddress() {\n if (rmiConnector != null) {\n return rmiConnector.getAddress();\n\n } else {\n return null;\n }\n }", "protected final String getServerUrl() {\n return this.serverUrl;\n }", "public String getHost(){\n\t\treturn this.host;\n\t}", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }", "void resetToDefaultServerAddress();", "String getRemoteAddr();", "public boolean dnsSrvEnabled();", "public interface ClientContant {\n /**\n * rpc服务器\n */\n String RPC_SERVER_HOST = \"rpc.server.host\";\n /**\n * rpc服务器端口\n */\n String RPC_SERVER_PORT = \"rpc.server.port\";\n}", "public static String getBaseHost() {\r\n if (baseHost == null) {\r\n baseHost = PropertiesProvider.getInstance().getProperty(\"server.name\", \"localhost\");\r\n }\r\n return baseHost;\r\n }", "public ServerHostNameAndTimeFilter()\n\t{\n\t\tString hostId = null;\n\t\ttry\n\t\t{\n\t\t\thostId = System.getProperty(\"examples.hostname\");\n\t\t}\n\t\tcatch (SecurityException e)\n\t\t{\n\t\t}\n\t\tif (Strings.isEmpty(hostId))\n\t\t{\n\t\t\thostId = String.valueOf(System.currentTimeMillis());\n\t\t}\n\n\t\tsetHostName(hostId);\n\t}", "public InitialValuesConnectionCenter() \n\t{\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException ServerConnectionCenter.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "String getRemoteHostName();", "@Override\n\tInetSocketAddress remoteAddress();", "public String getHostName();", "@Override\n\tprotected boolean isRegisterServerConnect()\n\t{\n\t\treturn false;\n\t}", "private String getServerDetails() {\n String sServerLine = \"Server: Ramon's Killer \";\n String sSocketType = (bIsSecure ? \"(SECURE)\" : \"(unsecure)\");\n sServerLine = sServerLine + sSocketType + \" Server\";\n return sServerLine;\n }", "private SystemPropertiesRemoteSettings() {}", "public String getNonProxyHosts() {\n return nonProxyHosts;\n }", "public String getNonProxyHosts() {\n return nonProxyHosts;\n }", "void updateCustomServerAddress(String customServerAddress);", "String getServerName() {\n return game.z.C;\n }", "@Override\n\t\tpublic int getServerPort() {\n\t\t\treturn 0;\n\t\t}", "public String getRemoteComputerString(){\n return this.remoteComputerString;\n }", "private String getUrlBaseForLocalServer() {\n\t HttpServletRequest request = ((ServletRequestAttributes) \n\t\t\t RequestContextHolder.getRequestAttributes()).getRequest();\n\t String base = \"http://\" + request.getServerName() + ( \n\t (request.getServerPort() != 80) \n\t \t\t ? \":\" + request.getServerPort() \n\t\t\t\t : \"\");\n\t return base;\n\t}", "protected String getDomain() {\n return \"\";\n }", "public void applyWebProxySettings() {\n boolean settingsChanged = false;\n boolean enablingProxy = false;\n Properties sysprops = System.getProperties();\n if (proxyHost != null) {\n settingsChanged = true;\n if (proxyHost.length() != 0) {\n traceSettingInfo();\n enablingProxy = true;\n sysprops.put(\"http.proxyHost\", proxyHost);\n String portString = Integer.toString(proxyPort);\n sysprops.put(\"http.proxyPort\", portString);\n sysprops.put(\"https.proxyHost\", proxyHost);\n sysprops.put(\"https.proxyPort\", portString);\n sysprops.put(\"ftp.proxyHost\", proxyHost);\n sysprops.put(\"ftp.proxyPort\", portString);\n if (nonProxyHosts != null) {\n sysprops.put(\"http.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"https.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"ftp.nonProxyHosts\", nonProxyHosts);\n }\n if(proxyUser!=null) {\n sysprops.put(\"http.proxyUser\", proxyUser);\n sysprops.put(\"http.proxyPassword\", proxyPassword);\n }\n } else {\n log(\"resetting http proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"http.proxyHost\");\n sysprops.remove(\"http.proxyPort\");\n sysprops.remove(\"http.proxyUser\");\n sysprops.remove(\"http.proxyPassword\");\n sysprops.remove(\"https.proxyHost\");\n sysprops.remove(\"https.proxyPort\");\n sysprops.remove(\"ftp.proxyHost\");\n sysprops.remove(\"ftp.proxyPort\");\n }\n }\n\n //socks\n if (socksProxyHost != null) {\n settingsChanged = true;\n if (socksProxyHost.length() != 0) {\n enablingProxy = true;\n sysprops.put(\"socksProxyHost\", socksProxyHost);\n sysprops.put(\"socksProxyPort\", Integer.toString(socksProxyPort));\n if (proxyUser != null) {\n //this may be a java1.4 thingy only\n sysprops.put(\"java.net.socks.username\", proxyUser);\n sysprops.put(\"java.net.socks.password\", proxyPassword);\n }\n\n } else {\n log(\"resetting socks proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"socksProxyHost\");\n sysprops.remove(\"socksProxyPort\");\n sysprops.remove(\"java.net.socks.username\");\n sysprops.remove(\"java.net.socks.password\");\n }\n }\n\n\n //for Java1.1 we need to tell the system that the settings are new\n if (settingsChanged &&\n JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n legacyResetProxySettingsCall(enablingProxy);\n }\n }", "public String getSERVER() {\n \t\treturn SERVER;\n \t}", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getUnproxiedFieldDataServerUrl() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tString hostName = prefs.getString(\"serverHostName\", \"\");\n\t\tString context = \"bdrs-core\";//prefs.getString(\"contextName\", \"\");\n\t\tString path = prefs.getString(\"path\", \"\");\n\t\t\n\t\tStringBuilder url = new StringBuilder();\n\t\turl.append(\"http://\").append(hostName).append(\"/\").append(context);\n\t\t\n\t\tif (path.length() > 0) {\n\t\t\turl.append(\"/\").append(path);\n\t\t}\n\t\t\n\t\treturn url.toString();\n\t}", "public String getServerURL() {\n return serverURL;\n }", "public String getProxyServer() {\n return proxyServer;\n }", "public ServerConfiguration(InputStream in) throws IOException, URISyntaxException {\n super(in);\n\n\n Objects.requireNonNull(properties.getProperty(BIND_ADDRESS), \"Host and port are required\");\n Objects.requireNonNull(getMesosMaster(), \"Mesos address must not be empty\");\n\n uri = new URI(properties.getProperty(BIND_ADDRESS));\n // List<String> invalidBindAddresses = Arrays.asList(INVALID_BIND_ADDRESS);\n // loopback addresses must also be checked, but for now inttest uses localhost address\n if (uri.getHost().equals(\"0.0.0.0\")) {\n LOG.error(\"retz.bind is told to Mesos; {}/32 should not be assigned\", uri.getHost());\n throw new IllegalArgumentException();\n }\n if (uri.getPort() < 1024 || 65536 < uri.getPort()) {\n LOG.error(\"retz.bind must not use well known port, or just too large: {}\", uri.getPort());\n throw new IllegalArgumentException();\n }\n\n maxSimultaneousJobs = Integer.parseInt(properties.getProperty(MAX_SIMULTANEOUS_JOBS, DEFAULT_MAX_SIMULTANEOUS_JOBS));\n if (maxSimultaneousJobs < 1) {\n throw new IllegalArgumentException(MAX_SIMULTANEOUS_JOBS + \" must be positive\");\n }\n\n databaseURL = properties.getProperty(DATABASE_URL, DEFAULT_DATABASE_URL);\n databaseDriver = properties.getProperty(DATABASE_DRIVER_CLASS, DEFAULT_DATABASE_DRIVER_CLASS);\n\n if (\"root\".equals(getUserName()) || getUserName().isEmpty()) {\n LOG.error(\"{} must not be 'root' nor empty\", USER_NAME);\n throw new IllegalArgumentException(\"Invalid parameter: \" + USER_NAME);\n }\n\n if (getRefuseSeconds() < 1) {\n throw new IllegalArgumentException(MESOS_REFUSE_SECONDS + \" must be positive integer\");\n }\n\n if (getJobQueueType() == null) {\n throw new IllegalArgumentException(JOB_QUEUE_TYPE + \" must be either fir or all\");\n }\n\n LOG.info(\"Mesos master={}, principal={}, role={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}, {}={}\",\n getMesosMaster(), getPrincipal(), getRole(), MAX_SIMULTANEOUS_JOBS, maxSimultaneousJobs,\n DATABASE_URL, databaseURL,\n MAX_STOCK_SIZE, getMaxStockSize(),\n USER_NAME, getUserName(),\n MESOS_REFUSE_SECONDS, getRefuseSeconds(),\n GC_LEEWAY, getGcLeeway(),\n GC_INTERVAL, getGcInterval(),\n MAX_LIST_JOB_SIZE, getMaxJobSize(),\n MAX_FILE_SIZE, getMaxFileSize(),\n JOB_QUEUE_TYPE, getJobQueueType());\n LOG.info(\"{}={}\", MESOS_FAILOVER_TIMEOUT, getFailoverTimeout());\n }", "public void setServer(boolean isServer) { this.isServer = isServer; }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getServerUrl()\n {\n return null;\n }" ]
[ "0.66636866", "0.6472834", "0.6472834", "0.63417405", "0.62983274", "0.62930924", "0.6254589", "0.6254589", "0.6108059", "0.6108059", "0.6104624", "0.6078794", "0.6036845", "0.59859633", "0.59730536", "0.5964413", "0.5949122", "0.5914943", "0.5856569", "0.5852503", "0.58469415", "0.58239734", "0.58176935", "0.5784884", "0.5782834", "0.5772847", "0.57716256", "0.57716256", "0.57529074", "0.57361215", "0.57184976", "0.57184976", "0.5690359", "0.5685108", "0.56758547", "0.56712806", "0.56654835", "0.5665264", "0.56609523", "0.5652168", "0.56484556", "0.56484556", "0.56397176", "0.56324923", "0.5626241", "0.5623916", "0.5621256", "0.56202376", "0.5611509", "0.55834085", "0.55641353", "0.55510646", "0.55486345", "0.55486345", "0.5539357", "0.5530694", "0.5529029", "0.5526515", "0.5518884", "0.55141443", "0.55098414", "0.55088", "0.5506639", "0.5502561", "0.54962295", "0.5490061", "0.5477138", "0.54729635", "0.54665464", "0.54627347", "0.54612243", "0.54607147", "0.54583746", "0.54582024", "0.5456229", "0.5453512", "0.5452347", "0.54492986", "0.54472876", "0.54454905", "0.544457", "0.54382026", "0.54382026", "0.5436813", "0.54361904", "0.5434818", "0.542961", "0.54280835", "0.5426401", "0.54230076", "0.541129", "0.54071754", "0.54024357", "0.5400831", "0.54001385", "0.53953296", "0.5391875", "0.5390756", "0.5390756", "0.53896314" ]
0.5627705
44
Method to find the entity by id
@Override public User findById(long id) { return dao.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T findEntityById(int id);", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}", "public <T> T find(Class<T> entityClass, String id);", "public Data findById(Object id);", "E find(Id id) throws RepositoryException;", "T findById(final ID id) throws RequiredValueException, NoEntityFoundException;", "public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }", "@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;\n\t}", "Entity getEntityById(Long id);", "@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}", "AceEntity findEntity (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tif (entity.id.equals(id)) {\n\t\t\t\treturn entity;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity with id \" + id);\n\t\treturn null;\n\t}", "@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }", "T findById(Integer id);", "T findById(ID id) ;", "protected abstract T getEntityById(Long id);", "E findById(K id);", "public abstract T findOne(int id);", "@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}", "E getById(long id);", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }", "@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }", "@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}", "public E findById(E entity){\n Object identifier = HibernateUtil.getIdEntity(entity);\n return (E) entityManager.find(entity.getClass(),identifier);\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }", "ProductEntity findById(long id);", "Optional<T> getEntityById(ID_TYPE id);", "@Override\r\n\tpublic T findById(Long id) {\n\t\tif(id==null)\r\n\t\t\treturn null;\r\n\t\treturn (T) getSession().get(clazz, id);\r\n\t}", "public EspecieEntity encontrarPorId(Long id ){\r\n return em.find(EspecieEntity.class, id);\r\n }", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "T getById(Long id);", "@Override\n public Customer findById(long id) throws EntityNotFoundException\n {\n return custrepos.findById(id)\n .orElseThrow(() -> new EntityNotFoundException(Long.toString(id)));\n }", "@Override\n\tpublic Employee findById(int id) {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t// create a query to get an employee based on Id\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee e where e.id =: id\" , Employee.class);\n\t\ttheQuery.setParameter(\"id\", id);\n\t\tEmployee employee = theQuery.getSingleResult();\n\t\treturn employee;\n\t}", "public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }", "@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}", "protected Object findById(Class clazz, Long id) {\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".findById\");\r\n q.setParameter(\"id\", id);\r\n return q.getSingleResult();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }", "Repository findById(Integer id);", "T findOne(I id);", "T findOne(Long id);", "@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );", "public T findById(final UUID id) {\n\t\tfinal T result = em.find(persistentClass, id);\n\t\treturn result;\n\t}", "@Override\n\tpublic Item findItemById(Long id) {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Item> q = cb.createQuery(Item.class);\n\t\t Root<Item> c = q.from(Item.class);\n\t\t ParameterExpression<Long> p = cb.parameter(Long.class);\n\t\t q.select(c).where(cb.equal(c.get(\"id\"), p));\n\t\t TypedQuery<Item> query = entityManager.createQuery(q);\n\t\t query.setParameter(p, id);\n\t\t Item i = query.getSingleResult();\n\t\treturn i;\n\t}", "protected Object find(Class clazz, Long id) {\r\n try {\r\n return entityManager.find(clazz, id);\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }", "T getById(PK id);", "<T> T get(Class<T> entityClass, Serializable id);", "public ConsejoEntity find(Long id)\r\n {\r\n return em.find(ConsejoEntity.class, id);\r\n }", "@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }", "@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }", "public Entity getByPrimaryKey(Id id) throws RepositoryException{\n\t\treturn (Entity)DatanucleusCRUDUtils.getById(getEntity(), id);\n\t}", "public abstract Object get(String entityName, Serializable id);", "@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}", "@Override\r\n\t@Transactional(readOnly=true)\r\n\tpublic Orden findById(Long id) {\n\t\treturn ordenRepository.findById(id).orElse(null);\r\n\t}", "@Override\n\tpublic DomainObject find(long id) {\n\t\treturn null;\n\t}", "@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }", "T findById(long pk);", "public Employee findEmployee(Long id);", "public Entity2 findEntity2ById(String id) throws DaoException;", "Optional<T> find(long id);", "@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}", "@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }", "T get(PK id);", "@Override\n\tpublic User findById(String id) {\n\t\tUser u= em.find(User.class, id);\n\t\tSystem.out.println(u);\n\t\treturn u;\n\t}", "Corretor findOne(Long id);", "public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }", "@Override\n\tpublic Gasto findById(Integer id) {\n\t\treturn gastoModel.findById(id).orElseThrow(null);\n\t}", "@Override\r\n\tpublic Account findById(int id) {\n\t\treturn daoref.findById(id);\r\n\t}", "@Override\n\tpublic T getEntityById(String id) {\n\t\treturn null;\n\t}", "@Override\n @Transactional\n public Producto findById(long id) {\n return productoDao.findById(id);\n }", "T getById(int id);", "protected CompaniesContactsEntity findById(int id) {\n log.info(\"CompaniesContact => method : findById()\");\n\n FacesMessage msg;\n\n if (id == 0) {\n log.error(\"CompaniesContact ID is null\");\n msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"note.notExist\"), null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n throw new EntityNotFoundException(\n \"L ID de la note est incorrect\",\n ErrorCodes.COMPANY_NOT_FOUND\n );\n }\n\n EntityManager em = EMF.getEM();\n Optional<CompaniesContactsEntity> optionalCompaniesContactsEntity;\n try {\n optionalCompaniesContactsEntity = companiesContactsDao.findById(em, id);\n } finally {\n em.clear();\n em.close();\n }\n return optionalCompaniesContactsEntity.orElseThrow(() ->\n new EntityNotFoundException(\n \"Aucune Note avec l ID \" + id + \" n a ete trouvee dans la BDD\",\n ErrorCodes.CONTACT_NOT_FOUND\n ));\n }", "E find(final ID identifier) throws ResourceNotFoundException;", "@RequestMapping(value = \"/findId/{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public final EmployeeDTO findEmployeeById(@PathVariable(\"id\") long id) {\n try {\n LOGGER.info(\"getting Employee with id=\" + id);\n return employeeFacade.findEmployeeById(id);\n } catch (NonExistingEntityException e) {\n throw new RequestedResourceNotFound(\"Employee with id=\" + id + \" does not exist in system.\", e);\n } catch (IllegalArgumentException e) {\n throw new RequestedResourceNotFound(\"Argument id is illegal.\", e);\n }\n }", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "@Override\n public BookmarkEntity findById(String id) {\n logger.info(\"Entering findById() in BookmarkDAO\");\n return bookmarkRepository.findByID(id);\n }", "@Override\n public LineEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }", "@Override\n\t\t\tpublic TestEntity findById(BigInteger testId)\n\t\t\t{\n\t\t\t\t Optional<TestEntity>optional=testDao.findById(testId);\n\t\t\t if(optional.isPresent())\n\t\t\t {\n\t\t\t TestEntity test=optional.get();\n\t\t\t return test;\n\t\t\t }\n\t\t\t throw new TestNotFoundException(\"Test not found for id=\"+testId);\n\t\t\t }", "public Client findById(Integer id) throws\n\t EntityNotFoundException;", "@Override\n public CartEntity getById(int id) {\n return entityManager.find(CartEntity.class,id);\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic T findOne(final int id) {\r\n\t\tEntityManager manager = factory.createEntityManager();\r\n\t\tEntityTransaction transaction = manager.getTransaction();\r\n\t Object obj = null;\r\n\t \r\n\t try {\r\n\t \t transaction.begin();\r\n\t obj = (T) manager.find(genericClass, id);\r\n\t transaction.commit();\r\n\t } catch (HibernateException e) {\r\n\t \t if(transaction != null)\r\n\t \t\t transaction.rollback();\r\n\t e.printStackTrace(); \r\n\t } finally {\r\n\t manager.close(); \r\n\t }\r\n\t\treturn (T) obj;\r\n\t}", "Item findById(String id);", "@RequestMapping(value = \"/{id}\", method=RequestMethod.GET)\n public ResponseEntity<?> findById(@PathVariable final Integer id) {\n Team team = this.teamService.findById(id);\n return ResponseEntity.ok().body(team);\n }", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "public Device findById(Long id) throws Exception;", "private DBObject getById(MongoDbServer entity, String id) throws Exception {\n MongoClient mongoClient = new MongoClient(entity.getAttribute(SoftwareProcess.HOSTNAME));\n try {\n DB db = mongoClient.getDB(TEST_DB);\n DBCollection testCollection = db.getCollection(TEST_COLLECTION);\n DBObject doc = testCollection.findOne(new BasicDBObject(\"_id\", new ObjectId(id)));\n return doc;\n } finally {\n mongoClient.close();\n }\n }", "User find(long id);", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Optional<Pedido>> find(@PathVariable Integer id) {\n\t\t\tOptional<Pedido> obj = service.find(id);\n\t\t\treturn ResponseEntity.ok().body(obj);\n\t\t}", "@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }", "@Override\r\n\tpublic final <S extends MODEL> S find(IDENTIFIER id, Class<S> targetedEntity) {\r\n\t\tLOGGER.trace(\"Finding Entity [{}] with Persistence Identifier [{}]\", targetedEntity, id);\r\n\t\tif (targetedEntity == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotPerformCRUDOnNullEntity();\r\n\t\t}\r\n\r\n\t\tif (id == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), null, null);\r\n\t\t}\r\n\t\tS entityToBeFound = null;\r\n\r\n\t\ttry {\r\n\t\t\tentityToBeFound = entityManager.find(targetedEntity, id);\r\n\t\t} catch (Exception exception) {\r\n\t\t\tHandlerUtil.handle(exception);\r\n\t\t\tThrowables.getRootCause(exception);\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), String.valueOf(id), exception);\r\n\r\n\t\t} finally {\r\n\t\t\tcloseEntityManager(entityManager);\r\n\t\t}\r\n\t\treturn entityToBeFound;\r\n\r\n\t}", "Product findById(long id);", "Alimento loadAlimentoById(Long id) throws EntityNotFoundException;" ]
[ "0.82636124", "0.81628335", "0.8124228", "0.797653", "0.7934822", "0.7921904", "0.7864384", "0.7836568", "0.7796942", "0.7788039", "0.7750229", "0.77295035", "0.771545", "0.7691714", "0.7689499", "0.7669575", "0.76544935", "0.7653709", "0.7643963", "0.7643443", "0.76255405", "0.7599198", "0.75838727", "0.7572718", "0.7561687", "0.7543304", "0.7543245", "0.74894726", "0.7473893", "0.743471", "0.741633", "0.7415084", "0.74075747", "0.73991597", "0.7398972", "0.73970044", "0.73939055", "0.73875463", "0.7377241", "0.7377037", "0.737465", "0.7345631", "0.7344566", "0.732998", "0.7321788", "0.73180795", "0.7317036", "0.73067564", "0.7295063", "0.7286797", "0.72799367", "0.72715575", "0.72636473", "0.7262046", "0.7248751", "0.723173", "0.7230948", "0.7223067", "0.72163135", "0.72107255", "0.72079265", "0.7198358", "0.71851873", "0.7175862", "0.71649384", "0.7163814", "0.7163161", "0.7163068", "0.7159771", "0.7154719", "0.71545976", "0.715054", "0.7150525", "0.7141587", "0.7133191", "0.713022", "0.7118927", "0.7108542", "0.7091756", "0.70805335", "0.707401", "0.70727104", "0.707207", "0.70674604", "0.70538574", "0.70311546", "0.7024115", "0.70236397", "0.70220387", "0.7021735", "0.7014646", "0.7012018", "0.7010469", "0.70100194", "0.70098823", "0.7008723", "0.7003834", "0.69913536", "0.6988707", "0.6987115" ]
0.71806747
63
Method to find all entities
@Override public List<User> findAll() { return dao.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public List<Entity> getAll() {\n return entities;\n }", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "public List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "List<T> findAll() ;", "Collection<T> findAll();", "Iterable<T> findAll();", "public List<E> findAll() ;", "public List<LugarEntity> findall(){\n Query q = em.createQuery(\"SELECT p FROM LugarEntity p\");\n return q.getResultList();\n }", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "public List<Article> findAll();", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "public static Iterable<Entity> getAllEntities() {\n\t\treturn Util.listEntities(\"RecetteId\", null, null);\n\t}", "List<UserEntity> findAll();", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\t\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\t\t// create a query\n\t\t\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\t\t\n\t\t\t\t// execute a query and get the result list\n\t\t\t\tList<Employee> employeeList = theQuery.getResultList();\n\t\t\t\t\n\t\t\t\t// return the result list\n\t\t\t\treturn employeeList;\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t\n\t\t//create a query\n\t\t\n\t\tQuery<Employee> theQuery= currentSession.createQuery(\"from Employee\",Employee.class);\n\t\t\n\t\tList<Employee> theEmployees=theQuery.list();\n\t\treturn theEmployees;\n\t}", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "List<T> getAll() throws PersistException;", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "public List<E> findAll() {\n return getDao().findAll();\n }", "List<T> findAll() throws Exception;", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }", "List<T> findAll() throws RequiredValueException, NoEntityFoundException;", "public Collection<T> getAll() throws DaoException;", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "@Override\r\n\tpublic List<?> findAll(Class<?> entity) {\n\t\treturn null;\r\n\t}", "public List findAll() {\n\t\treturn null;\r\n\t}", "public <T> List<T> findAll(Class<T> entityClass);", "@Override\n\tpublic Iterable<Sach> findAll() {\n\t\treturn sachRepository.findAll();\n\t}", "public java.util.List<DataEntry> findAll();", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "public List<PokemonEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todas los trayectos\");\n // Se crea un query para buscar todas las ciudades en la base de datos.\n TypedQuery query = em.createQuery(\"select u from PokemonEntity u\", PokemonEntity.class);\n // Note que en el query se hace uso del método getResultList() que obtiene una lista de ciudades.\n return query.getResultList();\n}", "public List<CompradorEntity> findAll() {\r\n TypedQuery<CompradorEntity> query = em.createQuery(\"select u from CompradorEntity u\", CompradorEntity.class);\r\n return query.getResultList();\r\n }", "public List<T> findAll() throws NoSQLException;", "@Override\r\n public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {\n return null;\r\n }", "public List<Product> findAll();", "List<Employee> findAll();", "public java.util.Collection allRetrieveAETs() \n throws javax.ejb.FinderException;", "List<Product> findAll();", "List<Product> findAll();", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "public List findall() {\r\n log.debug(\"TwitterAccountHibernateDAO.findall\");\r\n List<T> t = find().list();\r\n \r\n return t;\r\n }", "@Transactional(readOnly = true)\n public List<HarnaisDTO> findAll() {\n log.debug(\"Request to get all Harnais\");\n return harnaisRepository.findAll().stream()\n .map(harnaisMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List<Service> findAll();", "List<WebCrawlerData> retrieveAllEntity();", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Goods> findAll() {\n log.debug(\"Request to get all Goods\");\n return goodsRepository.findAll();\n }", "@Override\n\tpublic List<UsuariosEntity> findAll() {\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAll();\n\t}", "public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }", "@RequestMapping(value = \"/listallentities\", method = RequestMethod.GET)\n\tpublic @ResponseBody String listAllEntities() {\n\t\ttry {\n\t\t\t// System.out.println(\"USER ID FROM SESSION : \" +\n\t\t\t// session.getAttribute(\"userId\"));\n\t\t\tString requestURI = request.getRequestURI();\n\n\t\t\tSystem.out.println(\"Called list entity : \" + requestURI);\n\n\t\t\tString requestFromMethod = \"listAllEntities\";\n\t\t\treturn entityService.listEntities(null, requestFromMethod);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Product> getProductFindAll() {\n return em.createNamedQuery(\"Product.findAll\", Product.class).getResultList();\n }", "public CompletableFuture<Iterable<T>> findAll() {\n\t\treturn this.getAll().thenApply((ts) -> (Iterable<T>) ts);\n\t}", "List<TransportEntity> getAllEntityOfQuery();", "@Override\n public List<BookmarkEntity> findAll() {\n logger.info(\"Entering findAll() in BookmarkDAO\");\n return bookmarkRepository.findAll();\n\n }", "public List<T> findAll() {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public java.util.List<Todo> findAll();", "@Override\n\tpublic List<Oeuvre> findAll() {\n\t\treturn oeuvreDao.findAll();\n\t}", "List<CE> findAll();", "public Ruta[] findAll() throws RutaDaoException;", "@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}", "public List<AlojamientoEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todos los alojamientos\");\n TypedQuery q = em.createQuery(\"select u from AlojamientoEntity u\", AlojamientoEntity.class);\n return q.getResultList();\n }", "public List<Employee> listAll(){\n return employeeRepository.findAll();\n }", "public static List findAll() {\n\t\tSession session = DBManager.getSession();\n\t\treturn session.createQuery(\"SELECT e FROM Estoque e\").list();\n\t}", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "public List<SeatEntity> getAll();", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "public ArrayList<TEntity> getAll(){\n ArrayList<TEntity> list = new ArrayList<TEntity>();\n\n Cursor cursor = db.query(tableName, columns, null, null, null, null, null);\n\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n list.add(fromCursor(cursor));\n cursor.moveToNext();\n }\n\n return list;\n }", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "@Override\n public List<Part> findAll() {\n List<Part> resultList = new ArrayList<>();\n repositoryPart.findAll().iterator().forEachRemaining(resultList::add);\n return resultList;\n }", "public static List<Book> retrieveAll( EntityManager em) {\n TypedQuery<Book> query = em.createQuery( \"SELECT b FROM Book b\", Book.class);\n List<Book> books = query.getResultList();\n System.out.println( \"Book.retrieveAll: \" + books.size()\n + \" books were loaded from DB.\");\n return books;\n }", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<T> findAll() {\n\t\treturn (List<T>) registroDao.findAll();\n\t}", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "public Items[] findAll() throws ItemsDaoException;", "List<Chofer> findAll();", "@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}" ]
[ "0.7938595", "0.78225654", "0.76757896", "0.7538408", "0.7533446", "0.75178546", "0.75178546", "0.75178546", "0.75073415", "0.75073415", "0.75073415", "0.74943805", "0.74501735", "0.74009836", "0.73812884", "0.7357064", "0.7337687", "0.7312903", "0.72954166", "0.72791713", "0.72591335", "0.7256929", "0.7253306", "0.7210227", "0.72048336", "0.72008", "0.71933097", "0.71829665", "0.71774405", "0.7168662", "0.71541053", "0.7150755", "0.7127143", "0.71253276", "0.70593816", "0.7048758", "0.70365065", "0.7025104", "0.702383", "0.7020151", "0.7019439", "0.7014526", "0.69782096", "0.6973514", "0.6963727", "0.6954591", "0.6950212", "0.6944851", "0.69415915", "0.69371384", "0.6937001", "0.6937001", "0.6933301", "0.6916423", "0.69148105", "0.6912654", "0.6910903", "0.68924505", "0.68906176", "0.68661046", "0.6858665", "0.68551266", "0.6852722", "0.68522656", "0.6851613", "0.6842848", "0.6825239", "0.68155843", "0.6810812", "0.68048733", "0.6802528", "0.6800352", "0.6780611", "0.6777922", "0.67749906", "0.6763219", "0.6762945", "0.67621475", "0.6760309", "0.67575306", "0.6755988", "0.675101", "0.67358387", "0.6732286", "0.67271066", "0.67266524", "0.67266524", "0.67266524", "0.67266524", "0.67266524", "0.6718399", "0.6705626", "0.6700875", "0.6697343", "0.6697343", "0.6697343", "0.6697343", "0.6695917", "0.6695363", "0.6690457", "0.66885316" ]
0.0
-1
Method to create a new entity
@Override public User create(User user) { user.setPassword(bCryptPasswordEncoder.encode(user.getPassword())); if (user.getCreateDate() == null) { DateTime dt = new DateTime(); user.setCreateDate(dt.toDate()); } user.setEnabled(true); user.setRoleList(Collections.singletonList(roleDao.findByName("ROLE_USER"))); return dao.create(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "E create(E entity);", "E create(E entity);", "void create(E entity);", "void create(T entity);", "T createEntity();", "void create(T entity) throws Exception;", "ID create(T entity);", "protected abstract ENTITY createEntity();", "void create(Student entity);", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public abstract boolean create(T entity) throws ServiceException;", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "protected abstract EntityBase createEntity() throws Exception;", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public abstract boolean create(T entity) throws SQLException;", "T create() throws PersistException;", "@Override\n\t@Transactional\n\tpublic T create(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.save(entity);\n\t\treturn entity;\n\t}", "@Override\n public void create(T entity) throws SQLException {\n\n this.dao.create(entity);\n\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "public UserEntity create(String userId) throws CreateException;", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "protected Object create(Object entity, Class clazz) {\r\n\r\n try {\r\n EntityTransaction transaction = entityManager.getTransaction();\r\n transaction.begin();\r\n entityManager.persist(entity);\r\n transaction.commit();\r\n return entity;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao criar Entidade \" + e.getMessage());\r\n }\r\n return null;\r\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "void create(Feedback entity);", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "public ViajeroEntity create (ViajeroEntity viajeroEntity){\n LOGGER.log(Level.INFO, \"Creando un review nuevo\");\n em.persist(viajeroEntity);\n return viajeroEntity;\n }", "@WebMethod(operationName = \"create\")\n @Oneway\n public void create(@WebParam(name = \"entity\") User entity) {\n ejbRef.create(entity);\n }", "public CompradorEntity create(CompradorEntity compradorEntity) {\r\n em.persist(compradorEntity);\r\n return compradorEntity;\r\n }", "protected abstract T createNewEntry(PersistentEntity persistentEntity);", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "Entity save(Entity entity);", "Article createArticle();", "CounselorBiographyTemp create(CounselorBiographyTemp entity);", "public void create(){}", "@Override\n\t@Transactional\n\tpublic DetalleCarrito create(DetalleCarrito entity) throws Exception {\n\t\treturn detalleCarritoRepository.save(entity);\n\t}", "void validateCreate(T entity);", "public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }", "public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "public EntityBundleCreate() {}", "@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }", "void create(Model model) throws Exception;", "User create(User user);", "public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }", "Account create();", "public LugarEntity create(LugarEntity p){\n em.persist(p);\n return p;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "T makePersistent(T entity);", "@POST\n @Path(\"/new\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response createNewBlah(\n BlahPayload entity,\n @Context UriInfo uri,\n @Context HttpServletRequest request) {\n try {\n final long start = System.currentTimeMillis();\n final String authorId = BlahguaSession.ensureAuthenticated(request, true);\n if (!BlahguaSession.isAuthenticatedClient(request))\n throw new InvalidAuthorizedStateException();\n entity = getBlahManager().createBlah(LocaleId.en_us, authorId, entity);\n final Response response = RestUtilities.make201CreatedResourceResponse(entity, new URI(uri.getAbsolutePath() + entity.getId()));\n getSystemManager().setResponseTime(CREATE_BLAH_OPERATION, (System.currentTimeMillis() - start));\n return response;\n } catch (InvalidRequestException e) {\n return RestUtilities.make400InvalidRequestResponse(request, e);\n } catch (ResourceNotFoundException e) {\n return RestUtilities.make404ResourceNotFoundResponse(request, e);\n } catch (StateConflictException e) {\n return RestUtilities.make409StateConflictResponse(request, e);\n } catch (InvalidAuthorizedStateException e) {\n return RestUtilities.make401UnauthorizedRequestResponse(request, e);\n } catch (SystemErrorException e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n }\n }", "@Transactional\n\tpublic T create(T newInstance) {\n\t\tthis.em.persist(newInstance);\n\t\treturn newInstance;\n\t}", "public QuestionEntity createQuestion(QuestionEntity questionEntity) {\n entityManager.persist(questionEntity);\n return questionEntity;\n }", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "public DisponibilidadEntity create(DisponibilidadEntity entity) {\r\n\r\n em.persist(entity);\r\n\r\n return entity;\r\n }", "E create(Resource data);", "public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }", "public Entity build();", "public Poentity create_poentity(Poentity Poentity) throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\"create_poentity service operation started !\");\n\n\t\ttry{\n\t\t\tPoentity the_Poentity;\n\n\t\t\tthe_Poentity = Poentity_Activity_dao.create_poentity(Poentity);\n\n \t\t\tlog.info(\" Object returned from create_poentity service method !\");\n\t\t\treturn the_Poentity;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\"create_poentity service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}", "@Override\n\tpublic Map<String, Object> create(StoreBase entity) {\n\t\treturn null;\n\t}", "@Override\n\tpublic T create(T entity) {\n\t\t//TODO al anotar un metodo como transaccional spring de encarga de la transaccion por lo que no hay que \n\t\t//abrir la transaccion ni hacer commit, se encarga spring. Es más si lo intentas da un error, no se \n\t\t//pueden crear transacciones en una transaccion conpartida\n\t\t//Not allowed to create transaction on shared EntityManager - use Spring transactions\n\t\t//em.getTransaction().begin();\n\t\t\n\t\tSystem.out.println(em.contains(entity));\n\t\tem.persist(entity);\n\t\tSystem.out.println(em.contains(entity));\n\t\t//em.getTransaction().commit();\n\t\t\n\t\t//Session session = (Session) em.getDelegate();\n\t\t//Transaction tx = session.beginTransaction();\n\t\t//session.saveOrUpdate(entity);\n\t\t//session.flush();\n\t\t//tx.commit();\n\t\treturn entity;\n\t}", "protected Object create(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.persist(object);\n em.getTransaction().commit();\n LOG.debug(\"Persisted \" + object);\n } catch (Exception e) {\n LOG.error(\"Could not persist Object\", e);\n em.getTransaction().rollback();\n } finally {\n em.close();\n }\n return object;\n }", "public Todo create(long todoId);", "LoginHistory create(LoginHistory entity);", "@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "@Transactional\n public void create(TaskInstanceEntity taskInstanceEntity) {\n entityManagerProvider.get().persist(taskInstanceEntity);\n }", "WriteRequest insert(PiEntity entity);", "public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }", "void createOrUpdate(T entity);", "@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }", "@POST\n public Response create(EvenementDto evenementDto) {\n DataAccess dataAccess = DataAccess.begin();\n EvenementEntity evenementEntity = EvenementEntity.convertFromEvenementDto(evenementDto);\n\n System.out.println(evenementDto.toString());\n System.out.println(evenementEntity.toString());\n\n if (evenementDto.getNom() == null) {\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"name not specified\\n\").build();\n }\n else if(evenementDto.getDate() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"date not specified\\n\").build();\n }\n else if(evenementDto.getHeure() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"heure not specified\\n\").build();\n }\n\n long id = dataAccess.createEvent(evenementEntity);\n URI instanceURI = uriInfo.getAbsolutePathBuilder().path(\"\" + id).build();\n dataAccess.closeConnection(true);\n return Response.created(instanceURI).status(201).entity(evenementDto).location(instanceURI).build(); // .created(instanceURI).build();\n\n }", "public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }", "E save(E entity);", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "DomainModel createDomainModel();", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;", "Relationship createRelationship();", "T save(T entity);", "T save(T entity);", "T save(T entity);", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public static PostponeRecord createEntity(EntityManager em) {\n PostponeRecord postponeRecord = new PostponeRecord()\n .driverId(DEFAULT_DRIVER_ID)\n .vehicleId(DEFAULT_VEHICLE_ID)\n .companyId(DEFAULT_COMPANY_ID)\n .receiptNumber(DEFAULT_RECEIPT_NUMBER)\n .operationTime(DEFAULT_OPERATION_TIME)\n .plateNumber(DEFAULT_PLATE_NUMBER)\n .driverName(DEFAULT_DRIVER_NAME)\n .postponeData(DEFAULT_POSTPONE_DATA)\n .remark(DEFAULT_REMARK);\n return postponeRecord;\n }", "public boolean create(ModelObject obj);", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "@Override\r\n public void crearCliente(Cliente cliente) throws Exception {\r\n entity.getTransaction().begin();//inicia la creacion\r\n entity.persist(cliente);//se crea el cliente\r\n entity.getTransaction().commit();//finaliza la creacion\r\n }", "public Participacao createParticipacao(Participacao model) {\n return participacaoRepository.save(model);\n}", "@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}", "Person createPerson();", "User createUser();", "public AgenteViaHistoricoEntity createRegistro(AgenteViaHistoricoEntity entity)\n {\n LOGGER.log(Level.INFO,\"Inicia proceso de crear un registro\");\n return persistence.create(entity);\n }", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();" ]
[ "0.85135114", "0.82351726", "0.82351726", "0.8150021", "0.81310135", "0.8119632", "0.7941307", "0.7741591", "0.7655536", "0.7611288", "0.7434545", "0.7422652", "0.741168", "0.73947036", "0.73698276", "0.7137704", "0.71230656", "0.710186", "0.70967567", "0.706208", "0.70306534", "0.700671", "0.6991629", "0.69889843", "0.69889843", "0.6978306", "0.69765306", "0.68908244", "0.6862616", "0.68421143", "0.68132055", "0.6802909", "0.67319727", "0.6719284", "0.6680307", "0.66517663", "0.6642642", "0.66001505", "0.6582708", "0.6573919", "0.65612745", "0.65485096", "0.6544032", "0.65276253", "0.65220076", "0.6498059", "0.6493999", "0.6491242", "0.6480193", "0.64718336", "0.6448302", "0.6447961", "0.6441118", "0.6423796", "0.64196855", "0.6417791", "0.6414582", "0.637239", "0.63705385", "0.63658166", "0.6344485", "0.63413227", "0.6332522", "0.63173145", "0.63171744", "0.6313388", "0.6307861", "0.62972134", "0.62553585", "0.6245715", "0.62375367", "0.6230879", "0.62297285", "0.62234735", "0.6213735", "0.62027633", "0.61988723", "0.6195584", "0.6189044", "0.6182742", "0.6181085", "0.6168234", "0.61674565", "0.615626", "0.615626", "0.615626", "0.6153307", "0.61519474", "0.61472344", "0.61364067", "0.6131224", "0.6128541", "0.61272556", "0.6120462", "0.61132413", "0.60981536", "0.6093867", "0.6093867", "0.6093867", "0.6093867", "0.6093867" ]
0.0
-1
Method to update the entity in the database
@Override public User update(User user) { return dao.update(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateEntity();", "E update(E entity);", "E update(E entity);", "@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}", "public void update(IEntity entity) throws SQLException;", "public void update(E entity);", "@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }", "public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}", "E update(E entiry);", "T update(T entity);", "T update(T entity);", "void update(CE entity);", "void update(Student entity);", "public <T> T update(T entity);", "boolean update(T entity) throws Exception;", "E update(ID id, E entity, RequestContext context);", "void update(T entity) throws Exception;", "E update(E entity) throws ValidationException;", "@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}", "public void update(T entity) {\n\t\tsessionFactory.getCurrentSession().update(entity);\n\t}", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "void update(T entity);", "void update(T entity);", "@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "@Override\n\tpublic void update(Users entity) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n \tsession.save(entity);\n\t}", "@Override\n\tpublic void update(T entity) {\n\t\tbaseDaoImpl.update(entity);\n\t}", "@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}", "public abstract boolean update(T entity) throws ServiceException;", "@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}", "public PtJJdwcy update(PtJJdwcy entity);", "@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}", "public void updateByEntity(Paciente paciente) {\n\t\n}", "public Address update(Address entity);", "void update(T obj) throws PersistException;", "public void update(Employee employee){\n employeeRepository.save(employee);\n }", "@Override\r\n public void update(Answer entity) {\n\r\n }", "Table8 update(Table8 table8) throws EntityNotFoundException;", "@Override\r\n\tpublic void update(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().update(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "CounselorBiographyTemp update(CounselorBiographyTemp entity);", "public HrJBorrowcontract update(HrJBorrowcontract entity);", "@Override\n\tpublic void update(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.update(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "boolean updateById(T entity);", "@Update\n void update(UsersEntity usersEntity);", "void updateUser(User entity) throws UserDaoException;", "public void update(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.update(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public T update(T entity) throws DataAccessException;", "public void update(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t\t\n\t}", "public void Update(StokContract entity) {\n\t\t\n\t}", "@Override\r\n\tpublic void update(Botany botany) {\n\t\tdao.update(botany);\r\n\t}", "@Override\n\tpublic void updateEntityByHql(String hql, Object... param) {\n\t\tgetQuery(hql,param).executeUpdate();\n\t}", "@Override\n\tpublic Comprobante update(Comprobante entity) throws Exception {\n\t\treturn comproRepository.save(entity);\n\t}", "@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "@Override\r\n\tpublic void update(Object obj) throws DAOException {\n\r\n\t}", "UserEntity updateUser(UserEntity userEntity);", "@Override\n @Transactional\n public void update(Surname changedSurname) {\n \n }", "public void update(T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t}", "@Override\r\npublic int update(Detalle_pedido d) {\n\treturn detalle_pedidoDao.update(d);\r\n}", "@Override\n\tpublic int update(Subordination entity) throws DBOperationException {\n\t\treturn 0;\n\t}", "@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "@Override\n\tpublic void update(Factura t) {\n\t\tfacturaRepository.save(t);\n\t\t\n\t}", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "public void update(Expence expence)\r\n/* 169: */ {\r\n/* 170:174 */ this.expenceDao.update(expence);\r\n/* 171: */ }", "public void update(E model) {\n\t\tgetHibernateTemplate().update(model);\r\n\t}", "@Override\n\tpublic User updateEntity(long id, User Entity) throws Exception {\n\t\treturn null;\n\t}", "void update(EmployeeDetail detail) throws DBException;", "@Override\n\tpublic Fournisseur update(Fournisseur entity) {\n\t\treturn null;\n\t}", "@Override\n\t@Transactional\n\tpublic T update(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.update(entity);\n\t\thibernateTemplate.getSessionFactory().getCurrentSession().flush();\n\t\thibernateTemplate.getSessionFactory().getCurrentSession().clear();\n\t\treturn getById(entity.getId());\n\t}", "int updateByPrimaryKey(StudentEntity record);", "@Override\r\n\tpublic T update(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().update(entity);\r\n\t\t\treturn entity;\r\n\t\t}catch (NonUniqueObjectException e) {\r\n\t\t\tthis.getcurrentSession().merge(entity);\r\n\t\t\treturn entity;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"更新\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}", "@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }", "public void doUpdate(T objectToUpdate) throws SQLException;", "Product update(Product product, long id);", "@Override\n public void updateDatabase() {\n }", "@Override\n public void update(Object object, Object id) throws DAOException {\n\n }", "@Override\n\tpublic void update(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.update(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}", "public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}", "<T> void update(T persistentObject);", "public long update(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.UPDATE_TYPE);\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}", "@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }", "@Override\n\tpublic Result update(CurriculumVitae entity) {\n\t\treturn null;\n\t}", "protected void updateRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Actualiza objeto\r\n\t\tobjectDao.update(object);\r\n\t\t// Actualiza relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.update(relco);\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "@Transactional\n\t@Override\n\tpublic Persona update(Persona entity) throws Exception {\n\t\treturn personaRepository.save(entity);\n\t}", "public void update( final T model )\n\t{\n\t\tthis.dao.save( model );\n\t}", "public void update()\n {\n modifier = coral.getCurrentSubject();\n modified = new Date();\n try\n {\n persistence.save(this);\n }\n catch(SQLException e)\n {\n throw new BackendException(\"failed to update resource's persitent image\", e);\n }\n try\n {\n Resource impl = coral.getStore().getResource(getId());\n coralEventHub.getGlobal().fireResourceChangeEvent(impl, modifier);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"inconsistent data\", e);\n }\n }", "private void updateDB() {\n }", "public void update(T object) throws SQLException;", "@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}", "@Override\n\tpublic void update(ERS_USERS entity) {\n\t\t\n\t}", "private void updateObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n\n try {\n crudService.update((SimpleORMInterface) object);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n ConnectionPoll.releaseConnection(connection);\n\n try {\n connection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}", "public void updateByObject()\r\n\t{\n\t}", "Product updateProductInStore(Product product);", "public E saveUpdate(E entity){\n EntityTransaction transaction = entityManager.getTransaction();\n transaction.begin();\n E e = entityManager.merge(entity);\n transaction.commit();\n return e;\n }", "protected Object update(Object entity) {\r\n\r\n try {\r\n entityManager.getTransaction().begin();\r\n Object o = entityManager.merge(entity);\r\n entityManager.getTransaction().commit();\r\n return o;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao atualizar Entidade \" + e.getMessage());\r\n }\r\n\r\n return null;\r\n }", "public void update() throws NotFoundException {\n\tUserDA.update(this);\n }", "@Override\n\tpublic void updateEntry(T t) {\n\t\tthis.hibernateTemplate.update(t);\n\t}", "public CbmCItemFininceItem update(CbmCItemFininceItem entity);", "public void update(RutaPk pk, Ruta dto) throws RutaDaoException;" ]
[ "0.85752547", "0.80687916", "0.80687916", "0.788009", "0.7861244", "0.7853396", "0.7711255", "0.7699181", "0.7683957", "0.7667313", "0.7667313", "0.76414967", "0.7600958", "0.7598136", "0.7586006", "0.7555278", "0.7548343", "0.754747", "0.7493066", "0.74376273", "0.7414969", "0.74007314", "0.74007314", "0.73536056", "0.73335683", "0.7295379", "0.7230216", "0.7229904", "0.72265196", "0.72264", "0.717595", "0.7137596", "0.7113693", "0.71105504", "0.71030945", "0.70924664", "0.70907426", "0.70685905", "0.70540226", "0.7022228", "0.7018032", "0.7016742", "0.70112497", "0.7009706", "0.7008662", "0.69451004", "0.69318336", "0.6919328", "0.6914969", "0.69095415", "0.69053495", "0.6896572", "0.68939114", "0.6891013", "0.6886624", "0.687359", "0.68707603", "0.68649596", "0.6860111", "0.68551296", "0.6844722", "0.68376344", "0.6835024", "0.6830274", "0.6828431", "0.682347", "0.68133456", "0.68115854", "0.6801319", "0.6788834", "0.6765002", "0.676465", "0.6763449", "0.6754472", "0.6753271", "0.6752195", "0.67438734", "0.6739268", "0.6738261", "0.6733097", "0.6723701", "0.6716382", "0.67087525", "0.6700643", "0.66838324", "0.6681467", "0.6679493", "0.66758513", "0.66724956", "0.66707236", "0.666242", "0.6661437", "0.6659275", "0.66542184", "0.6651277", "0.66469914", "0.6634793", "0.6627114", "0.66253906", "0.66200984", "0.6612334" ]
0.0
-1
Method to delete a entity in the database
@Override public void delete(User user) { dao.delete(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(Entity entity);", "void deleteEntityById(Long id);", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "void delete(E entity);", "void delete(E entity);", "void delete(int entityId);", "public void delete() throws EntityPersistenceException {\n\n }", "void delete(Object entity);", "void delete(T entity);", "void delete(T entity);", "public <T> boolean delete(T entity);", "public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }", "boolean delete(T entity) throws Exception;", "Boolean delete(T entity);", "public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}", "@Override\r\n public void deleteEntity(String entityName) {\n\r\n }", "public void delete(T entity) {\n\t\tsessionFactory.getCurrentSession().delete(entity);\n\t}", "public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}", "@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}", "public void delete(E entity) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n session.delete(entity);\n\n trans.commit();\n }", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().delete(entity);\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"删除\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}", "protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }", "public void delete(EmployeeEntity entity){\n EmployeeDB.getInstance().delete(entity);\n }", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Transactional\n\t@Override\n\tpublic void delete(T entity) {\n\t\tregistroDao.delete((Registro) entity);\n\t\t\n\t}", "@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }", "public void delete(HrJBorrowcontract entity);", "ApiResponse deleteEntityById(Integer id);", "@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }", "boolean deleteById(T entity);", "@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic T delete(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.delete(entity);\n\t\treturn entity;\n\t}", "@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}", "@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "public void delete() throws Exception\n {\n dao.delete(this);\n }", "public void delete(Contract entity) {\n\r\n\t}", "@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}", "default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }", "void delete(E entity, RequestContext context)\n throws TechnicalException, ResourceNotFoundException;", "@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}", "@Override\n public void delete(SideDishEntity entity) {\n\n }", "void delete(T obj) throws PersistException;", "@Transactional\n\t@Override\n\tpublic void deleteById(Integer entityId) {\n\t\tregistroDao.deleteById(entityId);\n\t}", "public void delete(Address entity);", "public void delete(ControlAcceso entity) {\n\n\t}", "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Audit entity) {\n\t\t\n\t}", "public void delete(Employee employee){\n employeeRepository.delete(employee);\n }", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "public void doDelete(T entity)\n {\n preDoDelete(entity);\n session.delete(entity);\n postDoDelete(entity);\n }", "public <T> boolean delete(Class<T> entityClass, String id);", "public long delete(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.DELETE_TYPE);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int deleteByPk(BaseEntity entity) throws DaoException {\n\t\treturn 0;\n\t}", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }", "@Override\n\tpublic Result delete(CurriculumVitae entity) {\n\t\treturn null;\n\t}", "public void deleteGeominas(Geominas entity) throws Exception;", "@Override\r\n\tpublic void delete(Empregado entity) throws Exception {\n\t\tentity.setAtivo(false);\r\n\t\tem.unwrap(Session.class).update(entity);\r\n\t}", "public int delete(GenericEntity entity) throws GenericEntityException {\n SQLProcessor sqlP = new AutoCommitSQLProcessor(helperName);\n\n try {\n return deleteImpl(entity, sqlP.getConnection());\n } catch (GenericDataSourceException e) {\n sqlP.rollback();\n throw new GenericDataSourceException(\"Exception while deleting the following entity: \" + entity.toString(), e);\n } finally {\n closeSafely(entity, sqlP);\n }\n }", "public abstract boolean delete(PK id);", "public void delete(SecRole entity);", "public void delete(Object bo) {\r\n getPersistenceBrokerTemplate().delete(bo);\r\n }", "@DELETE\n public void delete() {\n }", "@Override\n\tpublic void delete(T t) {\n\t\thibernateTemplate.delete(t);\n\t}", "@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "@Override\r\npublic int delete(int id) {\n\treturn detalle_pedidoDao.delete(id);\r\n}", "@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}", "<T> void delete(T persistentObject);", "@Override\r\n\tpublic void delete(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().delete(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}", "@Override\n public void delete(Long id) throws Exception {\n\n }", "public void remove(T entity) throws DataAccessException;", "public void deleteById(Long id);", "public void delete(HrCStatitem entity);", "@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Category entity) {\n\t\t\n\t}", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "void deleteById(Long Id);", "@RequestMapping(value = \"/delete\", method = RequestMethod.DELETE)\n\tpublic void delete(@RequestBody User entity) {\n\t\tdao.delete(entity);\n\t}", "public void doDelete(T objectToDelete) throws SQLException;", "@Override\n\tpublic int delete(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void delete(PartyType entity) {\n\t\t\r\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void deleteById(Long id) {\n\t\tordenRepository.deleteById(id);\r\n\t}", "@Override\npublic void deleteById(String id) {\n\t\n}", "public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}", "@Test\n\t public void testDeleteEntity(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(entityManager.getReference(Users.class,\n\t\t\t \t \t\tuser.getLoginName()));\n\t\t\t\tuserDao.delete(user.getLoginName(),user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }", "@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tem.remove(findOne(id));\n\t\t\n\t}", "@Override\n\tpublic int delete(Subordination entity) throws DBOperationException {\n\t\tPreparedStatement statement = null;\n\t\tint result;\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(SUBORDINATION_DELETE_ID);\n\t\t\tstatement.setInt(1, entity.getId());\n\t\t\tresult = statement.executeUpdate();\n\t\t\tstatement.close();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DBOperationException(\"Subordination not deleted. DB error.\", e);\n\t\t} \n\t\treturn result;\n\t}", "@Override\n\tpublic void delete(Category entity) {\n\n\t}", "@Override\n\tpublic void delete(Unidade obj) {\n\n\t}", "@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}", "public void deleteById(int theId);", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "@Override\n\t@Transactional\n\tpublic T deleteSafe(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\tentity = getById(entity.getId()); // Retrieve a copy of the entity from the database before trying to delete it.\n\t\thibernateTemplate.delete(entity);\n\t\treturn entity;\n\t}", "public void delete(CbmCItemFininceItem entity);" ]
[ "0.8472761", "0.82878", "0.82761574", "0.8246246", "0.8246246", "0.82254535", "0.82212484", "0.8162003", "0.8124873", "0.8124873", "0.80558455", "0.80549675", "0.8034973", "0.8007449", "0.79549897", "0.78636754", "0.7859266", "0.7858444", "0.78461695", "0.7819604", "0.7819604", "0.7807552", "0.7803121", "0.77937865", "0.779341", "0.77495116", "0.7732537", "0.7719588", "0.7712227", "0.7684235", "0.76603454", "0.76536757", "0.7602139", "0.75897586", "0.7569484", "0.7565733", "0.7543676", "0.75434124", "0.7540545", "0.74897885", "0.7470878", "0.7415966", "0.74114394", "0.7411021", "0.7397803", "0.73959315", "0.73930657", "0.73843646", "0.73739994", "0.7357355", "0.73422056", "0.73145854", "0.7312275", "0.7294399", "0.7283994", "0.72724074", "0.72671807", "0.7264537", "0.71911377", "0.71911377", "0.71803695", "0.71799415", "0.71560895", "0.71242625", "0.71187186", "0.71070844", "0.70802194", "0.707482", "0.70538074", "0.7043997", "0.7040801", "0.70398587", "0.70390785", "0.70379615", "0.70340294", "0.7031792", "0.70258933", "0.70195645", "0.70172393", "0.7013569", "0.7012438", "0.7003047", "0.70021504", "0.6987975", "0.69840753", "0.6982961", "0.6973108", "0.6972581", "0.697149", "0.69478357", "0.694635", "0.69434804", "0.6941693", "0.6937485", "0.6931874", "0.69301116", "0.6929894", "0.69281256", "0.69188553", "0.69187635", "0.6916722" ]
0.0
-1
Method to delete a entity in the database by id
@Override public void deleteById(long id) { dao.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteEntityById(Long id);", "ApiResponse deleteEntityById(Integer id);", "void delete(int entityId);", "public void deleteById(Long id);", "public void deleteById(String id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Integer id);", "void deleteById(Integer id);", "@Query(value = \"{ 'id': ?0}\", delete = true)\n\tLong deleteById(Integer id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(long id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "void deleteById(Long Id);", "void deleteById(int id);", "void delete(final Long id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "boolean deleteById(T entity);", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "int deleteById(Long id);", "public void delete(int id);", "void deleteById(final String id);", "@Delete(DELETE_BY_ID)\n @Override\n int deleteById(int id);", "public void deleteById(int theId);", "@Override\n public void delete(Long id) throws Exception {\n\n }", "@Override\n\tpublic void deleteById(String id) throws Exception {\n\t\t\n\t}", "void delete( Long id );", "@Override\n\tpublic void deleteById(Long id) {\n\n\t}", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);" ]
[ "0.9041985", "0.85871005", "0.8479906", "0.83722323", "0.8330354", "0.83228236", "0.83228236", "0.83228236", "0.83228236", "0.8291865", "0.8291865", "0.8275626", "0.8264578", "0.8264578", "0.8264578", "0.8264578", "0.8264578", "0.8255627", "0.8255627", "0.8255627", "0.8255627", "0.8255627", "0.8255627", "0.8255627", "0.8255627", "0.8255627", "0.8255627", "0.82371175", "0.82049274", "0.82049274", "0.82049274", "0.8186195", "0.8175989", "0.8142508", "0.81383556", "0.81383556", "0.81383556", "0.81383556", "0.81383556", "0.81335795", "0.8100131", "0.8100131", "0.80981123", "0.8090725", "0.80902046", "0.8068717", "0.8059555", "0.80329806", "0.8003497", "0.79947037", "0.79921377", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664", "0.79742664" ]
0.0
-1
total of gifts in the list Creates a new GiftHashTable
public GiftHashTable(int capacity) { GiftList = new HashTableMap<>(capacity); names = new LinkedList<>(); totalCost = 0; totalGifts = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public int getTotalGifts() {\r\n return totalGifts;\r\n }", "public void createTotalTable() {\r\n totalTable = new HashMap<>();\r\n //create pair table\r\n\r\n //fill with values\r\n Play[] twenty = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] nineteen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] eightteen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] seventeen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] sixteen = {Play.NONE, H, S, S, S, S, S, H, H, H, H, H};\r\n Play[] fifteen = {Play.NONE, H, S, S, S, S, S, H, H, H, H, H};\r\n Play[] fourteen = {Play.NONE, H, S, S, S, S, H, H, H, H, H, H};\r\n Play[] thirteen = {Play.NONE, H, S, S, S, S, H, H, H, H, H, H};\r\n Play[] twelve = {Play.NONE, H, H, H, S, S, S, H, H, H, H, H};\r\n Play[] eleven = {Play.NONE, H, D, D, D, D, D, D, D, D, D, H};\r\n Play[] ten = {Play.NONE, H, D, D, D, D, D, D, D, D, H, H};\r\n Play[] nine = {Play.NONE, H, H, D, D, D, D, H, H, H, H, H};\r\n Play[] eight = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n Play[] seven = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n Play[] six = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n Play[] five = {Play.NONE, H, H, H, H, H, H, H, H, H, H, H};\r\n\r\n totalTable.put(5, five);\r\n totalTable.put(6, six);\r\n totalTable.put(7, seven);\r\n totalTable.put(8, eight);\r\n totalTable.put(9, nine);\r\n totalTable.put(10, ten);\r\n totalTable.put(11, eleven);\r\n totalTable.put(12, twelve);\r\n totalTable.put(13, thirteen);\r\n totalTable.put(14, fourteen);\r\n totalTable.put(15, fifteen);\r\n totalTable.put(16, sixteen);\r\n totalTable.put(17, seventeen);\r\n totalTable.put(18, eightteen);\r\n totalTable.put(19, nineteen);\r\n totalTable.put(20, twenty);\r\n }", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "static void table(ArrayList<Integer> myLst){\n TreeMap<Integer,Integer> myTeeMap = new TreeMap<Integer, Integer>();\n\n //Traverse ArrayList and create TreeMap structure.\n for (int i = 0; i < myLst.size(); i++){\n if (myTeeMap.containsKey(myLst.get(i))){\n myTeeMap.put(myLst.get(i), myTeeMap.get(myLst.get(i)) +1);\n }\n else{\n myTeeMap.put(myLst.get(i),1);\n }\n }\n\n //Print out myTeeMap\n for (Map.Entry<Integer, Integer> e : myTeeMap.entrySet())\n System.out.println(\"Key: \"+e.getKey()\n + \" \"\n + \"| Occurrences: \"+e.getValue());\n }", "HashTable() {\n int trueTableSize = nextPrime(tableSize);\n HT = new FlightDetails[nextPrime(trueTableSize)];\n }", "private void extendTable() {\n\n FreqNode[] freqTable = frequencyTable;//create temp table\n numNodes = 0; //set nodes to 0 \n FreqNode tmpNode; //temp variable\n frequencyTable = new FreqNode[frequencyTable.length * 2];//doubles the size \n\n //for every element in the table \n for (FreqNode node : freqTable) {\n //set the node \n tmpNode = node;\n while (true) {\n //if the node currently has a value \n if (tmpNode == null) {\n break;\n }//else \n else {\n //place the key and value at the current position\n this.put(tmpNode.getKey(), tmpNode.getValue());\n tmpNode = tmpNode.getNext();\n }//end else\n }//end while \n }//end for \n }", "public int generateHash(StudentClass item)\n {\n \t return item.hashCode() % tableSize;\n }", "private Map<Card, Integer> tally() {\n Map<Card, Integer> result = new HashMap<Card, Integer>();\n for (Card card: this.cards) {\n Integer value = result.get(card);\n if (value == null) {\n result.put(card, 1);\n } else {\n result.put(card, value + 1);\n }\n }\n return result;\n }", "static void giftShop(int no_of_user){\n\n Random rand=new Random(); //Random class object refernce\n \n int gifts[]=new int[no_of_user]; // Integer array to store no of gifts\n\n for(int i=0;i<no_of_user;i++){\n gifts[i]=rand.nextInt(50); //this will generate random no of gift between 0 to 50 \n }\n billingCounter(gifts,no_of_user); //calling billingCounter\n }", "public void createHashedVector() {\n Double val;\n for(int i=0; i < this.size; i++) {\n val = this.get(i);\n if(val !=0) {\n this.hmap.put(i, val);\n }\n } \n }", "@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "public MyHashMap() {\n this.key_space = 2069;\n this.hash_table = new ArrayList<Bucket>();\n for (int i = 0; i < this.key_space; ++i) {\n this.hash_table.add(new Bucket());\n }\n }", "public HashTableMap() {\r\n this.capacity = 10; // with default capacity = 10\r\n this.size = 0;\r\n this.array = new LinkedList[capacity];\r\n\r\n }", "public HashTableChained() {\r\n num_buckets = 101; //prime number close to 100\r\n hash_table = new DList[num_buckets]; \r\n }", "private MyHashMap<K,V> resize() {\n\t//resize hashmap\n\t\n\tint biggercapacity=(2*capacity)+1;\n\n\tMyHashMap<K,V> biggermap= new MyHashMap(biggercapacity,loadFactor);\n\t\n\t//rehash items\n\t\n\t\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tbiggermap.put(k.key, k.value);\n\t }\n\t}\n\tthis.capacity=biggercapacity;\n\tthis.table=biggermap.table;\n\treturn biggermap;\n }", "public static void main(String[] args) {\n Hash myHashTable = new Hash(7);\n for(int i = 0; i<15; i++){\n int a=(int)(Math.random()*100);\n System.out.print( a+\" \");\n myHashTable.insert(a);\n \n }\n myHashTable.print();\n }", "protected void rehash( )\r\n\t{\r\n\t\tint newSize = nextPrime(this.tableSize*2);\r\n\t\tMyHashTable<T> newHashTable = new MyHashTable<T>(newSize);\r\n\t\tIterator<T> thisTableIter = this.iterator();\r\n\t\twhile(thisTableIter.hasNext())\r\n\t\t{\r\n\t\t\tT e = thisTableIter.next();\r\n\t\t\tnewHashTable.insert(e);\r\n\t\t}\r\n\t\tthis.clear();\r\n\t\tthis.size = newHashTable.size;\r\n\t\tthis.tableSize = newHashTable.tableSize;\r\n\t\tthis.table = newHashTable.table;\r\n\t}", "public HashTable(int size) {\n \tnumElements = 0;\n Table = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n \tTable.add(new List<>());\n } \n }", "public MyHashTable(int capacity) {\n\t\tmySize = capacity;\n\t\tnumEntries = 0;\n\t\tmyBuckets = new ArrayList<LinkedList<WordCode<K, V>>>(mySize);\n\t\t\n\t\tfor (int i = 0; i < mySize; i++) {\n\t\t\tmyBuckets.add(new LinkedList<WordCode<K, V>>());\n\t\t}\n\t}", "@Override\n public int hashCode() {\n // Declare hash and assign value\n int hash = 7;\n // Generate hash integer\n hash = 31 * hash + (int) this.getCrossingTime();\n hash = 31 * hash + (this.getName() == null ? 0 : this.getName().hashCode());\n return hash;\n }", "public boolean addGift(Gift gift) {\r\n boolean added = GiftList.put(gift.getName(), gift); // Can the gift be put in the map?\r\n if(added) {\r\n //If yes, track a few values\r\n double cost = gift.getCost();\r\n String name = gift.getName();\r\n // Update counters, including linked list\r\n this.totalCost += cost;\r\n this.totalGifts++;\r\n this.names.add(name);\r\n }\r\n return added;\r\n }", "public int getAddItems(int totalCollected, int totalItemInGame);", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public SeparateChainingHT(){\n\t\t//Create Hashtable with 10 buckets\n\t\tbucket = new ArrayList<>();\n\t\tsize = 0;\n\t\tthis.capacity = 10;\n\t\t\n\t\t//Create empty chains\n\t\tfor(int i = 0 ; i< capacity ; i++) {\n\t\t\tbucket.add(null);\n\t\t}\n\t}", "public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }", "public FingerTable(int numOfEntries, OutsidePeer outsidePeer) {\r\n table = new ArrayList<>();\r\n this.numOfEntries = numOfEntries;\r\n for (int i = 0; i < numOfEntries; i++) {\r\n table.add(outsidePeer);\r\n }\r\n print();\r\n }", "public HashTable()\n\t{\n\t\tthis(NUM_BUCKETS);\n\t}", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "public void fillMyGoodsTable() {\n\t\tHashMap<Goods, Integer> myGoods = ship.getMyGoods();\n\t\tDefaultTableModel model = (DefaultTableModel)this.myGoodsTable.getModel();\n\t\tint number = 1;\n\t\tfor (HashMap.Entry<Goods, Integer> set: myGoods.entrySet()) {\n\t\t\tString name = set.getKey().getName();\n\t\t\tint quantity = set.getKey().getQuantityOwned();\n\t\t\tint price = set.getValue();\n\t\t\tmodel.addRow(new Object [] {number, name, quantity, price});\n\t\t\tnumber++;\n\t\t}\n\t}", "private int sizeForHashTable()\n {\n String compare=\"\";\n int numberOfdates = 0;\n for (int i=0; i <= hourly.size();i++)\n {\n if (i==0)\n {\n numberOfdates +=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }else if(compare != data.get(i).getFCTTIME().getPretty())\n {\n numberOfdates+=1;\n compare = data.get(i).getFCTTIME().getPretty();\n }\n }\n return numberOfdates;\n }", "public void createPairTable() {\r\n //create total Table\r\n pairTable = new HashMap<>();\r\n\r\n //fill with values \r\n Play[] cAce = {Play.NONE, P, P, P, P, P, P, P, P, P, P, P};\r\n Play[] cTen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] cNine = {Play.NONE, S, P, P, P, P, P, S, P, P, S, S};\r\n Play[] cEight = {Play.NONE, P, P, P, P, P, P, P, P, P, P, P};\r\n Play[] cSeven = {Play.NONE, H, P, P, P, P, P, P, H, H, H, H};\r\n Play[] cSix = {Play.NONE, H, P, P, P, P, P, H, H, H, H, H};\r\n Play[] cFive = {Play.NONE, H, D, D, D, D, D, D, D, D, H, H};\r\n Play[] cFour = {Play.NONE, H, H, H, H, P, P, H, H, H, H, H};\r\n Play[] cThree = {Play.NONE, H, P, P, P, P, P, P, H, H, H, H};\r\n Play[] cTwo = {Play.NONE, H, P, P, P, P, P, P, H, H, H, H};\r\n\r\n pairTable.put(1, cAce);\r\n pairTable.put(2, cTwo);\r\n pairTable.put(3, cThree);\r\n pairTable.put(4, cFour);\r\n pairTable.put(5, cFive);\r\n pairTable.put(6, cSix);\r\n pairTable.put(7, cSeven);\r\n pairTable.put(8, cEight);\r\n pairTable.put(9, cNine);\r\n pairTable.put(10, cTen);\r\n pairTable.put(11, cAce);\r\n }", "public HashTableMap(int capacity) {\r\n \r\n this.capacity = capacity; \r\n this.size = 0;\r\n \r\n this.array = new LinkedList[capacity];\r\n \r\n }", "public HashTableChained() {\n sizeBucket = 101;\n defTable = new DList[sizeBucket];\n for(int i=0; i<sizeBucket; i++) {\n defTable[i] = new DList();\n }\n size = 0;\n }", "public ShoppingList stockPantry(Integer week,\n \t\t\t\t\t\t\t\tInteger numEmptySlots,\n \t\t\t\t\t\t\t\tList<FamilyMember> familyMembers,\n \t\t\t\t\t\t\t\tPantry pantry,\n \t\t\t\t\t\t\t\tMealHistory mealHistory) {\n \t//System.out.println(\"Week: \"+ week+\"; shop\");\n \tif (week == 1) {\n \t\tinitializeMap(familyMembers);\n \t}\n \tShoppingList shoppingList = new ShoppingList();\n \tint space = numEmptySlots;\n \tMap<MealType, Integer> limits = new HashMap<MealType, Integer>();\n \tArrayList<FoodType> addList = new ArrayList<FoodType>();\n \t\n \tfor (MealType mt: MealType.values()) {\n \t\tint before = space;\n \t\t\n \t\tMap<FoodType, Integer> m = idealPantry.get(mt);\n \t\t//System.out.println(m);\n \t\tfor (FoodType f: m.keySet()) {\n \t\t\tList<FoodType> left = pantry.getAvailableFoodTypes(mt);\n \t\t\tint need = m.get(f);\n \t\t\tif (left.contains(f)) {\n \t\t\t\tneed = pantry.getNumAvailableMeals() - m.get(f);\t\n \t\t\t}\n \t\t\tif (need <= 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tif (space >= need) {\n\t\t\t\t\t\tspace -= need;\n\t\t\t\t\t\tfor (int i=0; i< need; i++) {\n\t\t\t\t\t\t\tshoppingList.addToOrder(f);\n\t\t\t\t\t\t\taddList.add(f);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int i=0; i< space; i++) {\n\t\t\t\t\t\t\tshoppingList.addToOrder(f);\n\t\t\t\t\t\t\taddList.add(f);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspace = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n \t\t}\n \t\t\n \t\tlimits.put(mt, before-space);\n \t}\n\n \t//System.out.println(\"ShoppingList map before: \");\n \t//System.out.println(shoppingList.getFullOrderMap());\n\n\t\tfor (MealType mt: MealType.values()) {\n\t\t\tint before = space;\n\n\t\t\tMap<FoodType, Integer> m = backupPantry.get(mt);\n\t\t\tfor (FoodType f: m.keySet()) {\n\t\t\t\tList<FoodType> left = pantry.getAvailableFoodTypes(mt);\n\t\t\t\tint need = m.get(f);\n\t\t\t\tif (left.contains(f)) {\n\t\t\t\t\tneed = pantry.getNumAvailableMeals() - m.get(f);\n\t\t\t\t}\n\t\t\t\tif (need <= 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tif (space >= need) {\n\t\t\t\t\t\tspace -= need;\n\t\t\t\t\t\tfor (int i=0; i< need; i++) {\n\t\t\t\t\t\t\tshoppingList.addToOrder(f);\n\t\t\t\t\t\t\taddList.add(f);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int i=0; i< space; i++) {\n\t\t\t\t\t\t\tshoppingList.addToOrder(f);\n\t\t\t\t\t\t\taddList.add(f);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspace = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n \tif (space > 0) {\n \t\t//System.out.println(\"Space left: \" + space);\n \t\tlimits.put(MealType.DINNER, limits.get(MealType.DINNER)+space);\n \t}\n\n \tfor (MealType mt: limits.keySet()) {\n \t\tshoppingList.addLimit(mt, limits.get(mt));\n \t}\n\n\t\tfor (int j=0; j< addList.size(); j++) {\n\t\t\tshoppingList.addToOrder(addList.get(j));\n\t\t}\n\n\t\t//System.out.println(\"ShoppingList map after: \");\n\t\t//System.out.println(shoppingList.getFullOrderMap());\n\n \t//System.out.println(\"ShoppingList limits: \");\n \t//System.out.println(shoppingList.getAllLimitsMap());\n \t\n \t\n \t\n \tif(Player.hasValidShoppingList(shoppingList, numEmptySlots)) {\n \t\treturn shoppingList;\n \t}\n \t//System.out.println(\"Not valid shopping list\");\n \treturn new ShoppingList();\n }", "private void splice()\n {\n String dateCompare =\"\";\n int changeCount = 1;\n int numberOfHashes = sizeForHashTable();\n setUpHashMap(numberOfHashes);\n\n for (int i=0; i<= this.data.size();i++)\n {\n if (i == 0)\n {\n dateCompare = this.data.get(i).getFCTTIME().getPretty();\n loadHashTable(changeCount,this.data.get(i));\n }else if ( dateCompare != this.data.get(i).getFCTTIME().getPretty())\n {\n changeCount += 1;\n dateCompare = this.data.get(i).getFCTTIME().getPretty();\n loadHashTable(changeCount,this.data.get(i));\n }else\n {\n loadHashTable(changeCount,this.data.get(i));\n }\n }\n }", "public void instantiateTable(){\n hashTable = new LLNodeHash[16];\n }", "public static void main(String[] args)\n\t{\n\t\tSystem.out.println(\"Hash Table Testing\");\n\t\t\n\t\tMyHashTable table = new MyHashTable();\n\t\t\n\t\ttable.IncCount(\"hello\");\n\t\ttable.IncCount(\"hello\");\n\t\t\n\t\ttable.IncCount(\"world\");\n\t\ttable.IncCount(\"world\");\n\t\ttable.IncCount(\"world\");\n\t\ttable.IncCount(\"world\");\n\t\t\n\t\ttable.IncCount(\"Happy Thanksgiving!\");\n\t\ttable.IncCount(\"Happy Thanksgiving!\");\n\t\ttable.IncCount(\"Happy Thanksgiving!\");\n\t\t\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\t\n\t\ttable.IncCount(\"cool\");\n\t\t\n\t\ttable.IncCount(\"Assignment due\");\n\t\ttable.IncCount(\"Assignment due\");\n\t\t\n\t\ttable.IncCount(\"Wednesday\");\n\t\t\n\t\ttable.IncCount(\"night\");\n\t\ttable.IncCount(\"night\");\n\t\t\n\t\ttable.IncCount(\"at\");\n\t\t\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\t\n\t\tStringCount[] counts = table.GetCounts();\n\t\tString output = \"\";\n\t\t\n\t\tfor(int i = 0; i < counts.length; i++)\n\t\t{\n\t\t\tif(counts[i] != null)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"[\" + counts[i].str +\",\" + counts[i].cnt + \"], \");\n\t\t\t\toutput += \"[\" + counts[i].str +\",\" + counts[i].cnt + \"], \";\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"NULL!!!!! \" + i);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tif(output.compareTo(\"[Assignment due,2], [Food,7], [Happy Thanksgiving!,3], [TWELVE!!!,5], [Wednesday,1], [at,1], [cool,1], [hello,2], [night,2], [world,4], \") == 0)\n\t\t\tSystem.out.println(\"Success! Output is correct.\");\n\t\telse\n\t\t\tSystem.out.println(\"Failure! The output wasn't correct. Output was: \\\"\" + output +\"\\\"\");\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tHashtable<Temp, String> h = new Hashtable<>();\r\n\t\th.put(new Temp(1), \"A\");\r\n\t\th.put(new Temp(25), \"B\");\r\n\t\th.put(new Temp(30), \"C\");\r\n\t\th.put(new Temp(10), \"D\");\r\n\t\tSystem.out.println(h);\r\n\t\t//{30=C, 10=D, 25=B, 1=A}---when hashcode returns i\r\n\t\t//{25=B, 30=C, 1=A, 10=D}---when hashcode returns i%9\r\n\t\t\r\n\t\t//constructor with initial capacity\r\n\t\t//here if hashcode exceeds 4 then, modules of 5 is done. \r\n\t\tHashtable<Temp1, String> h1 = new Hashtable<>(5);\r\n\t\th1.put(new Temp1(1), \"A\");\r\n\t\th1.put(new Temp1(25), \"B\");\r\n\t\th1.put(new Temp1(30), \"C\");\r\n\t\th1.put(new Temp1(10), \"D\");\r\n\t\tSystem.out.println(h1);\r\n\t\t//{25=B, 10=D, 1=A, 30=C}\r\n\t\t\r\n\t\t//constructor using initial capacity and fill ratio.\r\n\t\tHashtable<Temp1, String> h2 = new Hashtable<>(5,0.4f);\r\n\t\th2.put(new Temp1(1), \"A\");\r\n\t\th2.put(new Temp1(25), \"B\");\r\n\t\th2.put(new Temp1(30), \"C\");\r\n\t\th2.put(new Temp1(10), \"D\");\r\n\t\tSystem.out.println(h2);\r\n\t\t//{30=C, 1=A, 10=D, 25=B}\r\n\t\t//{25=B, 10=D, 1=A, 30=C}\r\n\t\t\r\n\t\t//constructor using Map\r\n\t\tHashtable<Temp1, String> h3 = new Hashtable<>(h2);\r\n\t\tSystem.out.println(h3);\r\n\t}", "void buildTable(){\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n while (first.hasNext()){\n String s = first.next();\n for(String key: s.split(SPLIT)) {\n int val = map.getOrDefault(key, 0);\n map.put(key, val + 1);\n }\n }\n ArrayList<Tuple> arr = new ArrayList<>();\n for (String key: map.keySet()){\n int num = map.get(key);\n //filter the unusual items\n if (num >= this.support){\n arr.add(new Tuple(key, num));\n }\n }\n //descending sort\n arr.sort((Tuple t1, Tuple t2)->{\n if (t1.num <= t2.num)\n return 1;\n else\n return -1;\n });\n\n int idx = 0;\n for(Tuple t: arr){\n this.table.add(new TableEntry(t.item, t.num));\n this.keyToNum.put(t.item, t.num);\n this.keyToIdx.put(t.item, idx);\n idx += 1;\n }\n /*\n for(TableEntry e: table){\n System.out.println(e.getItem()+ \" \"+ e.getNum());\n }*/\n }", "public abstract int numOfFoodCellToReproduce();", "public HashMap<List<Integer>,Double> generateRewards(){\n\t\tHashMap<List<Integer>,Double> futRewards = new HashMap<List<Integer>,Double>();\n\t\tfor (List<Integer> state : this.states) {\n\t\t\tfutRewards.put(state,obtainReward(state));\n\t\t}\n\t\treturn futRewards;\n\t\t\n\t}", "@Override\r\n public int hashCode() {\r\n int hash = 7;\r\n hash = 19 * hash + Objects.hashCode(this.maschinenListe);\r\n hash = 19 * hash + Objects.hashCode(this.einKopfMaschinenListe);\r\n hash = 19 * hash + Objects.hashCode(this.zweiBisAchtKopfMaschinenListe);\r\n hash = 19 * hash + Objects.hashCode(this.zehnUndMehrKopfMaschinenListe);\r\n return hash;\r\n }", "public MyHashTable() {\n\t\tthis(DefaultCapacity);\n\t}", "private void rehash() {\r\n\t\tSystem.out.println( \"rehashing : buckets \" + numBuckets + \" size \" + size );\r\n\t\tArrayList<MapNode<K, V>> temp = buckets;\r\n\t\tbuckets = new ArrayList();\r\n\t\tfor( int i = 0; i < 2*numBuckets; i++ ) {\r\n\t\t\tbuckets.add( null );\r\n\t\t}\r\n\t\tsize = 0; //size 0 means abi ek b element nhi h\r\n\t\tnumBuckets *= 2; //ab number of buckets double ho gya h\r\n\t\t//now we will trvrs old arraylist and linkedlist and\r\n\t\t//copy is elemenet one by one\r\n\t\tfor( int i = 0; i < temp.size(); i++ ) {\r\n\t\t\tMapNode< K, V > head = temp.get(i);\r\n\t\t\twhile( head != null ) {\r\n\t\t\t\t\r\n\t\t\t\tK key = head.key;\r\n\t\t\t\tV value = head.value;\r\n\t\t\t\tinsert( key, value );\r\n\t\t\t\thead = head.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void createBitStremMap(){\n itemListMap = new HashMap<>();\n \n for (ArrayList<Integer> transactions_set1 : transactions_set) {\n ArrayList curr_tr = (ArrayList) transactions_set1;\n if(curr_tr.size() >= min_itemset_size_K) \n for (Object curr_tr1 : curr_tr) {\n int item = (int) curr_tr1;\n itemListMap.put(item, itemListMap.getOrDefault(item, 0)+1);\n }\n }\n \n // 3. Remove items without minimum support\n itemListMap.values().removeIf(val -> val<min_sup);\n \n // 4. Sort the map to a set of entries\n Set<Map.Entry<Integer, Integer>> set = itemListMap.entrySet();\n frequentItemListSetLenOne = new ArrayList<>(set);\n Collections.sort( frequentItemListSetLenOne, new Comparator<Map.Entry<Integer, Integer>>(){\n @Override\n public int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2 )\n {\n return (o2.getValue()).compareTo( o1.getValue() );\n }\n });\n\n // 5.\n itemIndex = new HashMap<>();\n for(Map.Entry<Integer, Integer> entry : frequentItemListSetLenOne){\n itemIndex.put(entry.getKey(), itemIndex.size());\n }\n\n // 6.\n bitsetLen = frequentItemListSetLenOne.size();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void increaseCapacity()\r\n\t{\r\n\t\t// Store a reference to the old table\r\n\t\tHashEntry<K, V>[] oldTable = table;\r\n\r\n\t\t// Attempt to resize the table\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Make a new table full of empty entries\r\n\t\t\ttable = new HashEntry[SIZES[++sizeIdx]];\r\n\t\t}\r\n\t\t// We have too many entries in the hash table: no more sizes left\r\n\t\tcatch (ArrayIndexOutOfBoundsException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Too many entries in hash table. Exiting.\");\r\n\t\t\tSystem.exit(4);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < oldTable.length; ++i)\r\n\t\t{\r\n\t\t\t// If we are at an entry with a key and value\r\n\t\t\tif (oldTable[i] != null && !oldTable[i].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Add every value at that key to the bigger table\r\n\t\t\t\tfor (V value : oldTable[i].value)\r\n\t\t\t\t{\r\n\t\t\t\t\tinsert(oldTable[i].key, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void rehash() {\r\n Entry[] oldHashTable = this.hashTable;\r\n this.capacity = this.capacity * 2;\r\n this.hashTable = new Entry[this.capacity];\r\n this.size = 0;\r\n for (Entry eachEntry : oldHashTable) {\r\n if (eachEntry != null) {\r\n if (!eachEntry.isDeleted) {\r\n this.add((K)eachEntry.key,(V)eachEntry.value);\r\n }\r\n }\r\n }\r\n return;\r\n }", "public int getHats() {\n return totalHats;\n }", "private static void putTileHash(HashMap<Integer,Integer> hashes, int hash) {\n\t\tInteger freq = hashes.remove(hash);\n\t\thashes.put(hash, (freq == null) ? 1 : freq+1);\n\t}", "public MyHashMapImpl(int nr_buckets) {\n\t\tthis.b = new ArrayList<Bucket<K, V>>();\n\t\tfor (int i = 0; i < nr_buckets; i++) {\n\t\t\tb.add(new Bucket<K, V>());\n\t\t}\n\t\tnrb = nr_buckets;\n\t}", "@Override\n\tpublic HashMap<Integer, HashMap<Integer,VueElement>> chercherElementProche(VueElement ve, Hashtable<Integer,VueElement> voisins){\n\t\tHashMap<Integer, HashMap<Integer,VueElement>> resultat = new HashMap<>();\n\n\t\tint distPlusProche = 100;\n\t\tint refPlusProche = 0;\n\t\t/* Strategie du random */\t\t\t\n\t\tSet<Integer> tabref = voisins.keySet();\n\t\tInteger[] t = new Integer[tabref.size()];\n\t\tRandom r = new Random();\n\t\tint s = tabref.size();\n\t\ttabref.toArray(t);\n\t\tif(tabref.size() >= 1 && t[0]!=null)\n\t\t{\n\t\t\t/* On trouve un ele aleatoire dans la liste de voisins */\n\t\t\tint l = r.nextInt(s);\n\t\t\trefPlusProche=t[l];\n\t\t}\n\t\telse refPlusProche=0;\n\n\t\tHashMap<Integer,VueElement> cible = new HashMap<>();\n\t\tcible.put((Integer)refPlusProche, voisins.get(refPlusProche));\n\t\tresultat.put((Integer)distPlusProche, cible);\n\n\t\treturn resultat;\n\t}", "@org.junit.Test\n public void size() throws Exception {\n assertEquals(3, hashTable.size());\n hashTable.put(\"math\", \"club\");\n assertEquals(3, hashTable.size());\n hashTable.put(\"input\", \"string\");\n assertEquals(4, hashTable.size());\n }", "private void initCountMap() {\n\t\tcountMap.put(\"cells.BlueSchellingCell\", 0);\n\t\tcountMap.put(\"cells.OrangeSchellingCell\", 0);\n\t\tcountMap.put(\"cells.LiveCell\", 0);\n\t\tcountMap.put(\"cells.DeadCell\", 0);\n\t\tcountMap.put(\"cells.TreeCell\", 0);\n\t\tcountMap.put(\"cells.BurningTreeCell\", 0);\n\t\tcountMap.put(\"cells.EmptyLandCell\", 0);\n\t\tcountMap.put(\"cells.EmptyCell\", 0);\n\t\tcountMap.put(\"cells.SharkCell\", 0);\n\t\tcountMap.put(\"cells.FishCell\", 0);\n\t\tcountMap.put(\"cells.AntGroupCell\", 0);\n\t\tcountMap.put(\"cells.BlueRPSCell\", 0);\n\t\tcountMap.put(\"cells.GreenRPSCell\", 0);\n\t\tcountMap.put(\"cells.RedRPSCell\", 0);\n\t\tcountMap.put(\"cells.WhiteRPSCell\", 0);\n\t}", "public HashMap<Integer,Integer> countStudent(){\n int i=students.size();\n int y=class_s.size();\n for (int j=0;j<y;j++){\n count=0;\n for (int z=0;z<i;z++){\n if(class_s.get(j).getClassID()==students.get(z).getClassID()){\n count++;\n\n }\n \n }\n map.put(class_s.get(j).getClassID(),count);\n \n }\n return (HashMap<Integer,Integer>)map;\n }", "public int size(){\n\t\treturn hashTableSize;\n\t}", "private static void printTable(int numberOfDocs) {\n \n Gson gs = new Gson();\n String json = gs.toJson(wor);\n // System.out.println(json);\n \n List<String> queryWords = new ArrayList();\n //to test it for other query word you can change the following two words\n //queryWords.add(\"carpet\");\n //queryWords.add(\"hous\");\n queryWords.add(\"the\");\n queryWords.add(\"crystallin\");\n queryWords.add(\"len\");\n queryWords.add(\"vertebr\");\n queryWords.add(\"includ\");\n \n \n FrequencySummary frequencySummary = new FrequencySummary();\n frequencySummary.getSummary(json,docName, queryWords);\n \n System.exit(0);\n \n Hashtable<Integer,Integer> g = new Hashtable<>();\n \n /* wor.entrySet().forEach((wordToDocument) -> {\n String currentWord = wordToDocument.getKey();\n Map<String, Integer> documentToWordCount = wordToDocument.getValue();\n freq.set(0);\n df.set(0);\n documentToWordCount.entrySet().forEach((documentToFrequency) -> {\n String document = documentToFrequency.getKey();\n Integer wordCount = documentToFrequency.getValue();\n freq.addAndGet(wordCount);\n System.out.println(\"Word \" + currentWord + \" found \" + wordCount +\n \" times in document \" + document);\n \n if(g.getOrDefault(currentWord.hashCode(), null)==null){\n g.put(currentWord.hashCode(),1);\n \n }else {\n System.out.println(\"Hello\");\n \n int i = g.get(currentWord.hashCode());\n System.out.println(\"i \"+i);\n g.put(currentWord.hashCode(), i++);\n }\n // System.out.println(currentWord+\" \"+ g.get(currentWord.hashCode()));\n // g.put(currentWord.hashCode(), g.getOrDefault(currentWord.hashCode(), 0)+wordCount);\n \n });\n // System.out.println(freq.doubleValue());\n \n // System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/freq.doubleValue())));\n });\n // System.out.println(g.get(\"plai\".hashCode()));\n //System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/(double)g.get(\"plai\".hashCode()))));\n */\n }", "public HashTableChained() {\n size = 0;\n buckets = new SList[107];\n largePrime = findPrime(10000);\n for (int i = 0; i < 107; i++) {\n buckets[i] = new SList();\n }\n }", "public MyHashTable( )\r\n\t{\r\n\t\tthis(DEFAULTTABLESIZE);\r\n\t\t\r\n\t\t\t\r\n\t}", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "public HashMap<String, Integer> makeEmpty() {\r\n\t\tHashMap<String, Integer> newMap = new HashMap<>();\r\n\t\tnewMap.put(new Gloom(\"Gloom\", null, 30, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Golbat(\"Golbat\", null, 28, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Growlithe(\"Growlithe\", null, 26, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Jigglypuff(\"Jigglypuff\", null, 24, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Persian(\"Persian\", null, 22, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Pidgeotto(\"Pidgeotto\", null, 20, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Pikachu(\"Pikachu\", null, 18, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Seaking(\"Seaking\", null, 16, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Staryu(\"Staryu\", null, 14, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Tentacool(\"Tentacool\", null, 12, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Zubat(\"Zubat\", null, 10, 25, 20, 10).getName(), 0);\r\n\t\treturn newMap;\r\n\t}", "public int numberOfEntries();", "@Override\r\n\tpublic double findHappiness(ArrayList<Gift> gifts) {\n\t\tdouble total_price = 0;\r\n\t\tdouble luxury_value = 0;\r\n\t\tfor(Gift gift : gifts) {\r\n\t\t\ttotal_price += gift.getPrice();\r\n\t\t\tif(gift.getType() == 1)\r\n\t\t\t\tluxury_value += gift.getValue();\r\n\t\t}\r\n\t\tdouble ans = Math.log(total_price - (double)this.getMaintenance() + 2*luxury_value);\r\n\t\treturn ans;\r\n\t}", "private void createSymbolTable( Grammar grammar, State state, List<Action> tshifts, List<Action> ntshifts)\n {\n state.stackOps = new StackOp[ tshifts.size()];\n for( int i=0; i<state.stackOps.length; i++)\n {\n StackOp shift = new StackOp();\n state.stackOps[ i] = shift;\n \n int[] symbol = tshifts.get( i).symbols;\n if ( symbol.length == 2)\n {\n shift.low = symbol[ 0];\n shift.high = symbol[ 1];\n }\n else if ( symbol.length == 1)\n {\n shift.low = symbol[ 0];\n shift.high = symbol[ 0];\n }\n }\n }", "public void clear() {\r\n GiftList.clear();\r\n names = new LinkedList<>();\r\n totalGifts = 0;\r\n totalCost = 0;\r\n }", "@Override\n\tpublic int hashCode()\n\t{\n\t\t// This is really simple, but it works... and prevents a deep hash\n\t\treturn nodeList.size() + edgeList.size() * 23;\n\t}", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn countMap.hashCode();\n\t\t}", "long getHits();", "private void fillMap(TreeMap<Double, String> userlist, TreeMap<Double, String> ret) \r\n \t{\t\t\t\r\n \t\tSortedSet<Double> sortedKeys = (SortedSet<Double>) userlist.keySet();\r\n \t\tDouble prozent = getProzent(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\tret.put(prozent, userlist.get(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString())));\r\n \t\tuserlist.remove(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\t\r\n \t\tfor(int i = userlist.keySet().size() - 1; i >= 0; i--)\r\n \t\t{\t\r\n \t\t\tret.put(getProzent(Double.valueOf(sortedKeys.toArray()[i].toString())) + prozent, userlist.get(Double.valueOf(sortedKeys.toArray()[i].toString())));\r\n \t\t\tprozent += getProzent(Double.valueOf(sortedKeys.toArray()[i].toString()));\r\n \t\t\tuserlist.remove(Double.valueOf(sortedKeys.toArray()[sortedKeys.size() - 1].toString()));\r\n \t\t}\r\n \t}", "public HashTable(int tableSize) {\n\t\ttable = new ArrayList<>(tableSize);\n\t\tcapacity = tableSize;\n\t\tfor (int i = 0; i < tableSize; i++) {\n\t\t\ttable.add(new SequentialSearchSymbolTable<K, V>());\n\t\t}\n\t}", "public HashMap<String, ArrayList<Instance>> generateData(HashMap<String, ArrayList<Instance>> dataInstance,ArrayList<String> classList,int numberOfBin , int avgNumBin){\n //HashMap<String, ArrayList<Instance>> data = new HashMap();\n DescriptiveStatistics stats = new DescriptiveStatistics();\n for (int i = 0; i < classList.size(); i++) {\n String classlab = classList.get(i);\n ArrayList<Instance> instList = dataInstance.get(classlab);\n for (int j = 0; j < instList.size(); j++) {\n Instance inst = instList.get(j);\n stats.addValue(inst.getNumOfWord());\n }\n ArrayList<Bin> binlist = this.getBin(stats, numberOfBin);\n for (int j = 0; j < instList.size(); j++) {\n Instance inst = instList.get(j);\n for (int k = 0; k < binlist.size(); k++) {\n Bin bin = binlist.get(k);\n if(inst.getNumOfWord()>=bin.getStart()&& inst.getNumOfWord()<bin.getEnd()){\n bin.getInstList().add(inst);\n }\n }\n }\n\n //ArrayList<Bin> binlist = this.getBin(stats, numberOfBin);\n ArrayList<Instance> newInstList = new ArrayList<Instance>();\n int numOfItemEachBin = avgNumBin/numberOfBin;\n for (int j = 0; j < binlist.size(); j++) {\n Bin bin = binlist.get(j);\n ArrayList<Instance> binInstList = bin.getInstList();\n Collections.shuffle(binInstList, new Random(100000)); \n if(numOfItemEachBin>binInstList.size()){\n numOfItemEachBin = binInstList.size()-1;\n }\n for (int k = 0; k < numOfItemEachBin; k++) {\n try {\n Instance inst = binInstList.get(k);\n newInstList.add(inst);\n //binInstList.remove(k);\n //k--;\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n \n }\n dataInstance.put(classlab,newInstList);\n }\n for (Map.Entry<String, ArrayList<Instance>> entry : dataInstance.entrySet()) {\n String key = entry.getKey();\n ArrayList<Instance> value = entry.getValue();\n System.out.println(key+\"\\t\"+value.size());\n }\n return dataInstance;\n }", "private static void testRendezvousHashing() {\n Map<String, AtomicInteger> HRWNodesMap = Maps.newHashMap();\r\n List<String> HRWNodes = Lists.newArrayList();\r\n for(int i = 0 ; i < nodesCount; i ++) {\r\n HRWNodes.add(\"HRWNode\"+i);\r\n HRWNodesMap.put(\"HRWNode\"+i, new AtomicInteger());\r\n }\r\n RendezvousHashing<String, String> hrw = new RendezvousHashing(charsFunnel, charsFunnel, HRWNodes);\r\n \r\n // insert keys\r\n long startTime = System.currentTimeMillis();\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n long endTime = System.currentTimeMillis();\r\n long timeElapsed = endTime - startTime;\r\n // System.out.println(\"Execution Time in milliseconds : \" + timeElapsed);\r\n \r\n\r\n // print out distriubution + clear\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n entry.getValue().set(0);\r\n }\r\n\r\n // remove node 3\r\n System.out.println(\"\\n=== After Removing Node 3 ===\");\r\n hrw.removeNode(\"HRWNode3\");\r\n HRWNodesMap.remove(\"HRWNode3\");\r\n\r\n // re-add\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n\r\n // print out distriubution again\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n }\r\n }", "public HashBag(Collection<E> c) {\n map = new HashMap<>((c.size() * 4) / 3);\n for (E item : c) {\n if (item == null)\n continue;\n Counter val = map.get(item);\n if (val == null)\n map.put(item, new Counter(1));\n else\n val.increment();\n }\n }", "private static List<Integer> packDPInit(PackageDTO packageDTO) {\n // Declare the table dynamically\n Integer itemsSize = packageDTO.getItems().size();\n Integer capacityGrams = packageDTO.getCapacity() * GRAMS_IN_KILO;\n Integer mem[][] = new Integer[itemsSize + 1][capacityGrams + 1];\n\n //I need to re-instance my list as an Integer List to use The values on my memoization structure\n List<Integer> weights = new ArrayList<>();\n for(ItemDTO item : packageDTO.getItems()){\n Double weightGrams = item.getWeight() * GRAMS_IN_KILO;\n weights.add(weightGrams.intValue());\n }\n\n // Loop to initially filled the\n // table with -1\n for(int i = 0; i < itemsSize + 1; i++)\n for(int j = 0; j < capacityGrams + 1; j++)\n mem[i][j] = -1;\n\n List<Integer> optimalChoice = new ArrayList<>();\n packDPRec(capacityGrams, weights, packageDTO.getItems(), weights.size(), mem, optimalChoice);\n return optimalChoice;\n }", "@SuppressWarnings(\"unchecked\")\r\n public HashTableMap(int capacity) {\r\n this.hashTable = (LinkedList<HashNode>[]) new LinkedList[capacity];\r\n this.size = 0;\r\n this.capacity = capacity;\r\n }", "public ChainedHashTable(int capacity)\n {\n this.rand = new Random();\n this.capacity = capacity;\n this.clear();\n }", "public double getGesamtwert(){\n double total = 0;\n for (int i = 0; i < key; i++){\n total += getArtikel(i).getGesamt();\n }\n return total;\n }", "public static void hastableMethod(int numberOfIntegers) {\n\n\t\tHashtable<Integer, Integer> table = new Hashtable<>();\n\t\tRandom rand = new Random();\n\n\t\tfor (int i = 0; i < numberOfIntegers; i++) {\n\t\t\ttable.put(i, rand.nextInt(numberOfIntegers));\n\t\t}\n\n\t\tfor (int i = 0; i < numberOfIntegers; i++) {\n\t\t\ttable.remove(i);\n\t\t}\n\n\t}", "private MyIntegerList generatedPopulatedList() {\n final MyIntegerList mil = new MyIntegerList();\n\n mil.push(1);\n mil.push(2);\n mil.push(1);\n mil.push(6);\n mil.push(6);\n mil.push(7);\n mil.push(2);\n mil.push(2);\n mil.push(0);\n mil.push(5);\n\n return mil;\n }", "public HashTable(int s){\n\t\tthis.table = new Record[s];\n\t\tthis.contains = 0;\n\t}", "public void fillBasket(_essentialGift[] esGifts, _utilityGift[] uGifts, _luxuryGift[] lGifts) {\r\n \r\n this.gbasket = new _giftBasket();\r\n esGifts = _staticFunctions.sortByCost(esGifts);\r\n uGifts = _staticFunctions.sortByCost(uGifts);\r\n lGifts = _staticFunctions.sortByCost(lGifts);\r\n \r\n int grlBudget = 0;\r\n \r\n switch(this.grlType){\r\n case \"The Chosy\":\r\n grlBudget = this.chGrlfrnd.Budget;\r\n break;\r\n case \"The Normal\":\r\n grlBudget = this.nGrlfrnd.Budget;\r\n break;\r\n case \"The Desperate\":\r\n grlBudget = this.dsGrlfrnd.Budget;\r\n break;\r\n }\r\n \r\n double prc = 0;\r\n int esIdx = 0;\r\n int uIdx = 0;\r\n int lIdx = 0;\r\n int eItIdx = 0;\r\n int uItIdx = 0;\r\n int lItIdx = 0;\r\n \r\n \r\n while(prc < grlBudget && (esIdx < _staticFunctions.length(esGifts) || uIdx < _staticFunctions.length(uGifts))){\r\n if((esIdx < _staticFunctions.length(esGifts) && uIdx >= _staticFunctions.length(uGifts))||\r\n (esIdx < _staticFunctions.length(esGifts) && uIdx < _staticFunctions.length(uGifts) && esGifts[esIdx].price/esGifts[esIdx].value < uGifts[uIdx].price/uGifts[uIdx].value)){\r\n this.gbasket.eItems[eItIdx] = esGifts[esIdx];\r\n prc += esGifts[esIdx].price;\r\n eItIdx++;\r\n esIdx++;\r\n }\r\n \r\n else if(uIdx < _staticFunctions.length(uGifts)){\r\n this.gbasket.uItems[uItIdx] = uGifts[uIdx];\r\n prc += uGifts[uIdx].price;\r\n uItIdx++;\r\n uIdx++;\r\n }\r\n \r\n }\r\n\r\n while(lIdx < _staticFunctions.length(lGifts) && prc < grlBudget){\r\n this.gbasket.lItems[lItIdx] = lGifts[lIdx];\r\n prc += lGifts[lIdx].price;\r\n lIdx++;\r\n lItIdx++;\r\n } \r\n \r\n if(lItIdx == 0 && ( lGifts[0].price <= (this.Budget - prc) ) ){\r\n this.gbasket.lItems[lItIdx] = lGifts[0]; \r\n }\r\n \r\n }", "public MyHashTableCC(){\n\t\tm_arraylists = new MyArraylist[DIFF_CHARACTERS];\n\n\t\tfor (int i = 0; i < m_arraylists.length; i++){\n\t\t\tm_arraylists[i] = new MyArraylist();\n\t\t}\n\t}", "protected int myHashKey(KeyType key) {\n int hashValue;\n hashValue = key.hashCode() % mTableSize;\n if (hashValue < 0) {\n hashValue += mTableSize;\n }\n return hashValue;\n }", "private void addTableEntry(HashMap<Integer,Integer> map, int key){\n int count = map.containsKey(key) ? map.get(key) : 0;\n map.put(key, count + 1); //If wasn't present, this is set to 1, else its incremented\n\n return;\n }", "public DesignHashmap() {\n\t\ttable = new boolean[buckets][];\n\t}", "public HashMap<Integer,Integer> recover() {\n \tHashMap<Integer,Integer> hash1 = new HashMap();\n \tint counter = 0;\n \tfor(int i = 0; i <this.r;i++) {\n \tfor(int j = 0 ; j <this.s * 2; j ++)\n \t{\n \t\tif(net[i][j].isOneSparse()) {\n \t\t\tint index = this.net[i][j].getIota()/this.net[i][j].getPhi();\n \t\t\tif(hash1.containsKey(index)) {\n \t\t\t\thash1.put(index, hash1.get(index) + this.net[i][j].getPhi());\n \t\t\t}\n \t\t\telse {\n \t\t\t\thash1.put(index,this.net[i][j].getPhi());\n \t\t\t\t\n \t\t\t}\n \t\t\tcounter++;\n \t\t\t\n \t\t}\n \t\t\n \t}\n \t}\n \tif(counter != 0 && counter < s)\n \t{\n \t\treturn hash1;\n \t\t\n \t}\n \telse\n \t{\n \t\treturn null;\n \t}\n \n }", "public void add(T item, int hashFunction) {\n int itemIndex = 0;\r\n boolean noDuplicates = true;\r\n //determines which hash function to call\r\n if (hashFunction == 1) {\r\n itemIndex = hash1(item);\r\n } else if (hashFunction == 2) {\r\n itemIndex = hash2(item);\r\n } else if (hashFunction == 3) {\r\n itemIndex = hash3(item);\r\n }\r\n\r\n //creating new node\r\n NGen newItem = new NGen(item, null);\r\n NGen currNode = newTable[itemIndex];\r\n\r\n if(newTable[itemIndex] != null) { //checks if index already has a key placed in it\r\n while (currNode.getNext() != null) {\r\n if (currNode.getData().equals(newItem.getData())) {\r\n noDuplicates = false;\r\n break;\r\n }\r\n currNode = currNode.getNext();\r\n }\r\n\r\n if (noDuplicates){ //only adds the item if there are no duplicates\r\n currNode.setNext(newItem);\r\n }\r\n } else { //creates node if there is not one existing\r\n newTable[itemIndex]= new NGen(item, null);\r\n }\r\n\r\n }", "private int copyFitnessValuesToFitnessTable(IGANsgaPopulation pop,\r\n FitnessTable ft) {\r\n int size = pop.size();\r\n int numObj = pop.getNumObjectives();\r\n int numRankZero = 0;\r\n for (int j = 0; j < size; j++) {\r\n IGANsgaSolution sol = (IGANsgaSolution) pop.getMember(j);\r\n if (sol.getRank() == 0) {\r\n numRankZero++;\r\n }\r\n for (int k = 0; k < numObj; k++) {\r\n ft.setFitnessValue(sol.getObjective(k), j, k);\r\n }\r\n }\r\n return numRankZero;\r\n }", "public HashTable(int size) {\n\t\tarraySize = size;\n\t\thashArray = new DataItem[arraySize];\n\t\tnonItem = new DataItem(-1);\n\t}", "public void getFrequentHash(int i, HashTreeNode htn, String s, Vector<String> lis) {\n\t\tVector tempv = new Vector();\n\t\tif(htn.nodeAttr == 2) {\n\t\t\ttempv = htn.itemsetList;\n\t\t\tfor(int j = 1; j<=tempv.size(); j++) {\n\t\t\t\tif (((ItemsetNode)tempv.get(j-1)).count >= MINSUP * LINES) {\n\t\t\t\t\tString frequentString = ((ItemsetNode)tempv.get(j-1)).itemset;\n\t\t\t\t\tlis.addElement(frequentString);\n\t\t\t\t\titemsetVector.addElement(frequentString);\n\t\t\t\t\tnumVector.addElement(((ItemsetNode)tempv.get(j-1)).count/1000.0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse { // HashTable node\n\t\t\tif(htn.hashTable == null) \n\t\t\t\treturn;\n\t\t\tfor(int t = i+1; t<=NUM; t++) {\n\t\t\t\tif(htn.hashTable.containsKey(getItemAt(s, t))) {\n\t\t\t\t\tgetFrequentHash(t, (HashTreeNode)htn.hashTable.get((getItemAt(s, t))), s, lis);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public HashTable( int size )\n\t{\n\t\ttheLists = new WordList[ size ];\n\t\tfor (int i = 0; i < theLists.length; i++)\n\t\t\ttheLists[i] = new WordList();\n\t}", "private static HashMap<CardRank, Integer>\n getCardMap(ArrayList<CardRank> ranks){\n HashMap<CardRank, Integer> CardMap = new HashMap<>();\n //for every rank in ranks, put this rank into the key\n // and put its frequency into the value\n for(CardRank r :ranks) {\n if (CardMap.containsKey(r)){\n CardMap.put(r, CardMap.get(r) + 1);\n }else{\n CardMap.put(r,1);\n }\n }\n return CardMap;\n }", "private static void calculateTotalHitsRequired()\n {\n totalHitsRequired = 0;\n \n // add all the ship lengths together to get\n // the total number of hits required\n for (int length : SHIP_LENGTHS)\n {\n totalHitsRequired += length;\n }\n }", "public QuantDataHashTable() {\n\t\t\n\t\tquantData = new Hashtable<String, Double>();\n\t\t\n\t}", "public static HashMap check() {\n HashMap<String, Double> distGen = new HashMap<>();\n for (int i = 0; i < hMap.size(); i++) {\n double dist = 0.0;\n\n /**\n * calculating eucledean distance\n * */\n\n for (int j = 0; j < hMap.get(genres[i]).length; j++) {\n dist = dist + (Math.pow((hMap.get(genres[i])[j] - newWordPercentages[j]), 2));\n }\n dist = Math.sqrt(dist);\n dist = Math.abs(dist);\n distGen.put(genres[i], dist);\n }\n\n return distGen;\n }", "private void rehash(double growthFactor) {\n \tsize=0;\n \tint newBuckets = (int) Math.round(Math.max(buckets.length*growthFactor, MIN_BUCKETS));\n \t\n \tLinkedList<Entry> tempEntries = new LinkedList<Entry>();\n \t\n \tfor(int i=0;i<buckets.length;i++) {\n \t\tLinkedList<Entry> tempBucket = buckets[i];\n \t\t\n \t\twhile(!tempBucket.isEmpty()) {\n \t\t\tEntry tempEntry = tempBucket.get(0);\n \t\t\t\n \t\t\ttempEntries.add(tempEntry);\n \t\t\ttempBucket.remove(0);\n \t\t\t\n \t\t}\n \t\t\n \t}\n \t\n \tinitBuckets(newBuckets);\n \t\n \tfor(int i=0;i<tempEntries.size();i++) {\n \t\tput(tempEntries.get(i).getKey(), tempEntries.get(i).getValue());\n \t}\n }", "public Map<Integer, Integer> readCapacity() {\n int shelfId;\n int i;\n int amount;\n int countshelf = 0;\n\n for (shelfId = 1; shelfId < inventory.size(); shelfId++) {\n amount = 0;\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> Item = new HashMap<>();\n Item = inventory.get(i);\n String x = Item.get(\"Shelf#\").toString();\n int y = Integer.parseInt(x);\n if (shelfId == y) {\n amount += Integer.parseInt(Item.get(\"Amount\").toString());\n }\n }\n if (amount != 0) {\n countshelf += 1;\n shelf.put(countshelf, ShelfCapacity - amount);\n }\n }\n\n //System.out.println(shelf);\n return shelf;\n }", "public int getNumberOfEntries() ;", "public void doubleTable() \n\t{\n\t\tpowerOfListSize++;\n\t\tint newlength = (int)(Math.pow(2,powerOfListSize)); //Creates empty table twice the size of the current table\n\t\tint oldlength = length; //preserves old lengths value\n\t\tRecord[] TempTable = Table; //preserve table value\n\t\tTable = new Record[newlength]; //makes original table twice the size\n\t\tfor (int j = 0; j < newlength; j++){\n\t\t\tTable[j] = new Record(\" \"); //fill table with empty slots\n\t\t}\n\t\tlength = newlength; //sets length to the new length\n\t\tfor (int j = 0; j < oldlength; j++){\n\t\t\tif (TempTable[j].hash >0){\n\t\t\t\tTable = reinsert(Table, TempTable[j],newlength); //refills new table with all value from old table so they get hashed properly\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.7719283", "0.5931372", "0.5903166", "0.58739835", "0.55844307", "0.5547747", "0.55103415", "0.54824847", "0.5431765", "0.54312944", "0.5386244", "0.5383451", "0.52928007", "0.5290842", "0.5290528", "0.52596617", "0.52397776", "0.5222317", "0.52184165", "0.51876837", "0.5174796", "0.5140036", "0.5136484", "0.5128863", "0.5119365", "0.51171064", "0.51030105", "0.50940466", "0.5091971", "0.5090806", "0.5084715", "0.5081045", "0.5063951", "0.5061383", "0.50556415", "0.5044594", "0.5044387", "0.5041919", "0.5031845", "0.50117475", "0.5011543", "0.5001311", "0.49923468", "0.4990881", "0.49811807", "0.4975332", "0.49745286", "0.495321", "0.49469993", "0.4944146", "0.49437067", "0.49434626", "0.49355087", "0.49345043", "0.4930492", "0.49290976", "0.49275836", "0.4920939", "0.49201304", "0.491819", "0.49140576", "0.491085", "0.4910551", "0.4909742", "0.4890948", "0.48836616", "0.4881777", "0.4876484", "0.4863383", "0.48600748", "0.48589933", "0.48549038", "0.4849377", "0.4845493", "0.48434618", "0.48355368", "0.48349148", "0.4829418", "0.48211667", "0.48177424", "0.48176664", "0.48113185", "0.48093772", "0.48088703", "0.4799582", "0.47969723", "0.4794247", "0.4794049", "0.47926056", "0.47914964", "0.47910947", "0.47910732", "0.47904307", "0.4788448", "0.47849205", "0.47841778", "0.4781094", "0.47810555", "0.4778136", "0.4773817" ]
0.69036585
1
Creates a new GiftHashTable
public GiftHashTable() { GiftList = new HashTableMap<>(20); names = new LinkedList<>(); totalCost = 0; totalGifts = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftHashTable(int capacity) {\r\n GiftList = new HashTableMap<>(capacity);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "HashTable() {\n int trueTableSize = nextPrime(tableSize);\n HT = new FlightDetails[nextPrime(trueTableSize)];\n }", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "public MyHashTable( )\r\n\t{\r\n\t\tthis(DEFAULTTABLESIZE);\r\n\t\t\r\n\t\t\t\r\n\t}", "public MyHashTable() {\n\t\tthis(DefaultCapacity);\n\t}", "public MyHashTable( )\n {\n this( DEFAULT_TABLE_SIZE );\n }", "public void instantiateTable(){\n hashTable = new LLNodeHash[16];\n }", "private void createHashtable()\n {\n int numLanguages = languages.length;\n mapping = new Hashtable(numLanguages, 1.0f);\n for (int i = 0; i < numLanguages; i++)\n mapping.put(languages[i], values[i]);\n }", "public HashTable()\n\t{\n\t\tthis(NUM_BUCKETS);\n\t}", "public HashTable() {\n\t\tthis(DEFAULT_TABLE_SIZE);\n\t}", "public HashTable( )\n\t{\n\t\tthis ( DEFAULT_TABLE_SIZE );\n\t}", "public MyHashMap() {\n this.key_space = 2069;\n this.hash_table = new ArrayList<Bucket>();\n for (int i = 0; i < this.key_space; ++i) {\n this.hash_table.add(new Bucket());\n }\n }", "public ChainedHashTable()\n {\n this(DEFAULT_CAPACITY);\n }", "public BVHashtable()\n {\n super();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashTable()\r\n\t{\r\n\t\ttable = new HashEntry[SIZES[sizeIdx]];\r\n\t}", "public MyHashTable( int tableSize )\r\n\t{\r\n\t\tthis.size = 0;\r\n\t\tthis.tableSize = nextPrime(tableSize);\r\n\t\ttable = new Object[this.tableSize];\r\n\t\tfor ( int i =0; i< this.tableSize; i++)\r\n\t\t{ this.table[i] = new LinkedArrays<T>(); }\r\n\t\r\n\t}", "QHT() {\r\n /*\r\n ***TO-DO***\r\n Default constructor\r\n should initialize the hash table with default capacity\r\n */\r\n initCap = 2;\r\n for (int i = 1; i < DEFAULT_EXP; i++) {\r\n initCap *= 2;\r\n }\r\n htable = new KVPair[initCap];\r\n }", "protected void createTable() {\n table = (MapEntry<K, V>[]) new MapEntry[capacity]; // safe cast\n }", "@Override\r\n protected Object clone() throws CloneNotSupportedException \r\n {\r\n // Se crea una nueva instancia de TSB_OAHashtable\r\n TSB_OAHashtable<K, V> t = new TSB_OAHashtable<>(this.table.length, this.load_factor);\r\n\r\n // copio todos los elementos\r\n for(Map.Entry<K, V> entry : this.entrySet()){\r\n t.put(entry.getKey(), entry.getValue());\r\n }\r\n\r\n return t;\r\n }", "public SimpleHashtable() {\r\n\t\tthis(DEFAULT_TABLE_SIZE);\r\n\t}", "public HashTable()\n\t{\n\t\tthis(START_TABELLENGROESSE);\n\t}", "public HashTable(int size){\n\n arraySize = size;\n hashArray = new Elements[arraySize];\n nullement = new Elements(\" -1 \"); \n }", "public HashTable(int tableSize) {\n\t\ttable = new ArrayList<>(tableSize);\n\t\tcapacity = tableSize;\n\t\tfor (int i = 0; i < tableSize; i++) {\n\t\t\ttable.add(new SequentialSearchSymbolTable<K, V>());\n\t\t}\n\t}", "public BVHashtable(Hashtable hashtable)\n {\n super(hashtable);\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public DesignHashmap() {\n\t\ttable = new boolean[buckets][];\n\t}", "public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "Hashi newHashi(int dim);", "public MyHashTable(int capacity) {\n\t\tmySize = capacity;\n\t\tnumEntries = 0;\n\t\tmyBuckets = new ArrayList<LinkedList<WordCode<K, V>>>(mySize);\n\t\t\n\t\tfor (int i = 0; i < mySize; i++) {\n\t\t\tmyBuckets.add(new LinkedList<WordCode<K, V>>());\n\t\t}\n\t}", "public HashTableMap() {\r\n this.capacity = 10; // with default capacity = 10\r\n this.size = 0;\r\n this.array = new LinkedList[capacity];\r\n\r\n }", "public HashTableChained() {\n sizeBucket = 101;\n defTable = new DList[sizeBucket];\n for(int i=0; i<sizeBucket; i++) {\n defTable[i] = new DList();\n }\n size = 0;\n }", "public HashTable(int size) {\n \tnumElements = 0;\n Table = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n \tTable.add(new List<>());\n } \n }", "public QuantDataHashTable() {\n\t\t\n\t\tquantData = new Hashtable<String, Double>();\n\t\t\n\t}", "public MyHashTable( int size )\n {\n allocateArray( size );\n doClear( );\n }", "public HashDictionary (int size) {\r\n\t\tthis.size = size;\r\n\t\ttable = new Node[size];\r\n\t\tfor (int i=0;i<size;i++) {\r\n\t\t\ttable[i]=null;\r\n\t\t}\r\n\t}", "public HashTable(int size) {\n\t\tarraySize = size;\n\t\thashArray = new DataItem[arraySize];\n\t\tnonItem = new DataItem(-1);\n\t}", "public void createPairTable() {\r\n //create total Table\r\n pairTable = new HashMap<>();\r\n\r\n //fill with values \r\n Play[] cAce = {Play.NONE, P, P, P, P, P, P, P, P, P, P, P};\r\n Play[] cTen = {Play.NONE, S, S, S, S, S, S, S, S, S, S, S};\r\n Play[] cNine = {Play.NONE, S, P, P, P, P, P, S, P, P, S, S};\r\n Play[] cEight = {Play.NONE, P, P, P, P, P, P, P, P, P, P, P};\r\n Play[] cSeven = {Play.NONE, H, P, P, P, P, P, P, H, H, H, H};\r\n Play[] cSix = {Play.NONE, H, P, P, P, P, P, H, H, H, H, H};\r\n Play[] cFive = {Play.NONE, H, D, D, D, D, D, D, D, D, H, H};\r\n Play[] cFour = {Play.NONE, H, H, H, H, P, P, H, H, H, H, H};\r\n Play[] cThree = {Play.NONE, H, P, P, P, P, P, P, H, H, H, H};\r\n Play[] cTwo = {Play.NONE, H, P, P, P, P, P, P, H, H, H, H};\r\n\r\n pairTable.put(1, cAce);\r\n pairTable.put(2, cTwo);\r\n pairTable.put(3, cThree);\r\n pairTable.put(4, cFour);\r\n pairTable.put(5, cFive);\r\n pairTable.put(6, cSix);\r\n pairTable.put(7, cSeven);\r\n pairTable.put(8, cEight);\r\n pairTable.put(9, cNine);\r\n pairTable.put(10, cTen);\r\n pairTable.put(11, cAce);\r\n }", "public HashTableChained() {\r\n num_buckets = 101; //prime number close to 100\r\n hash_table = new DList[num_buckets]; \r\n }", "TableInstance createTableInstance();", "@SuppressWarnings(\"unchecked\")\n public HashtableChain() {\n table = new LinkedList[CAPACITY];\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashTableMap() {\r\n\t\tK = new LinkedList[10];\r\n\t\tV = new LinkedList[10];\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}", "public HashTable(int tableSize){\n this.tableSize = tableSize;\n }", "public void createHashedVector() {\n Double val;\n for(int i=0; i < this.size; i++) {\n val = this.get(i);\n if(val !=0) {\n this.hmap.put(i, val);\n }\n } \n }", "void initTable();", "protected void rehash( )\r\n\t{\r\n\t\tint newSize = nextPrime(this.tableSize*2);\r\n\t\tMyHashTable<T> newHashTable = new MyHashTable<T>(newSize);\r\n\t\tIterator<T> thisTableIter = this.iterator();\r\n\t\twhile(thisTableIter.hasNext())\r\n\t\t{\r\n\t\t\tT e = thisTableIter.next();\r\n\t\t\tnewHashTable.insert(e);\r\n\t\t}\r\n\t\tthis.clear();\r\n\t\tthis.size = newHashTable.size;\r\n\t\tthis.tableSize = newHashTable.tableSize;\r\n\t\tthis.table = newHashTable.table;\r\n\t}", "Table8 create(Table8 table8);", "public static void createHashTable(String inputFileName, String outputFileName){\n File inputFile = new File(inputFileName);\n File outputFile = new File(outputFileName);\n WordCounter h = new WordCounter();\n h.input(inputFile);\n h.output(outputFile);\n }", "public HashTable(int size) {\n logicalSize = 0;\n defaultSize = size;\n table = new Handle[size];\n }", "private static java.util.Hashtable init() {\n Hashtable members = new Hashtable();\n members.put(\"fork\", FORK);\n members.put(\"lsf\", LSF);\n members.put(\"pbs\", PBS);\n members.put(\"condor\", CONDOR);\n members.put(\"sge\", SGE);\n members.put(\"ccs\", CCS);\n\n return members;\n }", "public HashTableChained() {\r\n tableSize = 101;\r\n table = new DList[tableSize];\r\n for (int i = 0; i < tableSize; i++) {\r\n table[i] = new DList<Entry<K, V>>();\r\n }\r\n size = 0;\r\n }", "public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}", "public HashTable( int size )\n\t{\n\t\ttheLists = new WordList[ size ];\n\t\tfor (int i = 0; i < theLists.length; i++)\n\t\t\ttheLists[i] = new WordList();\n\t}", "public Digraph createGraphWithHashTable() {\n wordGraph = new Digraph(words.size());\n\n for (int node = 0; node < words.size(); node++) {\n char[] lastFourChars = words.get(node).substring(1, 5).toCharArray();\n Arrays.sort(lastFourChars);\n String subStringedWord = toString(lastFourChars);\n LinkedList<Integer> neighbours = hashTable.get(subStringedWord);\n if (neighbours != null) {\n for (int neighbour : neighbours) {\n wordGraph.addEdge(node, neighbour);\n\n }\n }\n }\n return wordGraph;\n }", "TABLE createTABLE();", "@Before\n public void setUp() {\n hashTable = new HashTable();\n hashTable.put(\"Savon\", \"Yuliya\");\n hashTable.put(\"Blue\", \"lake\");\n hashTable.put(\"math\", \"camp\");\n }", "public SeparateChainingHT(){\n\t\t//Create Hashtable with 10 buckets\n\t\tbucket = new ArrayList<>();\n\t\tsize = 0;\n\t\tthis.capacity = 10;\n\t\t\n\t\t//Create empty chains\n\t\tfor(int i = 0 ; i< capacity ; i++) {\n\t\t\tbucket.add(null);\n\t\t}\n\t}", "public Basket(){\r\n\r\n basket = new Hashtable();\r\n keys = new Vector();\r\n }", "public ChainedHashTable(int capacity)\n {\n this.rand = new Random();\n this.capacity = capacity;\n this.clear();\n }", "Table createTable();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic SimpleHashtable(int capacity) {\r\n\t\ttable = new TableEntry[smallestPowerOf2BiggerOrEqualTo(capacity)];\r\n\t}", "public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }", "public SymbolTable(){\r\n\t\tthis(INIT_CAPACITY);\r\n\t}", "MyHashMap(int initialCapacity) {\r\n data = new Node[initialCapacity];\r\n }", "public HashTableChained() {\n size = 0;\n buckets = new SList[107];\n largePrime = findPrime(10000);\n for (int i = 0; i < 107; i++) {\n buckets[i] = new SList();\n }\n }", "static AttributeSet createKeySet(Hashtable hashtable) {\n\n Hashtable newElements = new Hashtable();\n\n Enumeration e = hashtable.keys();\n while (e.hasMoreElements()) {\n Object next = e.nextElement();\n newElements.put(next, next);\n }\n\n return new AttributeSet(newElements);\n }", "public ProbingHashClass()\n {\n tableSize = DEFAULT_TABLE_SIZE;\n probeFlag = LINEAR_PROBING;\n tableArray = new StudentClass[tableSize];\n }", "TH createTH();", "public MyHashTableCC(){\n\t\tm_arraylists = new MyArraylist[DIFF_CHARACTERS];\n\n\t\tfor (int i = 0; i < m_arraylists.length; i++){\n\t\t\tm_arraylists[i] = new MyArraylist();\n\t\t}\n\t}", "public Dictionary createDictionary(){\n Dictionary dict = new Dictionary(9973);\n return dict;\n }", "@SuppressWarnings(\"unchecked\")\n private void createTable() {\n table = (LinkedList<Item<V>>[])new LinkedList[capacity];\n for(int i = 0; i < table.length; i++) {\n table[i] = new LinkedList<>();\n }\n }", "public MyHashMap() {\n map = new HashMap();\n }", "public SymbolTable()\r\n {\r\n // Create the tables stack and add the top level\r\n tables = new ArrayDeque<HashMap<String,T>>();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts = new ArrayDeque<Integer>();\r\n counts.add( 0 );\r\n }", "public static LearningTable createLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(createAttributes());\n\t\ttable.getExamples().addAll(createExamples(table.getAttributes()));\n\t\t\n\t\treturn table;\n\t}", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public HashTable(int s){\n\t\tthis.table = new Record[s];\n\t\tthis.contains = 0;\n\t}", "public MyHashMap() {\n\n }", "public static void main(String[] args) {\n Hash myHashTable = new Hash(7);\n for(int i = 0; i<15; i++){\n int a=(int)(Math.random()*100);\n System.out.print( a+\" \");\n myHashTable.insert(a);\n \n }\n myHashTable.print();\n }", "public HashTable(int initSize, double loadFactor) \r\n {\r\n \tif(initSize <= 0)\r\n \t{\r\n \t\tthrow new IllegalArgumentException();\r\n \t}\r\n \tif(loadFactor <= 0.0)\r\n \t{\r\n \t\tthrow new IllegalArgumentException();\r\n \t}\r\n \t\r\n \tsize = initSize;\r\n \tthis.loadFactor = loadFactor;\r\n \thashTable = (LinkedList<T>[])(new LinkedList[size]);\r\n \tnumItems = 0;\r\n \t\r\n \t// Instantiate the LinkedList buckets\r\n \tfor(int i = 0; i < hashTable.length; i++)\r\n \t{\r\n \t\thashTable[i] = new LinkedList<T>();\r\n \t}\r\n }", "public HashTableMap(int capacity) {\r\n \r\n this.capacity = capacity; \r\n this.size = 0;\r\n \r\n this.array = new LinkedList[capacity];\r\n \r\n }", "private MyHashMap<K,V> resize() {\n\t//resize hashmap\n\t\n\tint biggercapacity=(2*capacity)+1;\n\n\tMyHashMap<K,V> biggermap= new MyHashMap(biggercapacity,loadFactor);\n\t\n\t//rehash items\n\t\n\t\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tbiggermap.put(k.key, k.value);\n\t }\n\t}\n\tthis.capacity=biggercapacity;\n\tthis.table=biggermap.table;\n\treturn biggermap;\n }", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "public void initTable();", "public RoutingTable() {\n for(int i = 0; i < addressLength; i++) {\n routingTable[i] = new HashTable();\n bloomFilters[i] = new BloomFilter(k, m);\n }\n }", "public MyHashMap() {\n\n }", "@SuppressWarnings(\"unchecked\")\r\n public HashTableMap(int capacity) {\r\n this.hashTable = (LinkedList<HashNode>[]) new LinkedList[capacity];\r\n this.size = 0;\r\n this.capacity = capacity;\r\n }", "@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }", "int createTable(HbaseObj t);", "public VehicleType(Hashtable hash) {\r\n super(hash);\r\n }", "public HAMap(int initialCapacity, double loadFactor) {\n buckets = new ArrayList<>();\n for (int i = 0; i < initialCapacity; i++) {\n buckets.add(new ArrayList<>());\n }\n keySet = new HashSet<>();\n numBuckets = initialCapacity;\n numEntries = 0;\n this.loadFactor = loadFactor;\n }", "static LearningTable createFilledLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(createAttributes());\n\t\ttable.getExamples().addAll(createFilledExamples());\n\t\t\n\t\treturn table;\n\t}", "FromTable createFromTable();", "private void extendTable() {\n\n FreqNode[] freqTable = frequencyTable;//create temp table\n numNodes = 0; //set nodes to 0 \n FreqNode tmpNode; //temp variable\n frequencyTable = new FreqNode[frequencyTable.length * 2];//doubles the size \n\n //for every element in the table \n for (FreqNode node : freqTable) {\n //set the node \n tmpNode = node;\n while (true) {\n //if the node currently has a value \n if (tmpNode == null) {\n break;\n }//else \n else {\n //place the key and value at the current position\n this.put(tmpNode.getKey(), tmpNode.getValue());\n tmpNode = tmpNode.getNext();\n }//end else\n }//end while \n }//end for \n }", "public MyHashMap() {\r\n\t\tloadFactor = DEFAULT_LOAD_FACTOR;\r\n\t\tcapacity = DEFAULT_CAPACITY;\r\n\t\thashMapArray = new LinkedList[capacity];\r\n\t}", "public BstTable() {\n\t\tbst = new Empty<Key, Value>();\n\t}", "public HashMap() {\n this.capacity = 100;\n this.hashMap = new LinkedList[capacity];\n }", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "public static void gHash() throws SQLException, ClassNotFoundException, IOException{\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tGephiHash tg = new GephiHash(conn);\n\t\tSystem.out.println(\"Making initial list\");\n\t\ttg.init();\n\t\tSystem.out.println(\"initiliazation finished... Makeing vertex list\");\n\t\ttg.writeVertecies(\"/Users/Brian/Desktop/DB12_11_08_Vertex.csv\");\n\t\tSystem.out.println(\"vertextList finished... creating edge list\");\n\t\ttg.edgeMake(\"/Users/Brian/Desktop/DB12_11_08_Edge.csv\");\n\t\tSystem.out.println(\"edge list finished\");\n\t\ttg.close();\n\t\tconn.close();\n\t\t\n\t}", "public static <K, V> HashMap<K, V> initHashMap() {\n\t\treturn new HashMap<K, V>();\n\t}" ]
[ "0.7258214", "0.7216203", "0.71241194", "0.6849579", "0.6772076", "0.67095447", "0.6634004", "0.6583669", "0.6538716", "0.6472147", "0.6369358", "0.6318961", "0.62854326", "0.62263227", "0.62173045", "0.62139493", "0.6204179", "0.6170518", "0.6124129", "0.60812145", "0.6074347", "0.5983548", "0.5982903", "0.5980698", "0.5980414", "0.596196", "0.59584075", "0.59407204", "0.5919147", "0.59099394", "0.5875726", "0.58585036", "0.5853677", "0.5827703", "0.58111215", "0.5803831", "0.580112", "0.57455575", "0.5730999", "0.5730495", "0.5729782", "0.5724691", "0.56972516", "0.56947356", "0.56843084", "0.5677024", "0.56471694", "0.56412613", "0.56384885", "0.56303823", "0.56217587", "0.56121856", "0.5609913", "0.56013584", "0.5599483", "0.55955523", "0.5595138", "0.5581214", "0.557702", "0.55665874", "0.5564558", "0.5553043", "0.55434465", "0.5538627", "0.5536911", "0.5526942", "0.5514993", "0.5514309", "0.55116564", "0.54951864", "0.5491315", "0.54900986", "0.54822093", "0.5463643", "0.5452555", "0.5439455", "0.54269505", "0.5424134", "0.5423771", "0.54133976", "0.5393688", "0.5392509", "0.53884697", "0.5386459", "0.5381533", "0.5379847", "0.53732604", "0.5372856", "0.5364758", "0.5364023", "0.5363521", "0.5360344", "0.5351294", "0.53467983", "0.5342758", "0.53419745", "0.53362685", "0.533533", "0.5330307", "0.5324077" ]
0.81127
0
Adds a gift to the hashtable and linkedlist only if no other gift with this name is in the table
public boolean addGift(Gift gift) { boolean added = GiftList.put(gift.getName(), gift); // Can the gift be put in the map? if(added) { //If yes, track a few values double cost = gift.getCost(); String name = gift.getName(); // Update counters, including linked list this.totalCost += cost; this.totalGifts++; this.names.add(name); } return added; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public boolean containsGift(Gift gift) {\r\n return GiftList.containsKey(gift.getName());\r\n }", "public Gift getGift(Gift gift) {\r\n if(containsGift(gift)) {\r\n return GiftList.get(gift.getName());\r\n }\r\n else {\r\n throw new java.util.NoSuchElementException(\"A gift with this name could not be found\");\r\n }\r\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 }", "public boolean insert (Ingredient g) {\n\t\tif (this.getSize()<this.getMaxSize()) {\n\t\t\tthis.getList()[size] = g; //adding the record to the list at next available index\n\t\t\tsize++;\t\t\t//increasing the size by 1\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void add(GameObject go) {\r\n table[go.hashCode() % table.length].add(go);\r\n }", "public GiftHashTable(int capacity) {\r\n GiftList = new HashTableMap<>(capacity);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }", "@Override\r\n\tpublic void add(CourseDBElement element) {\r\n\t\tint key = element.hashCode()%getTableSize();\r\n\t\t\r\n\t\tif(hashTable[key] == null) {\r\n\t\t\tLinkedList<CourseDBElement> newList = new LinkedList<CourseDBElement>();\r\n\t\t\tnewList.add(element);\r\n\t\t\thashTable[key] = newList;\r\n\t\t}\r\n\t\telse hashTable[key].add(element);\r\n\t}", "public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }", "public Gift getGift(String name) {\r\n return GiftList.get(name);\r\n }", "void insert(){\n \tFIR fir = new FIR();\r\n \tfir_id++;\r\n \tfir = fir.accept(fir_id);\r\n \thashaddress = hash(fir.category);\r\n \tFIR ptr;\r\n\t if(hashtable[hashaddress]==null){\r\n\t hashtable[hashaddress]=fir;\r\n\t }\r\n\t else{\r\n\t ptr=hashtable[hashaddress];\r\n\t while(ptr.next!=null){\r\n\t ptr=ptr.next;\r\n\t }\r\n\t ptr.next=fir;\r\n\t }\r\n\t //Time Complexity: O(n)\r\n }", "public void add(G item,String key){\n int chain=hashFunction(key);\r\n if (electionTable[chain] != null) {\r\n System.out.println(\"input repeated key!!!\");\r\n return;\r\n }\r\n ElectionNode x=new ElectionNode(item);\r\n System.out.println(\"-----------add-------------- \" + chain);\r\n x.next=electionTable[chain];\r\n electionTable[chain]=x;\r\n }", "public boolean add (T item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\t// find the item and return false if item is in the AVLTree\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\tif (!table[index].add(item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\t// we will add item, so increment modCount\n\t\t\t\tmodCount++;\n\n\t\t\t\thashTableSize++;\n\n\t\t\t\tif (hashTableSize >= tableThreshold)\n\t\t\t\t\trehash(2 * table.length + 1);\n\n\t\t\t\treturn true;\n\t}", "public void addWeapon(Pair<Byte,Short> weapon){\n //Total number of weapons player can carry is 5 (inc. default weapon)\n //If player has <3 weapons, simply add weapon.\n //Otherwise, first remove oldest weapon in inventory then add at that\n //position.\n //oldest weapon tracked by linked list of weapon entries.\n if(this.weapons.size() < 3) {\n this.weapons.add(weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n }else{\n //Checks for duplicates, if duplicate weapons\n //found, new weapons ammo is just added to the current\n //weapon already in inventory\n for(Pair<Byte,Short> w : this.weapons){\n if(Objects.equals(w.getKey(), weapon.getKey())){\n if(weaponEntryTracker.size() == 1){\n weaponEntryTracker = new LinkedList<>();\n }\n else{\n for(int tracker : weaponEntryTracker){\n if(tracker == this.weapons.indexOf(w)){\n weaponEntryTracker.remove((Integer) tracker);\n }\n }\n }\n Pair<Byte,Short> newWeapon = new Pair<>(weapon.getKey(), (short) (w.getValue()+weapon.getValue()));\n if(this.currentWeapon == w){\n this.setCurrentWeapon(newWeapon);\n }\n this.weapons.set(this.weapons.indexOf(w),newWeapon);\n weaponEntryTracker.add((byte) this.weapons.indexOf(newWeapon));\n return;\n }\n }\n //check for any no weapon entries - indicates\n //player dropped weapon.\n for(Pair<Byte,Short> w : this.weapons){\n if(w.getKey() == NO_WEAPON_ID){\n this.weapons.set(this.weapons.indexOf(w),weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n return;\n }\n }\n //If no null entries are found, remove oldest weapon\n int oldestWeapon = this.weaponEntryTracker.poll();\n byte oldestWeaponKey = this.weapons.get(oldestWeapon).getKey();\n this.weapons.set(oldestWeapon, weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n if(oldestWeaponKey == currentWeapon.getKey()){\n setCurrentWeapon(weapon);\n }\n\n }\n }", "public void addFriend() {\n\n /* if (ageOK == true) {\n for (int i = 0; i < listRelationships.size(); i++) {\n if (firstFriend.equalsIgnoreCase(list.get(i).getFirstFriend())) {\n listRelationships.get(i).setFriends(secondFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n\n } else if (secondFriend.equalsIgnoreCase(list.get(i).getSecondFriend())) {\n listRelationships.get(i).setFriends(firstFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n }\n }\n } */\n }", "public boolean add(String key, String value){\r\n // takes a key and turns it into a hashed thing\r\n int arrIndex = hash(key);\r\n\r\n Entry entry = new Entry(key, value);\r\n\r\n if (hashTableArray[arrIndex] == null){\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n if(contains(key)) {\r\n return false; // the key is already in use, so don't use it.\r\n } else {\r\n hashTableArray[arrIndex].add(entry); // add the key and value pair to the linked list.\r\n }\r\n return true;\r\n }", "public void add() {\r\n // Getting the player name.\r\n DialogManager dialog = this.gui.getDialogManager();\r\n String name = dialog.showQuestionDialog(\"Name\", \"Enter your name:\", \"\");\r\n if (name != null) {\r\n this.scoreTable.add(new ScoreInfo(name, this.score.getValue()));\r\n try {\r\n this.scoreTable.save(new File(\"highscores\"));\r\n } catch (IOException e) {\r\n System.out.println(\"Failed creating a file.\");\r\n return;\r\n }\r\n }\r\n }", "public synchronized void addHashToList(String file,HashMap<Integer,Integer> outcome){\n\t\tLinkedList<HashMap<Integer, Integer>> list = (LinkedList<HashMap<Integer,Integer>>)map.get(file);\n\t\tlist.add(outcome);\n\t}", "public Boolean addEntry(NameSurferEntry entry) {\r\n\t\tint index = indexOfNameSurfer(entry.getName());\r\n\t\t/* Prevent from adding a same name multiple times */\r\n\t\tif(index < 0) {\r\n\t\t\tnameInGraph.add(entry);\r\n\t\t\tnameColor.add(generateColor());\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void addNewGame(gameLocation game) {\n\n\t\t// add to database here\n\t\tCursor checking_avalability = helper.getGameLocationData(GamelocationTableName,\n\t\t\t\tgame.getTitle());\n\t\tif (checking_avalability == null) {\t\t\t\t\n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t} else if (checking_avalability.getCount() == 0) { \t\t\t\t// checking twice to make sure it will not miss \n\n\t\t\tGAME_LIST.add(game);\n\n\t\t\tlong RowIds = helper.insertGameLocation(GamelocationTableName,\n\t\t\t\t\tgame.getTitle(), game.getDescription(),\n\t\t\t\t\tconvertToString(game.getIsCouponUsed()));\t\t\t// reuse method\n\t\t\t//if (RowIds == -1)\n\t\t\t\t//Log.d(TAG, \"Error on inserting columns\");\n\t\t}\n\n\t}", "public void addGameType(GameType gT)\r\n {\r\n\tgameTypes.add(gT);\r\n }", "public static void addThief() {\r\n playerTeam.clearDead();\r\n if (playerTeam.teamSize() >= 4) {\r\n updateMessage(\"Time cheio\");\r\n return;\r\n }\r\n\r\n Thief newMember = new Thief(getPersonName(), 0);\r\n playerTeam.addMember(newMember);\r\n\r\n updateMessage(\"Adiocionado Ladrao\" + newMember.getName());\r\n }", "private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }", "public void add(Lugar g){\n lugares.add(g);\n }", "public boolean addGame(Game g)\n {\n \n list.add(g);\n \n return true;\n }", "public static void addIntoPracticedWords(Word word) {\n word.setFavorited(true);\n favWords.add(word);\n // Set the word favourite status to true in dictionary after adding the word to practice list\n if (Dictionary.getDictionary().contains(word)) {\n Dictionary.getWord(word).setFavorited(true);\n }\n }", "protected void addOpponentsToInitiativeTable ()\n {\n\tTerm.echo(\" Opponents \\n\");\n\tjava.util.Iterator it = \n\t CombatSession.getInstance().getOpponents().iterator();\n\twhile (it.hasNext())\n\t{\n\t Being b = (Being)it.next();\n\t Term.echo(\" '\"+b.getName()+\"'\");\n\n\t int dRoll = burningbox.org.dsh.Utils.throwD20();\n\t Term.echo(\" rolls a \"+dRoll);\n\n\t int initiativeScore = dRoll + b.computeInitiativeModifier();\n\t Term.echo(\" that makes a\\t\\t\"+initiativeScore+\"\\n\");\n\n\t b.setCurrentInitiative(initiativeScore);\n\n\t CombatSession.getInstance().getInitiativeTable().add(b);\n\n\t log.info(b.getName()+\" ini \"+initiativeScore);\n\t}\n }", "public void addPlayerToTable(Player player){\n\t\tgamePlayers.add(player);\n\t}", "protected boolean add(TreeNode n) {\n name = n.getTitle();\n address = n.getAddress();\n\n //List of current values to the name key\n if (map.get(name) != null) {\n addresses = map.get(name);\n } else {\n addresses = new ArrayList<>();\n }\n\n //Then it'll have to check if that add entry already exits. Although it never should.\n //TODO THIS IS WHERE ITS SLOW\n// if (addresses.contains(name)) {\n// logger.debug(\"HashBrowns: addresses already contained: \" + name);\n// return false;\n// }\n\n //Then it adds this new address entry. Order of addresses doesn't matter for the time being.\n addresses.add(address);\n\n //Replace the old hash key (name) with the update list of addresses\n map.put(name, addresses);\n\n return true;\n }", "int insertSelective(UserGift record);", "public void addOrUpdate(int source, NetworkDistancePair netDist, int nextHop)\n\t{\n\t\tRouteTableEntry RTE = new RouteTableEntry(source, netDist, nextHop);\n\t\taddEntry(RTE); // add if it does not exist\n\t\t\n\t\tfor (RouteTableEntry entry : table)\n\t\t{\n\t\t\tif (entry.equals(RTE))\n\t\t\t{\n\t\t\t\tentry.updateTime(); // update the time for the entry\n\t\t\t\tbreak; // exit the for each loop because we have done what we came to do\n\t\t\t} // end if\n\t\t} // end for each loop\n\t}", "public void add(G item, int key){ //it adds methods using the int key\r\n int chain=hashFunction(key);\r\n ElectionNode x=new ElectionNode(item);\r\n x.next=electionTable[chain];\r\n electionTable[chain]=x;\r\n }", "public boolean add(int key) {\n Entry tab[] = table;\n int index = (key & 0x7FFFFFFF) % tab.length;\n for (Entry e = tab[index]; e != null; e = e.next) {\n if (e.key == key) {\n return false;\n }\n }\n\n if (count >= threshold) {\n // Rehash the table if the threshold is exceeded\n rehash();\n\n tab = table;\n index = (key & 0x7FFFFFFF) % tab.length;\n }\n\n // Creates the new entry.\n Entry e = new Entry(key, tab[index]);\n tab[index] = e;\n count++;\n return true;\n }", "public void addPreferedWeapon() {\n\t\tfor(int i = 0; i < killers.size(); i++) {\n\t\t\t\n\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\n\t\t\tfor(String key : killers.get(i).getWeapons().keySet()) {\n\t\t\t\tlist.add(killers.get(i).getWeapons().get(key) + \";\" + key);\n\t\t\t}\n\t\t\t\n\t\t\tComparator<String> comp = (s1, s2) -> {\n\t\t\t\treturn s1.compareTo(s2);\n\t\t\t};\n\t\t\t\n\t\t\tCollections.sort(list, Collections.reverseOrder(comp));\n\t\t\tList<String> list2 = new ArrayList<>();\n\t\t\t\n\t\t\tif(!list.isEmpty()) {\n\t\t\t\tint control = extractNumberFromText(list.get(0));\n\t\t\t\t\n\t\t\t\tlist.forEach(s -> {\n\t\t\t\t\tif(extractNumberFromText(s) == control)\n\t\t\t\t\t\tlist2.add(s);\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tkillers.get(i).setWeaponMoreUsed(list2);\n\t\t}\n\t}", "void add(ThreadLocal<?> key, Object value) {\n for (int index = key.hash & mask;; index = next(index)) {\n Object k = table[index];\n if (k == null) {\n table[index] = key.reference;\n table[index + 1] = value;\n return;\n }\n }\n }", "public void addWrestler(Wrestler w) {\r\n\t\tboolean s = false;\r\n\t\tif (teamList == null) {\r\n\t\t\tteamList = new ListNode(w, null);\r\n\t\t\ts = true;\r\n\t\t}\r\n\t\telse if(w.getWeight() < ((Wrestler) teamList.getValue()).getWeight()) {\r\n\t\t\tListNode a = new ListNode(w , teamList);\r\n\t\t\tteamList = a;\r\n\t\t\ts = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tListNode over;\r\n\t\t\tListNode initial = teamList;\r\n\t\t\tListNode t = teamList;\r\n\t\t\twhile (t.getNext() != null) {\r\n\t\t\t\tt = teamList.getNext();\r\n\t\t\t\tif (((Wrestler) t.getValue()).getWeight() > w.getWeight()) {\r\n\t\t\t\t\tover = t;\r\n\t\t\t\t\twhile (!initial.getNext().equals(over))\r\n\t\t\t\t\t\tinitial = initial.getNext();\r\n\t\t\t\t\tinitial.setNext(new ListNode(w, initial.getNext()));\r\n\t\t\t\t\ts = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!s) {\r\n\t\t\tListNode t = teamList;\r\n\t\t\twhile (t.getNext() != null) {\r\n\t\t\t\tt = teamList.getNext();\r\n\t\t\t}\r\n\t\t\tt.setNext(new ListNode(w, null));\r\n\t\t}\r\n\t}", "@Override void addNewEntry(K key, V value, int hash, int index) {\n LinkedEntry<K, V> header = this.header;\n\n // Remove eldest entry if instructed to do so.\n LinkedEntry<K, V> eldest = header.nxt;\n if (eldest != header && removeEldestEntry(eldest)) {\n remove(eldest.key);\n }\n\n // Create new entry, link it on to list, and put it into table\n LinkedEntry<K, V> oldTail = header.prv;\n LinkedEntry<K, V> newTail = new LinkedEntry<K,V>(\n key, value, hash, table[index], header, oldTail);\n table[index] = oldTail.nxt = header.prv = newTail;\n }", "int insert(UserGift record);", "public void add(K key, V value) {\r\n if(this.table.containsKey(key)){\r\n BloomFilterUtil bf = (BloomFilterUtil)table.get(key).getHash();\r\n bf.put(value);\r\n Node<V> node = (Node<V>) table.get(key);\r\n node.getValues().add(value);\r\n }else {\r\n BloomFilterUtil bf = BloomFilterUtil.create(funnel,\r\n expectedInsertions,\r\n fpp,\r\n (BloomFilterUtil.Strategy) hashStrategy);\r\n bf.put(value);\r\n Node<V> node = new Node<V>(value, bf);\r\n table.put(key, node);\r\n }\r\n }", "public int addGenreToPlayList(){\n\t\t\n\t\tint pos =0;\n\t\t\n\t\tboolean out = false;\n\t\t\n\t\tfor(int i=0; (i<genresList.length)&&(out==false);i++){\n\t\t\n\t\tif(genresList[i] == null){\n\t\t\tout = true;\n\t\t\tpos = i;\n\t\t}\n\t\t}\n\t\treturn pos;\n\t}", "public void insert( Word x )\n {\n WordList whichList = theLists[ myhash( x.key ) ];\n //System.out.println(\"WordList found\");\n \n\t whichList.add( x );\n\t //System.out.println(\"Word \" + x.value + \" successfully added\");\n }", "public void add(Good good) {\n cargo.add(good);\n numOfGoods++;\n }", "@Override\n\tpublic void add() {\n\t\tperson.addRelationship(\"Friend\", friend);\n\t}", "public void put(Book book) {\n\t\tboolean ok = false;\n\t\tfor (Integer isbnToLend : wishList) {\n\t\t\tif (isbnToLend == book.getIsbn()) {\n\t\t\t\tok = true;\n\t\t\t}\n\t\t}\n\t\tif (!ok) {\n\t\t\tlogger.level3(\"Proba wlozenia ksiazki ktorej nie ma na liscie do kieszeni: \" + book);\n\t\t\tthrow new EnvinronmentException(\"Proba wypozyczenia ksiazki spoza listy przez studenta: \" + this);\n\t\t}\n\t\tlogger.level1(\"Wlozono ksiazke do kieszeni: \" + book);\n\t\tlendBooks.add(book);\n\t}", "public void add(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) + 1);\n }\n else {\n hashTable.put(word,1);\n }\n }", "@Override\r\n public boolean put(KeyType key, ValueType value) {\r\n // if the table's capacity is 0, expand the table first\r\n if (capacity == 0) {\r\n expand();\r\n }\r\n\r\n int index = hashFunction(key); // the index of the pair in the hashTable\r\n\r\n // If the linked list is null, initialize one. Otherwise, check whether the key has been exist\r\n if (hashTable[index] == null) {\r\n hashTable[index] = new LinkedList<>();\r\n } else {\r\n for (HashNode node : hashTable[index]) {\r\n if (node.key.equals(key)) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n // Put the pair, and check whether expand() is needed\r\n hashTable[index].add(new HashNode(key, value));\r\n size++;\r\n if ((double) size / capacity >= 0.8) {\r\n expand();\r\n }\r\n return true;\r\n }", "public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }", "public void addFriend(String friendName) {\n\t if(friends.contains(friendName)) {\n\t\t return;\n\t }\n\t friends.add(friendName);\n }", "public long addFavPair(Pair pair) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues cv = new ContentValues();\n cv.put(FavoriteEntry.SHIRT_ID, pair.getShirt().getId());\n cv.put(FavoriteEntry.TROUSER_ID, pair.getTrouser().getId());\n\n try {\n return db.insertOrThrow(FavoriteEntry.TABLE_NAME, null, cv);\n } catch (SQLException e) {\n Log.d(TAG, \"Could not insert to database! \" + e);\n return -1;\n }\n }", "private void add(String name) {\n try {\n PokemonToEdit pkm = Reader.readPokemon(name);\n team.add(pkm);\n System.out.println(name + \" has been add to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException e) {\n System.out.println(\"Pokemon not found natively\");\n System.out.println(\"Try looking for the pokemon online\");\n try {\n PokemonToEdit pkm = Crawler.loadPokemon(name);\n Saver.savePokemon(pkm);\n team.add(pkm);\n System.out.println(name + \" has been added to the team\");\n new PokemonEditTool(pkm);\n } catch (IOException ex) {\n System.out.println(\"Pokemon not found\");\n } catch (TeamFullException ex) {\n System.out.println(\"Team is full\");\n }\n } catch (TeamFullException e) {\n System.out.println(\"Team is full\");\n\n }\n }", "int insertSelective(MemberFav record);", "boolean add(DishCategory dishCategory );", "@Override\n\tpublic Game add(Game g) {\n\t\treturn null;\n\t}", "public void registerANewBoat(Boat boat){boats.add(boat);}", "@Override\r\n\tpublic Groupe addGroupe(Groupe g) {\n\t\treturn dao.addGroupe(g);\r\n\t}", "void AddSuggestion(String babyName) {\n\r\n\tT.insert(babyName);\r\n\t\r\n\r\n }", "@Override\n\tpublic void addFavorit(FavorisImpl newfavorit) {\n\t\t\n\t}", "public boolean add(E e) {\n if (contains(e)) {\n return false;\n }\n int i = hash(e);\n table[i] = new HashNode<E>(e, table[i]);\n size++;\n return true;\n }", "public void addFriendList(FriendList list);", "public void put(LLNodeHash word){\n int h = hash(word.getKey());\n if (hashTable[h] == null){\n hashTable[h] = new LLNodeHash(word.getKey(), word.getFreq(), null);\n }\n else{\n LLNodeHash ptr = hashTable[h];\n //while loop to traverse the linked list till the last node\n while (ptr.getNext() != null){\n ptr = ptr.getNext();\n }\n //sets the next node to the new inserted word\n ptr.setNext(new LLNodeHash(word.getKey(), 1, null));\n }\n //checks the load factor after each addition to the hashtable to see\n //if there is a need to rehash based on the load factor\n checkLoadFactor();\n }", "public void addFriend(Profile p)\n {\n\n friendslist.add(p);\n }", "public void insert( int key, Integer data ){\n if (data == null) data = key;\n\n int index = computeHash(key);\n Node head = list[index];\n while( head != null ){ // Collision : key already in hashtable, put it in the linked list\n \n if(compare(head.key, key) == 0){ // Update : In case key is already present in list : exit\n head.data = data;\n return;\n }\n head = head.next; // put it at the end of the list\n }\n\n // No collision, new key; list.get(index) = null because that node at that index is not present\n list[index] = new Node(key, data, list[index]);\n }", "void addToFavorites(int recipeId);", "public boolean add(K key, V value){\r\n int loc = find(key);\r\n if(needToRehash()){\r\n rehash();\r\n }\r\n Entry<K,V> newEntry = new Entry<>(key,value);\r\n if(hashTable[loc]!= null && hashTable[loc].equals(key))\r\n return false;\r\n else{\r\n hashTable[loc] = newEntry;\r\n size++;\r\n return true;\r\n }\r\n }", "public void addAI(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimAIPlayer(U,F,G,0,0,\"AI\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "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 }", "int insert(MemberFav record);", "boolean add(Dish dish);", "public void add(Weapon weapon) {\n\t\tweaponList.add(weapon);\n\t}", "public void add(int index, TableCell tableCell) { \n checkInsertionIndex(index);\n Objects.requireNonNull(tableCell, \"The table cell is null.\");\n tableCellList.add(index, tableCell);\n }", "public void addHop(TCSObjectReference<Point> newHop) {\n requireNonNull(newHop, \"newHop\");\n hops.add(newHop);\n }", "public void addToTable(Attribute object) {\n\t\tlist.add(object);\n\t\toracle.add(object.getFriendlyName());\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p.getName(), 0);\n\t\t\t}\n\t\t}\n\t\tthis.playerList.add(p); \n\t}", "public void addUser(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimPlayer(U,F,G,0,0,\"Human\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "private void addFriendList(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(value);\n }", "void addHadithNo(Object newHadithNo);", "public void addItemToList(Ingredient ing) {\n for (int i = 0; i < ingredientList.size(); i++) {\n if (ingredientList.get(i).getName().toLowerCase().equals(ing.getName().toLowerCase())) {\n //ask what the user wants to do\n boolean sameUnit = ingredientList.get(i).getUnit().toLowerCase().equals(ing.getUnit().toLowerCase());\n confirmPopUp(sameUnit, i, ing);\n return;\n }\n }\n ingredientList.add(ing);\n }", "public void addToSymbolsTable(Token t) {\n\t\tif (!t.hasError()\n && (t.getType().equals(\"Constante\") || (t.getType().equals(\"Cadena\")))\n && !reservedWords.containsKey(t.getToken())\n && !symbolsTable.contains(t.getToken())\n ) {\n\n\t\t\tsymbolsTable.add(t);\n\t\t\t//System.out.println(\"[V] Token added line: \" + line + \" TokenType: \"\n\t\t\t//\t\t+ t.getType() + \" Token: \" + t.getToken());\n\t\t} else {\n\t\t\t//System.out.println(\"[X] Token NOT added to the symbol table. line: \"\n\t\t\t//\t\t+ line + \" TokenType: \" + t.getType() + \" Token: \"\n\t\t\t//\t\t+ t.getToken());\n\t\t}\n\n\t}", "public static void addFriendToList(String username, String friend)\r\n\t{\r\n\t\tFriendsList friends = friendsLists.get(username);\r\n\t\tif(friends == null)\r\n\t\t{\r\n\t\t\t// make sure we don't have a null friends list\r\n\t\t\tfriends = new FriendsList();\r\n\t\t}\r\n\t\t\r\n\t\t// add the friend to the list\r\n\t\tfriends.add(friend);\r\n\t\t\r\n\t\t// put the friends list back into the HashMap\r\n\t\taddFriendsList(username, friends);\r\n\t}", "private void linkedHashMap() {\n LinkedHashMap lhm = new LinkedHashMap();\n User e = new User(1, \"user\");\n\n lhm.put(e, \"Harshal\");\n lhm.put(new User(1, \"Employee\"), \"Harshal\");\n lhm.put(new User(1, \"user\"), \"Harshal\");\n lhm.put(e, \"Sumit\");\n\n System.out.println(lhm);\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n\n lhm.keySet().removeIf(key->((User)key).equals(new User(2,\"Harshal\")));\n System.out.println(lhm);\n }", "private void addDishToList(String dsName, int amt, int dsPrice, String type) {\n int n, total;\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(DNAME, dsName);\n if ((n = table.addDish(dsName, amt, dsPrice, type,\n vip.getPhone(), vip.getName())) > amt) {\n Map<String, Object> tm = new HashMap<String, Object>();\n tm.put(DNAME, dsName);\n tm.put(AMOUNT, n - amt);\n mList.remove(tm);\n map.put(AMOUNT, n);\n mList.add(map);\n } else {\n map.put(AMOUNT, amt);\n mList.add(map);\n }\n total = vip.getConsumption() + amt * dishes.get(dsName).getPrice();\n vip.setConsumption(total);\n payBtn.setText(PAY + RMB + String.valueOf(total));\n adapter.notifyDataSetChanged();\n listChanged = true;\n }", "public void add(LLNodeHash word){\n if (!checkWord(word)){\n put(word);\n }\n }", "static void mysteryInsert(String name, movieNode movieNode) {\n if (flag == 1) {\n actorList actorlist = new actorList();\n holder_actorList = actorlist; //so that it can be accessed outside the if block\n actorlist.insertAtFront(name, movieNode);\n flag++;\n }\n else {\n\n holder_actorList.insertAtFront(name, movieNode);\n }\n }", "void addAttack(AttackObject newAttack) {\n if (canAddAttack(newAttack)) {\n attacksToAdd.add(newAttack);\n if(newAttack.isPlayerAttack()){\n playerAttackCount++;\n }\n }\n }", "public void addEntry(int source, int net, int distance, int nextHop)\n\t{\n\t\ttable.add(new RouteTableEntry(source, new NetworkDistancePair(net, distance), nextHop));\n\t\t\n\t\tparentActivity.runOnUiThread(new Runnable()\n\t\t{ \n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tuiManager.resetRoutingListAdapter();\n\t\t\t} // end public method run\n\t\t}); // end runOnUiThread\n\t}", "public void addEntry(NameSurferEntry entry) {\r\n\t\tentries.add(entry);\r\n\t}", "public final void insertConcept(final String name,\r\n final String generalization) {\r\n int c, l, i, hc;\r\n Concept[] d, dx;\r\n Concept c1, c2;\r\n\r\n d = this.m_data;\r\n l = d.length;\r\n hc = name.hashCode();\r\n\r\n dummy: {\r\n // look if we found a \"dummy concept\"\r\n i = (l - 1);\r\n for (c2 = d[hc & i]; c2 != null; c2 = c2.m_next) {\r\n if (c2.m_name.equals(name)) {\r\n l--;\r\n break dummy;\r\n }\r\n }\r\n\r\n c = this.m_count;\r\n // we need to insert at least one new concept -> update hash\r\n this.m_count = c + 1;\r\n\r\n if ((3 * c) >= (l << 1)) {\r\n i = l - 1;\r\n l <<= 1;\r\n dx = new Concept[l];\r\n\r\n for (--l; i >= 0; i--) {\r\n for (c1 = d[i]; c1 != null; c1 = c2) {\r\n c2 = c1.m_next;\r\n c = (c1.m_name.hashCode() & l);\r\n\r\n c1.m_next = dx[c];\r\n dx[c] = c1;\r\n }\r\n }\r\n\r\n this.m_data = d = dx;\r\n } else\r\n l--;\r\n\r\n // insert new concept.\r\n c = (hc & l);\r\n d[c] = c2 = new Concept(name, d[c], hc);\r\n }\r\n\r\n if (generalization == null)\r\n return;\r\n\r\n hc = generalization.hashCode();\r\n\r\n // search generalization\r\n for (c1 = d[hc & l]; c1 != null; c1 = c1.m_next) {\r\n if (c1.m_name.equals(generalization)) {\r\n c2.m_generalization = c1;\r\n c1.addConcept(c2);\r\n return;\r\n }\r\n }\r\n\r\n // generalization not found! -> insert dummy concept.\r\n\r\n c = (hc & l);\r\n d[c] = c2.m_generalization = new Concept(generalization, d[c], hc);\r\n c2.m_generalization.addConcept(c2);\r\n this.m_count++;\r\n }", "void addGarage(Garage garage);", "public void addFood(Food food, double serving) {\n\t\t\n\t\tString foodName = food.getName();\n\t\t\n\t\tif (foodDetail.containsKey(foodName)) {\n\t\t\tif (foodPortion.get(foodName) + serving==0) {\n\t\t\t\tfoodPortion.remove(foodName);\n\t\t\t\tfoodDetail.remove(foodName);\n\t\t\t\tmeal.remove(foodName);\n\t\t\t} else {\n\t\t\t\tfoodPortion.put(foodName, foodPortion.get(foodName) + serving);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tmeal.add(foodName);\n\t\t\tfoodDetail.put(foodName, food);\n\t\t\tfoodPortion.put(foodName, serving);\n\t\t}\n\t}", "public void addEntry(NameSurferEntry entry) {\n\t\tentries.add(entry);\n\t}", "public void add(Object key, Object value){\n\t\tint bucketLoc = key.hashCode() % _numBuckets;\r\n\t\tif(_locate(key) == null){\r\n\t\t\tNode newNode = new Node(key,value,_buckets[bucketLoc]);\r\n\t\t\t_buckets[bucketLoc] = newNode;\r\n\t\t\t_count++;\r\n\t\t\t_loadFactor = (double) _count / (double) _numBuckets;\r\n\t\t\tif(_loadFactor > _maxLoadFactor){\r\n\t\t\t\t_increaseTableSize();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t_buckets[bucketLoc]._value = value;\r\n\t\t}\r\n\t}", "public boolean addGram(Token t){\n return grams.add(t);\n }", "@Override\n public void addGrade(String firstName, String lastName, int pID, String grade) {\n Student s = new Student(firstName, lastName, pID);\n Grade g = new Grade(grade);\n\n for (Student key : map.keySet()) {\n if (key.compareTo(s) == 0) {\n map.replace(key, g);\n return;\n }\n }\n\n map.put(s, g);\n\n }", "public void add(Weapon weapon) {\n\t\tif (weaponList.size() < 2) {\n\t\t\tweaponList.add(weapon);\n\t\t}\n\t}", "public void add(Avion avion)\n\t{\n\t}", "public int addGenre(String g) {\n this.connect();\n String sql = \"INSERT INTO genres(genreType,score) VALUES(?,?)\";\n int id = 0;\n try (Connection conn = this.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setString(1, g);\n pstmt.setDouble(2, 0.0);\n pstmt.executeUpdate();\n id = getGenreID(g);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return id;\n }", "private void addFriendList(\n int index, People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFriendListIsMutable();\n friendList_.add(index, value);\n }", "public boolean addTeam(T team){\n if (teams.contains(team)){\n System.out.println(\"Cant add team is allready in the league list.\");\n return false;\n }else{\n teams.add(team);\n return true;\n }\n }", "public void addDog(Dog dog){\n if(this.numOfDogs() < SHELTER_SIZE){\n String dogName = dog.getName();\n if (noDogsOfName(dogName)) {\n dogs.add(dog);\n }\n else{\n System.out.println(\"There is already a dog named \" + dogName + \". Please choose another name.\");\n }\n }\n else{\n System.out.println(\"Cannot add \" + dog.getName() + \" to the shelter because it is full!\");\n }\n }" ]
[ "0.6224295", "0.6092247", "0.5765081", "0.5723666", "0.5620943", "0.55194336", "0.54943824", "0.54279244", "0.5418443", "0.53980476", "0.53898335", "0.5389366", "0.53693694", "0.5363527", "0.5327393", "0.5301965", "0.5279481", "0.5272358", "0.52672935", "0.52569205", "0.5191323", "0.51887655", "0.5164987", "0.5163816", "0.51579636", "0.5153703", "0.5141736", "0.51338637", "0.51243895", "0.51178855", "0.5094604", "0.50854665", "0.5079553", "0.50626606", "0.5046111", "0.5010937", "0.5008803", "0.5002376", "0.49814886", "0.49780107", "0.49777403", "0.49745232", "0.49663094", "0.49638104", "0.49591005", "0.4953497", "0.4952307", "0.49509537", "0.4939562", "0.49372864", "0.4919976", "0.4912261", "0.49037653", "0.49035934", "0.4898707", "0.48976126", "0.48943782", "0.4893064", "0.48926264", "0.4882934", "0.48828536", "0.4879833", "0.4867181", "0.48615187", "0.48480153", "0.48462468", "0.48457834", "0.48444042", "0.48441517", "0.48389703", "0.4838081", "0.4835652", "0.48345482", "0.4834237", "0.4831639", "0.4829045", "0.48285565", "0.4822794", "0.482209", "0.4817255", "0.48159754", "0.48080486", "0.48069283", "0.48064137", "0.4803829", "0.48006576", "0.47953585", "0.47928408", "0.4782765", "0.47773105", "0.47739643", "0.4773304", "0.47694656", "0.47593144", "0.47566548", "0.4751439", "0.47493744", "0.4748765", "0.47484776", "0.47469327" ]
0.74471164
0
Checks hash table for a gift with the same name
public boolean containsGift(Gift gift) { return GiftList.containsKey(gift.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHash();", "@Override\n public int hashCode() {\n return Objects.hash(name);\n }", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "@Override\r\n public int hashCode() {\r\n int hash = Objects.hashCode(name);\r\n return hash;\r\n }", "public boolean lookup(String name){\n return table.containsKey(name);\n }", "public int hashCode(){\n return name.hashCode();\n }", "@Override\n public int hashCode() {\n\n final int prime = 31;\n int result = 1;\n result = prime * result + name.hashCode();\n return result;\n }", "@Override\r\n public int hashCode() {\n return this.name.hashCode();\r\n }", "@Override\r\n public int hashCode() {\r\n return this.name.hashCode();\r\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn name.hashCode();\n\t}", "public boolean addGift(Gift gift) {\r\n boolean added = GiftList.put(gift.getName(), gift); // Can the gift be put in the map?\r\n if(added) {\r\n //If yes, track a few values\r\n double cost = gift.getCost();\r\n String name = gift.getName();\r\n // Update counters, including linked list\r\n this.totalCost += cost;\r\n this.totalGifts++;\r\n this.names.add(name);\r\n }\r\n return added;\r\n }", "public boolean checkName(String name)\n\t{\n\t\treturn (robotHM.containsKey(name));\n\t}", "boolean nameExists(Key name);", "@Override\n public int hashCode() {\n\treturn getName().hashCode();\n }", "public int hashCode() {\n return name.hashCode();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "public boolean lookup(SymbolTableEntry entry) {\n return table.containsKey(entry.getName());\n }", "public int hashCode() {\n return name.hashCode();\n }", "public void playerHasHM(String hmName){\n\t\tPlayer p = this._gbs.getPlayer();\n\t\tPokemon subject;\n\t\t//Return on first find. Doesn't matter who it is.\n\t\tfor (int i=0; i<p.getAllActive().size();i++){\n\t\t\tsubject= p.getActivePokemon(i);\n\t\t\tfor (int j=0; j<subject.getAttacks().size();j++){\n\t\t\t\tif(hmName==\"Surf\"){\n\t\t\t\t\tif(subject.getAttacks().get(j).getName()==hmName){\n\t\t\t\t\t\t_hmSlaveName=subject.getName();\n\t\t\t\t\t\t_canSurf=1;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(hmName==\"Surf\"){\n\t\t//Otherwise, it's false, which equates to negative values here.;\n\t\t_canSurf=-1;\n\t\t}\n\t\t\n\t}", "@Override\n public final int hashCode() {\n return name != null ? name.hashCode() : 0;\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((name == null) ? 0 : name.hashCode());\n\t\treturn result;\n\t}", "public int hashCode() {\n int result = 6;\n result = 31 * result * name.hashCode();\n return result;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn Objects.hashCode(this.name);\n\t}", "@Override public int hashCode() {\r\n int result = 17;\r\n result = 31 * result + fID;\r\n result = 31 * result + fName.hashCode();\r\n return result;\r\n }", "public boolean getContainsKey(String state) {\r\n boolean result = table.containsKey(state);//calling containsKey method to check is required \r\n //state is present\r\n return result;\r\n }", "public boolean checkAndUpdate(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) - 1);\n if (hashTable.get(word) == 0) {\n hashTable.delete(word);\n }\n return true;\n }\n return false;\n }", "public void checkLoadFactor(){\n usedIndex = 0;\n tableSize = hashTable.length;\n //for loop to check how many indices of the hashtable are being used\n for (int i = 0; i < tableSize; i++){\n if (hashTable[i] != null){\n usedIndex++; \n }\n }\n loadFactor = ((double) usedIndex / (double) hashTable.length);\n //rehashes if the load factor is more than 0.75\n if (loadFactor > 0.75){\n rehash();\n }\n }", "@Override\n public int hashCode() {\n return getName().hashCode();\n }", "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "void checkRepeated() {\r\n Move check = listOfMoves.peek();\r\n if (map.containsKey(check)) {\r\n _repeated = true;\r\n _winner = map.get(check.from()).opponent();\r\n }\r\n _repeated = false;\r\n }", "@Override\r\n\tpublic int hashCode() {\r\n\t\treturn Objects.hash(name,surname);\r\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(this.name, this.collectionOfCurrentListings, this.commissionRate, this.totalEarnings);\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, type, id);\n }", "@Override\n public int hashCode() {\n // Declare hash and assign value\n int hash = 7;\n // Generate hash integer\n hash = 31 * hash + (int) this.getCrossingTime();\n hash = 31 * hash + (this.getName() == null ? 0 : this.getName().hashCode());\n return hash;\n }", "public boolean hasGame(String gameName)\n {\n \treturn games.containsKey(gameName);\n }", "private NFAState checkIfExists(String name) {\n\t\tNFAState ret = null;\n\t\tfor(NFAState s : states){\n\t\t\tif(s.getName().equals(name)){\n\t\t\t\tret = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public int hashCode()\n {\n return getName().hashCode();\n }", "@Override\n public int hashCode() {\n return displayName.hashCode();\n }", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "private NFAState checkIfExists(String name) {\r\n\t\tNFAState ret = null;\r\n\t\tfor (NFAState s : states) {\r\n\t\t\tif (s.getName().equals(name)) {\r\n\t\t\t\tret = s;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public static HashMap check() {\n HashMap<String, Double> distGen = new HashMap<>();\n for (int i = 0; i < hMap.size(); i++) {\n double dist = 0.0;\n\n /**\n * calculating eucledean distance\n * */\n\n for (int j = 0; j < hMap.get(genres[i]).length; j++) {\n dist = dist + (Math.pow((hMap.get(genres[i])[j] - newWordPercentages[j]), 2));\n }\n dist = Math.sqrt(dist);\n dist = Math.abs(dist);\n distGen.put(genres[i], dist);\n }\n\n return distGen;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 71 * hash + this.id;\n hash = 71 * hash + Objects.hashCode(this.name);\n hash = 71 * hash + Objects.hashCode(this.cash);\n hash = 71 * hash + Objects.hashCode(this.skills);\n hash = 71 * hash + Objects.hashCode(this.potions);\n return hash;\n }", "private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }", "public int hashCode()\n {\n return this.getName().hashCode();\n }", "@Override\n public int hashCode() {\n int result = 31 * this.name.hashCode();\n result += 31 * this.getLocation().getLatitude();\n result += 31 * this.getLocation().getLongitude();\n return result;\n }", "@org.junit.Test\n public void contains() throws Exception {\n assertEquals(true, hashTable.contains(\"Blue\"));\n assertEquals(false, hashTable.contains(\"blue\"));\n }", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "private boolean isCombinationExistsInTable(String combiantion) {\n return accounts.stream().filter(a -> a != currentAccount && a.getCodeCombination().equals(combiantion)).count() > 0;\n }", "public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }", "public boolean contains(int key) {\n int hash = key % 7919;\n if (table[hash] == null)\n {\n return false;\n }\n else\n {\n ArrayList<Integer> al = table[hash].al;\n int size = al.size();\n for (int i = 0; i < size; ++i)\n {\n if (al.get(i) == key)\n {\n return true;\n }\n }\n return false;\n }\n }", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof RegistrationItems)) {\n return false;\n }\n RegistrationItems that = (RegistrationItems) other;\n Object myRegItemUid = this.getRegItemUid();\n Object yourRegItemUid = that.getRegItemUid();\n if (myRegItemUid==null ? yourRegItemUid!=null : !myRegItemUid.equals(yourRegItemUid)) {\n return false;\n }\n return true;\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, status);\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, tags);\n }", "public static boolean hashSearch(String value) {\n\t\tInteger hashKey = Math.abs(value.hashCode()) % HASH_TABLE_SIZE;\n\n\t\tif ( HashArray[hashKey] == null ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tHashNode index = HashArray[hashKey];\t// we found the cell with hashKey, \n\t\t// now we search the linked list from the beginning of this cell\n\t\tboolean found = false;\n\t\twhile ( !found && index !=null ) {\n\t\t\tif (index.data.equals(value)) {\t\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// continue search the linked list\n\t\t\t\tindex = index.next;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}", "public boolean check_hash() {\n HashSet<E> realSet = new HashSet(this);\n return realSet.size() == this.size();\n }", "@Override\n public int hashCode() {\n\n return Objects.hash(name, surname);\n }", "private static HashMap<?, ?> matching_weapon(String string) {\n\t\tArrayList<HashMap<?, ?>> possible_weapons = new ArrayList<HashMap<?, ?>>();\n\t\tfor (int i = 0; i < weaponList.size(); i++) {\n\t\t\tif ((HashMap.class.cast(weaponList.get(i)).get(\"type\")\n\t\t\t\t\t.equals(string))\n\t\t\t\t\t|| (HashMap.class.cast(weaponList.get(i)).get(\"name\")\n\t\t\t\t\t\t\t.equals(string))) {\n\n\t\t\t\t// adds to possible weapons\n\t\t\t\tpossible_weapons.add(HashMap.class.cast(weaponList.get(i)));\n\t\t\t}\n\t\t}\n\n\t\tRandom randomGenerator = new Random();\n\t\treturn possible_weapons.get(randomGenerator.nextInt(possible_weapons\n\t\t\t\t.size()));\n\n\t}", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "public int hashCode(){\n int hashcode = name == null ? 0 : name.hashCode() / 2;\n return hashcode += ( value == null ? 0 : value.hashCode()/2 );\n }", "private boolean checkHook(PluginHook name)\n\t{\n\t\tif (hooks.containsKey(name))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public void check( Name name ) throws ParseException\n\t{\n\t\tif (map.containsKey( name.name ))\n\t\t\tthrow new ParseException( String.format(\n\t\t\t\t\"duplicate name (%s) at line %d\", name.name, name.token.beginLine ) );\n\t}", "boolean hasSteamID();", "boolean isWordGuessed( String word )\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( entry.getLinkedWords().elementAt(i).equals(word) )\n\t\t\t\t\treturn wordGuessed[i];\n\n\t\treturn false;\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(name, sessionSet, dogIdSet, tags);\n }", "public boolean check(){\n\n\n if (n.isGuard()){\n \t//i am the rule\n \treturn false;\n }\n \n if (!theDigrams.containsKey(this)){\n theDigrams.put(this,this);\n return false;\n }\n\n SequiturSymbol found = (SequiturSymbol)theDigrams.get(this);\n \n if (found.n != this)\n match(this,found);\n \n return true;\n }", "@Override\r\n public boolean equals(Object obj) {\r\n if (obj instanceof Pokemon) {\r\n Pokemon objOne = (Pokemon) obj;\r\n return objOne.number == this.number;\r\n// return objOne.hashCode() == this.hashCode();\r\n } else {\r\n return false;\r\n }\r\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn Objects.hash(this.getId(), this.getSap(), this.getUsername());\r\n\t}", "private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Sanpham)) {\n return false;\n }\n Sanpham that = (Sanpham) other;\n Object myMasp = this.getMasp();\n Object yourMasp = that.getMasp();\n if (myMasp==null ? yourMasp!=null : !myMasp.equals(yourMasp)) {\n return false;\n }\n return true;\n }", "@org.junit.jupiter.api.Test\n void drop1elementoColisionNoExiste() {\n String key = \"0\";\n String value =\"David\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.drop(\"11\");\n String esperado = \"bucket[0] = [0, David]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 1;\n Assertions.assertEquals(count,hashTable.count());\n }", "public static boolean isThisClassRegistered(String classname){\n dbgLog.fine(\"********** within isThisClassRegistered **********\");\n dbgLog.fine(\"classname to be checked=\"+classname);\n Object singleton = map.get(classname);\n if (singleton != null){\n return true;\n } else {\n return false;\n }\n }", "@Override\n public int hashCode() {\n int result = facilityid;\n result = 31 * result + (name != null ? name.hashCode() : 0);\n result = 31 * result + (population != null ? population.hashCode() : 0);\n return result;\n }", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "protected boolean del(String name, String address) {\n\n if (map.get(name) != null) {\n addresses = map.get(name);\n }\n// logger.debug(\"Trying hash del for first time! Only on failed search.\");\n addresses.remove(address);\n\n //Replace the old hash key (name) with the update list of addresses\n map.put(name, addresses);\n\n return false;\n }", "public boolean graveyardContains(String name) {\n AssassinNode current = gYardFront;\n return contains(name, current);\n }", "private boolean isUsed(String key2) {\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tif(keys[i].equals(key2)) return true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object other) {\n return this == other || (other instanceof ReqTable && hashCode() == other.hashCode());\n }", "@Override\r\n public int hashCode() {\r\n return nome.hashCode();\r\n }", "@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, x, y, w, h, r, g, b);\n }", "@Override\n\tpublic int hashCode()\n\t{\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((cars == null) ? 0 : cars.hashCode());\n\t\tresult = prime * result + ((location == null) ? 0 : location.hashCode());\n\t\tresult = prime * result + ((name == null) ? 0 : name.hashCode());\n\t\tresult = prime * result + ((userId == null) ? 0 : userId.hashCode());\n\t\treturn result;\n\t}", "void check (ClassMember v) throws AlreadyDefined {\r\n String ms = v.type.toString ();\r\n\r\n if (by_name_table.containsKey (ms))\r\n throw new AlreadyDefined ();\r\n }", "public boolean check_ab_exist(String ab_name){\n if(ab_store.get(ab_name) != null)\n return true;\n else\n return false;\n }", "private static boolean checkSsidNameExists(String name, Object value) {\r\n\t\tList<?> boIds = QueryUtil.executeQuery(\r\n\t\t\t\t\"select bo.id from \" + SsidProfile.class.getSimpleName() + \" bo\", null, new FilterParams(\r\n\t\t\t\t\t\tname, value), AhRestoreNewMapTools.getonlyDomain().getId());\r\n\t\treturn !boIds.isEmpty();\r\n\t}", "boolean hasBattleLogID();", "public Gift getGift(String name) {\r\n return GiftList.get(name);\r\n }", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "@Override\n public int hashCode()\n {\n return new HashCodeBuilder(17, 31).\n append(_name).\n toHashCode();\n }", "private boolean equalGenotypes(String g1, String g2){\n HashSet<String> gt1 = new HashSet (Arrays.asList( String.valueOf(g1.charAt(0)), String.valueOf(g1.charAt(1)) ));\n HashSet<String> gt2 = new HashSet (Arrays.asList( String.valueOf(g2.charAt(0)), String.valueOf(g2.charAt(1)) ));\n return gt1.equals(gt2);\n }", "@Override\n public int hashCode() {\n return Objects.hash(JMBAG);\n }", "public boolean checkDuplicates(String value) {\n for (Entry i : listentries) {\n if (i.getName().equals(value))\n return true;\n }\n return false;\n }", "private int hashType() {\n // Twelve possibilities\n int answer;\n if (isBomb()) {\n answer = 1;\n } else if (isShield()) {\n answer = 2;\n } else {\n answer = 3;\n }\n if (isFire() && !isKing()) {\n answer += 3 * 1;\n }\n if (!isFire() && isKing()) {\n answer += 3 * 2;\n }\n if (isFire() && isKing()) {\n answer += 3 * 3;\n }\n return answer - 1;\n }", "@Override\n\tpublic int hashCode () {\n\t\treturn Objects.hash(name, active, valueType);\n\t}", "@Override\n public boolean bumpYellowCards(String firstName, String lastName) {\n\n if(stats.containsKey(firstName + lastName)) {\n\n stats.get(firstName + lastName).bumpYellowCards();\n\n return true;\n\n }\n\n else{\n\n return false;\n\n }\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public boolean isUnique(String word) {\n String a = getAbbr(word);\n return dict.get(word) == abbr.get(a);\n }", "boolean hasKey(String collection, String hkey);", "public static boolean checkGameExisits(String game){\n \ttry {\n\t\t\treturn DBHandler.isGamecodeTaken(game, c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n }", "public boolean existCell(String name) {\r\n \t\tint nCells = graph.getModel().getRootCount();\r\n \t\tfor (int i = 0; i < nCells; i++) {\r\n \t\t\tObject cell = graph.getModel().getRootAt(i);\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\t// Map attributes = ((JmtCell) cell).getAttributes();\r\n \t\t\t\t// String cellName = (String) attributes.get(\"NAME\");\r\n \t\t\t\tString cellName = ((JmtCell) cell).getUserObject().toString();\r\n \t\t\t\tif (cellName.equals(name)) {\r\n \t\t\t\t\treturn true;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false;\r\n \t}" ]
[ "0.5685262", "0.563258", "0.55698246", "0.55329037", "0.55242246", "0.55082387", "0.54699105", "0.54466337", "0.54380035", "0.54335886", "0.5411855", "0.5386651", "0.5380289", "0.5362703", "0.53383857", "0.53167206", "0.53167206", "0.5315019", "0.531391", "0.5305194", "0.5290175", "0.52837116", "0.52836406", "0.52808285", "0.5257552", "0.5249012", "0.52431935", "0.5242941", "0.5204286", "0.51895285", "0.5185379", "0.5146383", "0.512491", "0.51130587", "0.5110468", "0.5085907", "0.50812036", "0.5077354", "0.5064935", "0.5064027", "0.50626165", "0.50407934", "0.50352335", "0.50308985", "0.5020502", "0.499862", "0.4995313", "0.49950972", "0.49924487", "0.498364", "0.49799034", "0.4965021", "0.49605128", "0.49589598", "0.4951064", "0.49509016", "0.49496204", "0.4940875", "0.4934886", "0.49334013", "0.4930423", "0.4912569", "0.49089554", "0.49085903", "0.49060243", "0.49044406", "0.49006015", "0.48959506", "0.48926157", "0.48888716", "0.48841858", "0.48823833", "0.4878333", "0.48659435", "0.4860409", "0.4854293", "0.48481116", "0.48480922", "0.48398116", "0.48372272", "0.4833772", "0.4829215", "0.48276377", "0.48260355", "0.48208317", "0.48151606", "0.48112398", "0.48108962", "0.4810867", "0.4808215", "0.48032472", "0.47999352", "0.47933152", "0.47921345", "0.4786471", "0.4786445", "0.47849348", "0.47846568", "0.47835764", "0.4780258" ]
0.60026586
0
Gets a gift from the hash table
public Gift getGift(Gift gift) { if(containsGift(gift)) { return GiftList.get(gift.getName()); } else { throw new java.util.NoSuchElementException("A gift with this name could not be found"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Gift getGift(Long id) {\n\t\treturn mGiftDatabase.get(id);\n\t}", "public Gift getGift(String name) {\r\n return GiftList.get(name);\r\n }", "public ItemStack getGift(UUID id) {\n for(UUID i : pairedPlayers.keySet()) {\n SecretSanta._this().logDebug(\"[GiftManager] Test: \" + i.toString());\n if(pairedPlayers.get(i).equals(id)) {\n return giftRegistry.get(i).getGiftBox();\n }\n }\n\n SecretSanta._this().logDebug(\"[GiftManager] Hit butt\");\n return null;\n }", "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public static ChanceItem retrieve() {\r\n int slot = RandomUtil.random(tableRarityRatio);\r\n for (ChanceItem item : TABLE) {\r\n if ((item.getTableSlot() & 0xFFFF) <= slot && (item.getTableSlot() >> 16) > slot) {\r\n return item;\r\n }\r\n }\r\n return null;\r\n }", "UserGift selectByPrimaryKey(String ugId);", "Map<String, Object> getIngredient(long foodID);", "public Hash getHash(String hash) {\n Hash gothash = null;\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n\n Criteria criteria = session.createCriteria(Hash.class);\n criteria.add(Restrictions.eq(\"hashstring\", hash));\n \n List<Hash> hashlist = (List<Hash>) criteria.list();\n \n session.getTransaction().commit();\n session.flush();\n \n gothash = hashlist.get(0);\n } \n catch (HibernateException e) { e.printStackTrace(); return null; } \n finally { session.close(); }\n // Return userID if seted\n return gothash;\n }", "public Object get(Object key) {\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\treturn p.value;\n\t\t}\n\t\t// if not found, return null\n\t\treturn null;\n\t}", "public Stock getFromMap(String name){\n\tif(table.containsKey(name)){\n\tStock rval = table.get(name);\n\treturn rval;\n\t}\n\telse{\n\t\t//call pull from URL and return newStock \n\t\taddToMap(String name, Stock newStock);\n\t\tgetFromMap(name);\n\t}\n}", "@Override\n\tpublic V get(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si a\n\t\t\t// intoarte valoarea dorita\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\treturn b.get(h).getEntries().get(i).getValue();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "private RecipeIngredient getBitteringHops() {\n\t\t//TODO verify the boil time is the longest, not just return first hops\n\t\tfor (RecipeIngredient ri : m_ingredientList) {\n\t\t\tif (ri.getIngredient().getType() == Ingredient.Type.HOPS) {\n\t\t\t\treturn ri;\n\t\t\t}\n\t\t}\n\t\treturn null;\t\t\t\t\n\t}", "public String get (String key) {\r\n // String gets hashed to become hashed key, which is the index to find the linked list\r\n int arrIndex = hash(key);\r\n\r\n if (hashTableArray[arrIndex] == null) {\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n for (int i = 0; i < hashTableArray[arrIndex].size(); i++) {\r\n // if at i the key in the hashtable is the same as the key that is supplied, return the value\r\n if (hashTableArray[arrIndex].get(i).key.equals(key)){\r\n return hashTableArray[arrIndex].get(i).value;\r\n }\r\n }\r\n return null;\r\n }", "protected V bucketGet(int h, K k) {\n int j = findSlot(h, k);\n if (j < 0) return null; // no match found\n return table[j].getValue();\n }", "@Override\n\tpublic Thing get(String hash) {\n\t\treturn null;\n\t}", "public com.hps.july.trailcom.beans.HopKey getHopidKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((com.hps.july.trailcom.beans.HopKey) __getCache(\"hopidKey\")));\n }", "@Override\r\n public ValueType get(KeyType key) throws NoSuchElementException {\r\n // if capacity is 0, throw an exception\r\n if (capacity == 0) {\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }\r\n\r\n int index = hashFunction(key); // the index of the pair in the hashTable\r\n\r\n // If the linked list at the index is null, target is not exist, and throw an exception.\r\n if (hashTable[index] == null) {\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }\r\n\r\n // Find the target in the linked list. If found, return the value, if not found, throw an exception.\r\n for (HashNode node : hashTable[index]) {\r\n if (node.key.equals(key)) {\r\n return node.value;\r\n }\r\n }\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }", "@org.junit.Test\n public void get() throws Exception {\n assertEquals(null, hashTable.get(\"savon\"));\n assertEquals(\"camp\", hashTable.get(\"math\"));\n hashTable.put(\"math\", \"club\");\n assertEquals(\"club\", hashTable.get(\"math\"));\n }", "Fish findFish(){\r\n\t\t//step through GameCollection using iterator to find first instance of a fish\r\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Fish)return (Fish)g;\r\n\t\t}\r\n\treturn nullFish;\r\n\t}", "public Friend getFriendByRefKey(String key);", "public LinkedList<Byte> getWeaponEntry(){\n return this.weaponEntryTracker;\n }", "public V get(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\tfor(MyEntry i:table[bucket]) {\n\t if(i.key.equals(key)) {\n\t\treturn i.value;\n\t }\n\t}\n\treturn null;\n }", "protocol.Data.Friend.FriendItem getFriend(int index);", "@Override\r\n\tpublic CourseDBElement get(int crn) throws IOException {\r\n\t\tint key = Integer.toString(crn).hashCode()%getTableSize();\r\n\t\t \r\n\t\tif(hashTable[key] == null)\r\n\t\t\tthrow new IOException(\"Element is not in the table\");\r\n\t\telse {\r\n\t\t\tfor(int i = 0; i < hashTable[key].size(); i++) {\r\n\t\t\t\tif(hashTable[key].get(i).getCRN() == crn)\r\n\t\t\t\t\treturn hashTable[key].get(i);\r\n\t\t\t}\r\n\t\t\tthrow new IOException(\"Element is not in the table\");\r\n\t\t}\r\n\t}", "public V get(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> entry = entries[index];\n while (entry != null) {\n if (entry.hash == hash && key == entry.get()) {\n return entry.value;\n }\n entry = entry.nextEntry;\n }\n return null;\n }", "@Override\n public V get(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in the table.\n }\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n if (nextItem.key.equals(key)) {\n return nextItem.value;\n }\n }\n\n // assert: key is not in the table.\n return null;\n }", "public synchronized void getGoodFromUser() throws RemoteException {\n\t\tConcurrentHashMap<String, Good> map = null;\n\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\t//send signed message\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tResult res = null;\n\n\t\t\ttry {\n\t\t\t\tres = notary.getGoodsFromUser(this.id, cnonce, cryptoUtils.signMessage(toSign));\n\t\t\t} catch (InvalidSignatureException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\n\t\t\t//verify received message\n\t\t\tString toVerify = toSign + res.getContent().hashCode();\n\t\t\tif (!cryptoUtils.verifySignature(notaryID, toVerify, res.getSignature())) {\n\t\t\t\tSystem.err.println(\"ERROR: Signature could not be verified\");\n\t\t\t}\n\n\t\t\tmap = (ConcurrentHashMap<String, Good>) res.getContent();\n\n\t\t\t//System.out.println(\"g3.1\");\n\t\t}\n\n\t\tif (verbose) {\n\t\t\tSystem.out.println(\"Goods owned:\");\n\t\t\tfor (String s : map.keySet()) {\n\t\t\t\tSystem.out.println(\"> \" + s);\n\t\t\t}\n\t\t}\n\t\tgoods = map;\n\t}", "public HashMap<FruitType, Fruit> getFruits() {\n return fruits;\n }", "public Attack getAttack(int cellID) {\n\t\treturn attacks[cellID];\n\t}", "private GameInfo retrieveGameInfo(String gameId) {\n GameInfo gameInfo = sessionInfo.getGameInfo();\n if(gameInfo != null && gameId.equals(gameInfo.getId())) {\n return gameInfo;\n }\n return null;\n }", "public IHashable find(IHashable o)\n\t{\n\t\treturn table[findePosition(o)];\n\t}", "public BHDict getHaystack() { return (BHDict)get(haystack); }", "public int get(String s){\r\n int b = 1;\r\n int l = hashFunction(s);\r\n if(table[l].getKey().equals(s)){\r\n return table[l].getValue();\r\n }\r\n else{\r\n while(table[(l + (b*b)) % capacity] != null){\r\n if(table[l].getKey().equals(s)){\r\n break;\r\n }\r\n else{\r\n b++;\r\n } \r\n }\r\n if(table[l].getKey().equals(s)){\r\n return table[l].getValue();\r\n }\r\n else{\r\n return 0;\r\n }\r\n }\r\n }", "public GiftHashTable(int capacity) {\r\n GiftList = new HashTableMap<>(capacity);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "@Override\n\tpublic Integer getInventoryForAIngredient(Ingredient ingredient){\n\t\treturn beverageInventoryMap.get(ingredient);\n\t}", "public boolean containsGift(Gift gift) {\r\n return GiftList.containsKey(gift.getName());\r\n }", "String getLookupKey();", "private static HashMap<?, ?> matching_weapon(String string) {\n\t\tArrayList<HashMap<?, ?>> possible_weapons = new ArrayList<HashMap<?, ?>>();\n\t\tfor (int i = 0; i < weaponList.size(); i++) {\n\t\t\tif ((HashMap.class.cast(weaponList.get(i)).get(\"type\")\n\t\t\t\t\t.equals(string))\n\t\t\t\t\t|| (HashMap.class.cast(weaponList.get(i)).get(\"name\")\n\t\t\t\t\t\t\t.equals(string))) {\n\n\t\t\t\t// adds to possible weapons\n\t\t\t\tpossible_weapons.add(HashMap.class.cast(weaponList.get(i)));\n\t\t\t}\n\t\t}\n\n\t\tRandom randomGenerator = new Random();\n\t\treturn possible_weapons.get(randomGenerator.nextInt(possible_weapons\n\t\t\t\t.size()));\n\n\t}", "public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getFamily2() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }", "@Override\r\n\tpublic V get(Object key) {\r\n\t\tBucket bucket = (Bucket) buckets[key.hashCode() % numBuckets];\r\n\t\treturn bucket.get((K) key);\r\n\t}", "int getHash();", "pb4client.AchievementInfo getAchieveInfo(int index);", "public CheckersGame getGameByID(Integer gameID){\n return games.get(gameID);\n }", "public RobotInfo get(int id){\n \treturn info[id % HASH];\n }", "public V get(K key) {\n int index = getIndex(getHash(key));\n Entry<K, V> entry = (Entry<K, V>) table[index];\n\n if (entry == null) {\n return null;\n }\n\n if (!entry.hasNext()) {\n return entry.getValue();\n }\n\n while (entry.hasNext()) {\n if (entry.getKey().equals(key))\n return entry.getValue();\n entry = entry.getNext();\n }\n\n if (entry.getKey().equals(key))\n return entry.getValue();\n\n return null;\n }", "private Node<Pair<K, V>> findItem(K key) {\n Node<Pair<K, V>> result = null;\n\n int hash1 = hash1(key);\n\n if (table[hash1] != null) {\n Node<Pair<K, V>> node = search(table[hash1].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n int hash2 = hash2(key);\n\n if (table[hash2] != null && result == null) {\n Node<Pair<K, V>> node = search(table[hash2].list, key);\n\n if (node != null) {\n result = node;\n }\n }\n\n return result;\n }", "public GameTile getRandomFoodTile() {\n Random random = ThreadLocalRandom.current();\n GameTile found = GameTile.getByCoords(random.nextInt(TILE_COLS), random.nextInt(TILE_ROWS));\n if (found.getColor() == Color.BLACK) {\n return found;\n }\n\n return getRandomFoodTile();\n }", "String getHash();", "String getHash();", "private Game getGameById(long idGame) {\n Game game;\n synchronized (this.games) {\n if (!this.games.containsKey(idGame)) {\n return null;\n }\n game = this.games.get(idGame);\n }\n return game;\n }", "@Override\n public com.gensym.util.Sequence getG2HashTableSequence() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_SEQUENCE_);\n return (com.gensym.util.Sequence)retnValue;\n }", "public Game getGameDataById(int gameID) {\n Game loadedGame = null;\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n\n loadedGame = (Game) session.get(Game.class, gameID);\n \n session.getTransaction().commit();\n session.flush();\n } \n catch (HibernateException e) { return null; } \n finally { session.close(); }\n // Return userID if seted\n return loadedGame;\n }", "public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }", "public static List<GiaovuEntity> getDanhSachGV() {\n List<GiaovuEntity> ds = null;\n SessionFactory factory = HibernateUtil.getSessionFactory();\n Session session = factory.openSession();\n try {\n String hql = \"select gv from GiaovuEntity gv\";\n Query query = session.createQuery(hql);\n ds = (List<GiaovuEntity>) ((org.hibernate.query.Query<?>) query).list();\n } catch (HibernateException ex) {\n //Log the exception\n System.err.println(ex);\n } finally {\n session.close();\n }\n\n return ds;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<HashMap<String, String>> getChoiceGan(String choice) {\n\t\tList<rcmMusicListMain> musicLists = rcmMusicListMain.getAllMusic();\n\t\t\n\t\tList<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>();\n\t\tHashMap<String, String> aMap = new HashMap<String, String>();\n\t\tHashMap<String, String> bMap = new HashMap<String, String>();\n\t\t\n\t\tmusicLists.stream()\n\t\t\t.filter(musicList -> musicList.getGenre1().equals(choice) \n\t\t\t\t\t|| musicList.getGenre2().equals(choice))\n\t\t\t.sorted((musicList1, musicList2) -> musicList2.getPlayNum() - musicList1.getPlayNum())\n\t\t\t.limit(10).forEach(musicList -> {\n\t\t\t\t\t//System.out.println(musicList.getSeq()+\". \"+musicList.getTitle()+\" : \"+musicList.getSinger());\n\t\t\t\t\taMap.put(\"TITLE\", musicList.getTitle());\n\t\t\t\t\taMap.put(\"ITEM\", musicList.getSinger());\n\t\t\t\t\taList.add((HashMap<String, String>)aMap.clone());\n\t\t\t\t});\n\t\t\n\t\t\n\t\tfor(int i=0; i<aList.size(); i++) {\n\t\t\tbMap = aList.get(i); \n\t\t\tbMap.put(\"SEQ\", i+1+\"\");\n\t\t\tSystem.out.println(bMap.get(\"SEQ\")+\". \"+bMap.get(\"TITLE\")+\" : \"+bMap.get(\"ITEM\"));\n\t\t\t//System.out.println(aList.get(i).get(\"SEQ\")+\". \"+aList.get(i).get(\"TITLE\")+\" : \"+aList.get(i).get(\"ITEM\"));\n\t\t}\n\t\t\n\t\treturn aList; \n\t}", "public Carta hit() {\n\trobadas++;\n\treturn deck[robadas-1];\n}", "public ImmutableList<G> getGoods() {\n return this.goods;\n }", "public G obtener(Long id) throws AppException;", "@Override\n\t\tpublic List<Gift> findByToken(Token token) {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic V get(K pLlave) {\n\t\tint i = hash(pLlave);\n ArregloDinamico<NodoTabla<K,V>> lista = tablaDeHash[i];\n for(int j=1; j<=lista.size();j++){\n \tif(lista.getElement(j).darLlave().equals(pLlave)){\n \t\treturn (V) lista.getElement(j).darValor();\n \t}\n }\n \treturn null;\n\t}", "public BigDecimal getGiftAccount() {\r\n return giftAccount;\r\n }", "public com.hps.july.trailcom.beans.HopAccessBean getHopid() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.trailcom.beans.Hop localEJBRef = ejbRef().getHopid();\n if ( localEJBRef != null )\n return new com.hps.july.trailcom.beans.HopAccessBean(localEJBRef);\n else\n return null;\n }", "public String getGifticon() {\r\n return gifticon;\r\n }", "public Tuple get(Key k) throws RelationException;", "public wsihash fetchByUUID_G(java.lang.String uuid, long groupId);", "Object getAfterMiss(ThreadLocal<?> key) {\n Object[] table = this.table;\n int index = key.hash & mask;\n\n // If the first slot is empty, the search is over.\n if (table[index] == null) {\n Object value = key.initialValue();\n\n // If the table is still the same and the slot is still empty...\n if (this.table == table && table[index] == null) {\n table[index] = key.reference;\n table[index + 1] = value;\n size++;\n\n cleanUp();\n return value;\n }\n\n // The table changed during initialValue().\n put(key, value);\n return value;\n }\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 // Continue search.\n for (index = next(index);; index = next(index)) {\n Object reference = table[index];\n if (reference == key.reference) {\n return table[index + 1];\n }\n\n // If no entry was found...\n if (reference == null) {\n Object value = key.initialValue();\n\n // If the table is still the same...\n if (this.table == table) {\n // If we passed a tombstone and that slot still\n // contains a tombstone...\n if (firstTombstone > -1\n && table[firstTombstone] == TOMBSTONE) {\n table[firstTombstone] = key.reference;\n table[firstTombstone + 1] = value;\n tombstones--;\n size++;\n\n // No need to clean up here. We aren't filling\n // in a null slot.\n return value;\n }\n\n // If this slot is still empty...\n if (table[index] == null) {\n table[index] = key.reference;\n table[index + 1] = value;\n size++;\n\n cleanUp();\n return value;\n }\n }\n\n // The table changed during initialValue().\n put(key, value);\n return value;\n }\n\n if (firstTombstone == -1 && reference == TOMBSTONE) {\n // Keep track of this tombstone so we can overwrite it.\n firstTombstone = index;\n }\n }\n }", "public String getPlayerWithGamePiece(GamePiece gamePiece)\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\tfor (String name : player)\n\t\t{\n\t\t\tif(playerPieces.get(name) == gamePiece) \n\t\t\t{\n\t\t\t\treturn name;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n public V get(Object key) {\r\n return get(key,table);\r\n }", "public static Goods getGoodsById(String id){\r\n\t\tfor(Goods g:goodsList){\r\n\t\t\tif(id.equals(g.getId())){\r\n\t\t\t\treturn g;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public V get(Object key) {\r\n int index = key.hashCode() % mainTable.length;\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n return null; // key is not in the mainTable.\r\n }\r\n\r\n int chainLength = 0;\r\n // Search the list at mainTable[index] to find the key.\r\n for (Entry<K,V> nextItem : mainTable[index]) {\r\n chainLength++;\r\n\r\n if (nextItem.key.equals(key)) {\r\n addChainLength(chainLength);\r\n return nextItem.value;\r\n }\r\n }\r\n\r\n addChainLength(chainLength);\r\n // key is not in the chain\r\n return null;\r\n }", "public V get(K key) {\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (hashMapArray[place] != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\treturn i.getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public KVPair get(int i) {\r\n\r\n if (i >= capacity())\r\n return null;\r\n\r\n return htable[i];\r\n }", "public HerbierPic getBestPic() {\n\t\tHerbierPic result = null;\n\t\t\n\t\tif (!pics.isEmpty()) {\n\t\t\tVector<HerbierPic> vPics = new Vector<>();\n\t\t\tvPics.addAll(pics);\n\t\t\tCollections.sort(vPics, new Comparator<HerbierPic>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(HerbierPic pic1, HerbierPic pic2) {\n\t\t\t\t\treturn pic2.getRating() - pic1.getRating();\n\t\t\t\t}\n\t\t\t});\n\t\t\tresult = vPics.firstElement();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@org.junit.jupiter.api.Test\n void get() {\n HashTable hashTable = new HashTable();\n // Intentamos coger un valor inexistente\n assertNull(hashTable.get(\"0\"));\n System.out.println(hashTable);\n\n // Pedimos un elemento que no exista en la LinkedList\n assertNull(hashTable.get(\"58\"));\n System.out.println(hashTable);\n // Pedimos un elemento existente\n hashTable.put(\"1\",\"Paquito\");\n assertEquals(\"Paquito\", hashTable.get(\"1\"));\n System.out.println(hashTable);\n // Pedimos un valor que ha colisionado y existe en la LinkedList\n hashTable.put(\"34\",\"Willyrex\");\n assertEquals(\"Willyrex\", hashTable.get(\"34\"));\n System.out.println(hashTable);\n }", "public Object getUnique() throws HibException;", "public Hash saveHash(Hash game){\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n\n session.save(game);\n\n session.getTransaction().commit();\n session.flush();\n } \n catch (HibernateException e) { e.printStackTrace(); return null;} \n finally { session.close(); }\n // Return userID if seted\n return game;\n \n }", "private Cell searchPowerUp() {\n for (Cell[] row : gameState.map) {\n for (Cell column : row) {\n if (column.powerUp != null)\n return column;\n }\n }\n\n return null;\n }", "public int getGov();", "@Override\r\n\tpublic List<Dx_Goods> getGoodByType(int classid) {\n\t\treturn dx_GoodsDao.getGoodByType(classid);\r\n\t}", "public Map<String,Object> getGameByGameName(String gameName) {\n\t\tif (StringUtils.isEmpty(gameName))\n return null;\n Map hm = new HashMap();\n String sql = \"select * from t_cgiser_game where STATE = 1 and GAMENAME=?\";\n String[] para = new String[1];\n para[0] = StringUtils.trim(gameName);\n hm = userJdbcTemplate.queryForMap(sql, para);\n return hm;\n\t}", "@Override\n\t@Transactional\n\tpublic FranchiseTO getFranchise(String key) {\n\t\tFranchiseBO franchiseBO = franchiseDao.getFranchise(key);\n\t\treturn new UserBoToMapper().fromBOtoTO(franchiseBO);\n\t}", "public V get(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn currentElement.value;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn null;\r\n\t}", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Object lookup(int par1)\n {\n int j = computeHash(par1);\n\n for (IntHashMapEntry inthashmapentry = this.slots[getSlotIndex(j, this.slots.length)]; inthashmapentry != null; inthashmapentry = inthashmapentry.nextEntry)\n {\n if (inthashmapentry.hashEntry == par1)\n {\n return inthashmapentry.valueEntry;\n }\n }\n\n return null;\n }", "public static Guns getByCode(int code) {\n switch (code){\n case 0:\n return RIFLE;\n case 1:\n return SHOTGUN;\n case 2:\n return REVOLVER;\n default:\n throw new IllegalArgumentException(\"Invalid gun code\");\n }\n }", "@Override\n public Object get(int k) {\n long startTime = System.currentTimeMillis();\n Object value = super.get(k);\n long endTime = System.currentTimeMillis();\n if (value == null) { //means either no value in spot or wrong value in spot\n startTime = System.currentTimeMillis();\n for (int i = 1; i < super.size() && value == null; i++) {\n int hash = (k + i) % size();\n MapElement me = hashTable[hash];\n if (me == null) {\n value = null;\n } else if (me.getKey() != k) {\n value = null;\n } else {\n value = me.getValue();\n }\n }\n endTime = System.currentTimeMillis();\n }\n if (value == null) {\n System.out.println(\"Value could not be found: \" + k + \", \" + value);\n }\n System.out.println(\"------GET------\");\n System.out.println(\"TIME: \" + (endTime - startTime));\n return value;\n }", "Game getGameById(long id);", "public Fruit getFruitbyID(int n){\n Iterator<Fruit> FruitIter = allFruits.iterator() ;\n while (FruitIter.hasNext()){\n Fruit f = FruitIter.next();\n if (f.getId() == n) {\n return f;\n }\n }\n System.out.println(\"Problem with fetching fruit by ID\");\n return null;\n }", "public wsihash fetchByPrimaryKey(long wsihashId);", "public T lookup(T item) \r\n {\r\n \t\r\n \tint code = item.hashCode(); // The hashcode for the item\r\n \t\r\n \t// If the hashcode is negative\r\n \tif(code < 0)\r\n \t{\r\n \t\tcode = -code;\r\n \t}\r\n \t\r\n \tcode = code % hashTable.length;\r\n \t\r\n \tif(hashTable[code].contains(item))\r\n \t{\r\n \t\treturn hashTable[code].get(hashTable[code].indexOf(item));\r\n \t}\r\n \telse\r\n \t{\r\n \t\treturn null;\r\n \t}\r\n }", "public MatchFeatures getMatchFeature(String nameTable) {\n String sql = \"SELECT * FROM \" + nameTable + \" ORDER BY RAND() LIMIT 2\";\n try (Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(sql)) {\n MatchFeatures matchFeatures = new MatchFeatures();\n if (rs.next()) {\n matchFeatures.setFeature1(new Feature(rs.getInt(1), rs.getString(2), rs.getInt(3),rs.getInt(4), rs.getString(5)));\n }\n if (rs.next()) {\n matchFeatures.setFeature2(new Feature(rs.getInt(1), rs.getString(2), rs.getInt(3), rs.getInt(4), rs.getString(5)));\n }\n return matchFeatures;\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return null;\n }", "public Entry get(int inputKey) {\n\t\tint hash1 = (inputKey % TABLE_SIZE);\n\t\tint hash2 = DOUBLE_SIZE - (inputKey % DOUBLE_SIZE);\n\n\t\twhile (array[hash1].key != inputKey) {\n\t\t\thash1 = (hash1 + hash2) % TABLE_SIZE;\n\t\t\t\n\t\t\tif (array[hash1].value == \" \") {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn array[hash1];\n\t}", "public HASH256 getHash1(){return hash1;}", "public AccountPurchase getGifterAccount() {\n return this.gifterAccount;\n }", "public Long getGiftamount() {\n return giftamount;\n }", "public BowlingGame getGame();", "public V bubbaGet(K key) {\n int idx = hash(key);\n int hashVal = idx;\n\n while (table[idx] != null && table[idx].offset >= calcOff(hashVal, idx)) {\n if (table[idx].key != null && table[idx].equals(key)) {\n return table[idx].value;\n }\n increment(idx);\n }\n return null;\n }", "@SuppressWarnings(\"unchecked\")\n AssociationList<K, V> get(int i)\n {\n return (AssociationList<K, V>) buckets[i];\n }", "public abstract Game getGame(int game_id) throws SQLException;" ]
[ "0.65714145", "0.65665406", "0.6107111", "0.59621406", "0.5713225", "0.55610734", "0.5494374", "0.5457706", "0.54517835", "0.54394805", "0.5431143", "0.53467375", "0.5304815", "0.5301805", "0.5286562", "0.52499914", "0.52465963", "0.5228931", "0.52208537", "0.517581", "0.5089992", "0.50883216", "0.50776386", "0.5059186", "0.5048644", "0.5048333", "0.50251627", "0.50188786", "0.4949481", "0.49440274", "0.49359256", "0.49354142", "0.4934924", "0.49315864", "0.4888224", "0.4881909", "0.4877026", "0.48703653", "0.4867761", "0.4867563", "0.48654935", "0.4861158", "0.48567173", "0.4852404", "0.48402274", "0.48365945", "0.48101306", "0.4809545", "0.48086104", "0.48086104", "0.4789234", "0.47834003", "0.47828683", "0.47783577", "0.47774518", "0.4770309", "0.47677353", "0.47645697", "0.47627047", "0.47557315", "0.47554472", "0.47466925", "0.47443175", "0.4742939", "0.47428003", "0.47384828", "0.47365102", "0.4731334", "0.47312796", "0.4730893", "0.47294393", "0.47282332", "0.47266153", "0.4726277", "0.47246012", "0.47216722", "0.4715723", "0.47086683", "0.47056523", "0.4705637", "0.47029996", "0.46997914", "0.46936163", "0.46934456", "0.4692292", "0.46860468", "0.46836767", "0.46801943", "0.468019", "0.46741527", "0.46736208", "0.4673483", "0.46627274", "0.4659682", "0.46586987", "0.46579662", "0.46577626", "0.46524513", "0.46520492", "0.46501246" ]
0.68009686
0
Gets a gift from the hash table.
public Gift getGift(String name) { return GiftList.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Gift getGift(Gift gift) {\r\n if(containsGift(gift)) {\r\n return GiftList.get(gift.getName());\r\n }\r\n else {\r\n throw new java.util.NoSuchElementException(\"A gift with this name could not be found\");\r\n }\r\n }", "@Override\n\tpublic Gift getGift(Long id) {\n\t\treturn mGiftDatabase.get(id);\n\t}", "public ItemStack getGift(UUID id) {\n for(UUID i : pairedPlayers.keySet()) {\n SecretSanta._this().logDebug(\"[GiftManager] Test: \" + i.toString());\n if(pairedPlayers.get(i).equals(id)) {\n return giftRegistry.get(i).getGiftBox();\n }\n }\n\n SecretSanta._this().logDebug(\"[GiftManager] Hit butt\");\n return null;\n }", "public static ChanceItem retrieve() {\r\n int slot = RandomUtil.random(tableRarityRatio);\r\n for (ChanceItem item : TABLE) {\r\n if ((item.getTableSlot() & 0xFFFF) <= slot && (item.getTableSlot() >> 16) > slot) {\r\n return item;\r\n }\r\n }\r\n return null;\r\n }", "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "UserGift selectByPrimaryKey(String ugId);", "public Object get(Object key) {\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\treturn p.value;\n\t\t}\n\t\t// if not found, return null\n\t\treturn null;\n\t}", "public Stock getFromMap(String name){\n\tif(table.containsKey(name)){\n\tStock rval = table.get(name);\n\treturn rval;\n\t}\n\telse{\n\t\t//call pull from URL and return newStock \n\t\taddToMap(String name, Stock newStock);\n\t\tgetFromMap(name);\n\t}\n}", "Map<String, Object> getIngredient(long foodID);", "@Override\n\tpublic V get(K key) {\n\t\tint h = Math.abs(key.hashCode()) % nrb;// calculam hash-ul asociat cheii\n\t\tfor (int i = 0; i < b.get(h).getEntries().size(); i++) {\n\t\t\t// parcurgerea listei de elemente pentru a gasi cheia ceruta si a\n\t\t\t// intoarte valoarea dorita\n\t\t\tif (b.get(h).getEntries().get(i).getKey().equals(key)) {\n\t\t\t\treturn b.get(h).getEntries().get(i).getValue();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public Hash getHash(String hash) {\n Hash gothash = null;\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n\n Criteria criteria = session.createCriteria(Hash.class);\n criteria.add(Restrictions.eq(\"hashstring\", hash));\n \n List<Hash> hashlist = (List<Hash>) criteria.list();\n \n session.getTransaction().commit();\n session.flush();\n \n gothash = hashlist.get(0);\n } \n catch (HibernateException e) { e.printStackTrace(); return null; } \n finally { session.close(); }\n // Return userID if seted\n return gothash;\n }", "@Override\n\tpublic Thing get(String hash) {\n\t\treturn null;\n\t}", "@Override\r\n public ValueType get(KeyType key) throws NoSuchElementException {\r\n // if capacity is 0, throw an exception\r\n if (capacity == 0) {\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }\r\n\r\n int index = hashFunction(key); // the index of the pair in the hashTable\r\n\r\n // If the linked list at the index is null, target is not exist, and throw an exception.\r\n if (hashTable[index] == null) {\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }\r\n\r\n // Find the target in the linked list. If found, return the value, if not found, throw an exception.\r\n for (HashNode node : hashTable[index]) {\r\n if (node.key.equals(key)) {\r\n return node.value;\r\n }\r\n }\r\n throw new NoSuchElementException(\"No Match Found\");\r\n }", "protected V bucketGet(int h, K k) {\n int j = findSlot(h, k);\n if (j < 0) return null; // no match found\n return table[j].getValue();\n }", "private RecipeIngredient getBitteringHops() {\n\t\t//TODO verify the boil time is the longest, not just return first hops\n\t\tfor (RecipeIngredient ri : m_ingredientList) {\n\t\t\tif (ri.getIngredient().getType() == Ingredient.Type.HOPS) {\n\t\t\t\treturn ri;\n\t\t\t}\n\t\t}\n\t\treturn null;\t\t\t\t\n\t}", "public com.hps.july.trailcom.beans.HopKey getHopidKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((com.hps.july.trailcom.beans.HopKey) __getCache(\"hopidKey\")));\n }", "Fish findFish(){\r\n\t\t//step through GameCollection using iterator to find first instance of a fish\r\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Fish)return (Fish)g;\r\n\t\t}\r\n\treturn nullFish;\r\n\t}", "public String get (String key) {\r\n // String gets hashed to become hashed key, which is the index to find the linked list\r\n int arrIndex = hash(key);\r\n\r\n if (hashTableArray[arrIndex] == null) {\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n for (int i = 0; i < hashTableArray[arrIndex].size(); i++) {\r\n // if at i the key in the hashtable is the same as the key that is supplied, return the value\r\n if (hashTableArray[arrIndex].get(i).key.equals(key)){\r\n return hashTableArray[arrIndex].get(i).value;\r\n }\r\n }\r\n return null;\r\n }", "public V get(final K key) {\n expunge();\n final int hash = hash(key);\n final int index = index(hash, entries.length);\n Entry<K, V> entry = entries[index];\n while (entry != null) {\n if (entry.hash == hash && key == entry.get()) {\n return entry.value;\n }\n entry = entry.nextEntry;\n }\n return null;\n }", "@Override\n public V get(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return null; // key is not in the table.\n }\n // Search the list at table[index] to find the key.\n for (Entry<K, V> nextItem : table[index]) {\n if (nextItem.key.equals(key)) {\n return nextItem.value;\n }\n }\n\n // assert: key is not in the table.\n return null;\n }", "public V get(K key) {\n\tint bucket=Math.abs(key.hashCode()%capacity);\n\tfor(MyEntry i:table[bucket]) {\n\t if(i.key.equals(key)) {\n\t\treturn i.value;\n\t }\n\t}\n\treturn null;\n }", "public Attack getAttack(int cellID) {\n\t\treturn attacks[cellID];\n\t}", "protocol.Data.Friend.FriendItem getFriend(int index);", "@org.junit.Test\n public void get() throws Exception {\n assertEquals(null, hashTable.get(\"savon\"));\n assertEquals(\"camp\", hashTable.get(\"math\"));\n hashTable.put(\"math\", \"club\");\n assertEquals(\"club\", hashTable.get(\"math\"));\n }", "public HashMap<FruitType, Fruit> getFruits() {\n return fruits;\n }", "@Override\r\n\tpublic CourseDBElement get(int crn) throws IOException {\r\n\t\tint key = Integer.toString(crn).hashCode()%getTableSize();\r\n\t\t \r\n\t\tif(hashTable[key] == null)\r\n\t\t\tthrow new IOException(\"Element is not in the table\");\r\n\t\telse {\r\n\t\t\tfor(int i = 0; i < hashTable[key].size(); i++) {\r\n\t\t\t\tif(hashTable[key].get(i).getCRN() == crn)\r\n\t\t\t\t\treturn hashTable[key].get(i);\r\n\t\t\t}\r\n\t\t\tthrow new IOException(\"Element is not in the table\");\r\n\t\t}\r\n\t}", "public Friend getFriendByRefKey(String key);", "public V get(K key) {\n int hashCode = scaledHashCode(key);\n OwnLinkedList<K, V> list = table[hashCode];\n if (list == null) {\n return null;\n }\n PairNode<K, V> result = list.search(key);\n if (result == null) {\n return null;\n }\n return result.getValue();\n }", "public LinkedList<Byte> getWeaponEntry(){\n return this.weaponEntryTracker;\n }", "public V get(K key) {\n int index = getIndex(getHash(key));\n Entry<K, V> entry = (Entry<K, V>) table[index];\n\n if (entry == null) {\n return null;\n }\n\n if (!entry.hasNext()) {\n return entry.getValue();\n }\n\n while (entry.hasNext()) {\n if (entry.getKey().equals(key))\n return entry.getValue();\n entry = entry.getNext();\n }\n\n if (entry.getKey().equals(key))\n return entry.getValue();\n\n return null;\n }", "@Override\r\n\tpublic V get(Object key) {\r\n\t\tBucket bucket = (Bucket) buckets[key.hashCode() % numBuckets];\r\n\t\treturn bucket.get((K) key);\r\n\t}", "public CheckersGame getGameByID(Integer gameID){\n return games.get(gameID);\n }", "private GameInfo retrieveGameInfo(String gameId) {\n GameInfo gameInfo = sessionInfo.getGameInfo();\n if(gameInfo != null && gameId.equals(gameInfo.getId())) {\n return gameInfo;\n }\n return null;\n }", "public GameTile getRandomFoodTile() {\n Random random = ThreadLocalRandom.current();\n GameTile found = GameTile.getByCoords(random.nextInt(TILE_COLS), random.nextInt(TILE_ROWS));\n if (found.getColor() == Color.BLACK) {\n return found;\n }\n\n return getRandomFoodTile();\n }", "@Override\r\n public V get(Object key) {\r\n return get(key,table);\r\n }", "public KVPair get(int i) {\r\n\r\n if (i >= capacity())\r\n return null;\r\n\r\n return htable[i];\r\n }", "public synchronized void getGoodFromUser() throws RemoteException {\n\t\tConcurrentHashMap<String, Good> map = null;\n\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\t//send signed message\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tResult res = null;\n\n\t\t\ttry {\n\t\t\t\tres = notary.getGoodsFromUser(this.id, cnonce, cryptoUtils.signMessage(toSign));\n\t\t\t} catch (InvalidSignatureException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\n\t\t\t//verify received message\n\t\t\tString toVerify = toSign + res.getContent().hashCode();\n\t\t\tif (!cryptoUtils.verifySignature(notaryID, toVerify, res.getSignature())) {\n\t\t\t\tSystem.err.println(\"ERROR: Signature could not be verified\");\n\t\t\t}\n\n\t\t\tmap = (ConcurrentHashMap<String, Good>) res.getContent();\n\n\t\t\t//System.out.println(\"g3.1\");\n\t\t}\n\n\t\tif (verbose) {\n\t\t\tSystem.out.println(\"Goods owned:\");\n\t\t\tfor (String s : map.keySet()) {\n\t\t\t\tSystem.out.println(\"> \" + s);\n\t\t\t}\n\t\t}\n\t\tgoods = map;\n\t}", "public <T> T hget(final String key, final String field, final Class<T> clazz) {\n return hget(key, field, clazz, 0);\n }", "public Game getGameDataById(int gameID) {\n Game loadedGame = null;\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n\n loadedGame = (Game) session.get(Game.class, gameID);\n \n session.getTransaction().commit();\n session.flush();\n } \n catch (HibernateException e) { return null; } \n finally { session.close(); }\n // Return userID if seted\n return loadedGame;\n }", "public Tuple get(Key k) throws RelationException;", "public BHDict getHaystack() { return (BHDict)get(haystack); }", "@Override\n\tpublic Integer getInventoryForAIngredient(Ingredient ingredient){\n\t\treturn beverageInventoryMap.get(ingredient);\n\t}", "public V get(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn currentElement.value;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn null;\r\n\t}", "public IHashable find(IHashable o)\n\t{\n\t\treturn table[findePosition(o)];\n\t}", "public com.hps.july.trailcom.beans.HopAccessBean getHopid() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.trailcom.beans.Hop localEJBRef = ejbRef().getHopid();\n if ( localEJBRef != null )\n return new com.hps.july.trailcom.beans.HopAccessBean(localEJBRef);\n else\n return null;\n }", "private Game getGameById(long idGame) {\n Game game;\n synchronized (this.games) {\n if (!this.games.containsKey(idGame)) {\n return null;\n }\n game = this.games.get(idGame);\n }\n return game;\n }", "public V get(K key) {\r\n\t\tint place = hash(key.hashCode());\r\n\t\tif (hashMapArray[place] != null) {\r\n\t\t\tLinkedList<KVPair> temp = hashMapArray[place];\r\n\t\t\tfor (KVPair i : temp) {\r\n\t\t\t\tif (i.getKey().equals(key)) {\r\n\t\t\t\t\treturn i.getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public boolean containsGift(Gift gift) {\r\n return GiftList.containsKey(gift.getName());\r\n }", "public Cell get() {\n return ptSearcher.current();\n }", "public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getFamily2() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }", "public Tile getTileAt(Position p);", "Game getGameById(long id);", "public BigDecimal getGiftAccount() {\r\n return giftAccount;\r\n }", "public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }", "@Override\n\t\tpublic List<Gift> findByToken(Token token) {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic List<Dx_Goods> getGoodByType(int classid) {\n\t\treturn dx_GoodsDao.getGoodByType(classid);\r\n\t}", "V get(Object key);", "public V get(K key) {\n if (key == null) {\n MyEntry<K, V> entry = null;\n try {\n entry = bucket[0];\n if (entry != null) {\n return entry.getValue();\n }\n } catch (NullPointerException e) {\n }\n } else {\n // other keys\n MyEntry<K, V> entry = null;\n int location = hashFunction(key.hashCode());\n entry = bucket[location];\n if (entry != null && entry.getKey() == key) {\n return entry.getValue();\n }\n }\n return null;\n }", "public String getGifticon() {\r\n return gifticon;\r\n }", "public G obtener(Long id) throws AppException;", "Object get(String key);", "Object get(String key);", "public GiftHashTable(int capacity) {\r\n GiftList = new HashTableMap<>(capacity);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "public static Goods getGoodsById(String id){\r\n\t\tfor(Goods g:goodsList){\r\n\t\t\tif(id.equals(g.getId())){\r\n\t\t\t\treturn g;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}", "public static Guns getByCode(int code) {\n switch (code){\n case 0:\n return RIFLE;\n case 1:\n return SHOTGUN;\n case 2:\n return REVOLVER;\n default:\n throw new IllegalArgumentException(\"Invalid gun code\");\n }\n }", "public RobotInfo get(int id){\n \treturn info[id % HASH];\n }", "public ImmutableList<G> getGoods() {\n return this.goods;\n }", "public V get(Object key) {\r\n int index = key.hashCode() % mainTable.length;\r\n if (index < 0) {\r\n index += mainTable.length;\r\n }\r\n if (mainTable[index] == null) {\r\n return null; // key is not in the mainTable.\r\n }\r\n\r\n int chainLength = 0;\r\n // Search the list at mainTable[index] to find the key.\r\n for (Entry<K,V> nextItem : mainTable[index]) {\r\n chainLength++;\r\n\r\n if (nextItem.key.equals(key)) {\r\n addChainLength(chainLength);\r\n return nextItem.value;\r\n }\r\n }\r\n\r\n addChainLength(chainLength);\r\n // key is not in the chain\r\n return null;\r\n }", "public abstract Game getGame(int game_id) throws SQLException;", "public static List<GiaovuEntity> getDanhSachGV() {\n List<GiaovuEntity> ds = null;\n SessionFactory factory = HibernateUtil.getSessionFactory();\n Session session = factory.openSession();\n try {\n String hql = \"select gv from GiaovuEntity gv\";\n Query query = session.createQuery(hql);\n ds = (List<GiaovuEntity>) ((org.hibernate.query.Query<?>) query).list();\n } catch (HibernateException ex) {\n //Log the exception\n System.err.println(ex);\n } finally {\n session.close();\n }\n\n return ds;\n }", "public Card getWeapon(String weaponName) {\n return card.getWeapon(weaponName);\n }", "Object get(Object key);", "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 }", "public V get(K key) {\n\t\treturn table.get(calcIndex(key)).get(key);\n\t}", "@Override\n\tpublic CustomerGiftPO getById(String id) throws RemoteException {\n\t\treturn null;\n\t}", "public protocol.Data.Friend.FriendItem getFriend(int index) {\n return friend_.get(index);\n }", "public Fruit getFruitbyID(int n){\n Iterator<Fruit> FruitIter = allFruits.iterator() ;\n while (FruitIter.hasNext()){\n Fruit f = FruitIter.next();\n if (f.getId() == n) {\n return f;\n }\n }\n System.out.println(\"Problem with fetching fruit by ID\");\n return null;\n }", "public HerbierPic getBestPic() {\n\t\tHerbierPic result = null;\n\t\t\n\t\tif (!pics.isEmpty()) {\n\t\t\tVector<HerbierPic> vPics = new Vector<>();\n\t\t\tvPics.addAll(pics);\n\t\t\tCollections.sort(vPics, new Comparator<HerbierPic>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(HerbierPic pic1, HerbierPic pic2) {\n\t\t\t\t\treturn pic2.getRating() - pic1.getRating();\n\t\t\t\t}\n\t\t\t});\n\t\t\tresult = vPics.firstElement();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@SuppressWarnings(\"unchecked\")\n AssociationList<K, V> get(int i)\n {\n return (AssociationList<K, V>) buckets[i];\n }", "pb4client.AchievementInfo getAchieveInfo(int index);", "public Long getGiftamount() {\n return giftamount;\n }", "public Object get(Class cl, int id) throws HibException;", "public V get(K searchKey) {\n\t\tint index = hash(searchKey);\n\t\t\n\t\tIterator<WordCode<K, V>> itr = myBuckets.get(index).iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tWordCode<K, V> itrVal = itr.next();\n\t\t\tif (itrVal.myKey.equals(searchKey)) return itrVal.myValue;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public int get(String s){\r\n int b = 1;\r\n int l = hashFunction(s);\r\n if(table[l].getKey().equals(s)){\r\n return table[l].getValue();\r\n }\r\n else{\r\n while(table[(l + (b*b)) % capacity] != null){\r\n if(table[l].getKey().equals(s)){\r\n break;\r\n }\r\n else{\r\n b++;\r\n } \r\n }\r\n if(table[l].getKey().equals(s)){\r\n return table[l].getValue();\r\n }\r\n else{\r\n return 0;\r\n }\r\n }\r\n }", "public GradedItem get(int index) {\n\t\treturn this.gradedItems.get(index);\n\t}", "public AccountPurchase getGifterAccount() {\n return this.gifterAccount;\n }", "V getEntry(K key);", "T get(String key);", "@Override\n\t@Transactional\n\tpublic FranchiseTO getFranchise(String key) {\n\t\tFranchiseBO franchiseBO = franchiseDao.getFranchise(key);\n\t\treturn new UserBoToMapper().fromBOtoTO(franchiseBO);\n\t}", "public Guess getMove(int moveID) {\n\t\treturn guessList[moveID];\n\t}", "public Object get(Object key) {\n byte[] byteKey = keySerde.toBytes(key);\n byte[] result = null;\n try {\n result = db.get(byteKey);\n } catch (RocksDBException e) {\n log.error(\"can not get the value for key: \" + key);\n }\n\n if (result == null) {\n log.info(key + \" does not exist in the rocksDb\");\n return null;\n } else {\n return valueSerde.fromBytes(result);\n }\n }", "@Override\n\tpublic V get(K pLlave) {\n\t\tint i = hash(pLlave);\n ArregloDinamico<NodoTabla<K,V>> lista = tablaDeHash[i];\n for(int j=1; j<=lista.size();j++){\n \tif(lista.getElement(j).darLlave().equals(pLlave)){\n \t\treturn (V) lista.getElement(j).darValor();\n \t}\n }\n \treturn null;\n\t}", "String getLookupKey();", "public synchronized V get(K k) {\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 return node.v;\n else\n return null;\n }", "@Override\n\tpublic V get(Object key) {\n\t\tfor (int i = 0; i < tabla.size(); i++) {\n\t\t\tint indice = tabla.get(i).keySet().indexOf(key);\n\t\t\tif (indice != -1) {\n\t\t\t\treturn tabla.get(i).valueSet().get(indice);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public SymbolTableEntry getEntry(String id){\n return table.get(id);\n }", "public RowIterator getGamCell() {\n return (RowIterator) getAttributeInternal(GAMCELL);\n }", "@Override\n\tpublic Social getSocial() {\n\t\treturn (Social)map.get(SOCIAL);\n\t}", "@Override\n public Object get(int k) {\n long startTime = System.currentTimeMillis();\n Object value = super.get(k);\n long endTime = System.currentTimeMillis();\n if (value == null) { //means either no value in spot or wrong value in spot\n startTime = System.currentTimeMillis();\n for (int i = 1; i < super.size() && value == null; i++) {\n int hash = (k + i) % size();\n MapElement me = hashTable[hash];\n if (me == null) {\n value = null;\n } else if (me.getKey() != k) {\n value = null;\n } else {\n value = me.getValue();\n }\n }\n endTime = System.currentTimeMillis();\n }\n if (value == null) {\n System.out.println(\"Value could not be found: \" + k + \", \" + value);\n }\n System.out.println(\"------GET------\");\n System.out.println(\"TIME: \" + (endTime - startTime));\n return value;\n }" ]
[ "0.69257694", "0.6815922", "0.6162031", "0.57760257", "0.5740962", "0.5591537", "0.54913336", "0.5476005", "0.5409609", "0.5286477", "0.52763253", "0.5276258", "0.5250684", "0.5230805", "0.51799655", "0.5173703", "0.5166353", "0.51657826", "0.51263654", "0.50884366", "0.5078803", "0.50689924", "0.5051706", "0.504078", "0.5024113", "0.5004572", "0.49888098", "0.49719495", "0.49553302", "0.49511272", "0.49064925", "0.4873065", "0.4855733", "0.48474088", "0.48423386", "0.48403198", "0.483723", "0.48200977", "0.48149377", "0.48014864", "0.47938085", "0.47927904", "0.4792016", "0.4785478", "0.47815803", "0.47793037", "0.47700018", "0.47594842", "0.4755548", "0.47552603", "0.4753364", "0.47512734", "0.4746322", "0.47444734", "0.47431576", "0.47399533", "0.47353077", "0.4734289", "0.47276443", "0.47233588", "0.47226784", "0.47226784", "0.4720933", "0.4716707", "0.47157398", "0.47115538", "0.4709543", "0.47077686", "0.47058168", "0.47032747", "0.47007456", "0.4696626", "0.46942014", "0.4692265", "0.4691731", "0.46877718", "0.46844625", "0.46844614", "0.4683865", "0.4682402", "0.46766776", "0.4673868", "0.46684605", "0.4660712", "0.4660376", "0.46591923", "0.46582803", "0.46526644", "0.4651528", "0.46483737", "0.46463045", "0.46409288", "0.46385157", "0.46374804", "0.4629403", "0.46269554", "0.46265134", "0.4619973", "0.46188766", "0.46181157" ]
0.6678946
2
Clears the hash table and resets counters and linked list
public void clear() { GiftList.clear(); names = new LinkedList<>(); totalGifts = 0; totalCost = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modified the hash table, and it has\n\t\t// no entries\n\t\tmodCount++;\n\t\thashTableSize = 0;\n\t}", "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public void clear() {\r\n size = 0;\r\n hashTable = new LinkedList[capacity];\r\n }", "@Override\n public void clear() {\n hashtableBean = null;\n\n hashtableBean = new HashTableBean[5];\n position = 0;\n }", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }", "public void clearHashTable()\n {\n int index;\n\n for(index = 0; index < tableSize; index++)\n {\n tableArray[index] = null;\n }\n }", "public void clearMap()\n {\n ++this.versionStamp;\n IntHashMapEntry[] ainthashmapentry = this.slots;\n\n for (int i = 0; i < ainthashmapentry.length; ++i)\n {\n ainthashmapentry[i] = null;\n }\n\n this.count = 0;\n }", "public synchronized void clear() {\n Entry tab[] = table;\n for (int index = tab.length; --index >= 0; ) {\n tab[index] = null;\n }\n count = 0;\n }", "public void makeEmpty() { \r\n for (int i = 0; i < hash_table.length; i++) {\r\n if (hash_table[i] != null) {\r\n hash_table[i] = null;\r\n }\r\n }\r\n size = 0;\r\n }", "public void clear()\r\n {\r\n // Create the tables stack and add the top level\r\n tables.clear();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts.clear();\r\n counts.add( 0 ); \r\n }", "public void reset() {\n counters = null;\n counterMap = null;\n counterValueMap = null;\n }", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "public void clear() {\n buckets = new ArrayList<>();\n for (int i = 0; i < numBuckets; i++) {\n buckets.add(new ArrayList<>());\n }\n keySet = new HashSet<>();\n numEntries = 0;\n }", "public void clear() {\n table = new Handle[defaultSize];\n logicalSize = 0;\n }", "public static void clear() \r\n\t{\r\n\t\tEntry\ttab[] = m_table;\r\n\t\tint\t\tindex;\r\n\t\r\n\t\tif (tab != null) {\r\n\t\t\tfor (index = tab.length; --index >= 0; ) {\r\n\t\t\t\ttab[index] = null;\r\n\t\t}\t}\r\n\t\tm_count = 0;\r\n\t\tclearElisionCache();\r\n }", "public void clear() {\n used = 0;\n head = -1;\n }", "public void clearHash() {\r\n\t\tinternedTexts.clear();\r\n\t\tinternedAttributes.clear();\r\n\t}", "public void clear() \n { \n int count = 0;\n while (!isEmpty())\n {\n dictionary[count] = null;\n count++;\n numberOfEntries--;\n }\n }", "public void clear() {\n counters.clear();\n }", "public synchronized void clear() {\n ServerDescEntry tab[] = table;\n for (int index = tab.length; --index >= 0; )\n tab[index] = null;\n count = 0;\n }", "public void clear() {\n\t\telements = 0;\n\t\tfor (int ix = 0; ix < keys.length; ix++) {\n\t\t\tkeys[ix] = null;\n\t\t\tvalues[ix] = null;\n\t\t}\n\t\tfreecells = values.length;\n\t\tmodCount++;\n\t}", "private void clear() {\n\t\t\tkeySet.clear();\n\t\t\tvalueSet.clear();\n\t\t\tsize = 0;\n\t\t}", "public void clear() {\r\n\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\ttable[i] = null;\r\n\t\t}\r\n\r\n\t\tmodificationCount++;\r\n\t\tsize = 0;\r\n\t}", "public void clear()\r\n {\r\n first = null;\r\n last = null;\r\n count = 0;\r\n }", "public void clear() {\n\t\thead = null;\n\t\tsize = 0;\n\n\t}", "public void reset() {\n\t\tterminateAll($$eqHashIndex_0.iterator());\n\t}", "public void clear() {\n\t\thead = null;\n\t}", "@Override\n\tpublic void clear() {\n\t\tNode currentNode = firstNode;\n\t\tNode previousNode = firstNode;\n\t\t\n\t\twhile(firstNode.getNextNode() != null){\n\t\t\t\n\t\t\t\tpreviousNode = currentNode;\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tpreviousNode.next = currentNode.getNextNode();\n\t\t}\n\t\tfirstNode = null;\n\t\tnumberOfEntries = 0;\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < buckets.length; i++) {\n\t\t\tbuckets[i] = null;\n\t\t}\n\t}", "public void clear()\n {\n this.buckets = new Object[this.capacity];\n this.size = 0;\n }", "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 void clearList() {\n\t\thead = null;\n\t\tlength = 0;\n\t}", "public void clear()\r\n {\r\n for (int i = 0; i < values.length; i++)\r\n keys[i] = null;\r\n size = 0;\r\n }", "public void clear(){\n\t\tfor(int i = 0; i < keys.length; i++){\n\t\t\tkeys[i] = null;\n\t\t\telem[i] = null;\n\t\t}\n\t\thowMany = 0;\n\t\tnewestIndex = -1;\n\t}", "@Override\n\tpublic void clear() {\n\t\thead = null;\n\t\tsize = 0;\n\t}", "public void clear() {\n\t\tmSize = 0;\n\t\tmHead = new Node(null, null);\n\t\tmTail = new Node(null, null);\n\t\tmHead.next = mTail;\n\t\tmodCount++;\n\t}", "public void clear() {\n\t\thead.setNext(null);\n\t\tmodcount++;\n\t\tnodeCount = 0;\n\t}", "public void reset() {\n initEntries();\n }", "public void clear() \r\n\t{\r\n\t\ttotal = 0;\r\n\t\thistory = \"\";\r\n\t}", "public void reset() \n {\n cumulativeTrials = 0;\n\t numTwoHeads = 0;\n\t numTwoTails = 0;\n\t numHeadTails = 0;\n }", "public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }", "public void clear()\n\t{\n\t\troot = null;\n\t\tmaxKeyLen = -1;\n\t\tsize = 0;\n\t}", "@org.junit.Test\n public void clear() throws Exception {\n hashTable.clear();\n assertEquals(null, hashTable.get(\"Savon\"));\n assertEquals(null, hashTable.get(\"Blue\"));\n assertEquals(null, hashTable.get(\"math\"));\n }", "public void clear() {\n this.entries = new Empty<>();\n }", "public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void clear( )\r\n\t{\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t\t{ ((LinkedArrays<T>) table[i]).clear(); }\r\n\t\tthis.size = 0; \r\n\t\t\r\n\t}", "public void clear() {\n head = null;\n numElement = 0;\n }", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "private void clearTable() {\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t}", "public void clear()\n {\n\thead = null;\n\ttail = null;\n }", "@Override\n\tpublic void clear() {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmap[i] = new LocalEntry<>();\n\t\t}\n\n\t}", "@Override\n\tpublic void clear() {\n\t\tmap.clear();\n\t\tkeys.clear();\n\t}", "public void clear ()\n {\n headNode.next = null;\n currentNode = headNode;\n size = 0;\n }", "public void clear ()\n {\n\n while (head != null) {\n head.data = null;\n head = head.next;\n }\n size = 0;\n }", "public void clear() {\n\n\t\thead = null;\n\t\ttail = null;\n\t\telements = 0;\n\t}", "@Override\n public void clear() {\n head = null;\n size = 0;\n }", "public void clear() {\n\t\thead = tail = null;\n\t}", "public void clear()\n {\n\tsize = 0;\n\thead = new SkipListNode<K>();\n }", "@Override\r\n\tpublic void reset() {\n\t\tthis.dcn = null;\r\n\t\tthis.pairs.clear();\r\n\t\tthis.successfulCount = 0;\r\n\t\tthis.failedCount = 0;\r\n\t\tthis.metrics.clear();\r\n\t}", "public void clearHops() {\n hops.clear();\n }", "public void clear() {\n list = new Object[MIN_CAPACITY];\n n = 0;\n }", "public void clear() {\r\n\t\tentryMap.clear();\r\n\t}", "public void clearTable() {\n this.lstDaqHware.clear();\n this.mapDevPBar.clear();\n this.mapDevMotion.clear();\n }", "public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}", "public void clear() {\n //construct(initialCap, loadFactor);\n \n //MapElement me = null;\n\n for (int i = 0; i < capacity; i++) {\n if (map[i] != null) {\n /*me = map[i];\n for (int j = 0; j < count[i]; j++) {\n MapElement release = me;\n me = me.getNext();\n releaseMapElement(release);\n }*/ \n map[i] = null;\n }\n }\n contents = 0;\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}", "public void clear() {\n head = tail = null;\n size = 0;\n }", "public void mo110858c() {\n HashMap hashMap = this.f90728d;\n if (hashMap != null) {\n hashMap.clear();\n }\n }", "public void clear() {\n head = null;\n tail = null;\n size = 0;\n\n }", "@Override\r\n\tpublic void clear() {\r\n\t\tbuckets = new Object[numBuckets];\r\n\t\tfor (int i = 0; i < numBuckets; i++) {\r\n\t\t\tbuckets[i] = new Bucket();\r\n\t\t}\r\n\t}", "public void clear()\n\t{\n\t\t// resets the list to empty: O(1).\n\t\thead = null;\n\t\ttail = null;\n\t}", "public void clear(){\r\n\t\tthis.countRead \t\t\t= 0;\r\n\t\tthis.countReadData \t\t= 0;\r\n\t\tthis.countRemoved \t\t= 0;\r\n\t\tthis.countRemovedData \t= 0;\r\n\t\tthis.countWrite \t\t= 0;\r\n\t\tthis.countWriteData \t= 0;\r\n\t\tthis.dataList.clear();\r\n\t\tthis.dataMap.clear();\r\n\t}", "public void clear() {\n\t\tentries.clear();\n\t}", "public void clear() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n size = 0;\r\n }", "public void clear() {\n count = 0;\n }", "public void clear() {\n tableCache.invalidateAll();\n }", "public void clearList() {\n\t\tthis.head = null;\n\t\tthis.tail = null;\n\t\tlength = 0;\n\t}", "public void clear() {\n duplicates.clear();\n }", "public void clear() {\n synchronized (mLock) {\n mNumStartRangingCalls = 0;\n mOverallStatusHistogram.clear();\n mPerPeerTypeInfo[PEER_AP] = new PerPeerTypeInfo();\n mPerPeerTypeInfo[PEER_AWARE] = new PerPeerTypeInfo();\n }\n }", "public void clear()\n {\n count=0;\n }", "public void clear()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}", "public void clearBuckets() {\n this.buckets.clear();\n }", "public void clear() {\n first = null;\n n = 0;\n }", "void clear() {\n this.mapped_vms.clear();\n this.mapped_anti_coloc_job_ids.clear();\n this.used_cpu = BigInteger.ZERO;\n this.used_mem = BigInteger.ZERO;\n }", "@Override\n public void clear() { //I still don't understand the benefits of the way you wrote this method in class\n this.size = 0; //Wouldn't doing it this way be more efficient because it is a constant complexity?\n this.head = null;\n }", "public void clear() {\r\n modCount++;\r\n header.next = header.previous = header;\r\n size = 0;\r\n }", "public void clear() {\n\t\tfor (int x = 0; x < counters.length; x++) {\n\t\t\tcounters[x] = 0;\n\t\t\tArrays.fill(counters, (byte)0);\n\t\t}\n\t}", "public void reset() {\n\t\tmDistanceMap.clear();\n\t\tmIncomingEdgeMap.clear();\n\t}", "public void clear() {\r\n // synchronization is not a problem here\r\n // if this code were to be called while someone was getting or setting data\r\n // in the buckets, it would still work\r\n // in the case of someone setting a value in the buckets, then this coming along\r\n // and resetting the buckets-entry to null is fine, because the client still has the data reference\r\n // in the case of someone getting a value from the buckets while this is being reset\r\n // is fine as well because, if they get the data before it's set, they got it\r\n // if they as for it after it gets set to null, that's fine as well it's null and\r\n // that's a normal expected condition\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n buckets[i] = new AtomicReference<CacheData<K, V>>(null);\r\n }\r\n }", "public void clear()\t{nodes.clear(); allLinks.clear();}", "public void clear() {\n index.clear();\n }", "private void rehash() {\r\n Entry[] oldHashTable = this.hashTable;\r\n this.capacity = this.capacity * 2;\r\n this.hashTable = new Entry[this.capacity];\r\n this.size = 0;\r\n for (Entry eachEntry : oldHashTable) {\r\n if (eachEntry != null) {\r\n if (!eachEntry.isDeleted) {\r\n this.add((K)eachEntry.key,(V)eachEntry.value);\r\n }\r\n }\r\n }\r\n return;\r\n }", "public void clear() {\n\t\tvisited = false;\n\t}", "public void clear() {\n count = 0;\n root = null;\n }", "public void rehash() {\n\t\tArrayList<Node<MapPair<K, V>>> temp=buckets;\n\t\tbuckets=new ArrayList<>();\n\t\tfor(int i=0;i<2*temp.size();i++)\n\t\t{\n\t\t\tbuckets.add(null);\n\t\t}\n\t\tfor(Node<MapPair<K, V>> node:temp)\n\t\t{\n\t\t\tif(node!=null)\n\t\t\t{\n\t\t\t\twhile(node!=null)\n\t\t\t\t{\n\t\t\t\t\tput(node.data.key,node.data.value);\n\t\t\t\t\tnode=node.next;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void cleanUp() {\n if (rehash()) {\n // If we rehashed, we needn't clean up (clean up happens as\n // a side effect).\n return;\n }\n\n if (size == 0) {\n // No live entries == nothing to clean.\n return;\n }\n\n // Clean log(table.length) entries picking up where we left off\n // last time.\n int index = clean;\n Object[] table = this.table;\n for (int counter = table.length; counter > 0; counter >>= 1,\n index = next(index)) {\n Object k = table[index];\n\n if (k == TOMBSTONE || k == null) {\n continue; // on to next entry\n }\n\n // The table can only contain null, tombstones and references.\n @SuppressWarnings(\"unchecked\")\n Reference<ThreadLocal<?>> reference\n = (Reference<ThreadLocal<?>>) k;\n if (reference.get() == null) {\n // This thread local was reclaimed by the garbage collector.\n table[index] = TOMBSTONE;\n table[index + 1] = null;\n tombstones++;\n size--;\n }\n }\n\n // Point cursor to next index.\n clean = index;\n }", "@Override\n public void reset() {\n globalIndex = new AtomicLong(0);\n lastIssuedMap = new ConcurrentHashMap<>();\n }", "public void clear() { \r\n\t\tmap.clear();\r\n\t}", "public void reset() {\n this.list.clear();\n }", "public void clear() {\n\t\troot = null;\n\t\tcount = 0;\n\t}", "public void reset() {\n\t\tfor (int i = 0; i < stats.size(); i++) {\n\t\t\tstats.get(i).reset();\n\t\t}\n\t}" ]
[ "0.8186462", "0.79813623", "0.77147543", "0.7687892", "0.7565954", "0.7551034", "0.75370306", "0.7506954", "0.749373", "0.74696773", "0.74575794", "0.7382884", "0.7309019", "0.7284938", "0.71957284", "0.71762633", "0.7167634", "0.71639335", "0.71455216", "0.71429276", "0.71015", "0.70808154", "0.7050014", "0.704673", "0.70127165", "0.7007146", "0.70067966", "0.6974431", "0.6973771", "0.6968752", "0.69680274", "0.69651335", "0.6938684", "0.6937387", "0.6925469", "0.6916161", "0.6912135", "0.6871375", "0.68636084", "0.68571573", "0.6855238", "0.6830749", "0.6806466", "0.67934626", "0.6790687", "0.6790231", "0.6784724", "0.67790025", "0.677673", "0.6760664", "0.67492586", "0.67388177", "0.67373395", "0.6731007", "0.673019", "0.67289376", "0.6703159", "0.6688225", "0.66845703", "0.6678336", "0.6677679", "0.6677398", "0.66773945", "0.66717696", "0.6671384", "0.66704404", "0.6669204", "0.6668707", "0.6663181", "0.66627145", "0.6662665", "0.66601443", "0.66598624", "0.66543585", "0.6650218", "0.6642752", "0.66362274", "0.6634122", "0.6633754", "0.6621814", "0.66211385", "0.66041183", "0.6600753", "0.6592833", "0.65918237", "0.6587515", "0.65862536", "0.65857476", "0.6582199", "0.65761316", "0.6572118", "0.6565241", "0.6564207", "0.6563817", "0.65634453", "0.65625215", "0.6562019", "0.6547474", "0.6544643", "0.6541475" ]
0.65920043
84
Creates a String representation of the GiftHashTable
public String toString() { String result = ""; //Check for empty list if(names.getFirst() == null) { return "The Gift List is empty"; } //Iterates through each type of key in the list for(int i = 0; i < names.size(); i++) { String item = names.get(i); //Retrieve item Gift toFind = this.getGift(item); //Format output line by pulling values from above gift result += item + "@ " + toFind.getStore() + " Price: " + toFind.getCost() + "\n"; } //Final line, concluding the String output result += "Total: $" + totalCost +" for " + totalGifts + " gifts!"; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\tString HashTable=\"\";\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tHashTable=HashTable+k.value+\" \"+k.key+\"\\n\";\n\t }\n\t}\n\treturn HashTable;\n }", "public String toString (){\n\t\tint max = hashTableSize - 1;\n\t\tStringBuffer buf = new StringBuffer();\n\t\tIterator<T> iter = iterator();\n\n\t\tbuf.append(\"[\");\n\t\tfor (int i = 0; i <= max; i++) {\n\t\t\tbuf.append(iter.next());\n\n\t \tif (i < max)\n\t\t\t\tbuf.append(\", \");\n\t\t}\n\t\tbuf.append(\"]\");\n\t\treturn buf.toString();\n\t}", "public String toString() {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < table.length; i++) {\n sb.append(\"[\" + i + \"] \");\n for (Entry<K,V> entry : table[i]) {\n sb.append(\"-> \" + entry + \" \");\n }\n sb.append(\"\\n\");\n }\n return sb.toString();\n }", "public String toString(){\n\t\tString output = \"\";\n\t\tfor (int i = 0; i < this.contains; i++){\n\t\t\tif (this.table[i] != null){\n\t\t\t\toutput = output + this.table[i].getKey() + \" \" + this.table[i].getValue() + \"\\n\";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "public String toString()\n {\n final String NEWLINE = System.getProperty(\"line.separator\");\n StringBuffer result = new StringBuffer(table).append(NEWLINE);\n for (Iterator iterator = data.keySet().iterator();\n iterator.hasNext(); )\n {\n String column = (String) iterator.next();\n result\n .append(\"\\t\")\n .append(column)\n .append(\" = \")\n .append(isColumnNull(column) ? \"NULL\" : data.get(column))\n .append(NEWLINE)\n ;\n }\n \n return result.toString();\n }", "public String toString() {\n\treturn \"Key: \" + key.toString() + \"\\tData: \" + data;\n }", "@Override\r\n public String toString() {\n \r\n StringBuilder sb = new StringBuilder(\"{\");\r\n for (int i = 0, size = size(); i < size; ++i) {\r\n if (i > 0) {\r\n sb.append(\", \");\r\n }\r\n \r\n sb.append(getNthKey(i)).append(\"=\").append(getNthValue(i)); \r\n }\r\n sb.append(\"}\");\r\n \r\n return sb.toString();\r\n }", "public String toString() {\n\t\treturn hashString;\n\t}", "public static String exportTableData(Hashtable data) {\r\n // format :\r\n // colName1 $ colData1.1 # colData1.2 # ...# colData1.N $\r\n // colName2 $ colData2.1 # colData2.2 # ...# colData2.N $\r\n\r\n if (data == null) {\r\n throw new IllegalArgumentException(\"ExportTableData: data is null\");\r\n }\r\n\r\n StringBuilder res = new StringBuilder();\r\n if (!data.isEmpty() && (AbstractTemplateGenerator.calculateRecordCount(data) > 0)) {\r\n Object[] keys = data.keySet().toArray();\r\n for (int i = 0; i < keys.length; i++) {\r\n Object key = keys[i];\r\n res.append(key);\r\n res.append(\"$\");\r\n Vector vData = (Vector) data.get(key);\r\n for (int j = 0; j < (vData.size() - 1); j++) {\r\n if (vData.get(j) != null) {\r\n res.append(vData.get(j).toString());\r\n res.append(\"#\");\r\n } else {\r\n res.append(\" \");\r\n res.append(\"#\");\r\n }\r\n }\r\n if ((vData.size() > 0) && (vData.get(vData.size() - 1) != null)) {\r\n res.append(vData.get(vData.size() - 1).toString());\r\n } else {\r\n res.append(\" \");\r\n }\r\n res.append(\"$\");\r\n }\r\n }\r\n return res.toString();\r\n }", "public String toString()\r\n\t\t{\r\n\t\t\treturn \"|Key: \" + key + \", Value: \" + value + \"|\";\r\n\t\t}", "public String toString() {\n\t\t\tStringBuffer bf = new StringBuffer(); \t\t\t\n\t\t\tbf.append(\"Table:\\t\"+ name +\"\\n\");\n\t\t\tbf.append(\"Record Count: \"+ count +\"\\n\");\n\t\t\tbf.append(\"Fields: \\n\");\n\t\t\tfor (String key : fields.keySet()) {\n\t\t\t\tbf.append(\"\\t\"+ key +\": \"+fields.get(key) +\"\\n\");\n\t\t\t}\n\t\t\tbf.append(\"\\n\\n\");\n\t\t\treturn bf.toString();\n\t\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic String toString()\r\n\t{\r\n\t\tString result =\"Table:\\n\";\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t{ \r\n\t\t\tLinkedArrays<T> L = (LinkedArrays<T>) table[i]; \r\n\t\t\tresult+= i+\": \";\r\n\t\t\tresult+= L.toString() ;\r\n\t\t\tif(i<this.tableSize-1)\r\n\t\t\t{ result +=\"\\n\"; }\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tSet<KeyValueData> keyvalueset = key_value_treemap.keySet();\n\t\tIterator<KeyValueData> iterator = keyvalueset.iterator();\n\t\tStringBuilder builder = new StringBuilder(\"*\");\n\t\twhile(iterator.hasNext()){\n\t\t\tKeyValueData data = iterator.next();\n\t\t\tbuilder.append(data.key);\n\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(data.value);\n\t\t\tbuilder.append(\" \");\n\t\t}\n\t\treturn builder.toString();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", visitorname=\").append(visitorname);\n sb.append(\", visitortel=\").append(visitortel);\n sb.append(\", visitorstarttime=\").append(visitorstarttime);\n sb.append(\", visitorendtime=\").append(visitorendtime);\n sb.append(\", applicantname=\").append(applicantname);\n sb.append(\", applicanttel=\").append(applicanttel);\n sb.append(\", applicantemail=\").append(applicantemail);\n sb.append(\", type=\").append(type);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String\n toString() \n {\n return \"[\" + pCellKey.toString() + \"]\"; \n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", productId=\").append(productId);\n sb.append(\", hotelId=\").append(hotelId);\n sb.append(\", category=\").append(category);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", createPerson=\").append(createPerson);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", updatePerson=\").append(updatePerson);\n sb.append(\", value=\").append(value);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", uid=\").append(uid);\n sb.append(\", temperature=\").append(temperature);\n sb.append(\", ifkesou=\").append(ifkesou);\n sb.append(\", healthinfo=\").append(healthinfo);\n sb.append(\", imgurl=\").append(imgurl);\n sb.append(\", videourl=\").append(videourl);\n sb.append(\", signtime=\").append(signtime);\n sb.append(\", otherinfo=\").append(otherinfo);\n sb.append(\", ifstay=\").append(ifstay);\n sb.append(\", ifleavenj=\").append(ifleavenj);\n sb.append(\", iflose=\").append(iflose);\n sb.append(\", loseinfo=\").append(loseinfo);\n sb.append(\", docinfo=\").append(docinfo);\n sb.append(\", ifsafe=\").append(ifsafe);\n sb.append(\", ifhot=\").append(ifhot);\n sb.append(\", reportname=\").append(reportname);\n sb.append(\", reportphone=\").append(reportphone);\n sb.append(\", ismanage=\").append(ismanage);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", IS_DELETED=\").append(IS_DELETED);\n sb.append(\", NOT_DELETED=\").append(NOT_DELETED);\n sb.append(\", id=\").append(id);\n sb.append(\", goodsId=\").append(goodsId);\n sb.append(\", name=\").append(name);\n sb.append(\", seriesId=\").append(seriesId);\n sb.append(\", brandId=\").append(brandId);\n sb.append(\", gallery=\").append(gallery);\n sb.append(\", keywords=\").append(keywords);\n sb.append(\", brief=\").append(brief);\n sb.append(\", sortOrder=\").append(sortOrder);\n sb.append(\", picUrl=\").append(picUrl);\n sb.append(\", buyLink=\").append(buyLink);\n sb.append(\", addTime=\").append(addTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", deleted=\").append(deleted);\n sb.append(\", detail=\").append(detail);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < mySize; i++) {\n\t\t\tfor (int j = 0; j < myBuckets.get(i).size(); j++) {\n\t\t\t\tsb.append(\"(\" + myBuckets.get(i).get(j).myKey + \", \" + myBuckets.get(i).get(j).myValue + \"), \");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", goodsTypeId=\").append(goodsTypeId);\n sb.append(\", goodsTypeName=\").append(goodsTypeName);\n sb.append(\", isDeleted=\").append(isDeleted);\n sb.append(\", goodsTypeMessage=\").append(goodsTypeMessage);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", spflbm=\").append(spflbm);\n sb.append(\", ssbkbm=\").append(ssbkbm);\n sb.append(\", spfl=\").append(spfl);\n sb.append(\", sjspflbm=\").append(sjspflbm);\n sb.append(\", xspx=\").append(xspx);\n sb.append(\", sfsx=\").append(sfsx);\n sb.append(\", spfltpwj=\").append(spfltpwj);\n sb.append(\", tjsj=\").append(tjsj);\n sb.append(\", tjr=\").append(tjr);\n sb.append(\", zhxgr=\").append(zhxgr);\n sb.append(\", zhxgsj=\").append(zhxgsj);\n sb.append(\", bz=\").append(bz);\n sb.append(\", fldj=\").append(fldj);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < numObjects && key[i] != null; i++){\n\t\t\tresult += key[i].toString() + \" \";\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder buffer = new StringBuilder(128);\n\t\tIterator<Map.Entry<String, AbstractNode>> it = pairs.entrySet().iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String, AbstractNode> pair = it.next();\n\t\t\tbuffer.append(keyToString(pair.getKey()));\n\t\t\tbuffer.append(KEY_VALUE_SEPARATOR_CHAR);\n\t\t\tbuffer.append(' ');\n\t\t\tbuffer.append(pair.getValue());\n\t\t\tif (it.hasNext())\n\t\t\t{\n\t\t\t\tbuffer.append(PAIR_SEPARATOR_CHAR);\n\t\t\t\tbuffer.append(' ');\n\t\t\t}\n\t\t}\n\t\treturn buffer.toString();\n\t}", "String printTableToString(Table inputTable) {\n String horDiv = generateHorizontalDivider(inputTable);\n StringBuilder tableStringBuilder = new StringBuilder();\n tableStringBuilder.append(horDiv);\n // i = -1 for column headers; i = 0..recsz for records\n for (int i = -1; i < inputTable.getRecordSize(); i++) {\n tableStringBuilder.append(generateDataString(inputTable, i));\n if (i == -1) {\n tableStringBuilder.append(horDiv);\n }\n }\n tableStringBuilder.append(horDiv);\n return tableStringBuilder.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", venuesId=\").append(venuesId);\n sb.append(\", hostId=\").append(hostId);\n sb.append(\", venuesName=\").append(venuesName);\n sb.append(\", venuesAddress=\").append(venuesAddress);\n sb.append(\", status=\").append(status);\n sb.append(\", others1=\").append(others1);\n sb.append(\", other2=\").append(other2);\n sb.append(\", other3=\").append(other3);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n return encodedHash.get();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", allocatGno=\").append(allocatGno);\n sb.append(\", deliverNo=\").append(deliverNo);\n sb.append(\", orderNo=\").append(orderNo);\n sb.append(\", guideId=\").append(guideId);\n sb.append(\", guideName=\").append(guideName);\n sb.append(\", guidePrice=\").append(guidePrice);\n sb.append(\", guideNo=\").append(guideNo);\n sb.append(\", deliverType=\").append(deliverType);\n sb.append(\", deliverTypeName=\").append(deliverTypeName);\n sb.append(\", deliverStatus=\").append(deliverStatus);\n sb.append(\", deliverStatusName=\").append(deliverStatusName);\n sb.append(\", demandDeal=\").append(demandDeal);\n sb.append(\", isRead=\").append(isRead);\n sb.append(\", isReadMis=\").append(isReadMis);\n sb.append(\", isReadable=\").append(isReadable);\n sb.append(\", isOnWay=\").append(isOnWay);\n sb.append(\", failType=\").append(failType);\n sb.append(\", viewResult=\").append(viewResult);\n sb.append(\", refuseReason=\").append(refuseReason);\n sb.append(\", acceptTime=\").append(acceptTime);\n sb.append(\", firstReadTime=\").append(firstReadTime);\n sb.append(\", other=\").append(other);\n sb.append(\", serviceTime=\").append(serviceTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString()\r\n\t{\r\n\t\tString str = \"\";\r\n\t\t\r\n\t\tSortedSet<String> sortedVertices = new TreeSet<String>(this.getVertices());\r\n\t\t\r\n\t\tstr += \"Vertices: \" + sortedVertices.toString() + \"\\nEdges:\\n\";\r\n\t\t\r\n\t\tfor(String vertex : sortedVertices)\r\n\t\t{\r\n\t\t\tif(this.dataMap.containsKey(vertex))\r\n\t\t\t{\r\n\t\t\t\tHashMap<String,Integer> adjMap = this.adjacencyMap.get(vertex);\r\n\t\t\t\t\r\n\t\t\t\tSortedSet<String> sortedKeys = new TreeSet<String>(adjMap.keySet());\r\n\t\t\t\t\r\n\t\t\t\tstr += \"Vertex(\" + vertex + \")--->{\";\r\n\t\t\t\tfor(String adj : sortedKeys)\r\n\t\t\t\t{\r\n\t\t\t\t\tstr += adj +\"=\"+ adjMap.get(adj) +\", \";\r\n\t\t\t\t}\r\n\t\t\t\tstr = str.trim();\r\n\t\t\t\t\r\n\t\t\t\tif(!sortedKeys.isEmpty())\r\n\t\t\t\t{\r\n\t\t\t\t\tStringBuilder s = new StringBuilder(str);\r\n\t\t\t\t\ts.deleteCharAt(str.length()-1);\r\n\t\t\t\t\tstr = s.toString();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tstr+=\"}\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn str;\r\n\t}", "public String toString(){\n String s = \"id: \" + Byte.toString(id) + \" \";\n s+= \"name: \"+name+ \" \";\n s+= \"hp: \" + Byte.toString(hp) + \" \";\n s+= \"xPos: \" + Short.toString(xPos)+\" \";\n s+= \"yPos: \" + Short.toString(yPos)+\"\\n\";\n for (Pair<Byte,Short> pair : weapons){\n s+= \"weaponId: \" + Byte.toString(pair.getKey()) + \" \" + \"ammo: \" + Short.toString(pair.getValue())+'\\n';\n }\n s+= \"Bullets fired:\"+'\\n';\n for(Bullet b : bulletsFired){\n s+= b.toString()+'\\n';\n }\n s+= \"Weapons tracked:\"+'\\n';\n for(Byte b : weaponEntryTracker){\n s+= Byte.toString(b)+'\\n';\n }\n s+= \"initial y: \" +Short.toString(initial_y)+'\\n';\n s+= \"current weapon: \" + Byte.toString(currentWeapon.getKey()) + \" ammo: \" + Short.toString(currentWeapon.getValue())+'\\n';\n s+= \"shooting direction: \" +Short.toString(shootingDirection)+'\\n';\n return s;\n }", "public String toString() {\n return \"{...(\" + this.size() + \" key(s) mapped to value(s))...}\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", guideServiceId=\").append(guideServiceId);\n sb.append(\", guideId=\").append(guideId);\n sb.append(\", langCodes=\").append(langCodes);\n sb.append(\", expfamily=\").append(expfamily);\n sb.append(\", expbusiness=\").append(expbusiness);\n sb.append(\", expcross=\").append(expcross);\n sb.append(\", style=\").append(style);\n sb.append(\", expspot=\").append(expspot);\n sb.append(\", expschool=\").append(expschool);\n sb.append(\", expshopping=\").append(expshopping);\n sb.append(\", exphistory=\").append(exphistory);\n sb.append(\", exptraffic=\").append(exptraffic);\n sb.append(\", expfood=\").append(expfood);\n sb.append(\", explaw=\").append(explaw);\n sb.append(\", expculture=\").append(expculture);\n sb.append(\", exphotel=\").append(exphotel);\n sb.append(\", exppoi=\").append(exppoi);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}", "public String toString() {\n String res = String.format(\"(%2d,%2d):\", n, H.length);\n for (int i = 0; i < n; ++i)\n res += String.format(\" %3d\", H[i]);\n if (n != 0) res += \";\"; else res += \" \";\n if (n < H.length) {\n res += String.format(\"%3d\", H[n]);\n for (int i = n+1; i < H.length; ++i)\n res += String.format(\" %3d\", H[i]);\n }\n return res;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", IS_DELETED=\").append(IS_DELETED);\n sb.append(\", NOT_DELETED=\").append(NOT_DELETED);\n sb.append(\", id=\").append(id);\n sb.append(\", valueId=\").append(valueId);\n sb.append(\", addTime=\").append(addTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", deleted=\").append(deleted);\n sb.append(\", reason=\").append(reason);\n sb.append(\", ballPackId=\").append(ballPackId);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\r\n\t\treturn \"(\" + key + \",\" + value + \")\";\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getGlobalTableName() != null)\n sb.append(\"GlobalTableName: \").append(getGlobalTableName()).append(\",\");\n if (getReplicaSettings() != null)\n sb.append(\"ReplicaSettings: \").append(getReplicaSettings());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\r\n\tpublic void displayHashTable()\r\n\t{\r\n\t\tSystem.out.println(hm.toString());\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", warehousingid=\").append(warehousingid);\n sb.append(\", warehousesnumber=\").append(warehousesnumber);\n sb.append(\", warehousingtime=\").append(warehousingtime);\n sb.append(\", cargodamaged=\").append(cargodamaged);\n sb.append(\", goodsdamageid=\").append(goodsdamageid);\n sb.append(\", storekeeperid=\").append(storekeeperid);\n sb.append(\", remarks=\").append(remarks);\n sb.append(\", warehouseid=\").append(warehouseid);\n sb.append(\", remarks1=\").append(remarks1);\n sb.append(\", remarks2=\").append(remarks2);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", id=\").append(id);\r\n sb.append(\", uid=\").append(uid);\r\n sb.append(\", companyCode=\").append(companyCode);\r\n sb.append(\", basicAccount=\").append(basicAccount);\r\n sb.append(\", giftAccount=\").append(giftAccount);\r\n sb.append(\", insertTime=\").append(insertTime);\r\n sb.append(\", updateTime=\").append(updateTime);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cZzzjlsh=\").append(cZzzjlsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", dJzsj=\").append(dJzsj);\n sb.append(\", cSpbh=\").append(cSpbh);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"[\");\n sb.append(fiIdCv);\n sb.append(\"]:\");\n sb.append(fiIdHoso);\n sb.append(\"|\");\n sb.append(fiMaHoso);\n sb.append(\"|\");\n sb.append(fiCoQuanCap);\n sb.append(\"|\");\n sb.append(fiSoCongVan);\n sb.append(\"|\");\n sb.append(fiNgayKy);\n sb.append(\"|\");\n sb.append(fiNguoiKy);\n sb.append(\"|\");\n sb.append(fiNgayHetHl);\n sb.append(\"|\");\n sb.append(fiLoaiDon);\n sb.append(\"|\");\n sb.append(fiHoatdong);\n sb.append(\"|\");\n sb.append(fiNguoitao);\n sb.append(\"|\");\n sb.append(fiNgaytao);\n sb.append(\"|\");\n sb.append(fiNgCapnhat);\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", medicalid=\").append(medicalid);\n sb.append(\", registid=\").append(registid);\n sb.append(\", userid=\").append(userid);\n sb.append(\", prescriptionname=\").append(prescriptionname);\n sb.append(\", prescriptiontime=\").append(prescriptiontime);\n sb.append(\", prescriptionstate=\").append(prescriptionstate);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String getTableFormat(){\n String tableToPrint = \"\";\n Enumeration keys = this.clientData.keys();\n while(keys.hasMoreElements()){\n String clientName = (String) keys.nextElement();\n tableToPrint += \"\\t\" + clientName + this.clientData.get(clientName) + '\\n';\n }\n return tableToPrint.substring(0,tableToPrint.length() - 1);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", nZjnl=\").append(nZjnl);\n sb.append(\", dZjsj=\").append(dZjsj);\n sb.append(\", cZjyy=\").append(cZjyy);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", name=\").append(name);\n sb.append(\", price=\").append(price);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", csVin=\").append(csVin);\n sb.append(\", csNumber=\").append(csNumber);\n sb.append(\", rowNo=\").append(rowNo);\n sb.append(\", startSoc=\").append(startSoc);\n sb.append(\", endSoc=\").append(endSoc);\n sb.append(\", changedSoc=\").append(changedSoc);\n sb.append(\", startMiles=\").append(startMiles);\n sb.append(\", endMiles=\").append(endMiles);\n sb.append(\", startTime=\").append(startTime);\n sb.append(\", endTime=\").append(endTime);\n sb.append(\", paceTimemills=\").append(paceTimemills);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\n\t\t\tif (this.getKey() == null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn \"Key:\" + this.getKey() + \" Value:\" + this.getValue();\n\t\t\t}\n\t\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", id=\").append(id);\n\t\tsb.append(\", uid=\").append(uid);\n\t\tsb.append(\", latitude=\").append(latitude);\n\t\tsb.append(\", longitude=\").append(longitude);\n\t\tsb.append(\", accuracy=\").append(accuracy);\n\t\tsb.append(\", place=\").append(place);\n\t\tsb.append(\", memberid=\").append(memberid);\n\t\tsb.append(\", membername=\").append(membername);\n\t\tsb.append(\", inserttime=\").append(inserttime);\n\t\tsb.append(\", signtype=\").append(signtype);\n\t\tsb.append(\", serialVersionUID=\").append(serialVersionUID);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", stuid=\").append(stuid);\n sb.append(\", stuname=\").append(stuname);\n sb.append(\", clazzid=\").append(clazzid);\n sb.append(\", age=\").append(age);\n sb.append(\", sex=\").append(sex);\n sb.append(\", birth=\").append(birth);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"[\");\n sb.append(fiIdTk);\n sb.append(\"]:\");\n sb.append(fiSoTk);\n sb.append(\"|\");\n sb.append(fiNgayDk);\n sb.append(\"|\");\n sb.append(fiMaHq);\n sb.append(\"|\");\n sb.append(fiTenDvNk);\n sb.append(\"|\");\n sb.append(fiDiachiDvNk);\n sb.append(\"|\");\n sb.append(fiTenDvXk);\n sb.append(\"|\");\n sb.append(fiDiachiDvXk);\n sb.append(\"|\");\n sb.append(fiNuocXk);\n sb.append(\"|\");\n sb.append(fiSoHoadon);\n sb.append(\"|\");\n sb.append(fiNgayCapHd);\n sb.append(\"|\");\n sb.append(fiSoluong);\n sb.append(\"|\");\n sb.append(fiTong);\n sb.append(\"|\");\n sb.append(fiIdHoso);\n sb.append(\"|\");\n sb.append(fiGhichu);\n sb.append(\"|\");\n sb.append(fiNgaytao);\n sb.append(\"|\");\n sb.append(fiHoatdong);\n sb.append(\"|\");\n sb.append(fiNguoitao);\n sb.append(\"|\");\n sb.append(fiMaHoso);\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", userMi=\").append(userMi);\n sb.append(\", passWord=\").append(passWord);\n sb.append(\", deleteFlag=\").append(deleteFlag);\n sb.append(\", name=\").append(name);\n sb.append(\", sex=\").append(sex);\n sb.append(\", paperType=\").append(paperType);\n sb.append(\", socialNo=\").append(socialNo);\n sb.append(\", tel=\").append(tel);\n sb.append(\", eMail=\").append(eMail);\n sb.append(\", homeAddress=\").append(homeAddress);\n sb.append(\", execUnit=\").append(execUnit);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", pObjObjectGid=\").append(pObjObjectGid);\n sb.append(\", layoutName=\").append(layoutName);\n sb.append(\", layoutType=\").append(layoutType);\n sb.append(\", df=\").append(df);\n sb.append(\", fields=\").append(fields);\n sb.append(\", jsondata=\").append(jsondata);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\r\n\t\tString result;\r\n\t\tif (ethnicity.isEmpty()) {\r\n\t\t\tresult = \"<tr><td>\" + category + \"</td>\" + \"<td>\" + gender\r\n\t\t\t\t\t+ \"</td>\" + \"<td>\" + count + \"</td></tr>\";\r\n\t\t} else {\r\n\t\t\tresult = \"<tr>\" + ethnicity + \"</td>\" + \"<td>\" + category + \"</td>\"\r\n\t\t\t\t\t+ \"<td>\" + gender + \"</td>\" + \"<td>\" + count + \"</td></tr>\";\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public GiftHashTable() {\r\n GiftList = new HashTableMap<>(20);\r\n names = new LinkedList<>();\r\n totalCost = 0;\r\n totalGifts = 0;\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", tds=\").append(tds);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", userId=\").append(userId);\n sb.append(\", deviceId=\").append(deviceId);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString()\n {\n String out = \"Treehash : \";\n for (int i = 0; i < 6 + tailLength; i++)\n {\n out = out + this.getStatInt()[i] + \" \";\n }\n for (int i = 0; i < 3 + tailLength; i++)\n {\n if (this.getStatByte()[i] != null)\n {\n out = out + new String(Hex.encode((this.getStatByte()[i]))) + \" \";\n }\n else\n {\n out = out + \"null \";\n }\n }\n out = out + \" \" + this.messDigestTree.getDigestSize();\n return out;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", couponBatchId=\").append(couponBatchId);\n sb.append(\", batchNo=\").append(batchNo);\n sb.append(\", batchName=\").append(batchName);\n sb.append(\", batchChannel=\").append(batchChannel);\n sb.append(\", couponType=\").append(couponType);\n sb.append(\", couponTotal=\").append(couponTotal);\n sb.append(\", couponPrice=\").append(couponPrice);\n sb.append(\", couponDiscount=\").append(couponDiscount);\n sb.append(\", daysLimit=\").append(daysLimit);\n sb.append(\", endDate=\").append(endDate);\n sb.append(\", meetPrice=\").append(meetPrice);\n sb.append(\", distanceUpperLimit=\").append(distanceUpperLimit);\n sb.append(\", durationUpperLimit=\").append(durationUpperLimit);\n sb.append(\", remark=\").append(remark);\n sb.append(\", couponPic=\").append(couponPic);\n sb.append(\", couponUrl=\").append(couponUrl);\n sb.append(\", bindCount=\").append(bindCount);\n sb.append(\", useCount=\").append(useCount);\n sb.append(\", allowTransferCount=\").append(allowTransferCount);\n sb.append(\", couponScopJson=\").append(couponScopJson);\n sb.append(\", districtNames=\").append(districtNames);\n sb.append(\", cropTypes=\").append(cropTypes);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\n if (this.size() <= 0) {\n return \"{}\";\n }\n StringBuilder stringBuilder = new StringBuilder(this.mSize * 28);\n stringBuilder.append('{');\n int n2 = 0;\n do {\n if (n2 >= this.mSize) {\n stringBuilder.append('}');\n return stringBuilder.toString();\n }\n if (n2 > 0) {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(this.keyAt(n2));\n stringBuilder.append('=');\n E e2 = this.valueAt(n2);\n if (e2 != this) {\n stringBuilder.append(e2);\n } else {\n stringBuilder.append(\"(this Map)\");\n }\n ++n2;\n } while (true);\n }", "public String toString()\r\n {\r\n StringBuffer sb = new StringBuffer(super.toString());\r\n\r\n if (requires_CHV)\r\n sb.append(\" CHV\" + number_of_CHV);\r\n if (requires_AUT)\r\n sb.append(\" AUT\" + number_of_key);\r\n if (requires_PRO)\r\n sb.append(\" PRO\" + number_of_key);\r\n if (requires_ENC)\r\n sb.append(\" ENC\" + number_of_key);\r\n\r\n if (never_accessible)\r\n sb.append(\" Never\");\r\n\r\n return sb.toString();\r\n }", "@Override\n public String toString()\n {\n String builder = new String();\n \tfor (V vertex : graph.keySet()){\n \t\tString strVertex = vertex.toString();\n \t\tbuilder = builder + strVertex + \": \";\n \t\tArrayList <V> edges = graph.get(vertex);\n \t\tint degree = edges.size();\n \t\tint i = 0;\n \t\tif (degree > 0){\n \t\t\twhile (i < degree -1){\n \t\t\t\tString strEdge = edges.get(i).toString();\n \t\t\t\tbuilder = builder + strEdge + \", \";\n \t\t\t\ti++;\n \t\t\t}\n \t\tString strEdge = edges.get(i).toString();\n \t\tbuilder = builder + strEdge + \"\\n\";\n\n \t\t}\n \t\telse{\n \t\t\tstrVertex = vertex.toString();\n \t\t\tbuilder = builder + strVertex + \": \\n\";\n \t\t}\n\n \t}\n \treturn builder;\n }", "public String toString() {\n\n\t\tStringBuffer header = new StringBuffer();\n\n\t\tIterator<ADACKvp> it = keyList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tADACKvp ak = it.next();\n\t\t\theader.append(ADACDictionary.descriptions[ak.getKeyNum()]);\n\t\t\theader.append(\" = \");\n\t\t\theader.append(ak.getString());\n\t\t\theader.append(\"\\n\");\n\t\t}\n\n\t\treturn header.toString().trim();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", pointId=\").append(pointId);\n sb.append(\", personnelType=\").append(personnelType);\n sb.append(\", createUser=\").append(createUser);\n sb.append(\", createDate=\").append(createDate);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString(){\n String s = \"\";\n s += \"\\t\";\n \n for (int i = 0; i < n; i++){\n // adding vertices for columns\n s += vertices[i] + \"\\t\";\n }\n \n s += \"\\n\";\n \n for (int i = 0; i < n; i++){\n s += vertices[i] + \"\\t\"; // vertex for row\n for (int j = 0; j < n; j++){\n s += edges[j][i] + \"\\t\"; // adding edges across row\n }\n s += \"\\n\";\n }\n \n return s;\n }", "public String toString() {\r\n\r\n String ret = \"\\n\\n\";\r\n\r\n for (int i = 0; i < capacity(); i++) {\r\n if (get(i) != null) {\r\n if (get(i).key() != null)\r\n ret += i + \"\\t\" + get(i).key() + \"\\t->\\t\" + get(i).value() + \"\\n\";\r\n else\r\n ret += i + \"\\tTOMBSTONE\\n\";\r\n }\r\n else {\r\n ret += i + \"\\tnull\\n\";\r\n }\r\n }\r\n\r\n return ret;\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", drawNo=\").append(drawNo);\n sb.append(\", bachNo=\").append(bachNo);\n sb.append(\", guideId=\").append(guideId);\n sb.append(\", guideName=\").append(guideName);\n sb.append(\", guideAgencyId=\").append(guideAgencyId);\n sb.append(\", guideAgencyName=\").append(guideAgencyName);\n sb.append(\", applyTime=\").append(applyTime);\n sb.append(\", price=\").append(price);\n sb.append(\", finBankNo=\").append(finBankNo);\n sb.append(\", finName=\").append(finName);\n sb.append(\", finAccount=\").append(finAccount);\n sb.append(\", finBank=\").append(finBank);\n sb.append(\", finCurrency=\").append(finCurrency);\n sb.append(\", finType=\").append(finType);\n sb.append(\", adminId=\").append(adminId);\n sb.append(\", adminName=\").append(adminName);\n sb.append(\", actualPrice=\").append(actualPrice);\n sb.append(\", transferTime=\").append(transferTime);\n sb.append(\", account=\").append(account);\n sb.append(\", drawComment=\").append(drawComment);\n sb.append(\", drawStatus=\").append(drawStatus);\n sb.append(\", isAuto=\").append(isAuto);\n sb.append(\", updateTime=\").append(updateTime);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", processStatus=\").append(processStatus);\n sb.append(\", guideNo=\").append(guideNo);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", shoppingCardId=\").append(shoppingCardId);\n sb.append(\", userId=\").append(userId);\n sb.append(\", phoneId=\").append(phoneId);\n sb.append(\", gmtCreate=\").append(gmtCreate);\n sb.append(\", gmtModified=\").append(gmtModified);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", rabbitHouseNo=\").append(rabbitHouseNo);\n sb.append(\", outdoorTemperature=\").append(outdoorTemperature);\n sb.append(\", outdoorUmidity=\").append(outdoorUmidity);\n sb.append(\", indoorTemperature=\").append(indoorTemperature);\n sb.append(\", indoorUmidity=\").append(indoorUmidity);\n sb.append(\", indoorWindSpeed=\").append(indoorWindSpeed);\n sb.append(\", ammonia=\").append(ammonia);\n sb.append(\", hydrogenSulfide=\").append(hydrogenSulfide);\n sb.append(\", carbonMonoxideConcentration=\").append(carbonMonoxideConcentration);\n sb.append(\", fanOperation=\").append(fanOperation);\n sb.append(\", wetCurtainOperation=\").append(wetCurtainOperation);\n sb.append(\", lightingControl=\").append(lightingControl);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(getId());\n sb.append(\", name=\").append(name);\n sb.append(\", projlimit=\").append(projlimit);\n sb.append(\", studlimit=\").append(studlimit);\n sb.append(\", uploadlimit=\").append(uploadlimit);\n sb.append(\", docroot=\").append(docroot);\n sb.append(\", valid=\").append(getValid());\n sb.append(\", cdate=\").append(getCdate());\n sb.append(\", mdate=\").append(getMdate());\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(getClass().getSimpleName());\r\n sb.append(\" [\");\r\n sb.append(\"Hash = \").append(hashCode());\r\n sb.append(\", rpfId=\").append(rpfId);\r\n sb.append(\", czId=\").append(czId);\r\n sb.append(\", fpNumber=\").append(fpNumber);\r\n sb.append(\", spNumber=\").append(spNumber);\r\n sb.append(\", fpl=\").append(fpl);\r\n sb.append(\", fpCb=\").append(fpCb);\r\n sb.append(\", spCb=\").append(spCb);\r\n sb.append(\", sjCb=\").append(sjCb);\r\n sb.append(\", tickettypesId=\").append(tickettypesId);\r\n sb.append(\", inDate=\").append(inDate);\r\n sb.append(\", autoDate=\").append(autoDate);\r\n sb.append(\", rpfBak1=\").append(rpfBak1);\r\n sb.append(\", rpfBak2=\").append(rpfBak2);\r\n sb.append(\", rpfBak3=\").append(rpfBak3);\r\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\r\n sb.append(\"]\");\r\n return sb.toString();\r\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", status=\").append(status);\n\t\tsb.append(\", createtime=\").append(createtime);\n\t\tsb.append(\", updatetime=\").append(updatetime);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}", "public String toString(){\r\n\t\t// Number of households\r\n\t\tString output = \";\\\"\" + this.getTotalHouseholds() + \"\\\"\";\r\n\t\tIterator<Data> iter = this.data.values().iterator();\r\n\t\r\n\t\t// Compile the list of the makeup of each household.\r\n\t\twhile(iter.hasNext()){\r\n\t\t\toutput += \";\" + iter.next().toString();\r\n\t\t}\t// end while\r\n\t\r\n\t\treturn output;\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", eid=\").append(eid);\n sb.append(\", title=\").append(title);\n sb.append(\", m_price=\").append(m_price);\n sb.append(\", o_price=\").append(o_price);\n sb.append(\", ship_address=\").append(ship_address);\n sb.append(\", min_order=\").append(min_order);\n sb.append(\", brand=\").append(brand);\n sb.append(\", p_type=\").append(p_type);\n sb.append(\", after_sale=\").append(after_sale);\n sb.append(\", invoice=\").append(invoice);\n sb.append(\", stock=\").append(stock);\n sb.append(\", stock_num=\").append(stock_num);\n sb.append(\", stock_price=\").append(stock_price);\n sb.append(\", lower_warn=\").append(lower_warn);\n sb.append(\", img_0=\").append(img_0);\n sb.append(\", img_1=\").append(img_1);\n sb.append(\", img_2=\").append(img_2);\n sb.append(\", img_3=\").append(img_3);\n sb.append(\", img_4=\").append(img_4);\n sb.append(\", detail=\").append(detail);\n sb.append(\", stock_update=\").append(stock_update);\n sb.append(\", period=\").append(period);\n sb.append(\", publish=\").append(publish);\n sb.append(\", publish_tm=\").append(publish_tm);\n sb.append(\", sale_num=\").append(sale_num);\n sb.append(\", is_delete=\").append(is_delete);\n sb.append(\", cid=\").append(cid);\n sb.append(\", ent_cid=\").append(ent_cid);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", sysaccountid=\").append(sysaccountid);\n sb.append(\", income=\").append(income);\n sb.append(\", expend=\").append(expend);\n sb.append(\", updatedAt=\").append(updatedAt);\n sb.append(\", createdAt=\").append(createdAt);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(getClass().getSimpleName());\r\n\t\tsb.append(\" [\");\r\n\t\tsb.append(\"Hash = \").append(hashCode());\r\n\t\tsb.append(\", stockId=\").append(stockId);\r\n\t\tsb.append(\", stockCode=\").append(stockCode);\r\n\t\tsb.append(\", stockName=\").append(stockName);\r\n\t\tsb.append(\", industryCode=\").append(industryCode);\r\n\t\tsb.append(\", createUser=\").append(createUser);\r\n\t\tsb.append(\", created=\").append(created);\r\n\t\tsb.append(\", updateUser=\").append(updateUser);\r\n\t\tsb.append(\", updated=\").append(updated);\r\n\t\tsb.append(\", deleted=\").append(deleted);\r\n\t\tsb.append(\"]\");\r\n\t\treturn sb.toString();\r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", resumeId=\").append(resumeId);\n sb.append(\", posNature=\").append(posNature);\n sb.append(\", passStatus=\").append(passStatus);\n sb.append(\", provinceCitiesCode=\").append(provinceCitiesCode);\n sb.append(\", citiesCityCode=\").append(citiesCityCode);\n sb.append(\", compId=\").append(compId);\n sb.append(\", provinceCodeReside=\").append(provinceCodeReside);\n sb.append(\", cityCodeReside=\").append(cityCodeReside);\n sb.append(\", stuUserid=\").append(stuUserid);\n sb.append(\", posId=\").append(posId);\n sb.append(\", submitTime=\").append(submitTime);\n sb.append(\", zhiyuanIndex=\").append(zhiyuanIndex);\n sb.append(\", userRealname=\").append(userRealname);\n sb.append(\", tel=\").append(tel);\n sb.append(\", email=\").append(email);\n sb.append(\", sex=\").append(sex);\n sb.append(\", nation=\").append(nation);\n sb.append(\", birth=\").append(birth);\n sb.append(\", marriage=\").append(marriage);\n sb.append(\", identType=\").append(identType);\n sb.append(\", identNo=\").append(identNo);\n sb.append(\", politicsId=\").append(politicsId);\n sb.append(\", wishPosition=\").append(wishPosition);\n sb.append(\", wishProvinceId=\").append(wishProvinceId);\n sb.append(\", wishCityId=\").append(wishCityId);\n sb.append(\", wishMaxSalary=\").append(wishMaxSalary);\n sb.append(\", wishMinSalary=\").append(wishMinSalary);\n sb.append(\", jobStatus=\").append(jobStatus);\n sb.append(\", selfEvaluation=\").append(selfEvaluation);\n sb.append(\", compIsnew=\").append(compIsnew);\n sb.append(\", faceurl=\").append(faceurl);\n sb.append(\", startWorkTime=\").append(startWorkTime);\n sb.append(\", computerLevel=\").append(computerLevel);\n sb.append(\", majorId=\").append(majorId);\n sb.append(\", majorPid=\").append(majorPid);\n sb.append(\", collegeId=\").append(collegeId);\n sb.append(\", eduId=\").append(eduId);\n sb.append(\", wangshenTermid=\").append(wangshenTermid);\n sb.append(\", wishPosTypeid3=\").append(wishPosTypeid3);\n sb.append(\", wishPosTypeid2=\").append(wishPosTypeid2);\n sb.append(\", wishPosTypeid1=\").append(wishPosTypeid1);\n sb.append(\", collegeName=\").append(collegeName);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", name=\").append(name);\n sb.append(\", gender=\").append(gender);\n sb.append(\", account=\").append(account);\n sb.append(\", phone=\").append(phone);\n sb.append(\", email=\").append(email);\n sb.append(\", hireDate=\").append(hireDate);\n sb.append(\", department=\").append(department);\n sb.append(\", password=\").append(password);\n sb.append(\", province=\").append(province);\n sb.append(\", changePasswordCycle=\").append(changePasswordCycle);\n sb.append(\", operatorId=\").append(operatorId);\n sb.append(\", editTime=\").append(editTime);\n sb.append(\", passwordChangeTime=\").append(passwordChangeTime);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public static String string() {\n\t\t\tString s = \"\";\n\t\t\ts += \"Locaux :\\n\";\n\t\t\tfor(String key : locaux.keySet()) {\n\t\t\t\tIdent i = locaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\t\t\ts += \"Globaux :\\n\";\n\t\t\tfor(String key : globaux.keySet()) {\n\t\t\t\tIdent i = globaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", cJsyy=\").append(cJsyy);\n sb.append(\", dJssj=\").append(dJssj);\n sb.append(\", nJssl=\").append(nJssl);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", noticeId=\").append(noticeId);\n sb.append(\", noticeTitle=\").append(noticeTitle);\n sb.append(\", noticeStart=\").append(noticeStart);\n sb.append(\", noticeEnd=\").append(noticeEnd);\n sb.append(\", noticeDes=\").append(noticeDes);\n sb.append(\", noticeSendto=\").append(noticeSendto);\n sb.append(\", opr=\").append(opr);\n sb.append(\", oprTime=\").append(oprTime);\n sb.append(\", other=\").append(other);\n sb.append(\", others=\").append(others);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", guideaccountdetailid=\").append(guideaccountdetailid);\n sb.append(\", guideaccountsn=\").append(guideaccountsn);\n sb.append(\", guideid=\").append(guideid);\n sb.append(\", orderid=\").append(orderid);\n sb.append(\", ordersn=\").append(ordersn);\n sb.append(\", guidefinanceid=\").append(guidefinanceid);\n sb.append(\", biztype=\").append(biztype);\n sb.append(\", content=\").append(content);\n sb.append(\", price=\").append(price);\n sb.append(\", paytype=\").append(paytype);\n sb.append(\", bizstatus=\").append(bizstatus);\n sb.append(\", bizcomment=\").append(bizcomment);\n sb.append(\", guidedrawid=\").append(guidedrawid);\n sb.append(\", updatedAt=\").append(updatedAt);\n sb.append(\", createdAt=\").append(createdAt);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() {\n\t\tStringBuffer strBuf = new StringBuffer(\"{ beanTable = \");\n\t\tstrBuf.append(this.beanTable.toString());\n\t\tstrBuf.append(\", columnNames = \");\n\t\tif (this.columnNames != null) {\n\t\t\tstrBuf.append(\"{ \");\n\t\t\tfor (int i = 0; i < columnNames.length; i++) {\n\t\t\t\tif (i != 0)\n\t\t\t\t\tstrBuf.append(\", \");\n\t\t\t\tstrBuf.append(this.columnNames[i].toString());\n\t\t\t\tstrBuf.append(\n\t\t\t\t\t\" (\"\n\t\t\t\t\t\t+ this.jdbcTypes[i]\n\t\t\t\t\t\t+ \", \"\n\t\t\t\t\t\t+ this.fieldNames[i]\n\t\t\t\t\t\t+ \", \"\n\t\t\t\t\t\t+ this.pkFlags[i].booleanValue() + \", \"\n + this.dvFlags[i].booleanValue()\n + \", \"\n + ( (this.subFieldNames[i] == null)\n ? \"(null)\" : this.subFieldNames[i] )\n\t\t\t\t\t\t+ \", \"\n + this.relFlags[i].booleanValue()\n + \", \"\n + ( (this.relBeans[i] == null)\n ? \"(null)\" : this.relBeans[i] )\n + \", \"\n + ( (this.relBeanFields[i] == null)\n ? \"(null)\" : this.relBeanFields[i] )\n + \")\");\n\t\t\t}\n\t\t\tstrBuf.append(\" }\");\n\t\t} else {\n\t\t\tstrBuf.append(\"null\");\n\t\t}\n strBuf.append(\", updateFlag = \");\n if ( this.haveForUpdate )\n {\n strBuf.append(\"true\");\n }\n else\n {\n strBuf.append(\"false\");\n }\n\t\tstrBuf.append(\", hashcode = \");\n\t\tstrBuf.append(this.hashCode());\n\t\tstrBuf.append(\" }\");\n\t\treturn strBuf.toString();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", bookid=\").append(bookid);\n sb.append(\", bookname=\").append(bookname);\n sb.append(\", author=\").append(author);\n sb.append(\", printwhere=\").append(printwhere);\n sb.append(\", printdate=\").append(printdate);\n sb.append(\", introduction=\").append(introduction);\n sb.append(\", note=\").append(note);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n String result = \"\";\n\n for (int position = 0; position < 64; position++) {\n if (position > 0) {\n if (position % 16 == 0) { // New level\n result += '|';\n } else if (position % 4 == 0) {\n result += ' '; // New row\n }\n }\n result += get(position);\n }\n return result;\n }", "public String toString()\n\t{\n\t\tString line=\"\";\n\t\tIterator<Integer> keySetIterator = recordMap.keySet().iterator(); \n\t\tInteger key;\n\t\twhile(keySetIterator.hasNext())\n\t\t{ \n\t\t\tkey = keySetIterator.next(); \n\t\t\tif (key == 0) line+=recordMap.get(key);\n\t\t\telse line+=DELIMITER+recordMap.get(key); \n\t\t}\n\t\treturn line;\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(getClass().getSimpleName());\n\t\tsb.append(\" [\");\n\t\tsb.append(\"Hash = \").append(hashCode());\n\t\tsb.append(\", id=\").append(id);\n\t\tsb.append(\", parentid=\").append(parentid);\n\t\tsb.append(\", name=\").append(name);\n\t\tsb.append(\", url=\").append(url);\n\t\tsb.append(\", type=\").append(type);\n\t\tsb.append(\", describe=\").append(describe);\n\t\tsb.append(\", weight=\").append(weight);\n\t\tsb.append(\", status=\").append(status);\n\t\tsb.append(\", createtime=\").append(createtime);\n\t\tsb.append(\", updatetime=\").append(updatetime);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\tTreeSet<String> set = new TreeSet<String>();\n\t\tfor (Entry<Object, Object> entry : this.entrySet())\n\t\t\tset.add(String.format(\"%s = %s%n\",\n\t\t\t\t\tentry.getKey(), entry.getValue()));\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (String s : set)\n\t\t\tbuf.append(s);\n\t\treturn buf.toString();\n\t}", "public String toString(){\n\n\t\tStringBuffer b = new StringBuffer();\n\t\tb.append('\\n');\n\n\t\tint i = 0, j, counter = 0;\n\t\twhile( i < numRows){\n\n\t\t\tj = 0;\n\t\t\twhile( j < numCols){\n\n\t\t\t\tb.append( \"\" + i + TAB + j + TAB);\n\t\t\t\tObject obj = this.get(i, j);\n\t\t\t\tif( obj != null ) {\n\t\t\t\t\tb.append( obj.toString() );\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t\telse b.append( \"NULL\" );\n\t\t\t\tb.append('\\n');\n\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t\tb.append( \"\\nNumber of Rows = \" + numRows + '\\n' );\n\t\tb.append( \"Number of Columns = \" + numCols + '\\n' );\n\t\tb.append( \"Size = \" + size + '\\n' );\n\t\tb.append( \"Number of non-null objects = \" + counter + '\\n' );\n\t\treturn b.toString();\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", id=\").append(id);\n sb.append(\", uuid=\").append(uuid);\n sb.append(\", definedName=\").append(definedName);\n sb.append(\", fileName=\").append(fileName);\n sb.append(\", diskFileName=\").append(diskFileName);\n sb.append(\", fileType=\").append(fileType);\n sb.append(\", filePath=\").append(filePath);\n sb.append(\", contentUuid=\").append(contentUuid);\n sb.append(\", uploadTime=\").append(uploadTime);\n sb.append(\", createBy=\").append(createBy);\n sb.append(\", createDate=\").append(createDate);\n sb.append(\", updateBy=\").append(updateBy);\n sb.append(\", updateDate=\").append(updateDate);\n sb.append(\", isDelete=\").append(isDelete);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString(){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < key; i++) {\n sb.append(getArtikel(i));\n }\n return sb.toString();\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer();\n\t\tboolean first = true;\n\t\tfor (Map.Entry<String, Object> entry : entrySet())\n\t\t{\n\t\t\tif (first == false)\n\t\t\t{\n\t\t\t\tbuffer.append(' ');\n\t\t\t}\n\t\t\tfirst = false;\n\n\t\t\tbuffer.append(entry.getKey());\n\t\t\tbuffer.append(\" = \\\"\");\n\t\t\tfinal Object value = entry.getValue();\n\t\t\tif (value == null)\n\t\t\t{\n\t\t\t\tbuffer.append(\"null\");\n\t\t\t}\n\t\t\telse if (value.getClass().isArray())\n\t\t\t{\n\t\t\t\tbuffer.append(Arrays.asList((Object[])value));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuffer.append(value);\n\t\t\t}\n\n\t\t\tbuffer.append('\\\"');\n\t\t}\n\t\treturn buffer.toString();\n\t}", "public String toString() {\n String s = \"\";\n try {\n s += get_nodeid()+\"\\t\";\n //s += \" [nodeid=0x\"+Long.toHexString(get_nodeid())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += get_counter()+\"\\t\";\n //s += \" [counter=0x\"+Long.toHexString(get_counter())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_p_sendts()+\"\\t\";\n //s += \" [p_sendts=0x\"+Long.toHexString(get_p_sendts())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+get_receivets()+\"\\t\";\n //s += \" [receivets=0x\"+Long.toHexString(get_receivets())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_virtual_clk())+\"\\t\";\n //s += \" [virtual_clk=\"+Float.toString(get_virtual_clk())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_skew_cmp())+\"\\t\";\n //s += \" [skew_cmp=\"+Float.toString(get_skew_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \"\"+Float.toString(get_offset_cmp())+\"\";\n //s += \" [offset_cmp=\"+Float.toString(get_offset_cmp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", corpcode=\").append(corpcode);\n sb.append(\", corpname=\").append(corpname);\n sb.append(\", corpshortname=\").append(corpshortname);\n sb.append(\", corptype=\").append(corptype);\n sb.append(\", id=\").append(id);\n sb.append(\", corpid=\").append(corpid);\n sb.append(\", inquirycontent=\").append(inquirycontent);\n sb.append(\", inquirydate=\").append(inquirydate);\n sb.append(\", attribute1=\").append(attribute1);\n sb.append(\", attribute2=\").append(attribute2);\n sb.append(\", attribute3=\").append(attribute3);\n sb.append(\", createdby=\").append(createdby);\n sb.append(\", creationdate=\").append(creationdate);\n sb.append(\", lastupdateby=\").append(lastupdateby);\n sb.append(\", lastupdatedate=\").append(lastupdatedate);\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString() { \n StringBuffer sb = new StringBuffer(); \n sb.append(\"[\"); \n sb.append(id);\n sb.append(\"]:\"); \n sb.append(isdeleted);\n sb.append(\"|\");\n sb.append(vehicleAccountC);\n sb.append(\"|\");\n sb.append(systemmodstamp);\n sb.append(\"|\");\n sb.append(userC);\n sb.append(\"|\");\n sb.append(hcLastop);\n sb.append(\"|\");\n sb.append(name);\n sb.append(\"|\");\n sb.append(sfid);\n sb.append(\"|\");\n sb.append(createddate);\n sb.append(\"|\");\n sb.append(uniquekeyC);\n sb.append(\"|\");\n sb.append(accountNicknameC);\n sb.append(\"|\");\n sb.append(hcErr);\n return sb.toString(); \n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", jId=\").append(jId);\n sb.append(\", jEndtime=\").append(jEndtime);\n sb.append(\", pId=\").append(pId);\n sb.append(\", uId=\").append(uId);\n sb.append(\", jScore=\").append(jScore);\n sb.append(\", jComment=\").append(jComment);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n return String.valueOf(key);\n }", "public String toString(){\n //KEY --------\n // WHITE WALL = WW\n // WHITE ROAD = WR\n // WHITE CAPSTONE = WC\n // BLACK WALL = BW\n // BLACK ROAD = BR\n // BLACK CAPSTONE = BC\n // EMPTY = \"blank\"\n\n StringBuilder builder = new StringBuilder();\n\n /*TOP ROW*/ builder.append(\"\\t\"); for(int i = 0; i < SIZE; i++){ builder.append(i + \"\\t\");} builder.append(\"\\n\\n\");\n /*REST OF THE ROWS*/ \n for(int x = 0; x < SIZE; x++){\n builder.append(x + \"\\t\");\n for(int y = 0; y < SIZE; y++){\n TakStack current = stacks[y][x]; \n if(!current.isEmpty()){\n builder.append(getPieceString(current.top()));\n }\n builder.append(\"\\t\");\n }\n builder.append(\"\\n\\n\");\n }\n\n\n //BUILDER RETURN\n return builder.toString();\n }", "@Override\r\n\tpublic String toString(){\n\t\tString s = \"{\";\r\n\t\tboolean first = true;\r\n\t\tfor(int n=0; n<_numBuckets; n++)\r\n\t\t{\r\n\t\t\tNode node = _buckets[n];\r\n\t\t\tif(node != null)\r\n\t\t\t{\r\n\t\t\t\tif(first)\r\n\t\t\t\t\tfirst = false;\r\n\t\t\t\telse\r\n\t\t\t\t\ts += \", \";\r\n\t\t\t\ts += node.toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\ts += \"}\";\r\n\t\treturn s;\r\n\t}", "public String toString()\n {\n return key.toString() + \" => \" + item.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", moneyId=\").append(moneyId);\n sb.append(\", targetType=\").append(targetType);\n sb.append(\", dataSrc=\").append(dataSrc);\n sb.append(\", moneyType=\").append(moneyType);\n sb.append(\", moneyRemark=\").append(moneyRemark);\n sb.append(\", createTime=\").append(createTime);\n sb.append(\", money=\").append(money);\n sb.append(\", payType=\").append(payType);\n sb.append(\", dataFalg=\").append(dataFalg);\n sb.append(\", userId=\").append(userId);\n sb.append(\", putForward=\").append(putForward);\n sb.append(\", forward=\").append(forward);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }" ]
[ "0.7615995", "0.7055716", "0.67134064", "0.6656034", "0.65679485", "0.6339939", "0.6303847", "0.6299558", "0.62931365", "0.6292599", "0.62915236", "0.6264173", "0.625473", "0.6254451", "0.6247168", "0.6240411", "0.62243074", "0.62119764", "0.62097806", "0.62058496", "0.61958706", "0.61879414", "0.6186454", "0.6170038", "0.61632323", "0.61518174", "0.6144871", "0.6142827", "0.6140639", "0.6136154", "0.61343354", "0.61202043", "0.61170584", "0.6084392", "0.6082441", "0.6075163", "0.60703206", "0.60633373", "0.60515606", "0.6044303", "0.6036964", "0.60368085", "0.6031145", "0.60311", "0.6020283", "0.60088265", "0.6000366", "0.5997343", "0.59906894", "0.59826607", "0.5981141", "0.59767324", "0.59717435", "0.595935", "0.5954662", "0.5951998", "0.59488666", "0.5942683", "0.5942657", "0.59405667", "0.59405327", "0.5938565", "0.5938152", "0.5936631", "0.59153134", "0.59115046", "0.5907815", "0.5905298", "0.5896732", "0.5893085", "0.5883557", "0.58808285", "0.5877439", "0.58720595", "0.586435", "0.5859376", "0.58557105", "0.5851722", "0.585143", "0.5838638", "0.5833133", "0.5831303", "0.58280784", "0.58202493", "0.5817901", "0.58087707", "0.58000654", "0.57985693", "0.57972527", "0.5793516", "0.5789121", "0.57863003", "0.5785235", "0.57852113", "0.5783625", "0.57829523", "0.5780008", "0.57771957", "0.5776085", "0.57712555" ]
0.6157615
25
Getter method for this.names
public LinkedList<String> getNames() { return names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getNames() {\n return names;\n }", "public ArrayList<String> getNames() {\n return names;\n }", "public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\toutStrings[i] = this.otherNames[i-1];\n \t\treturn outStrings;\n \t}", "public Map<String, String> getNames() {\n return names;\n }", "@Override\n public java.lang.Object getNames() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.NAMES_);\n return (java.lang.Object)retnValue;\n }", "@Override\n public ImmutableList<String> getNameParts() {\n return names.toImmutable();\n }", "public Set<String> getNames() {\n\t\t//\t\tArrayList<String> names = new ArrayList<String>();\n\t\t//\t\tfor (NameSSA n : name.values())\n\t\t//\t\t\tnames.add(n.current());\n\t\treturn name.keySet();\n\t}", "Collection<String> names();", "Set<String> getNames();", "public Set<String> getName() {\r\n return this.name;\r\n }", "public Stream<String> getNames() {\n return names.stream();\n }", "public String[][] getNames () ;", "public abstract String[] names() throws TrippiException;", "@Override\r\n\tpublic String[] names() {\n\t\treturn new String[] {\"lifesteal\"};\r\n\t}", "@Override\n\tpublic StringList getNames() {\n\t\tStringList ss = new StringList();\n\t\tss.add(\"java\");\n\t\treturn ss;\n\t}", "public String [] getNames () { \n return this.listAttributes(); \n }", "@Nonnull List<String> getNameList();", "protected String getName(){\r\n return this.name;\r\n }", "public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }", "public String[] getNames() {\n Enumeration namesEnum = keys();\n String[] namesArray = new String[size()];\n for (int i = 0; i < size(); i++) {\n namesArray[i] = (String) namesEnum.nextElement();\n }\n return namesArray;\n }", "public String getName() { return name.get(); }", "@ApiModelProperty(value = \"The ID and name of each field present on the issue.\")\n public Map<String, String> getNames() {\n return names;\n }", "public List<? extends Name> getAllNames() {\n\t\treturn null;\n\t}", "Iterable<String> getRegisteredNames();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public java.lang.String getName();", "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}", "String getName() {\r\n\t\t\treturn this.name;\r\n\t\t}", "public String getName() { return this.Name; }", "String getName() ;", "public String getName () { return this.name; }", "public String getName(){\r\n return this.name;\r\n }", "@Override\n\tpublic ArrayList<String> getName() {\n\t\tArrayList<String> l = new ArrayList<String>();\n\t\tl.addAll(leftTable.getName());\n\t\tl.addAll(rightTable.getName());\n\t\treturn l;\n\t}", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\r\n @VTID(21)\r\n java.lang.String[] getNamesU();", "public String getName (){\r\n return name;\r\n }", "public String getFirstNames() {\n return firstNames;\n }", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public String getName() { return this.name; }", "public String getName() { return this.name; }", "public String getName() { return this.name; }", "private String getName() {\n\t\treturn name;\n\t}", "String getName() {\n return this.name;\n }", "public String getName(){return this.aName;}", "public String[] getNames() {\r\n\t\treturn this.context.getNames();\r\n\t}", "public final String getName() {\n String ret = null;\n for (String s : getNameFields()) {\n if (ret == null) {\n ret = get(s);\n } else {\n ret = ret + \",\" + get(s);\n }\n }\n return ret;\n }", "public String getName(){\r\n\t\treturn this.name;\r\n\t}", "public String[] getPropertyNames();", "public String getName(){\n \t\treturn this.name;\n \t}", "String getName() {\n return this.name;\n }" ]
[ "0.7799061", "0.7672959", "0.7654524", "0.76445514", "0.75125587", "0.7491906", "0.74770004", "0.7442913", "0.7429644", "0.7399613", "0.732696", "0.73142105", "0.72619957", "0.7243485", "0.7151282", "0.7106926", "0.7051", "0.7026719", "0.6996284", "0.6989323", "0.6966279", "0.6934983", "0.6910433", "0.6904363", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.68880475", "0.6870968", "0.6870827", "0.68698746", "0.6831549", "0.6794598", "0.6784772", "0.6776096", "0.67682666", "0.6766453", "0.67662334", "0.67658925", "0.67610615", "0.6753532", "0.6753532", "0.6753532", "0.6747377", "0.6744963", "0.67436963", "0.6738701", "0.6737371", "0.67337054", "0.6733459", "0.6730219", "0.6725233" ]
0.7861
0
Getter method for this.getTotalCost
public double getTotalCost() { return totalCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getTotalCost() {\n return this.totalCost;\n }", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public double getTotal() {\n return totalCost;\n }", "public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}", "public String getTotalCost() {\n return this.TotalCost;\n }", "public BigDecimal getCost() {\r\n return cost;\r\n }", "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "@Pure\n\tdouble getCost();", "public BigDecimal getCost() {\n return this.cost;\n }", "public double getCost() {\r\n return cost;\r\n }", "public Number getCost()\r\n {\r\n return (m_cost);\r\n }", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}", "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "public double getCost() {\n return cost;\n }", "public double getCost() {\n return cost;\n }", "public double getCost() {\n\n\t\treturn cost;\n\t}", "public double getCost()\r\n\t{\treturn this.cost;\t}", "double getCost();", "double getCost();", "public double getCost() {\n\t\treturn cost;\n\t}", "@Override\n public double getCost() {\n return cost;\n }", "@NotNull\n public BigDecimal getCost() {\n return cost;\n }", "public int getCost(){\r\n\t\treturn this.cost;\r\n\t}", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "public Number getActualCost()\r\n {\r\n return (m_actualCost);\r\n }", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "public int getCost() {\n return cost;\n }", "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "public int getCost() {\n \t\treturn cost;\n \t}", "public int getCost() {\n return cost;\n }", "public int getCost() {\n return cost;\n }", "double getTotalCost();", "public abstract double getCost();", "String getTotalCost() {\n return Double.toString(totalCost);\n }", "public Integer getCost() {\r\n\t\treturn cost;\r\n\t}", "public Integer getCost() {\n return cost;\n }", "@Pure\n\tdouble getEstimatedCost();", "public int getCost()\n {\n return cost;\n }", "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "public int getCost() {\n\t\treturn cost;\n\t}", "public double getCost() {\r\n\t\t\r\n\t\tif (super.getSize() == \"Small\") { totalCost = 2.00; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Medium\") { totalCost = 2.50; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Large\") { totalCost = 3.00; }\r\n\t\t\r\n\t\treturn totalCost;\r\n\t}", "public double getCost(){\n return cost;\n }", "public double getCost()\n\t{\n\t\treturn 0.9;\n\t}", "public int getCost(){\n return this.cost;\n }", "public double cost()\n\t{\n\t\treturn _dblCost;\n\t}", "public String getCost() {\n return cost;\n }", "public double getCost() {\n\t\treturn 1.25;\n\t}", "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "int getCost();", "int getCost();", "int getCost();", "public String getRealTotalCost() {\n return this.RealTotalCost;\n }", "public double getCost() {\n\t\treturn costOverride > 0 ? costOverride : getDefaultCost();\n\t}", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "public double getCost() {\n return price;\n }", "public double getCost() \n { \n return super.getCost() +22;\n }", "public BigDecimal getUnitCost() {\r\n return unitCost;\r\n }", "public int[] getCost(){\n\t\treturn this.cost;\n\t}", "@Override\n public int getCost() {\n\n\n //return cost converted to int\n return (int) cost;\n }", "public Money getCost(){\r\n return this.cost;\r\n }", "public double getCosts();", "public double getUnitCost() {\r\n return unitCost;\r\n }", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}", "public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}", "public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}", "public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\tcost += (Cheese - 1)*1.50;\n\t\tcost += Ham*1.50;\n\t\tcost += Pepperoni*1.50;\n\t\t\n\t\treturn cost;\t\t\n\t}", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "public BigDecimal getCostPrice() {\n return costPrice;\n }", "public float getCost() {\r\n return defaultCost;\r\n }", "public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}", "public Float getAdditionalCost() {\r\n\t\treturn additionalCost;\r\n\t}", "public int getCost() {\n/* 69 */ return this.cost;\n/* */ }", "@Override\r\n\tpublic double getCost() {\n\t\treturn 0;\r\n\t}", "public String getCost() {\n\t\tString t = doc.get(\"cost\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "@Override\n public double getCost() {\n\t return 13;\n }", "public double getCost() {\n return quantity*ppu;\n\n }", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "public String getCost() {\n // Formats the cost amount into money format.\n NumberFormat n = NumberFormat.getCurrencyInstance(Locale.US);\n String s = n.format(Double.parseDouble(_cost));\n return s;\n }", "public int get_cost() {\n return (int)getUIntElement(offsetBits_cost(), 16);\n }", "public float totalCost() {\n\t\tttCost = 0;\n\t\tfor (int i = 0; i < itemsOrdered.size(); i++) {\n\t\t\tttCost += itemsOrdered.get(i).getCost();\n\t\t}\n\t\treturn ttCost;\n\t}", "public CostInfo getCostInfo();", "public int cost() {\n\t\treturn value;\n\t}", "@Override\n public Double getCost() {\n return new Double(0);\n }", "public double getBaseCost() {\n return BASE_COST;\n }", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "public double getProductCost() {\r\n\t\treturn (this.getPricePerUnit() * this.getNumUnits());\r\n\t}", "public double cost() {\n return roomType.cost() + COST;\n }", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "public float getCost() {\n if (categoryIdentifier == AppController.periodicCategoryIdentifier) {\n if (pCostEt.getText().toString().isEmpty())\n return -100;\n cost = Float.valueOf(pCostEt.getText().toString());\n } else {\n if (fCostEt.getText().toString().isEmpty())\n return -100;\n cost = Float.valueOf(fCostEt.getText().toString());\n }\n return cost;\n }" ]
[ "0.8835662", "0.87088805", "0.86829084", "0.86819255", "0.8578092", "0.85465354", "0.8526311", "0.85243034", "0.8519983", "0.8518225", "0.84916145", "0.84813815", "0.84813815", "0.84744316", "0.8473721", "0.84687895", "0.8455954", "0.8455954", "0.8434243", "0.8430465", "0.8427755", "0.8427755", "0.84161323", "0.84149903", "0.8390991", "0.83276993", "0.83189046", "0.8313299", "0.8281712", "0.82699", "0.825699", "0.82562906", "0.824874", "0.824874", "0.82462555", "0.82443756", "0.8232574", "0.8205352", "0.81844133", "0.81777036", "0.8165729", "0.8154626", "0.81338686", "0.8116593", "0.811226", "0.8072653", "0.803037", "0.8028027", "0.80089957", "0.8006322", "0.79681015", "0.79632396", "0.79632396", "0.79632396", "0.7897609", "0.78755164", "0.78667015", "0.78514045", "0.78514045", "0.78514045", "0.7850941", "0.7822554", "0.7789308", "0.77728057", "0.7766641", "0.77543163", "0.7753405", "0.7747383", "0.7738116", "0.7737691", "0.77368456", "0.77339226", "0.7721524", "0.7719641", "0.77183825", "0.7713247", "0.76990294", "0.7694144", "0.7686034", "0.7685261", "0.76755583", "0.76743037", "0.76681155", "0.7667123", "0.76351756", "0.7630191", "0.76053506", "0.7580019", "0.7563281", "0.7562529", "0.7547277", "0.75464576", "0.753974", "0.7514366", "0.7510333", "0.7492807", "0.74907774", "0.7473371", "0.7444579", "0.74424124" ]
0.88768697
0
Getter method for this.getTotalGifts
public int getTotalGifts() { return totalGifts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getShiftsAmount() {\n return shiftsAmount;\n }", "public int getOccupiedHours(){\n \t\treturn getOccupiedMinutes()/60;\n \t}", "public int getCalories() {\n return this.calories += ((this.protein * 4) + (this.carbohydrates * 4) + (this.fats * 9));\n }", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "public int getEmployeeShift() {\n return employeeShift;\n }", "public int getCalories() {\n return calories;\n }", "public Long getGiftamount() {\n return giftamount;\n }", "public int getCalories(){\r\n \tint retVal = this.calories;\r\n return retVal;\r\n }", "public PersonReviewData getTotals() {\n return totals;\n }", "public MonetaryAmount getTotalGross() {\n\t\treturn this.totalGross;\n\t}", "public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }", "public double getHoursPerWeek()\r\n {\r\n return hoursPerWeek;\r\n }", "public int getCalories () {\n\t\treturn this.calories;\n\t}", "public double getHoursWorked()\r\n\t{\r\n\treturn hoursWorked;\r\n\t}", "public MMDecimal getGrossAmount() {\r\n if (this.grossAmount == null) {\r\n return getSubTotalAmount();\r\n }\r\n return this.grossAmount;\r\n }", "public double getGrt() {\n\t\treturn _tempNoTiceShipMessage.getGrt();\n\t}", "public int getTotalSeats() {\n return totalSeats;\n }", "public int getTotDistance(){\r\n\t \treturn this.totDistance;\r\n\t }", "public BigDecimal getTotalGprs() {\r\n return totalGprs;\r\n }", "@JsonIgnore\n public int getMilitaryPoints() { return this.resources.getBattlePoints(); }", "private int getHours() {\n //-----------------------------------------------------------\n //Preconditions: none.\n //Postconditions: returns the value for the data field hours.\n //-----------------------------------------------------------\n\n return this.hours;\n\n }", "public int getTotalTravelTime() {\n return totalTravelTime;\n }", "public int getMontantTotal() {\n\t\treturn montantTotal;\n\t}", "protected int getTotalEnrolledMorning() {\n return getMorningRoster().size();\n }", "public int getHats() {\n return totalHats;\n }", "public int getHoursWorked() {\n\t\treturn this.hoursWrkd;\n\t}", "public double getSpreadTc() {\r\n return spreadTc;\r\n }", "public Integer getGestationaldays() {\n return gestationaldays;\n }", "public double getGesamtwert(){\n double total = 0;\n for (int i = 0; i < key; i++){\n total += getArtikel(i).getGesamt();\n }\n return total;\n }", "public int getHours() {\n return this.hours;\n }", "public double getHours(){\n return hours;\n }", "public Amount getTotalAmountSpent() {\n return this.totalAmountSpent;\n }", "public int getMilitaryPoints() {\n\t\treturn militaryPoints;\n\t}", "public String getRestaurantHours() {\n return mRestaurantHours;\n }", "public double getHours() {\r\n return hours;\r\n }", "public double getHours() {\r\n return hours;\r\n }", "public int getKiloWatts(){\n\treturn kiloWatts;\n}", "@java.lang.Override\n public int getBattlesLost() {\n return battlesLost_;\n }", "public Double getGrossWeight() {\n return weight + shippingBoxWeight;\n }", "public Number getMinutesPerDay()\r\n {\r\n return (m_minutesPerDay);\r\n }", "public double getCalories() {\n\t\tdouble mealCalories = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble calories = foodDetail.get(foodName).getCalories();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCalories += calories * portion;\n\t\t}\n\t\treturn mealCalories;\n\t}", "@java.lang.Override\n public int getBattlesLost() {\n return battlesLost_;\n }", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "public Integer getAccumulatedTimes() {\n return accumulatedTimes;\n }", "@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }", "public int getConvertirHoraMinutosStamina(){\n return totalMinutosStamina;\n }", "int getGravity() {\n return mTn.mGravity;\n }", "public double getPerHour() {\r\n return perHour;\r\n }", "public double getGrossSales() {\n return grossSales;\n }", "@JsonIgnore\r\n public int getPoints(){\r\n int lPoints = 0;\r\n for (CFantasyTeamByWeek lFantasyTeamByWeek : mFantasyTeamsByWeek){\r\n lPoints += lFantasyTeamByWeek.getPoints();\r\n }\r\n return lPoints;\r\n }", "public int getTotal () {\n return total;\n }", "public int getAantalWerkers()\n {\n return aantalWerkers;\n }", "@Override\n public double getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public Integer total() {\n return this.total;\n }", "@Override\n public int calculateBattleValue() {\n return calculateBattleValue(false, false);\n }", "public int getSettlementDays() {\n return _settlementDays;\n }", "public Number getMinutesPerWeek()\r\n {\r\n return m_minutesPerWeek;\r\n }", "public float getTcintmtotal()\r\n {\r\n return _tcintmtotal;\r\n }", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public int getTotalPassengers() {\n return totalPassengers;\n }", "public double getTotalHoursWorkedOnTimesheet() {\n\t\tdouble overallTotal = 0;\n\t\tfor (TimesheetRow ts : timesheetRowList) {\n\t\t\toverallTotal += ts.getTotalHours();\n\t\t}\n\t\treturn overallTotal;\n\t}", "public int getTotal() {\n return total[ke];\n }", "public double getTotal(){\n return total;\n }", "public ArrayList<RewardBean> getTotalCost() {\n/* 28 */ return this.totalCost;\n/* */ }", "@Override\r\n\tpublic double findHappiness(ArrayList<Gift> gifts) {\n\t\tdouble total_price = 0;\r\n\t\tdouble luxury_value = 0;\r\n\t\tfor(Gift gift : gifts) {\r\n\t\t\ttotal_price += gift.getPrice();\r\n\t\t\tif(gift.getType() == 1)\r\n\t\t\t\tluxury_value += gift.getValue();\r\n\t\t}\r\n\t\tdouble ans = Math.log(total_price - (double)this.getMaintenance() + 2*luxury_value);\r\n\t\treturn ans;\r\n\t}", "public int getTravelTime() {\r\n return travelTime;\r\n }", "public int getHour() {\n\t\tthis.hour = this.total % 12;\n\t\treturn this.hour;\n\t}", "public int getMinHours() {\r\n return minHours;\r\n }", "public java.lang.Object getEstimatedHours() {\n return estimatedHours;\n }", "public Integer getGestationalweeks() {\n return gestationalweeks;\n }", "@Override\r\n\tpublic int getTotal(Sticker sticker) {\n\t\treturn sst.selectOne(\"stickerns.getTotal\", sticker);\r\n\t}", "public double getTotal() {\n return Total;\n }", "@Override\n public int getBeats() {\n return this.sheet.size();\n }", "public int getHoursPerMonth(){\n\t\treturn this.hoursPerMonth;\n\t}", "public Coverage getTotal() {\n return this.total;\n }", "public int totalTime()\n {\n return departureTime - arrivalTime;\n }", "public int total() {\n return this.total;\n }", "public Double getCalories() {\n return product.getCalories() * weight / 100;\n }", "public Float getCellDowntime() {\n return cellDowntime;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Integer getPlusGoals() {\n return this.plusGoals;\n }", "public int[] getGct() {\n\t\t\treturn gct;\n\t\t}", "@Override\n\tpublic double calcSpendFuel() {\n\t\tdouble result = distance / (literFuel - fuelStart);\n\t\treturn result;\n\t}", "public HashMap<String, String> getCalculation(){\n return directionsList;\n }", "@ApiModelProperty(value = \"An offset of a billing/settlement date. The offset is expressed as number of days with regard to the start of the billing/settlement period.\")\n public Integer getDateShift() {\n return dateShift;\n }", "public int getTotal() {\n\t\treturn this.total;\n\t}", "public int getPoundsOfFoodNeeded() {\n\t\treturn this.poundsOfFoodNeeded;\n\t}", "public java.lang.Integer getTotalOverdueCount12M() {\n return totalOverdueCount12M;\n }", "public Integer getCarteWeek() {\n return carteWeek;\n }", "int getTotal(){\n\t\treturn this.orderTotal;\n\t}", "public int getGrowthTime(){\n return this.growthTime;\n }", "public Object getTotalTrophies() {\n\t\treturn this.totalTrophies;\n\t}", "public int getRevealed() { return revealedShips; }", "public int getDiceTotal()\r\n {\r\n return diceTotal;\r\n }", "public double getGrossWage(){\r\n\t return (salary + addings);\r\n }", "public int getRemainingSeats() {\n\t\treturn remainingSeats;\n\t}" ]
[ "0.7523494", "0.6061656", "0.6055731", "0.59939796", "0.59843636", "0.5957462", "0.59378064", "0.5896065", "0.5888337", "0.58850753", "0.5864277", "0.58513504", "0.582193", "0.5816496", "0.57880515", "0.573524", "0.56965214", "0.5693994", "0.5689878", "0.5686287", "0.5674526", "0.5668828", "0.56638205", "0.5661434", "0.5656309", "0.56525725", "0.56384444", "0.56253344", "0.5607421", "0.5606637", "0.55926317", "0.5584888", "0.5584659", "0.5569631", "0.5564532", "0.5564532", "0.5557702", "0.5556101", "0.55488545", "0.5546015", "0.55389374", "0.5529997", "0.55279344", "0.5511955", "0.5507289", "0.5501391", "0.55000144", "0.54959834", "0.5491697", "0.5481118", "0.5471386", "0.54703736", "0.5467888", "0.54579955", "0.5453021", "0.5450796", "0.5450487", "0.5447207", "0.5438082", "0.5431516", "0.5431516", "0.5425975", "0.5421535", "0.54083395", "0.5408159", "0.54059374", "0.5404661", "0.5404182", "0.5400506", "0.5400004", "0.539772", "0.53964424", "0.5391349", "0.5386072", "0.53796047", "0.5378733", "0.5378018", "0.5368726", "0.5368295", "0.5363635", "0.5357489", "0.53529334", "0.53529334", "0.53529334", "0.534962", "0.5349089", "0.53463227", "0.5341196", "0.5340062", "0.53383464", "0.5336234", "0.53360397", "0.5335134", "0.533297", "0.53276837", "0.53263074", "0.5325258", "0.5324881", "0.5324233", "0.53223354" ]
0.8499593
0
Checks if the table is empty
public boolean isEmpty() { return totalGifts == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized boolean fempty() {\n return table.isEmpty( ); // return if table is empty\n }", "public boolean isEmptyTable() {\r\n return emptyTable;\r\n }", "@Override\n public boolean isEmpty() throws DaoException {\n return isEmpty(TABLE_NAME);\n }", "public boolean checkEmptyTable(String table) {\n // Select query\n String selectQuery = \"SELECT count(*) FROM \" + table;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if (cursor != null) { cursor.moveToFirst(); }\n\n int countRows = cursor.getInt(0);\n\n return !(countRows > 0);\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tif (entityType2tableName.isEmpty())\n\t\t\treturn true;\n\t\t\n\t\t// the hard way \n\t\ttry {\n\t\t\tStatement st = connection.createStatement(\n\t\t\t\t\tResultSet.TYPE_SCROLL_INSENSITIVE,\n\t\t ResultSet.CONCUR_READ_ONLY);\n\t\t\t\n\t\t\tfor (String tableName: entityType2tableName.values()) {\n\t\t\t\t//ResultSet set = st.executeQuery(\"SELECT * FROM \"+tableName+\";\");\n\t\t\t\t\n\t\t\t\tResultSet set = st.executeQuery(\"SELECT * FROM \"+tableName+\" LIMIT 1\");\n\t\t\t\t\n\t\t\t\tif (!set.next())\n\t\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\t\t} catch (SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tthrow new RuntimeException(\"Error while checking if the table is empty\",e1);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isEmpty(String tableName) {\n\n boolean empty = true;\n\n SQLiteDatabase db = DatabaseManager.getInstance().open();\n\n String count = \"SELECT count(*) FROM \" + tableName;\n\n Cursor cursor = db.rawQuery(count, null);\n cursor.moveToFirst();\n\n if (cursor.getInt(0) > 0)\n empty = false;\n\n DatabaseManager.getInstance().close();\n\n return empty;\n }", "public static boolean testTableClear() {\r\n table.clear();\r\n if (table.size() != 0)\r\n return false;\r\n return true;\r\n }", "public boolean isEmptyTable() {\r\n synchronized (lockRoutingTable) {\r\n return this.routingEntries.isEmpty();\r\n }\r\n }", "public boolean isEmpty (){\n\t\treturn hashTableSize == 0;\n\t}", "public boolean fillEmptyTable() {\n if(isEmpty()) {\n System.err.println(\"The queue is empty! All of the walk-ins have been seated!\");\n return false;\n }\n else {\n WalkIn out = first.getData();\n first = first.getNextNode();\n if(first == null) last = null;\n size--;\n System.out.println(\"Here is your table \" + out.getNames() + \".\" \n + \" You've been seated at \" + out.getTime() + \".\");\n return true;\n }\n }", "public synchronized boolean fempty() {\n\t\treturn table.isEmpty();//if the file table is empty, return to call the starting format\n\t}", "public Integer checkEmpty()\n {\n return coronaRepository.checkEmptyTable();\n }", "public boolean isEmpty () {\n DBHandler handler = new DBHandler(this,null,null,1);\n Cursor c = handler.getEvent();\n String print = \"\";\n c.moveToFirst();\n\n do {\n } while (c.moveToNext());\n if(c.getCount() == 0) return true;\n else return false;\n }", "private boolean isTableEmpty(Uri tableUri) {\n\t\tif (null == mContext) {\n\t\t\tLogUtils.e(TAG, \"mContext object is null in isTableEmpty method \");\n\t\t\treturn false;\n\t\t}\n\t\tContentResolver contentResolver = mContext.getContentResolver();\n\t\tif (null == contentResolver) {\n\t\t\tLogUtils.e(TAG,\n\t\t\t\t\t\"contentResolver object is null in isTableEmpty method \");\n\t\t\treturn false;\n\t\t}\n\t\tCursor mCursorObj = contentResolver.query(tableUri, null, null, null,\n\t\t\t\tnull);\n\t\tif (null != mCursorObj && mCursorObj.getCount() == 0) {\n\t\t\t// zero rows.\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void emptyTable()\r\n {\r\n final int lastRow = table.getRowCount();\r\n if (lastRow != 0)\r\n {\r\n ((JarModel) table.getModel()).fireTableRowsDeleted(0, lastRow - 1);\r\n }\r\n }", "private boolean isEmpty(){\n return cellSize == 0;\n }", "public boolean isEmpty() {\r\n\t\treturn this.records.isEmpty();\r\n\t}", "public boolean empty() {\n return data.size() == 0;\n }", "public boolean isEmpty() throws SQLException {\n/* 197 */ return (isBeforeFirst() && isAfterLast());\n/* */ }", "@Override\n public boolean isEmpty() {\n return this.count() == 0;\n }", "public boolean isEmpty() \n { \n return numberOfEntries == 0;\n }", "@Test\n\tpublic void emptyTRDbTest() {\n\t\tDBI dbi = TEST_ENVIRONMENT.getDbi();\n\t\tTradeRequestDao tradeRequestDao = dbi.onDemand(TradeRequestDao.class);\n\t\tint expected = 0;\n\t\tint actual = tradeRequestDao.getAll().size();\n\t\tAssert.assertEquals(\"User table should be empty to start\", expected, actual);\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn data.size() == 0;\r\n\t}", "private boolean isEmpty() { return getSize() == 0; }", "public static boolean emptyTempTables() {\n ArrayList temp_tables = new ArrayList();\n // Since the mrblock depends on mrfile it actually\n // could be skipped but this way the program will also\n // check if the tables exist and give an error back if any doesn't.\n temp_tables.add( \"mrfile\" );\n temp_tables.add( \"mrblock\" );\n boolean status = sql_epiII.emptyTables( temp_tables, false );\n return status;\n }", "public boolean isSetWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WHOLETBL$2) != 0;\n }\n }", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "public boolean is_empty() \n\t{\n\t\tif (this.nb_disk == 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean is_empty() {\n\t\treturn false;\n\t}", "public boolean tableHasRecords(String tableName) {\n\n int count = 0;\n\n try{\n PreparedStatement query = conn.prepareStatement(\"SELECT COUNT(id) AS 'count' FROM \" + tableName + \";\");\n ResultSet results = query.executeQuery();\n\n while (results.next()){\n count = results.getInt(\"count\");\n } \n\n if(count > 0){\n return true;\n }\n\n } catch (SQLException e){\n e.printStackTrace();\n }\n\n return false;\n }", "public boolean empty() { \t \n\t\t return size <= 0;\t \n }", "public boolean isEmpty() {\n return cell == null;\n }", "public boolean isEmpty() {\n\t\tStatement stmt = null;\n\t\tResultSet rs = null;\n\t\tint count = 0;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// without features we are not able to operate correctly\n\t\t\trs = stmt.executeQuery(\"SELECT COUNT(Id) FROM Features;\");\n\t\t\tcount = rs.getInt(1);\n\n\t\t\tstmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\t// for now, do not handle read exceptions, b/c exception here also indicates the failure to get features\n\t\t}\n\n\t\treturn (0 == count);\n\n\t}", "public boolean empty() {\r\n return size == 0;\r\n }", "private boolean isEmpty() {\n return dataSize == 0;\n }", "public final boolean empty() {\n return data == null;\n }", "@Override\n\tpublic void emptyTable() {\n\t\tresTable.deleteAll();\n\t}", "private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean isEmpty(){\r\n\t\treturn size() == 0;\r\n\t}", "boolean isEmpty(){\n\treturn size() == 0;\n }", "public boolean isEmpty() {\n return qSize == 0;\n }", "public boolean empty() {\n return size == 0;\n }", "@Test\n public void testTableFactoryEmpty() {\n TableController tableController = tableFactory.getTableController();\n Map<Integer, ArrayList<Table>> tableMap = tableController.getTableMap();\n // loop through the map, check that each list is empty\n for (ArrayList<Table> list : tableMap.values()) {\n assertEquals(0, list.size());\n }\n }", "@Test\n\tpublic void assertNoEmptyCell()\n\t{\n\t\terrorMessage = \"The test failed as the table has a empty cell\";\n\t\tList<WebElement> allRows = dashboardPage.getActualRows();\n\t\tfor (WebElement row : allRows) {\n\t\t\t List<WebElement> cells = row.findElements(By.tagName(\"td\"));\n\t\t\t for (WebElement cell : cells) {\n\t\t\t String cellContent = cell.getText();\n\t\t\t boolean emptyCell = cellContent.isEmpty();\n\t\t\t Assert.assertFalse(emptyCell, errorMessage);\n\t\t\t }\n\t\t}\n\t}", "public boolean isEmpty() {\n return data.isEmpty();\n }", "private boolean isEmpty() {\n return (size == 0);\n }", "public boolean isClassEmpty()\r\n {\r\n return(number_of_entries == 0);\r\n }", "public boolean empty() {\n return size <= 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn(size() == 0);\n\t}", "public boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}", "@Override\n public boolean isEmpty() {\n return this.size==0;\n }", "public boolean isEmpty() {\n \t\treturn size == 0;\n \n \t}", "@Override\n public boolean isEmpty() {\n return _size == 0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}", "public boolean isEmpty() {\n\t return size() == 0;\n\t }", "public boolean isEmpty( )\n {\n return header.next == null;\n }", "public boolean isEmpty(){\n return(numItems == 0);\n }", "@Override\n public boolean isEmpty() {\n return size()==0;\n }", "@Override\n public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean statsFilled() throws SQLException {\n\t\ttry {\n\t\t\tif (getStats().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}", "public boolean empty() {\n\n\t\treturn header.next == null;\n\t\t// Running time is θ(1) because it's a constant operation.\n\n\t}", "public boolean is_T_EMPTY() {\n return (this.t.get_T().length() == 0) ? true : false;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}", "public boolean isEmpty() {\n return header.next == null;\n }", "public boolean isEmpty() { return count == 0; }", "public boolean isEmpty() {\r\n return numberOfKeys == 0;\r\n }", "public boolean isEmpty() {\n if (getData() == null) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty() {\r\n return lastCursor - firstCursor == 1;\r\n }", "public boolean isEmpty() {\n \treturn size == 0;\n }", "public boolean isEmpty()\n {\n return count==0;\n }", "public boolean isEmpty() {\n\t\treturn count==0;\n\t}", "public boolean isEmpty(){\n return this.size()==0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "public boolean isEmpty()\n {\n return this.size == 0;\n }", "public boolean isEmpty(){\r\n return currentSize == 0;\r\n }", "boolean isEmpty() {\n return mapped_vms.isEmpty();\n }", "public boolean isEmpty() {\n return count == 0;\n }", "public boolean isEmpty() {\n return count == 0;\n }", "public boolean isEmpty() {\n return count == 0;\n }", "public boolean isEmpty() \n\t {\n\t\t return (size()==0);\n\t }", "public boolean isEmpty() {\n return (size == 0);\n\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn (t==1);\r\n\t}", "public boolean empty()\r\n\t{\r\n\t\treturn currentSize == 0;\r\n\t}", "public boolean isEmpty() {\n\t return size == 0;\n\t }", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty(){\r\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn(this.size == 0);\n\t}", "@Override\n public boolean isEmpty(){\n return (count == 0);\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty() {\r\n \r\n return size == 0;\r\n }", "@Override\n public boolean IsEmpty() {\n if (tamano == 0) {\n return true;\n } else {\n return false;\n }//FIn del else\n }", "public boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn count == 0;\r\n\t}", "public boolean isEmpty() {\n \t return size == 0;\n }" ]
[ "0.8191626", "0.81613404", "0.8042709", "0.8035666", "0.7950587", "0.75940615", "0.7487544", "0.74472684", "0.7259833", "0.725634", "0.7226234", "0.71209455", "0.71172285", "0.7115046", "0.7112243", "0.6946711", "0.6796359", "0.6786917", "0.67758113", "0.67232406", "0.67216736", "0.6678288", "0.6640677", "0.66174245", "0.66120034", "0.6604856", "0.65968156", "0.6593073", "0.65850717", "0.65801436", "0.65774435", "0.65755445", "0.6566274", "0.6558139", "0.65502524", "0.6545637", "0.6543828", "0.6521415", "0.6516671", "0.6513842", "0.65113163", "0.6504526", "0.650336", "0.6500179", "0.6497326", "0.6488883", "0.64844084", "0.6484308", "0.6476379", "0.6469409", "0.6463605", "0.64533365", "0.64490896", "0.6448582", "0.6438838", "0.6435366", "0.6431114", "0.64268136", "0.64245635", "0.64232033", "0.64196897", "0.64195585", "0.641649", "0.6415796", "0.6413387", "0.64119726", "0.6408671", "0.64071614", "0.64054894", "0.6404915", "0.6401438", "0.6400095", "0.63998044", "0.63947135", "0.6393642", "0.6393416", "0.63917124", "0.6389719", "0.6389719", "0.6389719", "0.6385426", "0.6383816", "0.63829875", "0.63829875", "0.63829875", "0.63829875", "0.63829875", "0.6378371", "0.6375336", "0.63725454", "0.63708115", "0.63669074", "0.63662344", "0.63657045", "0.63637453", "0.6362112", "0.6360788", "0.63606817", "0.6360432", "0.63604105", "0.6360278" ]
0.0
-1
Creates a new instance of DefaultApplicationContextFactory
public MPSApplicationContextFactory() { this.encodingManager = new EncodingManager(); protocolBuilder = new NamedProtocolBuilder(); // Register the known protocols with the builder. ProtocolRegistry registry = new ProtocolRegistry(); registry.register(protocolBuilder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SpringApplicationContext() {}", "public static ApplicationContext getInstance() {\r\n\t\tsynchronized (SpringApplicationContextProvider.class) {\r\n\t\tif (applicationContext == null) {\r\n\t\t\tapplicationContext = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\tnew String[] { \"META-INF/app-context.xml\" });\r\n\t\t}\r\n\t\t}\r\n\t\treturn (ApplicationContext) applicationContext;\r\n\t}", "private SpringApplicationContextProvider() {\r\n\t}", "private static BeanFactory getBeanFactory() {\n\t\tBeanFactory factory = new ClassPathXmlApplicationContext(\"withauto/beans.xml\");\n\t\treturn factory;\n\t}", "public interface FakeApplicationFactory {\n\n Application buildApplication(FakeApplicationFactoryArgs args);\n\n}", "public static WorkspaceFactory init() {\n\t\ttry {\n\t\t\tWorkspaceFactory theWorkspaceFactory = (WorkspaceFactory)EPackage.Registry.INSTANCE.getEFactory(WorkspacePackage.eNS_URI);\n\t\t\tif (theWorkspaceFactory != null) {\n\t\t\t\treturn theWorkspaceFactory;\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 WorkspaceFactoryImpl();\n\t}", "@StartStep(localName=\"default-xml-factory\", before={\"xml-factory-lifecycle\"})\n public static void startDefaultXmlFactory(LifecycleContext context)\n {\n // add the default xml parser factory step.\n if( getSaxParserFactoryFactory(DEFAULT_SAX_PARSER_FACTORY_NAME) == null ) {\n saxParserFactoryCreated = true;\n putSaxParserFactoryFactory(DEFAULT_SAX_PARSER_FACTORY_NAME, new DefaultSaxParserFactoryFactory());\n }\n\n // add the default xml transformer factory.\n if( getTransformerFactoryFactory(DEFAULT_TRANSFORMER_FACTORY_NAME) == null ) {\n transformerFactoryCreated = true;\n putTransformerFactoryFactory(DEFAULT_TRANSFORMER_FACTORY_NAME, new DefaultTransformerFactoryFactory());\n }\n\n // add the default document builder factory\n if( getDocumentBuilderFactory(DEFAULT_DOCUMENT_BUILDER_FACTORY_NAME) == null ) {\n documentBuilderFactoryCreated = true;\n putDocumentBuilderFactoryFactory(DEFAULT_DOCUMENT_BUILDER_FACTORY_NAME, new DefaultDocumentBuilderFactoryFactory());\n }\n\n // add the default xml transformer factory.\n if( getTransformerFactoryFactory(XALAN_FACTORY_NAME) == null && factoryClassExists(XALAN_FACTORY_NAME, XALAN_FACTORY_CLASS_NAME) ) {\n xalanFactoryCreated = true;\n putTransformerFactoryFactory(XALAN_FACTORY_NAME, new BasicTransformerFactoryFactory(XALAN_FACTORY_CLASS_NAME));\n }\n\n // add the default xml transformer factory.\n if( getTransformerFactoryFactory(XSLTC_FACTORY_NAME) == null && factoryClassExists(XSLTC_FACTORY_NAME, XSLTC_FACTORY_CLASS_NAME) ) {\n xsltcFactoryCreated = true;\n putTransformerFactoryFactory(XSLTC_FACTORY_NAME, new BasicTransformerFactoryFactory(XSLTC_FACTORY_CLASS_NAME));\n }\n\n // add the default xml transformer factory.\n if( getTransformerFactoryFactory(SAXON_FACTORY_NAME) == null && factoryClassExists(SAXON_FACTORY_NAME, SAXON_FACTORY_CLASS_NAME) ) {\n saxonFactoryCreated = true;\n putTransformerFactoryFactory(SAXON_FACTORY_NAME, new BasicTransformerFactoryFactory(SAXON_FACTORY_CLASS_NAME));\n }\n\n if( getTransformerFactoryFactory(JOOST_FACTORY_NAME) == null && factoryClassExists(JOOST_FACTORY_NAME, JOOST_FACTORY_CLASS_NAME) ) {\n joostFactoryCreated = true;\n putTransformerFactoryFactory(JOOST_FACTORY_NAME, new BasicTransformerFactoryFactory(JOOST_FACTORY_CLASS_NAME));\n }\n }", "public static ServiceFactory init() {\n\t\ttry {\n\t\t\tServiceFactory theServiceFactory = (ServiceFactory)EPackage.Registry.INSTANCE.getEFactory(ServicePackage.eNS_URI);\n\t\t\tif (theServiceFactory != null) {\n\t\t\t\treturn theServiceFactory;\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 ServiceFactoryImpl();\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 DefaultApplication() {\n\t}", "public static Service newInstance() {\n return newInstance(DEFAULT_PROVIDER_NAME);\n }", "private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}", "private DeploymentFactory initFactory() {\n return new SunDeploymentFactory();\n }", "public static GoogleanalyticsFactory init() {\n\t\ttry {\n\t\t\tGoogleanalyticsFactory theGoogleanalyticsFactory = (GoogleanalyticsFactory)EPackage.Registry.INSTANCE.getEFactory(GoogleanalyticsPackage.eNS_URI);\n\t\t\tif (theGoogleanalyticsFactory != null) {\n\t\t\t\treturn theGoogleanalyticsFactory;\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 GoogleanalyticsFactoryImpl();\n\t}", "@Override\r\n public InitialContextFactory createInitialContextFactory(Hashtable<?, ?> environment)\r\n {\r\n if (activated == null && environment != null) {\r\n Object icf = environment.get(Context.INITIAL_CONTEXT_FACTORY);\r\n if (icf != null) {\r\n Class<?> icfClass;\r\n if (icf instanceof Class) {\r\n icfClass = (Class<?>) icf;\r\n } else if (icf instanceof String) {\r\n icfClass = resolveClassName((String) icf, getClass().getClassLoader());\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid value type for environment key [\" +\r\n Context.INITIAL_CONTEXT_FACTORY + \"]: \" + icf.getClass().getName());\r\n }\r\n if (!InitialContextFactory.class.isAssignableFrom(icfClass)) {\r\n throw new IllegalArgumentException(\r\n \"Specified class does not implement [\" + InitialContextFactory.class.getName() + \"]: \" + icf);\r\n }\r\n try {\r\n return (InitialContextFactory) icfClass.newInstance();\r\n } catch (Throwable ex) {\r\n throw new IllegalStateException(\"Cannot instantiate specified InitialContextFactory: \" + icf, ex);\r\n }\r\n }\r\n }\r\n\r\n // Default case...\r\n return new InitialContextFactory()\r\n {\r\n @Override\r\n @SuppressWarnings(\"unchecked\")\r\n public Context getInitialContext(Hashtable<?, ?> environment)\r\n {\r\n return new SimpleNamingContext(\"\", boundObjects, (Hashtable<String, Object>) environment);\r\n }\r\n };\r\n }", "public static EWorkflowFactory init() {\n\t\ttry {\n\t\t\tEWorkflowFactory theEWorkflowFactory = (EWorkflowFactory)EPackage.Registry.INSTANCE.getEFactory(EWorkflowPackage.eNS_URI);\n\t\t\tif (theEWorkflowFactory != null) {\n\t\t\t\treturn theEWorkflowFactory;\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 EWorkflowFactoryImpl();\n\t}", "@Produces @IWSBean\n public ServiceFactory produceServiceFactory() {\n return new ServiceFactory(iwsEntityManager, notifications, settings);\n }", "public static ServiceFactory getInstance(){\n\t\tif(instance == null)\n\t\t\tinstance = new ServiceFactory();\n\t\treturn instance;\n\t}", "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}", "public static HomeFactory getDefault() {\n if (Utilities.isWindows()) {\n return getDefaultWindows();\n } else if (Utilities.isMac()) {\n return getDefaultMac();\n } else {\n return getDefaultUx();\n }\n }", "public static CoreFactory init() {\n\t\ttry {\n\t\t\tCoreFactory theCoreFactory = (CoreFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://m2ling.org/core/0.1\"); \n\t\t\tif (theCoreFactory != null) {\n\t\t\t\treturn theCoreFactory;\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 CoreFactoryImpl();\n\t}", "public InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment) {\n\t\tif (activated == null && environment != null) {\n\t\t\tObject icf = environment.get(Context.INITIAL_CONTEXT_FACTORY);\n\t\t\tif (icf != null) {\n\t\t\t\tClass<?> icfClass = null;\n\t\t\t\tif (icf instanceof Class) {\n\t\t\t\t\ticfClass = (Class<?>) icf;\n\t\t\t\t}\n\t\t\t\telse if (icf instanceof String) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ticfClass = Classes.getClass(getClass().getClassLoader(), (String)icf);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Invalid class \" + icf, e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Invalid value type for environment key [\" +\n\t\t\t\t\t\t\tContext.INITIAL_CONTEXT_FACTORY + \"]: \" + icf.getClass().getName());\n\t\t\t\t}\n\t\t\t\tif (!InitialContextFactory.class.isAssignableFrom(icfClass)) {\n\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\"Specified class does not implement [\" + InitialContextFactory.class.getName() + \"]: \" + icf);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\treturn (InitialContextFactory) icfClass.newInstance();\n\t\t\t\t}\n\t\t\t\tcatch (Throwable ex) {\n\t\t\t\t\tIllegalStateException ise =\n\t\t\t\t\t\t\tnew IllegalStateException(\"Cannot instantiate specified InitialContextFactory: \" + icf);\n\t\t\t\t\tise.initCause(ex);\n\t\t\t\t\tthrow ise;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Default case...\n\t\treturn new InitialContextFactory() {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tpublic Context getInitialContext(Hashtable<?,?> environment) {\n\t\t\t\treturn new SimpleNamingContext(\"\", boundObjects, (Hashtable<String, Object>) environment);\n\t\t\t}\n\t\t};\n\t}", "public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\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 BuiltinFactoryImpl();\n\t}", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "private NettyServerFactory getWebServerFactory() {\n String[] beanNames = getBeanFactory()\n .getBeanNamesForType(NettyServerFactory.class);\n if (beanNames.length == 0) {\n throw new ApplicationContextException(\n \"Unable to start NettyServerApplicationContext due to missing \"\n + \"NettyServerFactory bean.\");\n }\n if (beanNames.length > 1) {\n throw new ApplicationContextException(\n \"Unable to start NettyServerApplicationContext due to multiple \"\n + \"NettyServerFactory beans : \"\n + StringUtils.arrayToCommaDelimitedString(beanNames));\n }\n return getBeanFactory().getBean(beanNames[0], NettyServerFactory.class);\n }", "public OSGiInitialContextFactory() {\n\n // Get the old property value\n String handlerPkgs = System.getProperty(HANDLER_PKGS_PROP);\n\n StringBuilder sb = new StringBuilder();\n\n // Add the new package for additionnal support\n if (handlerPkgs != null) {\n sb.append(handlerPkgs);\n sb.append(\"|\");\n }\n\n sb.append(\"org.ow2.easybeans.osgi.protocol\");\n\n // Set back the property with the new value\n System.setProperty(HANDLER_PKGS_PROP, sb.toString());\n\n }", "public final static BALFactory getDefaultFactory()\n {\n return BALFactory.Standard;\n }", "protected abstract ApplicationContext createApplicationContextImpl(\n MarinerRequestContext requestContext);", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public static Smart_officeFactory init() {\n\t\ttry {\n\t\t\tSmart_officeFactory theSmart_officeFactory = (Smart_officeFactory)EPackage.Registry.INSTANCE.getEFactory(Smart_officePackage.eNS_URI);\n\t\t\tif (theSmart_officeFactory != null) {\n\t\t\t\treturn theSmart_officeFactory;\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 Smart_officeFactoryImpl();\n\t}", "public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }", "public static QuizFactory getFactoryInstance(){\n\t\tif (defQuizFactory == null)\n\t\t\tdefQuizFactory = new DefaultQuizFactory();\n\t\t\n\t\treturn defQuizFactory;\n\t}", "public static MystFactory init()\r\n {\r\n try\r\n {\r\n MystFactory theMystFactory = (MystFactory)EPackage.Registry.INSTANCE.getEFactory(MystPackage.eNS_URI);\r\n if (theMystFactory != null)\r\n {\r\n return theMystFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new MystFactoryImpl();\r\n }", "public static ProyectoFactory init() {\r\n\t\ttry {\r\n\t\t\tProyectoFactory theProyectoFactory = (ProyectoFactory)EPackage.Registry.INSTANCE.getEFactory(ProyectoPackage.eNS_URI);\r\n\t\t\tif (theProyectoFactory != null) {\r\n\t\t\t\treturn theProyectoFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new ProyectoFactoryImpl();\r\n\t}", "public Context getApplicationContext();", "public static BromiumFactory init()\n {\n try\n {\n BromiumFactory theBromiumFactory = (BromiumFactory)EPackage.Registry.INSTANCE.getEFactory(BromiumPackage.eNS_URI);\n if (theBromiumFactory != null)\n {\n return theBromiumFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new BromiumFactoryImpl();\n }", "public static ProyectFactory init() {\r\n\t\ttry {\r\n\t\t\tProyectFactory theProyectFactory = (ProyectFactory)EPackage.Registry.INSTANCE.getEFactory(ProyectPackage.eNS_URI);\r\n\t\t\tif (theProyectFactory != null) {\r\n\t\t\t\treturn theProyectFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new ProyectFactoryImpl();\r\n\t}", "public static AndroidFactory init() {\n\t\ttry {\n\t\t\tAndroidFactory theAndroidFactory = (AndroidFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eyal.fr/android\"); \n\t\t\tif (theAndroidFactory != null) {\n\t\t\t\treturn theAndroidFactory;\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 AndroidFactoryImpl();\n\t}", "public static ValidatorFactory getDefault() {\n return DEFAULT_FACTORY;\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 static ProjectFactory init() {\r\n\t\ttry {\r\n\t\t\tProjectFactory theProjectFactory = (ProjectFactory)EPackage.Registry.INSTANCE.getEFactory(ProjectPackage.eNS_URI);\r\n\t\t\tif (theProjectFactory != null) {\r\n\t\t\t\treturn theProjectFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new ProjectFactoryImpl();\r\n\t}", "public static ClazzDslFactory init()\n {\n try\n {\n ClazzDslFactory theClazzDslFactory = (ClazzDslFactory)EPackage.Registry.INSTANCE.getEFactory(ClazzDslPackage.eNS_URI);\n if (theClazzDslFactory != null)\n {\n return theClazzDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new ClazzDslFactoryImpl();\n }", "public static MyDslFactory init()\n {\n try\n {\n MyDslFactory theMyDslFactory = (MyDslFactory)EPackage.Registry.INSTANCE.getEFactory(MyDslPackage.eNS_URI);\n if (theMyDslFactory != null)\n {\n return theMyDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new MyDslFactoryImpl();\n }", "public AppEngineDataStoreFactory build() {\n return new AppEngineDataStoreFactory(this);\n }", "protected WebApplication newApplication() {\n return new DummyWebApplication();\n }", "public static EcoreFactory init() {\n try {\n EcoreFactory theEcoreFactory = (EcoreFactory) EPackage.Registry.INSTANCE.getEFactory(EcorePackage.eNS_URI);\n if (theEcoreFactory != null) {\n return theEcoreFactory;\n }\n }\n catch (Exception exception) {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new EcoreFactoryImpl();\n }", "static public ContentHandleFactory newFactory(JAXBContext context, Class<?>... pojoClasses) {\n if (context == null || pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(context, pojoClasses);\n }", "private ProjectConfigurationFactory()\n {}", "public static Factory factory() {\n return ext_h::new;\n }", "public CoreFactoryImpl() {\n\t\tsuper();\n\t}", "public static Context getApplicationContext() { return mApplicationContext; }", "public static GpflFactory init()\n {\n try\n {\n GpflFactory theGpflFactory = (GpflFactory)EPackage.Registry.INSTANCE.getEFactory(GpflPackage.eNS_URI);\n if (theGpflFactory != null)\n {\n return theGpflFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new GpflFactoryImpl();\n }", "private ServiceFactory() {}", "public SecurityManager newDefaultBean() {\n return (SecurityManager) InnerMiscUtil.newDefaultBean(BeanServiceConstants.securityManagerServiceName, SecurityManager.class);\n }", "private PSStartServerFactory() {\n if(instance == null)\n instance = new PSStartServerFactory();\n }", "public static SapFactory init() {\n try {\n SapFactory theSapFactory = (SapFactory)EPackage.Registry.INSTANCE.getEFactory(SapPackage.eNS_URI);\n if (theSapFactory != null) {\n return theSapFactory;\n }\n }\n catch (Exception exception) {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SapFactoryImpl();\n }", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "public DefaultKernel( KernelContext context ) throws KernelException\n {\n if( context == null ) \n throw new NullPointerException( \"context\" );\n\n m_context = context;\n m_state = new State( this );\n\n setState( INITIALIZING );\n\n try\n {\n m_model = context.getApplicationModel();\n }\n catch( Throwable e )\n {\n final String error = \n \"Cannot create application runtime.\";\n throw new KernelError( error, e );\n }\n\n if( getLogger().isDebugEnabled() )\n {\n m_context.getLogger().debug( \"kernel established\" );\n }\n setState( INITIALIZED );\n }", "@Bean\n public TomcatServletWebServerFactory servletWebServerFactory() {\n return new TomcatServletWebServerFactory() {\n\n @Override\n protected void prepareContext(Host host,\n ServletContextInitializer[] initializers) {\n super.prepareContext(host, initializers);\n StandardContext child = new StandardContext();\n child.addLifecycleListener(new Tomcat.FixContextListener());\n child.setPath(\"/cloudfoundryapplication\");\n ServletContainerInitializer initializer = getServletContextInitializer(\n getContextPath());\n child.addServletContainerInitializer(initializer, Collections.emptySet());\n child.setCrossContext(true);\n host.addChild(child);\n }\n\n };\n }", "public static TemplateFactory init()\n {\n try\n {\n TemplateFactory theTemplateFactory = (TemplateFactory)EPackage.Registry.INSTANCE.getEFactory(TemplatePackage.eNS_URI);\n if (theTemplateFactory != null)\n {\n return theTemplateFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new TemplateFactoryImpl();\n }", "public static WdlFactory init() {\n\t\ttry {\n\t\t\tWdlFactory theWdlFactory = (WdlFactory)EPackage.Registry.INSTANCE.getEFactory(WdlPackage.eNS_URI);\n\t\t\tif (theWdlFactory != null) {\n\t\t\t\treturn theWdlFactory;\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 WdlFactoryImpl();\n\t}", "public ServiceFactoryImpl() {\n\t\tsuper();\n\t}", "public ApplicationContext createApplicationContext(\n MarinerRequestContext requestContext)\n throws RepositoryException {\n\n ApplicationContext applicationContext = null;\n\n // Get the Volantis bean.\n Volantis volantisBean = Volantis.getInstance();\n if (volantisBean == null) {\n throw new IllegalStateException\n (\"Volantis bean has not been initialised\");\n }\n\n // Resolve the device (once for this session).\n InternalDevice device = resolveDevice(\n volantisBean,\n requestContext);\n\n // Create the application context\n applicationContext = createApplicationContextImpl(requestContext);\n\n // Initialize the application context.\n initializeApplicationContext(requestContext, volantisBean,\n applicationContext, device);\n\n return applicationContext;\n }", "public synchronized static SessionFactory createSessionFactory() {\r\n\r\n if (sessionFactory == null) {\r\n LOG.debug(MODULE + \"in createSessionFactory\");\r\n sessionFactory = new Configuration().configure().buildSessionFactory();\r\n// ApplicationContext appcontext = ApplicationContextProvider.getApplicationContext();\r\n// sessionFactory = (SessionFactory) appcontext.getBean(\"sessionFactory\");\r\n LOG.debug(MODULE + \"sessionFactory created\");\r\n }\r\n\r\n return sessionFactory;\r\n }", "public static UseCaseDslFactory init()\n {\n try\n {\n UseCaseDslFactory theUseCaseDslFactory = (UseCaseDslFactory)EPackage.Registry.INSTANCE.getEFactory(UseCaseDslPackage.eNS_URI);\n if (theUseCaseDslFactory != null)\n {\n return theUseCaseDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new UseCaseDslFactoryImpl();\n }", "public static MmapFactory init() {\n\t\ttry {\n\t\t\tMmapFactory theMmapFactory = (MmapFactory) EPackage.Registry.INSTANCE.getEFactory(MmapPackage.eNS_URI);\n\t\t\tif (theMmapFactory != null) {\n\t\t\t\treturn theMmapFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new MmapFactoryImpl();\n\t}", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "SpringFactoryInstance(SpringFactory factory, String id, ConfigMap properties)\r\n {\r\n super(factory, id, properties);\r\n }", "public static CommandsFactoryImpl init() {\r\n\t\ttry {\r\n\t\t\tCommandsFactoryImpl theCommandsFactory = (CommandsFactoryImpl) EPackage.Registry.INSTANCE\r\n\t\t\t\t\t.getEFactory(CommandsPackageImpl.eNS_URI);\r\n\t\t\tif (theCommandsFactory != null) {\r\n\t\t\t\treturn theCommandsFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new CommandsFactoryImpl();\r\n\t}", "public static AugmentedfsmFactory init() {\n\t\ttry {\n\t\t\tAugmentedfsmFactory theAugmentedfsmFactory = (AugmentedfsmFactory)EPackage.Registry.INSTANCE.getEFactory(AugmentedfsmPackage.eNS_URI);\n\t\t\tif (theAugmentedfsmFactory != null) {\n\t\t\t\treturn theAugmentedfsmFactory;\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 AugmentedfsmFactoryImpl();\n\t}", "public static ConfigurableApplicationContext create(String[] profiles) {\n AnnotationConfigApplicationContext bootstrapContext = new AnnotationConfigApplicationContext();\n\n // Get bootstrap environment and add to a composite property source\n ConfigurableEnvironment bootstrapEnvironment = getBootstrapEnvironment(bootstrapContext, profiles);\n MutablePropertySources bootstrapPropertySources = bootstrapEnvironment.getPropertySources();\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME);\n bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME);\n CompositePropertySource bootstrapPropertySource = new CompositePropertySource(\"bootstrap\");\n bootstrapPropertySources.forEach(bootstrapPropertySource::addPropertySource);\n bootstrapContext.getEnvironment().getPropertySources().addLast(bootstrapPropertySource);\n\n ClassLoader classLoader = bootstrapContext.getClassLoader();\n List<String> names = SpringFactoriesLoader\n .loadFactoryNames(BootstrapConfiguration.class, classLoader);\n List<Class<?>> sources = new ArrayList<>();\n for (String name : names) {\n sources.add(ClassUtils.resolveClassName(name, classLoader));\n }\n AnnotationAwareOrderComparator.sort(sources);\n\n bootstrapContext.setEnvironment(bootstrapEnvironment);\n sources.forEach(bootstrapContext::register);\n bootstrapContext.refresh();\n return bootstrapContext;\n }", "public static VersionFactory getInstance() {\n\t\treturn SingletonHolder.versionFactory;\n\t}", "public static GenericBootstrap byDefaultProvider() {\n return new GenericBootstrapImpl();\n }", "public static MultihomePlainSocketFactory getSocketFactory()\n/* */ {\n/* 69 */ return DEFAULT_FACTORY;\n/* */ }", "public static BasicSafetyCaseFactory init() {\n\t\ttry {\n\t\t\tBasicSafetyCaseFactory theBasicSafetyCaseFactory = (BasicSafetyCaseFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(BasicSafetyCasePackage.eNS_URI);\n\t\t\tif (theBasicSafetyCaseFactory != null) {\n\t\t\t\treturn theBasicSafetyCaseFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BasicSafetyCaseFactoryImpl();\n\t}", "public WorkspaceFactoryImpl() {\n\t\tsuper();\n\t}", "public static CommonsFactory init() {\n\t\ttry {\n\t\t\tCommonsFactory theCommonsFactory = (CommonsFactory)EPackage.Registry.INSTANCE.getEFactory(CommonsPackage.eNS_URI);\n\t\t\tif (theCommonsFactory != null) {\n\t\t\t\treturn theCommonsFactory;\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 CommonsFactoryImpl();\n\t}", "public static BookFactory getInstance()\r\n {\r\n \r\n if(bookFactoryInstance == null)\r\n {\r\n bookFactoryInstance = new BookFactory();\r\n }\r\n \r\n return bookFactoryInstance;\r\n }", "public static Application getInstance(){\n\t\treturn getInstance (null);\n\t}", "public static borFactory init() {\n\t\ttry {\n\t\t\tborFactory theborFactory = (borFactory)EPackage.Registry.INSTANCE.getEFactory(borPackage.eNS_URI);\n\t\t\tif (theborFactory != null) {\n\t\t\t\treturn theborFactory;\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 borFactoryImpl();\n\t}", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}", "public static ExecutionFactory init() {\n\t\ttry {\n\t\t\tExecutionFactory theExecutionFactory = (ExecutionFactory)EPackage.Registry.INSTANCE.getEFactory(ExecutionPackage.eNS_URI);\n\t\t\tif (theExecutionFactory != null) {\n\t\t\t\treturn theExecutionFactory;\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 ExecutionFactoryImpl();\n\t}", "public static EntityFactory init() {\n\t\ttry {\n\t\t\tEntityFactory theEntityFactory = (EntityFactory)EPackage.Registry.INSTANCE.getEFactory(EntityPackage.eNS_URI);\n\t\t\tif (theEntityFactory != null) {\n\t\t\t\treturn theEntityFactory;\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 EntityFactoryImpl();\n\t}", "public static CLONDATAFactory init() {\n\t\ttry {\n\t\t\tCLONDATAFactory theCLONDATAFactory = (CLONDATAFactory) EPackage.Registry.INSTANCE.getEFactory(\n\t\t\t\tCLONDATAPackage.eNS_URI);\n\t\t\tif (theCLONDATAFactory != null) {\n\t\t\t\treturn theCLONDATAFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CLONDATAFactoryImpl();\n\t}", "public static AppTest create(Config config) {return null;}", "public static ValidatorFactory buildDefaultValidatorFactory() {\n return byDefaultProvider().configure().buildValidatorFactory();\n }", "@Test\n\tpublic void testContextShouldInitalizeChildContexts() {\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tApplicationContext ctx = springClientFactory.getContext(\"testspec\");\n\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tFoo foo = ctx.getBean(\"foo\", Foo.class);\n\t\tassertThat(foo).isNotNull();\n\t}", "public static PeriodFactory init() {\n\t\ttry {\n\t\t\tPeriodFactory thePeriodFactory = (PeriodFactory)EPackage.Registry.INSTANCE.getEFactory(PeriodPackage.eNS_URI);\n\t\t\tif (thePeriodFactory != null) {\n\t\t\t\treturn thePeriodFactory;\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 PeriodFactoryImpl();\n\t}", "private ApplicationContext()\n\t{\n\t}", "@Override\n\tprotected ApplicationFactory createApplicationFactory(final AppConfiguration configuration, final Environment environment) {\n\t\t\n\t\tfinal AwsApplicationFactory appFactory = new AwsApplicationFactory(configuration.getAws(), environment.getObjectMapper());\n\t\tfinal DynamoDbMapperFactory database = appFactory.database();\n\t\t\n\t\t/** Register any application repositories **/\n\t\tdatabase.registerRepo(Book.class, new BookRepository(database.getMapperRepository()));\n\t\treturn appFactory;\n\t}", "public static InstallerRegistry getDefault() {\n InstallerRegistry regs = defaultInstance.get();\n if (regs != null)\n return regs;\n regs = new InstallerRegistry();\n defaultInstance = new WeakReference<InstallerRegistry>(regs);\n return regs;\n }", "abstract public Core createCore(String configPath, String factoryConfigPath, Object systemContext);", "BeanFactory getBeanFactory();", "public AndroidFactoryImpl() {\n\t\tsuper();\n\t}", "public static InvCatalogFactory getDefaultFactory(boolean validate) {\n return new InvCatalogFactory(\"default\", validate);\n }", "public static NamespaceContext create() {\n return new NamespaceContext();\n }", "FactoryBean getFactoryBean();", "PlatformContext createPlatformContext()\n {\n return new PlatformContextImpl();\n }" ]
[ "0.6584147", "0.6367643", "0.62507933", "0.6069788", "0.5858274", "0.58389974", "0.581479", "0.5804183", "0.57425386", "0.5706187", "0.56686914", "0.56675816", "0.56211764", "0.562106", "0.5615565", "0.560974", "0.554896", "0.5537977", "0.55268055", "0.5520613", "0.5505719", "0.54959583", "0.5495518", "0.5476766", "0.546637", "0.54452425", "0.5441937", "0.5440761", "0.5412077", "0.5404636", "0.5403021", "0.53900343", "0.5386004", "0.5385643", "0.5383311", "0.53812265", "0.53455025", "0.5329231", "0.5312987", "0.5297943", "0.52965415", "0.52933747", "0.5289867", "0.5283489", "0.5277195", "0.52771", "0.5270905", "0.52649164", "0.52616394", "0.52544355", "0.52542573", "0.52501947", "0.52441895", "0.52351", "0.5224264", "0.52236205", "0.5203061", "0.5182749", "0.51816046", "0.5174253", "0.5173976", "0.51675284", "0.51640826", "0.51557714", "0.51381916", "0.5131459", "0.512773", "0.51176214", "0.5111101", "0.5110659", "0.5109012", "0.51082206", "0.5100576", "0.5100307", "0.5097443", "0.50964814", "0.5093669", "0.5085924", "0.5082637", "0.5079597", "0.5077176", "0.50767165", "0.50718987", "0.5064485", "0.5062805", "0.5057763", "0.5056242", "0.5055587", "0.5053357", "0.50514376", "0.5048606", "0.50430566", "0.50302196", "0.50298256", "0.5027977", "0.5027923", "0.50229204", "0.5017981", "0.5016208", "0.50102925" ]
0.67404264
0
This method instantiates an application specific context.
public ApplicationContext createApplicationContext( MarinerRequestContext requestContext) throws RepositoryException { ApplicationContext applicationContext = null; // Get the Volantis bean. Volantis volantisBean = Volantis.getInstance(); if (volantisBean == null) { throw new IllegalStateException ("Volantis bean has not been initialised"); } // Resolve the device (once for this session). InternalDevice device = resolveDevice( volantisBean, requestContext); // Create the application context applicationContext = createApplicationContextImpl(requestContext); // Initialize the application context. initializeApplicationContext(requestContext, volantisBean, applicationContext, device); return applicationContext; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Context createContext();", "Context createContext();", "private AppContext()\n {\n }", "private ApplicationContext()\n\t{\n\t}", "public MyApp() {\n sContext = this;\n }", "public abstract ApplicationLoader.Context context();", "public abstract void makeContext();", "static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "protected abstract ApplicationContext createApplicationContextImpl(\n MarinerRequestContext requestContext);", "public static void initializeApp(Context context) {\n }", "public CH340Application() {\n sContext = this;\n }", "public static Context getContext(){\n return appContext;\n }", "public static Context getAppContext() {\n return _BaseApplication.context;\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "Context context();", "Context context();", "public abstract Context context();", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}", "public Object createContext(ApplicationRequest request,\n ApplicationResponse response);", "public void init(MailetContext context);", "public static void init(@NonNull final Context context) {\n BlankjUtils.sApplication = (Application) context.getApplicationContext();\n }", "public Context() {\n }", "public static synchronized void initialize(Context context) {\n instance.context = context;\n initInternal();\n }", "public void initializeContext(Context context) {\n this.context = context;\n }", "void init(@NotNull ExecutionContext context);", "public Context getApplicationContext();", "private static Context createContext(final Context context)\r\n throws EscidocException, InternalClientException, TransportException, MalformedURLException {\r\n \t\r\n \t// prepare client object\r\n \tAuthentication auth = new Authentication(new URL(Constants.DEFAULT_SERVICE_URL), Constants.USER_NAME_SYSADMIN, Constants.USER_PASSWORD_SYSADMIN);\r\n \tContextHandlerClient chc = new ContextHandlerClient(auth.getServiceAddress());\r\n \tchc.setHandle(auth.getHandle());\r\n\r\n Context createdContext = chc.create(context);\r\n\r\n return createdContext;\r\n }", "ApplicationContext getAppCtx();", "private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "public static void initialize(@Nullable Context context) {\n if (sInstance == null) {\n sInstance = new AndroidContext(context);\n }\n }", "PlatformContext createPlatformContext()\n {\n return new PlatformContextImpl();\n }", "protected void initialize(ExternalContext context)\n {\n }", "public ApplicationStub(final Context context) {\n super(context);\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "public Contexte() {\n FactoryRegistry registry = FactoryRegistry.getRegistry();\n registry.register(\"module\", new ModuleFactory());\n registry.register(\"if\", new ConditionFactory());\n registry.register(\"template\", new TemplateFactory());\n registry.register(\"dump\", new DumpFactory());\n }", "public static void initApplicationContext(Context appContext) {\n // Conceding that occasionally in tests, native is loaded before the browser process is\n // started, in which case the browser process re-sets the application context.\n assert mApplicationContext == null || mApplicationContext == appContext ||\n ((ContextWrapper)mApplicationContext).getBaseContext() == appContext;\n initJavaSideApplicationContext(appContext);\n }", "private void createSharedSingletons(Context applicationContext) {\n\t\t// Create Active User\n\t\tActiveUserModel.createInstance(applicationContext);\n\n\t\t// Create Favorites List\n\t\tFavoriteTopicModelList.createInstance(applicationContext);\n\t\tFavoriteCommentModelList.createInstance(applicationContext);\n\n\t\t// Create Read Later list\n\t\tReadLaterTopicModelList.createInstance(applicationContext);\n\t\tReadLaterCommentModelList.createInstance(applicationContext);\n\n\t\t// Create Location Provider\n\t\tLocationProvider.getInstance(applicationContext);\n\t}", "@Override\n protected void configure() {\n bind(ApplicationContext.class).toInstance(ctxt);\n }", "private void setupContext() throws PackageManager.NameNotFoundException {\n when(context.getPackageName()).thenReturn(\"com.owlr.test\");\n when(context.getPackageManager()).thenReturn(packageManager);\n when(packageManager.getApplicationInfo(\"com.owlr.test\",\n PackageManager.GET_META_DATA)).thenReturn(applicationInfo);\n applicationInfo.metaData = bundle;\n }", "WebAppInterface(Context c) {\n mContext = c;\n }", "WebAppInterface(Context c) {\n mContext = c;\n }", "void setAppCtx(ApplicationContext appCtx);", "public static Context getContext() {\n\t\treturn instance;\n\t}", "public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }", "public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }", "private SingletonApp( Context context ) {\n mMB = MessageBroker.getInstance( context );\n }", "public interface Application {\n /**\n * Initializes resources used by the Application.\n *\n * @param config the application's configuration object\n */\n public void init(ApplicationConfig config) throws ServletException;\n \n /**\n * Called by the TeaServlet when the application is no longer needed.\n */\n public void destroy();\n\n /**\n * Creates a context, which defines functions that are callable by\n * templates. Any public method in the context is a callable function,\n * except methods defined in Object. A context may receive a request and\n * response, but it doesn't need to use any of them. They are provided only\n * in the event that a function needs access to these objects.\n * <p>\n * Unless the getContextType method returns null, the createContext method\n * is called once for every request to the TeaServlet, so context creation\n * should have a fairly quick initialization. One way of accomplishing this\n * is to return the same context instance each time. The drawback to this\n * technique is that functions will not be able to access the current\n * request and response.\n * <p>\n * The recommended technique is to construct a new context that simply\n * references this Application and any of the passed in parameters. This\n * way, the Application contains all the resources and \"business logic\",\n * and the context just provides templates access to it.\n *\n * @param request the client's HTTP request\n * @param response the client's HTTP response\n * @return an object context for the templates\n */\n public Object createContext(ApplicationRequest request,\n ApplicationResponse response);\n\n /**\n * The class of the object that the createContext method will return, which\n * does not need to implement any special interface or extend any special\n * class. Returning null indicates that this Application defines no\n * context, and createContext will never be called.\n *\n * @return the class that the createContext method will return\n */\n public Class getContextType();\n}", "WebAppInterface(Context c) {\n mContext = c;\n }", "WebAppInterface(Context c) {\n mContext = c;\n }", "WebAppInterface(Context c) {\n mContext = c;\n }", "@Override\n public Context getContext() {\n return this.getApplicationContext();\n }", "private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "WebAppInterface(Context c) {\r\n\t mContext = c;\r\n\t }", "public static void initialize(Context ctx) {\n\t\tmContext = ctx;\n\t}", "public MediaWSDemoApplication(BundleContext context) {\n\t\ttheContext = context ;\n\t}", "AndroidAppInterface(Context context) {\n this.mContext = context;\n }", "Context getContext();", "public TemplateAvailabilityProviders(ApplicationContext applicationContext)\n/* */ {\n/* 79 */ this(applicationContext == null ? null : applicationContext.getClassLoader());\n/* */ }", "public MyServiceDataSingleton(Context context) {\r\n myContext = context;\r\n }", "public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }", "public static Context getApplicationContext() { return mApplicationContext; }", "public MPSApplicationContextFactory() {\n this.encodingManager = new EncodingManager();\n\n protocolBuilder = new NamedProtocolBuilder();\n // Register the known protocols with the builder.\n ProtocolRegistry registry = new ProtocolRegistry();\n registry.register(protocolBuilder);\n }", "@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }", "public ContextModule(final Application application) {\n this.application = application;\n }", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}", "public void setupContext(ServletContext context) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tmap.put(\"CURRENT_THEME\", Constants.CURRENT_THEME);\r\n\t\tmap.put(\"LOGGED_USER\", Constants.LOGGED_USER);\r\n\t\tmap.put(\"YES\", Constants.YES);\r\n\t\tmap.put(\"NO\", Constants.NO);\r\n\t\tmap.put(\"ACTION\", Constants.ACTION);\r\n\t\tmap.put(\"ACTION_ADD\", Constants.ACTION_ADD);\r\n\t\tmap.put(\"SECURE_FIELD\", Constants.SECURE_FIELD);\r\n\t\tmap.put(\"DEBUG_MODE\", Constants.isDebugMode());\r\n\t\tmap.put(\"SHOW_FLAT_COMMISSIONS\", \"false\");\r\n\r\n\t\tcontext.setAttribute(\"Constants\", map);\r\n\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n context=getContext();\n\n }", "void init(HandlerContext context);", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "@Test\n\tpublic void testContextShouldInitalizeChildContexts() {\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tApplicationContext ctx = springClientFactory.getContext(\"testspec\");\n\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tFoo foo = ctx.getBean(\"foo\", Foo.class);\n\t\tassertThat(foo).isNotNull();\n\t}", "ContextVariable createContextVariable();", "public void setContext(Context context) {\n this.contextMain = context;\n }", "private static Context getInitialContext() throws NamingException {\n return new InitialContext();\r\n }", "private Context getContext() throws Exception {\n\t\tif (ctx != null)\n\t\t\treturn ctx;\n\n\t\tProperties props = new Properties();\n\t\tprops.put(Context.PROVIDER_URL, \"jnp://\" + endpoint);\n\t\tprops.put(Context.INITIAL_CONTEXT_FACTORY,\n\t\t\t\t\"org.jnp.interfaces.NamingContextFactory\");\n\t\tprops.put(Context.URL_PKG_PREFIXES,\n\t\t\t\t\"org.jboss.naming:org.jnp.interfaces\");\n\t\tctx = new InitialContext(props);\n\n\t\treturn ctx;\n\t}", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n\n appContext = event.getApplicationContext();\n System.out.println(appContext.getId());\n\n\n log.info(\"api-web初始化\");\n try {\n ApiUtils_.init(appContext);\n } catch (Exception e) {\n log.warn(\"初始化异常!\", e);\n }\n log.info(\"api-web初始化完成\");\n }", "public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "private AceContext()\n {\n //load from file\n File f = new File(ServerSettings.FILE_NAME);\n if (!f.exists())\n {\n ServerSettings.setDefaults();\n }\n\n// setWorkingParent( ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n// setCommonDir( ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n// setApplicationPath( ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n // This should come from the deployment unit\n processContextConfig(context.getConfigFile(), true);\n }", "public void onCreate() {\n super.onCreate();\n\n //TODO: enable fabric if API key is known\n // register and create fabric/crashlytics\n //Fabric.with(this, new Crashlytics.Builder()\n // .core(new CrashlyticsCore.Builder().build())\n // .build(), new Crashlytics());\n \n _BaseApplication.context = getApplicationContext();\n }", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "protected void setup(Context context) {}", "private static SSLContext createSSLContext() {\n\t try {\n\t SSLContext context = SSLContext.getInstance(\"SSL\");\n\t if (devMode) {\n\t \t context.init( null, new TrustManager[] {new RESTX509TrustManager(null)}, null); \n\t } else {\n\t TrustManager[] trustManagers = tmf.getTrustManagers();\n\t if ( kmf!=null) {\n\t KeyManager[] keyManagers = kmf.getKeyManagers();\n\t \n\t // key manager and trust manager\n\t context.init(keyManagers,trustManagers,null);\n\t }\n\t else\n\t \t// no key managers\n\t \tcontext.init(null,trustManagers,null);\n\t }\n\t return context;\n\t } \n\t catch (Exception e) {\n\t \t logger.error(e.toString());\n\t throw new HttpClientError(e.toString());\n\t \t }\n }", "public static void init(Context context) {\n //Check if my sub_manager is set to null, if so initialize it\n if (subManager==null){\n if(context==null){\n throw new RuntimeException(\"Error Occurred\");\n }\n else{\n subManager=new SubManager(context);\n }\n }\n }", "static void setActiveContext(ApplicationContext context) {\n SchemaCompilerApplicationContext.context = context;\n }", "public MockPageContext() {\n super();\n MockPageContext.init();\n }", "public static ShadowolfContext createNewContext(String configFile) {\r\n\t\tShadowolfContext context = new ShadowolfContext();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcontext.configuration = new PropertiesConfiguration(configFile);\r\n\t\t} catch (ConfigurationException e) {\r\n\t\t\tExceptions.log(e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\t\r\n\t\t//initialize ServerContext\r\n\t\ttry {\r\n\t\t\tServerContext serverContext = new ServerContext();\r\n\t\t\tInetAddress address = InetAddress.getByName(context.configuration.getString(\"server.listen.address\", \"127.0.0.1\"));\r\n\t\t\tint port = context.configuration.getInt(\"server.listen.port\", 80);\r\n\t\t\tserverContext.setJettyServer(new JettyServer(address, port));\r\n\t\t\t\r\n\t\t\tint corePoolSize = context.configuration.getInt(\"server.workers.min\", 4);\r\n\t\t\tint maximumPoolSize = context.configuration.getInt(\"server.workers.max\", 16);\r\n\t\t\tint keepAliveTime = context.configuration.getInt(\"server.workers.idle\", 300);\r\n\t\t\tint queueLength = context.configuration.getInt(\"server.workers.queueSize\", 25_000);\r\n\t\t\tBlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>(queueLength);\r\n\t\t\tTimeUnit unit = TimeUnit.SECONDS;\r\n\r\n\t\t\tExecutorService es = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\r\n\t\t\tserverContext.setHttpWorkerPool(es);\r\n\t\t\tserverContext.getJettyServer().setExecutor(es);\r\n\t\t\t\r\n\t\t\tString conf = \"conf/serverAccess.xml\";\r\n\t\t\tJAXBContext jaxb = JAXBContext.newInstance(AccessList.class);\r\n\t\t\tUnmarshaller um = jaxb.createUnmarshaller();\r\n\t\t\tserverContext.setServerAccessList((AccessList) um.unmarshal(new File(conf)));\r\n\t\t\t\r\n\t\t\tcontext.serverContext = serverContext;\r\n\t\t} catch (UnknownHostException | ServletException | JAXBException e) {\r\n\t\t\tExceptions.log(e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\t\r\n\t\t//initialize PluginContext \r\n\t\t{\r\n\t\t\tPluginContext pluginContext = new PluginContext();\r\n\t\t\t\r\n\t\t\tint corePoolSize = context.configuration.getInt(\"plugins.async.workers.min\", 4);\r\n\t\t\tint maximumPoolSize = context.configuration.getInt(\"plugins.async.workers.max\", 16);\r\n\t\t\tint keepAliveTime = context.configuration.getInt(\"plugins.async.workers.idle\", 300);\r\n\t\t\tint queueLength = context.configuration.getInt(\"plugins.async.workers.queueSize\", 25_000);\r\n\t\t\tBlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>(queueLength);\r\n\t\t\tTimeUnit unit = TimeUnit.SECONDS;\r\n\t\t\t\r\n\t\t\tExecutorService es = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\r\n\r\n\t\t\tPluginLoader loader = new PluginLoader();\r\n\t\t\tloader.setContext(context);\r\n\t\t\tloader.loadAllPluginsInDir();\r\n\t\t\t\r\n\t\t\tPluginEngine engine = new PluginEngine(es);\r\n\t\t\tfor(Plugin p : loader.getPlugins().values()) {\r\n\t\t\t\tengine.addPlugin(p);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpluginContext.setAsyncPluginWorkerPool(es);\r\n\t\t\tpluginContext.setPluginEngine(engine);\r\n\t\t\tpluginContext.setPluginLoader(loader);\r\n\t\t\tcontext.pluginContext = pluginContext;\r\n\t\t}\r\n\t\t\r\n\t\t//initialize BittorrentContext\r\n\t\t{\r\n\t\t\tBittorrentContext bittorrentContext = new BittorrentContext();\r\n\t\t\r\n\t\t\tint peerExpiry = context.getConfiguration().getInt(\"protocol.Peerlist.peerExpiry\", 2400);\r\n\t\t\tint httpWorkers = context.getConfiguration().getInt(\"server.workers.max\", 16);\r\n\t\t\t// 1/8th of all workers accessing the same peerlist seems unlikely\r\n\t\t\t// and a concurrency level of six seems sane... these values might need to be tuned later\r\n\t\t\tint concurrencyLevel = (httpWorkers/8) > 6 ? 6 : httpWorkers/8; \r\n\t\t\t\r\n\t\t\t//the largest majority of torrents that will ever be tracked will have\r\n\t\t\t//less than 2 peers, so reducing the default size means that we'll have\r\n\t\t\t//slightly less memory overhead - in exchange for a bunch of resize ops\r\n\t\t\tbittorrentContext.setPeerlistMapMaker(\r\n\t\t\t\tnew MapMaker().\r\n\t\t\t\texpireAfterWrite(peerExpiry, TimeUnit.SECONDS).\r\n\t\t\t\tconcurrencyLevel(concurrencyLevel).\r\n\t\t\t\tinitialCapacity(2)\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\tConcurrentMap<Infohash, Peerlist> plists = \r\n\t\t\t\t\tnew MapMaker().\r\n\t\t\t\t\texpireAfterAccess(peerExpiry, TimeUnit.SECONDS).\r\n\t\t\t\t\tconcurrencyLevel(concurrencyLevel).\r\n\t\t\t\t\tmakeMap();\r\n\t\t\tbittorrentContext.setPeerlists(plists);\r\n\t\t\t\r\n\t\t\tcontext.bittorrentContext = bittorrentContext;\r\n\t\t}\r\n\t\t\r\n\t\treturn context;\r\n\t}", "private SpringApplicationContextProvider() {\r\n\t}", "public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }", "public static Context getAppContext() {\n return mContext;\n }", "public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}", "public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "public TAppAccess() {\n\t}", "public FREContext createContext(String extId) {\n\t\tDLog(\"ANEAnalyticsExtension createContext extId: \" + extId);\n\t\t\n\t\tsContext = new ANEMyGamezExtensionContext();\n\t\treturn sContext;\n\t}", "public static void initializeWithContextAndKey(Context context, String apiKey) {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG, \"initializeWithContextAndKey() called\");\n }*/\n initialize(context, apiKey,null);\n }", "public static void initialize(Context context) throws LogonCoreException {\n appContext = context;\n try {\n createOnlineManager(context);\n } catch (LogonCoreException e) {\n e.printStackTrace();\n }\n getTheData();\n }" ]
[ "0.76927125", "0.76927125", "0.7285268", "0.71818733", "0.7100593", "0.70760447", "0.70141125", "0.7004534", "0.6992821", "0.6925383", "0.68389344", "0.6794148", "0.6757831", "0.6753599", "0.67324716", "0.6698112", "0.6698112", "0.667683", "0.66736716", "0.66729873", "0.66582954", "0.65868497", "0.65860283", "0.65507305", "0.654737", "0.6504794", "0.6489652", "0.6468081", "0.64627624", "0.6453946", "0.64531463", "0.6427157", "0.6386209", "0.6360367", "0.6318815", "0.6314848", "0.6250414", "0.62413454", "0.61896086", "0.61726856", "0.61658853", "0.61658347", "0.61658347", "0.61577386", "0.6149224", "0.6147387", "0.6147235", "0.6145254", "0.6143278", "0.6131502", "0.6131502", "0.6131502", "0.6116471", "0.61119336", "0.609373", "0.6087551", "0.607585", "0.6058908", "0.6047867", "0.6042421", "0.6039277", "0.60193187", "0.6016073", "0.59914684", "0.5964281", "0.5951976", "0.59514105", "0.59514105", "0.5945208", "0.5939321", "0.59292", "0.5925764", "0.59180844", "0.59180844", "0.59173936", "0.59079045", "0.5905391", "0.5902082", "0.58985114", "0.5879644", "0.5874553", "0.5872385", "0.5861763", "0.5852672", "0.5847405", "0.583531", "0.58342063", "0.5821992", "0.5818847", "0.5815608", "0.5815542", "0.5805625", "0.58055115", "0.5787633", "0.5771654", "0.5771301", "0.5768824", "0.57632095", "0.57596326", "0.57591957" ]
0.60860133
56
The newly created application context. This method must be overridden to create an alternative application context.
protected abstract ApplicationContext createApplicationContextImpl( MarinerRequestContext requestContext);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Context createContext();", "Context createContext();", "public abstract void makeContext();", "public Object createContext(ApplicationRequest request,\n ApplicationResponse response);", "static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }", "public static Context getAppContext() {\n return _BaseApplication.context;\n }", "public static Context getContext(){\n return appContext;\n }", "private AppContext()\n {\n }", "public abstract Context context();", "public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }", "private ApplicationContext()\n\t{\n\t}", "ApplicationContext getAppCtx();", "@Override\n public Context getContext() {\n return this.getApplicationContext();\n }", "public abstract ApplicationLoader.Context context();", "public MyApp() {\n sContext = this;\n }", "public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }", "public Context getApplicationContext();", "public CH340Application() {\n sContext = this;\n }", "Context context();", "Context context();", "public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}", "private Context genereateContext() {\n Context newContext = new Context();\n String path = \"\"; // NOI18N\n newContext.setAttributeValue(ATTR_PATH, path);\n\n // if tomcat 5.0.x generate a logger\n if (tomcatVersion == TomcatVersion.TOMCAT_50) {\n // generate default logger\n newContext.setLogger(true);\n newContext.setLoggerClassName(\"org.apache.catalina.logger.FileLogger\"); // NOI18N\n newContext.setLoggerPrefix(computeLoggerPrefix(path));\n newContext.setLoggerSuffix(\".log\"); // NOI18N\n newContext.setLoggerTimestamp(\"true\"); // NOI18N\n } else if (tomcatVersion == TomcatVersion.TOMCAT_55\n || tomcatVersion == TomcatVersion.TOMCAT_60\n || tomcatVersion == TomcatVersion.TOMCAT_70){\n // tomcat 5.5, 6.0 and 7.0\n newContext.setAntiJARLocking(\"true\"); // NOI18N\n }\n return newContext;\n }", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "PlatformContext createPlatformContext()\n {\n return new PlatformContextImpl();\n }", "private static Context createContext(final Context context)\r\n throws EscidocException, InternalClientException, TransportException, MalformedURLException {\r\n \t\r\n \t// prepare client object\r\n \tAuthentication auth = new Authentication(new URL(Constants.DEFAULT_SERVICE_URL), Constants.USER_NAME_SYSADMIN, Constants.USER_PASSWORD_SYSADMIN);\r\n \tContextHandlerClient chc = new ContextHandlerClient(auth.getServiceAddress());\r\n \tchc.setHandle(auth.getHandle());\r\n\r\n Context createdContext = chc.create(context);\r\n\r\n return createdContext;\r\n }", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "public static Context getContext() {\n\t\treturn instance;\n\t}", "private DiaryApplication getApp() {\n ServletContext application = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);\n synchronized (application) {\n DiaryApplication diaryApp = (DiaryApplication) application.getAttribute(\"diaryApp\");\n if (diaryApp == null) {\n try {\n diaryApp = new DiaryApplication();\n diaryApp.setAllPath(application.getRealPath(\"WEB-INF/bookings.xml\"), application.getRealPath(\"WEB-INF/students.xml\"), application.getRealPath(\"WEB-INF/tutors.xml\"));\n application.setAttribute(\"diaryApp\", diaryApp);\n } catch (JAXBException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return diaryApp;\n }\n }", "public ApplicationContext createApplicationContext(\n MarinerRequestContext requestContext)\n throws RepositoryException {\n\n ApplicationContext applicationContext = null;\n\n // Get the Volantis bean.\n Volantis volantisBean = Volantis.getInstance();\n if (volantisBean == null) {\n throw new IllegalStateException\n (\"Volantis bean has not been initialised\");\n }\n\n // Resolve the device (once for this session).\n InternalDevice device = resolveDevice(\n volantisBean,\n requestContext);\n\n // Create the application context\n applicationContext = createApplicationContextImpl(requestContext);\n\n // Initialize the application context.\n initializeApplicationContext(requestContext, volantisBean,\n applicationContext, device);\n\n return applicationContext;\n }", "public static Context getApplicationContext() { return mApplicationContext; }", "public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static Context getContext() {\n\t\treturn context;\n\t}", "public static ShadowolfContext createNewContext(String configFile) {\r\n\t\tShadowolfContext context = new ShadowolfContext();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcontext.configuration = new PropertiesConfiguration(configFile);\r\n\t\t} catch (ConfigurationException e) {\r\n\t\t\tExceptions.log(e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\t\r\n\t\t//initialize ServerContext\r\n\t\ttry {\r\n\t\t\tServerContext serverContext = new ServerContext();\r\n\t\t\tInetAddress address = InetAddress.getByName(context.configuration.getString(\"server.listen.address\", \"127.0.0.1\"));\r\n\t\t\tint port = context.configuration.getInt(\"server.listen.port\", 80);\r\n\t\t\tserverContext.setJettyServer(new JettyServer(address, port));\r\n\t\t\t\r\n\t\t\tint corePoolSize = context.configuration.getInt(\"server.workers.min\", 4);\r\n\t\t\tint maximumPoolSize = context.configuration.getInt(\"server.workers.max\", 16);\r\n\t\t\tint keepAliveTime = context.configuration.getInt(\"server.workers.idle\", 300);\r\n\t\t\tint queueLength = context.configuration.getInt(\"server.workers.queueSize\", 25_000);\r\n\t\t\tBlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>(queueLength);\r\n\t\t\tTimeUnit unit = TimeUnit.SECONDS;\r\n\r\n\t\t\tExecutorService es = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\r\n\t\t\tserverContext.setHttpWorkerPool(es);\r\n\t\t\tserverContext.getJettyServer().setExecutor(es);\r\n\t\t\t\r\n\t\t\tString conf = \"conf/serverAccess.xml\";\r\n\t\t\tJAXBContext jaxb = JAXBContext.newInstance(AccessList.class);\r\n\t\t\tUnmarshaller um = jaxb.createUnmarshaller();\r\n\t\t\tserverContext.setServerAccessList((AccessList) um.unmarshal(new File(conf)));\r\n\t\t\t\r\n\t\t\tcontext.serverContext = serverContext;\r\n\t\t} catch (UnknownHostException | ServletException | JAXBException e) {\r\n\t\t\tExceptions.log(e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\t\r\n\t\t//initialize PluginContext \r\n\t\t{\r\n\t\t\tPluginContext pluginContext = new PluginContext();\r\n\t\t\t\r\n\t\t\tint corePoolSize = context.configuration.getInt(\"plugins.async.workers.min\", 4);\r\n\t\t\tint maximumPoolSize = context.configuration.getInt(\"plugins.async.workers.max\", 16);\r\n\t\t\tint keepAliveTime = context.configuration.getInt(\"plugins.async.workers.idle\", 300);\r\n\t\t\tint queueLength = context.configuration.getInt(\"plugins.async.workers.queueSize\", 25_000);\r\n\t\t\tBlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>(queueLength);\r\n\t\t\tTimeUnit unit = TimeUnit.SECONDS;\r\n\t\t\t\r\n\t\t\tExecutorService es = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\r\n\r\n\t\t\tPluginLoader loader = new PluginLoader();\r\n\t\t\tloader.setContext(context);\r\n\t\t\tloader.loadAllPluginsInDir();\r\n\t\t\t\r\n\t\t\tPluginEngine engine = new PluginEngine(es);\r\n\t\t\tfor(Plugin p : loader.getPlugins().values()) {\r\n\t\t\t\tengine.addPlugin(p);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpluginContext.setAsyncPluginWorkerPool(es);\r\n\t\t\tpluginContext.setPluginEngine(engine);\r\n\t\t\tpluginContext.setPluginLoader(loader);\r\n\t\t\tcontext.pluginContext = pluginContext;\r\n\t\t}\r\n\t\t\r\n\t\t//initialize BittorrentContext\r\n\t\t{\r\n\t\t\tBittorrentContext bittorrentContext = new BittorrentContext();\r\n\t\t\r\n\t\t\tint peerExpiry = context.getConfiguration().getInt(\"protocol.Peerlist.peerExpiry\", 2400);\r\n\t\t\tint httpWorkers = context.getConfiguration().getInt(\"server.workers.max\", 16);\r\n\t\t\t// 1/8th of all workers accessing the same peerlist seems unlikely\r\n\t\t\t// and a concurrency level of six seems sane... these values might need to be tuned later\r\n\t\t\tint concurrencyLevel = (httpWorkers/8) > 6 ? 6 : httpWorkers/8; \r\n\t\t\t\r\n\t\t\t//the largest majority of torrents that will ever be tracked will have\r\n\t\t\t//less than 2 peers, so reducing the default size means that we'll have\r\n\t\t\t//slightly less memory overhead - in exchange for a bunch of resize ops\r\n\t\t\tbittorrentContext.setPeerlistMapMaker(\r\n\t\t\t\tnew MapMaker().\r\n\t\t\t\texpireAfterWrite(peerExpiry, TimeUnit.SECONDS).\r\n\t\t\t\tconcurrencyLevel(concurrencyLevel).\r\n\t\t\t\tinitialCapacity(2)\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\tConcurrentMap<Infohash, Peerlist> plists = \r\n\t\t\t\t\tnew MapMaker().\r\n\t\t\t\t\texpireAfterAccess(peerExpiry, TimeUnit.SECONDS).\r\n\t\t\t\t\tconcurrencyLevel(concurrencyLevel).\r\n\t\t\t\t\tmakeMap();\r\n\t\t\tbittorrentContext.setPeerlists(plists);\r\n\t\t\t\r\n\t\t\tcontext.bittorrentContext = bittorrentContext;\r\n\t\t}\r\n\t\t\r\n\t\treturn context;\r\n\t}", "public Context() {\n }", "public ApplicationContext getApplicationContext() {\n return applicationContext;\n }", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }", "Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }", "void setAppCtx(ApplicationContext appCtx);", "public ContextModule(final Application application) {\n this.application = application;\n }", "public static void setApplicationContext( ApplicationContext context ){\n\t\t\tctx = context;\n//\t\telse{\n//\t\t\tSystem.out.println(\"Error, ApplicationContext already has been set\");\n//\t\t}\n\t}", "public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}", "public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }", "private NewApplication createNewApplication() {\n GetNewApplicationRequest req =\n recordFactory.newRecordInstance(GetNewApplicationRequest.class);\n GetNewApplicationResponse resp;\n try {\n resp = rm.getClientRMService().getNewApplication(req);\n } catch (YarnException e) {\n String msg = \"Unable to create new app from RM web service\";\n LOG.error(msg, e);\n throw new YarnRuntimeException(msg, e);\n }\n NewApplication appId =\n new NewApplication(resp.getApplicationId().toString(),\n new ResourceInfo(resp.getMaximumResourceCapability()));\n return appId;\n }", "public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }", "public Context getContext() { \n if (_logger.isLoggable(Level.FINE)) {\n _logger.fine(\"IN getContext()\");\n }\n try {\n return new InitialContext();\n } catch (Exception e) {\n throw new EJBException(_logger.getResourceBundle().getString(\n \"ejb.embedded.cannot_create_context\"), e);\n }\n }", "private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}", "public ApplicationStub(final Context context) {\n super(context);\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}", "@Override\n protected void configure() {\n bind(ApplicationContext.class).toInstance(ctxt);\n }", "public interface Application {\n /**\n * Initializes resources used by the Application.\n *\n * @param config the application's configuration object\n */\n public void init(ApplicationConfig config) throws ServletException;\n \n /**\n * Called by the TeaServlet when the application is no longer needed.\n */\n public void destroy();\n\n /**\n * Creates a context, which defines functions that are callable by\n * templates. Any public method in the context is a callable function,\n * except methods defined in Object. A context may receive a request and\n * response, but it doesn't need to use any of them. They are provided only\n * in the event that a function needs access to these objects.\n * <p>\n * Unless the getContextType method returns null, the createContext method\n * is called once for every request to the TeaServlet, so context creation\n * should have a fairly quick initialization. One way of accomplishing this\n * is to return the same context instance each time. The drawback to this\n * technique is that functions will not be able to access the current\n * request and response.\n * <p>\n * The recommended technique is to construct a new context that simply\n * references this Application and any of the passed in parameters. This\n * way, the Application contains all the resources and \"business logic\",\n * and the context just provides templates access to it.\n *\n * @param request the client's HTTP request\n * @param response the client's HTTP response\n * @return an object context for the templates\n */\n public Object createContext(ApplicationRequest request,\n ApplicationResponse response);\n\n /**\n * The class of the object that the createContext method will return, which\n * does not need to implement any special interface or extend any special\n * class. Returning null indicates that this Application defines no\n * context, and createContext will never be called.\n *\n * @return the class that the createContext method will return\n */\n public Class getContextType();\n}", "@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }", "public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }", "public static Context getAppContext() {\n return mContext;\n }", "public FREContext createContext(String extId) {\n\t\tDLog(\"ANEAnalyticsExtension createContext extId: \" + extId);\n\t\t\n\t\tsContext = new ANEMyGamezExtensionContext();\n\t\treturn sContext;\n\t}", "public static MutableContext create(HttpServletRequest request) {\n\n\t\t\tServletContext sc = request.getServletContext();\n\t\t\tSnowflakeContext parent = SnowContextUtils\n\t\t\t\t\t.getWebApplicationContext(sc);\n\n\t\t\tMutableContextBuilderFactory factory = new MutableContextBuilderFactory();\n\t\t\tContextBuilder builder = factory.newBuilder(parent);\n\t\t\treturn (MutableContext) builder.create();\n\n\t\t}", "@Override\n default ManagerPrx ice_context(java.util.Map<String, String> newContext)\n {\n return (ManagerPrx)_ice_context(newContext);\n }", "static void setActiveContext(ApplicationContext context) {\n SchemaCompilerApplicationContext.context = context;\n }", "public Context getContext() {\n return contextMain;\n }", "public void setApplicationContext(final ApplicationContext inApplicationContext)\n {\n ctx = inApplicationContext;\n }", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }", "@Override\n protected HttpContext createHttpContext()\n {\n HttpContext context = new BasicHttpContext();\n context.setAttribute(ClientContext.AUTHSCHEME_REGISTRY,\n getAuthSchemes());\n context.setAttribute(ClientContext.COOKIESPEC_REGISTRY,\n getCookieSpecs());\n context.setAttribute(ClientContext.CREDS_PROVIDER,\n getCredentialsProvider());\n return context;\n }", "Context getContext();", "private Context getContext() throws Exception {\n\t\tif (ctx != null)\n\t\t\treturn ctx;\n\n\t\tProperties props = new Properties();\n\t\tprops.put(Context.PROVIDER_URL, \"jnp://\" + endpoint);\n\t\tprops.put(Context.INITIAL_CONTEXT_FACTORY,\n\t\t\t\t\"org.jnp.interfaces.NamingContextFactory\");\n\t\tprops.put(Context.URL_PKG_PREFIXES,\n\t\t\t\t\"org.jboss.naming:org.jnp.interfaces\");\n\t\tctx = new InitialContext(props);\n\n\t\treturn ctx;\n\t}", "public MPSApplicationContextFactory() {\n this.encodingManager = new EncodingManager();\n\n protocolBuilder = new NamedProtocolBuilder();\n // Register the known protocols with the builder.\n ProtocolRegistry registry = new ProtocolRegistry();\n registry.register(protocolBuilder);\n }", "@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}", "private static Context getInitialContext() throws NamingException {\n return new InitialContext();\r\n }", "@Override\n public RestContextSpec<?, ?> createContextSpec() {\n Properties restProperties = new Properties();\n restProperties.setProperty(provider + \".contextbuilder\", SimpleDBContextBuilder.class.getName());\n restProperties.setProperty(provider + \".propertiesbuilder\", SimpleDBPropertiesBuilder.class.getName());\n return new RestContextFactory(restProperties).createContextSpec(provider, \"foo\", \"bar\", getProperties());\n }", "@Override\n\tpublic FREContext createContext(String contextType) {\n\t //Log.d(TAG, \"creating ANE context...\");\n\t\tFREContext ctx = new UCGameSDKContext();\n\t\t//if (ctx != null) \n\t\t// Log.d(TAG, \"succeeded create ANE context\");\n\t\treturn ctx;\n\t}", "ContextVariable createContextVariable();", "public static void initializeApp(Context context) {\n }", "public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "public Context getContext() {\n\t\treturn null;\n\t}", "public TestContext subContext() {\n\t\treturn new TestContext(this);\n\t}", "@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}", "protected final TranslationContext context() {\n\t\treturn context;\n\t}", "static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }", "public Context getContext() {\r\n\t\treturn context;\r\n\t}", "@Binds\n public abstract Context bindContext(Application application);", "@Override\n\tpublic void contextCreated(String context, boolean toolPlacement) {\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "public Context getContext() {\n return context;\n }", "@Override\n\tpublic ServerContext createContext(TProtocol arg0, TProtocol arg1) {\n\t\treturn null;\n\t}", "protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}", "public static MyFileContext create() {\n\t\treturn new MyContextImpl();\n\t}", "Context createContext( Properties properties ) throws NamingException;", "private static SSLContext createSSLContext() {\n\t try {\n\t SSLContext context = SSLContext.getInstance(\"SSL\");\n\t if (devMode) {\n\t \t context.init( null, new TrustManager[] {new RESTX509TrustManager(null)}, null); \n\t } else {\n\t TrustManager[] trustManagers = tmf.getTrustManagers();\n\t if ( kmf!=null) {\n\t KeyManager[] keyManagers = kmf.getKeyManagers();\n\t \n\t // key manager and trust manager\n\t context.init(keyManagers,trustManagers,null);\n\t }\n\t else\n\t \t// no key managers\n\t \tcontext.init(null,trustManagers,null);\n\t }\n\t return context;\n\t } \n\t catch (Exception e) {\n\t \t logger.error(e.toString());\n\t throw new HttpClientError(e.toString());\n\t \t }\n }", "public Context getContext() {\n\t\treturn context;\n\t}", "public static NamespaceContext create() {\n return new NamespaceContext();\n }", "public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }", "public RuntimeContext(RuntimeManagerImpl rtMgr)\n {\n super(rtMgr.getJNIEasy()); \n \n this.rtMgr = rtMgr;\n }", "public Context getContext() {\n return this;\n }", "protected WebApplication newApplication() {\n return new DummyWebApplication();\n }", "public static void initApplicationContext(Context appContext) {\n // Conceding that occasionally in tests, native is loaded before the browser process is\n // started, in which case the browser process re-sets the application context.\n assert mApplicationContext == null || mApplicationContext == appContext ||\n ((ContextWrapper)mApplicationContext).getBaseContext() == appContext;\n initJavaSideApplicationContext(appContext);\n }" ]
[ "0.7192141", "0.7192141", "0.68095225", "0.6719266", "0.67123836", "0.6699053", "0.6696143", "0.6555037", "0.6523992", "0.64412224", "0.64091486", "0.63763523", "0.6343211", "0.6308092", "0.628246", "0.62216115", "0.62209946", "0.62153494", "0.6148563", "0.6148563", "0.6142343", "0.61347866", "0.6132813", "0.6131974", "0.61049104", "0.60857856", "0.6059029", "0.6048645", "0.60189104", "0.6007982", "0.5997506", "0.59510434", "0.59510434", "0.59084284", "0.58928096", "0.5891172", "0.5875637", "0.5875637", "0.58482337", "0.5840394", "0.58395696", "0.58325183", "0.58270866", "0.5813995", "0.58053726", "0.58021605", "0.5790984", "0.57647324", "0.57548195", "0.5753854", "0.5740511", "0.5732353", "0.5717231", "0.5713009", "0.57105684", "0.5694401", "0.56925315", "0.56833804", "0.566977", "0.56592274", "0.5657517", "0.56471616", "0.5646168", "0.5635188", "0.5631105", "0.5630765", "0.5622636", "0.56143165", "0.56112814", "0.5596975", "0.55851746", "0.5579345", "0.5576002", "0.5573281", "0.55659777", "0.55611837", "0.5558064", "0.5553952", "0.5553864", "0.5551872", "0.55338055", "0.5530413", "0.5529625", "0.552934", "0.5515359", "0.55138344", "0.5507143", "0.549907", "0.5496849", "0.5495893", "0.5489415", "0.54690105", "0.54665416", "0.5462261", "0.5454238", "0.5450552", "0.5443376", "0.54361224", "0.5431308", "0.5427967" ]
0.68517405
2
Provide a template mechanism for subclasses to override the default initialization of this application context. This should typically be called after the application context has been created.
protected void initializeApplicationContext( MarinerRequestContext requestContext, Volantis volantisBean, ApplicationContext applicationContext, InternalDevice device) { VolantisProtocol protocol; String protocolName; String preferredMessageProtocol = device.getPolicyValue("preferredmessageprotocol"); if (null == preferredMessageProtocol || "none".equals(preferredMessageProtocol)) { throw new UnsupportedOperationException("Device does not support messaging"); } protocolName = device.getPolicyValue( preferredMessageProtocol.toLowerCase()+"protocol"); if(logger.isDebugEnabled()) { logger.debug("Protocol Name="+protocolName); } // Create a configured protocol. protocol = protocolBuilder.build(protocolName, device); applicationContext.setDevice(device); applicationContext.setPackager(new DefaultPackager()); applicationContext.setProtocol(protocol); applicationContext.setDissectionSupported(false); applicationContext.setFragmentationSupported(false); applicationContext.setCanvasTagSupported(false); applicationContext.setEncodingManager(encodingManager); applicationContext.setImageURLModifier(new ImageURLModifier() { public void modifyImageURL(StringBuffer imageURLString, ImageURLModifierDetails imageURLModifierDetails) { if(imageURLModifierDetails.getMaxImageSize()!=null && !"-1".equals(imageURLModifierDetails.getMaxImageSize())) { imageURLString.append("&maxmmsize="). append(imageURLModifierDetails.getMaxImageSize()); } imageURLString.append("&mcs.ie="). append(imageURLModifierDetails.getEncoding()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n // This should come from the deployment unit\n processContextConfig(context.getConfigFile(), true);\n }", "private ApplicationContext()\n\t{\n\t}", "protected void initialize(ExternalContext context)\n {\n }", "protected void initialize() {}", "protected void initialize() {}", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "private AppContext()\n {\n }", "protected void init() {\n // to override and use this method\n }", "@Override\n protected final void initializeSpecific() {\n initializeSpringSpecific();\n\n // Once the subclasses have had their opportunity, compute configurations belonging to SpringTemplateEngine\n super.initializeSpecific();\n\n final MessageSource messageSource =\n this.templateEngineMessageSource == null ? this.messageSource : this.templateEngineMessageSource;\n\n final IMessageResolver messageResolver;\n if (messageSource != null) {\n final SpringMessageResolver springMessageResolver = new SpringMessageResolver();\n springMessageResolver.setMessageSource(messageSource);\n messageResolver = springMessageResolver;\n } else {\n messageResolver = new StandardMessageResolver();\n }\n\n super.setMessageResolver(messageResolver);\n\n }", "public static void initializeApp(Context context) {\n }", "protected void init() {\n\t}", "protected void init() {\n\t}", "public void init(MailetContext context);", "public void initApplicationContext()\r\n/* 32: */ throws BeansException\r\n/* 33: */ {\r\n/* 34:103 */ super.initApplicationContext();\r\n/* 35:104 */ registerHandlers(this.urlMap);\r\n/* 36: */ }", "public MyApp() {\n sContext = this;\n }", "protected void init() {\n }", "public abstract ApplicationLoader.Context context();", "@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }", "protected void initialize() {\n \t\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "protected void initialize() {\n\t}", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "@Override public void init()\n\t\t{\n\t\t}", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "protected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "protected void initialize()\n\t{\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "protected void init(){\n }", "@Override\n protected void init() {\n }", "protected void initialize() {\n\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n public void autonomousInit() {\n \n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void init() {}", "void init(HandlerContext context);", "public static synchronized void initialize(Context context) {\n instance.context = context;\n initInternal();\n }", "protected void initialize() {\n\t\t\n\t}", "protected void initialize() {\n\t\t\n\t}", "protected void initialize()\r\n {\n }", "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "public void init(){\n\t\tcfg = new Configuration();\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), \"WEB-INF/templates\");\r\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "public void initializeContext(Context context) {\n this.context = context;\n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "@Override\n public void init() {\n String[] args = this.getParameters().getRaw().toArray(new String[0]);\n // We run Spring context initialization at the time of JavaFX initialization:\n springContext = SpringApplication.run(MainApp.class, args);\n }", "@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}", "@Override\n protected void configure() {\n bind(ApplicationContext.class).toInstance(ctxt);\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t\tsuper.init();\n\t\tlog.info(getClass().getSimpleName()+\" initialized\");\n\t}", "@Override\n\tprotected void initialise() {\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}", "protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}", "protected void _init(){}", "@Override\n\tpublic void initialize() {\n\t}", "@Override\n\tpublic void initialize() {\n\t}", "@Override\n\tpublic void initialize() {\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}", "@Override\n\tpublic void initialize() {\n\t\tsuper.initialize();\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}" ]
[ "0.7074114", "0.70004475", "0.6920697", "0.6776728", "0.6776728", "0.67744094", "0.672227", "0.66701895", "0.66544956", "0.6634155", "0.6626779", "0.6621492", "0.6621492", "0.6609314", "0.65978837", "0.6596205", "0.6595911", "0.65846556", "0.6584075", "0.65736336", "0.6564529", "0.65485966", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6547656", "0.6522914", "0.6521655", "0.6521655", "0.65161043", "0.65143436", "0.65026736", "0.65026736", "0.65010124", "0.64983416", "0.64613456", "0.6453434", "0.6439043", "0.6438745", "0.6435223", "0.64293665", "0.64293665", "0.6428305", "0.64271015", "0.64208335", "0.64062124", "0.64062124", "0.6398844", "0.6386987", "0.6379784", "0.6379784", "0.6379784", "0.6377384", "0.63698256", "0.63698256", "0.63698256", "0.63698256", "0.63698256", "0.63698256", "0.6356337", "0.6355437", "0.6354801", "0.63485026", "0.6340309", "0.6328051", "0.63227713", "0.63217777", "0.6315118", "0.6300349", "0.6298748", "0.6296538", "0.62857723", "0.62855566", "0.627803", "0.62769556", "0.6276047", "0.62747496", "0.62747496", "0.62747496", "0.62736386", "0.62715876", "0.6265818", "0.6265818", "0.6265818", "0.6261745", "0.6260153", "0.62409294" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 283, 353); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setTitle("Search"); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } JPanel panel = new JPanel(); frame.getContentPane().add(panel, BorderLayout.CENTER); panel.setLayout(new MigLayout("", "[421.00,grow,center]", "[][][][][][][][][]")); JLabel lblTitle = new JLabel("Title"); lblTitle.setFont(new Font("Tahoma", Font.BOLD, 22)); panel.add(lblTitle, "cell 0 0"); titleField = new JTextField(); titleField.setFont(new Font("Tahoma", Font.PLAIN, 24)); titleField.setHorizontalAlignment(SwingConstants.CENTER); panel.add(titleField, "cell 0 1,growx"); titleField.setColumns(10); JLabel lblMediaType = new JLabel("Media Type"); lblMediaType.setFont(new Font("Tahoma", Font.BOLD, 22)); panel.add(lblMediaType, "flowx,cell 0 2"); JLabel label = new JLabel(""); panel.add(label, "cell 0 2"); JButton btnSearch = new JButton("Search"); btnSearch.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { String title = titleField.getText(); String prod = productionField.getText(); if(productionField.getText().equals("")) prod = "*"; HashMap<String, String> infoMap = Database.search(title, "movie", prod); new InformationGUI(infoMap); } }); JComboBox<String> comboBox = new JComboBox<String>(); comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"movie", "tv series", "tv movie", "video movie", "tv miniseries", "video game"})); ((JLabel)comboBox.getRenderer()).setHorizontalAlignment(SwingConstants.CENTER); panel.add(comboBox, "cell 0 3,growx"); JLabel lblProductionYear = new JLabel("Production Year"); lblProductionYear.setFont(new Font("Tahoma", Font.BOLD, 20)); panel.add(lblProductionYear, "cell 0 5"); productionField = new JTextField(); productionField.setFont(new Font("Tahoma", Font.PLAIN, 24)); productionField.setHorizontalAlignment(SwingConstants.CENTER); panel.add(productionField, "cell 0 6,growx"); productionField.setColumns(10); panel.add(btnSearch, "cell 0 8"); }
{ "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
Create contents of the dialog.
private void createContents() { shell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL); shell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, "/com/yc/ui/1.jpg")); shell.setSize(436, 321); shell.setText("设置文字水印"); Label label_font = new Label(shell, SWT.NONE); label_font.setBounds(38, 80, 61, 17); label_font.setText("字体名称:"); Label label_style = new Label(shell, SWT.NONE); label_style.setBounds(232, 77, 61, 17); label_style.setText("字体样式:"); Label label_size = new Label(shell, SWT.NONE); label_size.setBounds(38, 120, 68, 17); label_size.setText("字体大小:"); Label label_color = new Label(shell, SWT.NONE); label_color.setBounds(232, 120, 68, 17); label_color.setText("字体颜色:"); Label label_word = new Label(shell, SWT.NONE); label_word.setBounds(38, 38, 61, 17); label_word.setText("水印文字:"); text = new Text(shell, SWT.BORDER); text.setBounds(115, 35, 278, 23); Button button_confirm = new Button(shell, SWT.NONE); button_confirm.setBounds(313, 256, 80, 27); button_confirm.setText("确定"); Combo combo = new Combo(shell, SWT.NONE); combo.setItems(new String[] {"宋体", "黑体", "楷体", "微软雅黑", "仿宋"}); combo.setBounds(115, 77, 93, 25); combo.setText("黑体"); Combo combo_1 = new Combo(shell, SWT.NONE); combo_1.setItems(new String[] {"粗体", "斜体"}); combo_1.setBounds(300, 74, 93, 25); combo_1.setText("粗体"); Combo combo_2 = new Combo(shell, SWT.NONE); combo_2.setItems(new String[] {"1", "3", "5", "8", "10", "12", "16", "18", "20", "24", "30", "36", "48", "56", "66", "72"}); combo_2.setBounds(115, 117, 93, 25); combo_2.setText("24"); Combo combo_3 = new Combo(shell, SWT.NONE); combo_3.setItems(new String[] {"红色", "绿色", "蓝色"}); combo_3.setBounds(300, 117, 93, 25); combo_3.setText("红色"); Button button_cancle = new Button(shell, SWT.NONE); button_cancle.setBounds(182, 256, 80, 27); button_cancle.setText("取消"); Label label_X = new Label(shell, SWT.NONE); label_X.setBounds(31, 161, 68, 17); label_X.setText("X轴偏移值:"); Combo combo_4 = new Combo(shell, SWT.NONE); combo_4.setItems(new String[] {"10", "20", "30", "40", "50", "80", "100", "160", "320", "640"}); combo_4.setBounds(115, 158, 93, 25); combo_4.setText("50"); Label label_Y = new Label(shell, SWT.NONE); label_Y.setText("Y轴偏移值:"); label_Y.setBounds(225, 161, 68, 17); Combo combo_5 = new Combo(shell, SWT.NONE); combo_5.setItems(new String[] {"10", "20", "30", "40", "50", "80", "100", "160", "320", "640"}); combo_5.setBounds(300, 158, 93, 25); combo_5.setText("50"); Label label_alpha = new Label(shell, SWT.NONE); label_alpha.setBounds(46, 204, 53, 17); label_alpha.setText("透明度:"); Combo combo_6 = new Combo(shell, SWT.NONE); combo_6.setItems(new String[] {"0", "0.1", "0.2", "0.3", "0.4", "0.5", "0.6", "0.7", "0.8", "0.9", "1.0"}); combo_6.setBounds(115, 201, 93, 25); combo_6.setText("0.8"); //取消按钮 button_cancle.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { WordWatermarkDialog.this.shell.dispose(); } }); //确认按钮 button_confirm.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if(text.getText().trim()==null || "".equals(text.getText().trim()) ||combo.getText().trim()==null || "".equals(combo.getText().trim()) ||combo_1.getText().trim()==null || "".equals(combo_1.getText().trim()) || combo_2.getText().trim()==null || "".equals(combo_2.getText().trim()) || combo_3.getText().trim()==null || "".equals(combo_3.getText().trim()) ||combo_4.getText().trim()==null || "".equals(combo_4.getText().trim()) ||combo_5.getText().trim()==null || "".equals(combo_5.getText().trim()) ||combo_6.getText().trim()==null || "".equals(combo_6.getText().trim())){ MessageDialog.openError(shell, "错误", "输入框不能为空或输入空值,请确认后重新输入!"); return; } String word=text.getText().trim(); String wordName=getFontName(combo.getText().trim()); int wordStyle=getFonStyle(combo_1.getText().trim()); int wordSize=Integer.parseInt(combo_2.getText().trim()); Color wordColor=getFontColor(combo_3.getText().trim()); int word_X=Integer.parseInt(combo_4.getText().trim()); int word_Y=Integer.parseInt(combo_5.getText().trim()); float word_Alpha=Float.parseFloat(combo_6.getText().trim()); is=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha); Common.image=new Image(display,is); WordWatermarkDialog.this.shell.dispose(); } }); combo.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { Pattern pattern = Pattern.compile("[^0-9]*"); Matcher matcher = pattern.matcher(e.text); if (matcher.matches()) // 处理数字 e.doit = true; else if (e.text.length() > 0) // 有字符情况,包含中文、空格 e.doit = false; else e.doit = false; } }); combo_1.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { Pattern pattern = Pattern.compile("[^0-9]*"); Matcher matcher = pattern.matcher(e.text); if (matcher.matches()) // 处理数字 e.doit = true; else if (e.text.length() > 0) // 有字符情况,包含中文、空格 e.doit = false; else e.doit = false; } }); combo_2.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { Pattern pattern = Pattern.compile("[0-9]\\d*"); Matcher matcher = pattern.matcher(e.text); if (matcher.matches()) // 处理数字 e.doit = true; else if (e.text.length() > 0) // 有字符情况,包含中文、空格 e.doit = false; else e.doit = false; } }); combo_3.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { Pattern pattern = Pattern.compile("[^0-9]*"); Matcher matcher = pattern.matcher(e.text); if (matcher.matches()) // 处理数字 e.doit = true; else if (e.text.length() > 0) // 有字符情况,包含中文、空格 e.doit = false; else e.doit = false; } }); combo_4.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { Pattern pattern = Pattern.compile("[0-9]\\d*"); Matcher matcher = pattern.matcher(e.text); if (matcher.matches()) // 处理数字 e.doit = true; else if (e.text.length() > 0) // 有字符情况,包含中文、空格 e.doit = false; else e.doit = false; } }); combo_5.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { Pattern pattern = Pattern.compile("[0-9]\\d*"); Matcher matcher = pattern.matcher(e.text); if (matcher.matches()) // 处理数字 e.doit = true; else if (e.text.length() > 0) // 有字符情况,包含中文、空格 e.doit = false; else e.doit = false; } }); combo_6.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { Pattern pattern = Pattern.compile(".[0-9]*"); Matcher matcher = pattern.matcher(e.text); if (matcher.matches()) // 处理数字 e.doit = true; else if (e.text.length() > 0) // 有字符情况,包含中文、空格 e.doit = false; else e.doit = false; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}", "protected void createContents() {\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "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}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\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}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\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.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: wtrocki@gmail.com\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "protected void createContents() throws Exception {\n\t\tshlGecco = new Shell();\n\t\tshlGecco.setImage(SWTResourceManager.getImage(jdView.class, \"/images/yc.ico\"));\n\t\tshlGecco.setSize(1366, 736);\n\t\tshlGecco.setText(\"gecco爬取京东信息\");\n\t\tshlGecco.setLocation(0, 0);\n\t\tshlGecco.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tSashForm sashForm = new SashForm(shlGecco, SWT.NONE);\n\t\tsashForm.setOrientation(SWT.VERTICAL);\n\n\t\tGroup group = new Group(sashForm, SWT.NONE);\n\t\tgroup.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup.setText(\"爬取查询条件\");\n\t\tgroup.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_2 = new SashForm(group, SWT.NONE);\n\n\t\tGroup group_2 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_2.setText(\"爬取条件\");\n\n\t\tLabel lblip = new Label(group_2, SWT.NONE);\n\t\tlblip.setLocation(34, 27);\n\t\tlblip.setSize(113, 21);\n\t\tlblip.setText(\"输入开始爬取地址:\");\n\n\t\ttxtSearchUrl = new Text(group_2, SWT.BORDER);\n\t\ttxtSearchUrl.setLocation(153, 23);\n\t\ttxtSearchUrl.setSize(243, 23);\n\t\ttxtSearchUrl.setText(\"https://www.jd.com/allSort.aspx\");\n\n\t\tbtnSearch = new Button(group_2, SWT.NONE);\n\t\tbtnSearch.setLocation(408, 23);\n\t\tbtnSearch.setSize(82, 25);\n\n\t\tbtnSearch.setEnabled(false);\n\t\tbtnSearch.setText(\"开始爬取\");\n\n\t\tGroup group_3 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_3.setText(\"查询条件\");\n\n\t\tLabel label_2 = new Label(group_3, SWT.NONE);\n\t\tlabel_2.setLocation(77, 25);\n\t\tlabel_2.setSize(86, 25);\n\t\tlabel_2.setText(\"选择查询条件:\");\n\n\t\tcombo = new Combo(group_3, SWT.NONE);\n\t\tcombo.setLocation(169, 23);\n\t\tcombo.setSize(140, 23);\n\t\tcombo.setItems(new String[] { \"全部\", \"商品总类别\", \"子类别名\", \"类别链接\" });\n\t\t// combo.setText(\"全部\");\n\n\t\tbutton = new Button(group_3, SWT.NONE);\n\t\tbutton.setLocation(524, 23);\n\t\tbutton.setSize(80, 25);\n\t\tbutton.setText(\"点击查询\");\n\t\tbutton.setEnabled(false);\n\n\t\tcombo_1 = new Combo(group_3, SWT.NONE);\n\t\tcombo_1.setEnabled(false);\n\t\tcombo_1.setLocation(332, 23);\n\t\tcombo_1.setSize(170, 23);\n\t\t// combo_1.setItems(new String[] { \"全部\" });\n\t\t// combo_1.setText(\"全部\");\n\t\tsashForm_2.setWeights(new int[] { 562, 779 });\n\t\tGroup group_1 = new Group(sashForm, SWT.NONE);\n\t\tgroup_1.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup_1.setText(\"爬取结果\");\n\t\tgroup_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_1 = new SashForm(group_1, SWT.NONE);\n\n\t\tGroup group_Categorys = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_Categorys.setText(\"商品分组\");\n\t\tgroup_Categorys.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tcategorys = new Table(group_Categorys, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tcategorys.setHeaderVisible(true);\n\t\tcategorys.setLinesVisible(true);\n\n\t\tTableColumn ParentName = new TableColumn(categorys, SWT.NONE);\n\t\tParentName.setWidth(87);\n\t\tParentName.setText(\"商品总类别\");\n\n\t\tTableColumn Title = new TableColumn(categorys, SWT.NONE);\n\t\tTitle.setWidth(87);\n\t\tTitle.setText(\"子类别名\");\n\n\t\tTableColumn Ip = new TableColumn(categorys, SWT.NONE);\n\t\tIp.setWidth(152);\n\t\tIp.setText(\"类别链接\");\n\n\t\tGroup group_ProductBrief = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductBrief.setText(\"商品简要信息列表\");\n\t\tgroup_ProductBrief.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tproductBrief = new Table(group_ProductBrief, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tproductBrief.setLinesVisible(true);\n\t\tproductBrief.setHeaderVisible(true);\n\n\t\tTableColumn Code = new TableColumn(productBrief, SWT.NONE);\n\t\tCode.setWidth(80);\n\t\tCode.setText(\"商品编号\");\n\n\t\tTableColumn Detailurl = new TableColumn(productBrief, SWT.NONE);\n\t\tDetailurl.setWidth(162);\n\t\tDetailurl.setText(\"商品详情链接\");\n\n\t\tTableColumn Preview = new TableColumn(productBrief, SWT.NONE);\n\t\tPreview.setWidth(170);\n\t\tPreview.setText(\"商品图片链接\");\n\n\t\tTableColumn Dtitle = new TableColumn(productBrief, SWT.NONE);\n\t\tDtitle.setWidth(150);\n\t\tDtitle.setText(\"商品标题\");\n\n\t\tGroup group_ProductDetail = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductDetail.setText(\"商品详细信息\");\n\t\tgroup_ProductDetail.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tComposite composite = new Composite(group_ProductDetail, SWT.NONE);\n\n\t\tPDetail = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tPDetail.setLocation(55, 339);\n\t\tPDetail.setSize(360, 220);\n\n\t\tLabel Id = new Label(composite, SWT.NONE);\n\t\tId.setBounds(31, 28, 61, 15);\n\t\tId.setText(\"商品编号:\");\n\n\t\tLabel detail = new Label(composite, SWT.NONE);\n\t\tdetail.setText(\"商品详情:\");\n\t\tdetail.setBounds(31, 311, 61, 15);\n\n\t\tLabel title = new Label(composite, SWT.NONE);\n\t\ttitle.setText(\"商品标题:\");\n\t\ttitle.setBounds(31, 64, 61, 15);\n\n\t\tLabel jdAd = new Label(composite, SWT.NONE);\n\t\tjdAd.setText(\"商品广告:\");\n\t\tjdAd.setBounds(31, 201, 61, 15);\n\n\t\tLabel price = new Label(composite, SWT.NONE);\n\t\tprice.setBounds(31, 108, 61, 15);\n\t\tprice.setText(\"价格:\");\n\n\t\tdcode = new Text(composite, SWT.BORDER);\n\t\tdcode.setEditable(false);\n\t\tdcode.setBounds(98, 25, 217, 21);\n\n\t\tLabel jdprice = new Label(composite, SWT.NONE);\n\t\tjdprice.setBounds(75, 127, 48, 15);\n\t\tjdprice.setText(\"京东价:\");\n\n\t\tLabel srcPrice = new Label(composite, SWT.NONE);\n\t\tsrcPrice.setBounds(75, 166, 48, 15);\n\t\tsrcPrice.setText(\"原售价:\");\n\n\t\tdprice = new Text(composite, SWT.BORDER);\n\t\tdprice.setEditable(false);\n\t\tdprice.setBounds(128, 127, 187, 21);\n\n\t\tdsrcPrice = new Text(composite, SWT.BORDER);\n\t\tdsrcPrice.setEditable(false);\n\t\tdsrcPrice.setBounds(128, 166, 187, 21);\n\n\t\tdtitle = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tdtitle.setBounds(98, 62, 217, 42);\n\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setText(\"广告标题:\");\n\t\tlabel.setBounds(62, 233, 61, 15);\n\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setText(\"广告链接:\");\n\t\tlabel_1.setBounds(62, 272, 61, 15);\n\n\t\tadtitle = new Text(composite, SWT.BORDER);\n\t\tadtitle.setEditable(false);\n\t\tadtitle.setBounds(128, 231, 187, 21);\n\n\t\tadUrl = new Text(composite, SWT.BORDER);\n\t\tadUrl.setEditable(false);\n\t\tadUrl.setBounds(128, 270, 187, 21);\n\t\tsashForm_1.setWeights(new int[] { 335, 573, 430 });\n\t\tsashForm.setWeights(new int[] { 85, 586 });\n\n\t\tdoEvent();// 组件的事件操作\n\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\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\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "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 }", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\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\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tshell.setSize(599, 779);\r\n\t\tshell.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tButton logoBtn = new Button(shell, SWT.NONE);\r\n\t\tlogoBtn.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tMainMenuKaff mm = new MainMenuKaff();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tmm.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tlogoBtn.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\logo for header button.png\"));\r\n\t\tlogoBtn.setBounds(497, 0, 64, 50);\r\n\r\n\t\tLabel headerLabel = new Label(shell, SWT.NONE);\r\n\t\theaderLabel.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\KaffPlatformheader.jpg\"));\r\n\t\theaderLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\theaderLabel.setBounds(0, 0, 607, 50);\r\n\r\n\t\tLabel bookInfoLabel = new Label(shell, SWT.NONE);\r\n\t\tbookInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\tbookInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\tbookInfoLabel.setAlignment(SWT.CENTER);\r\n\t\tbookInfoLabel.setBounds(177, 130, 192, 28);\r\n\t\tbookInfoLabel.setText(\"معلومات الكتاب\");\r\n\r\n\t\tLabel bookTitleLabel = new Label(shell, SWT.NONE);\r\n\t\tbookTitleLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookTitleLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookTitleLabel.setBounds(415, 203, 119, 28);\r\n\t\tbookTitleLabel.setText(\"عنوان الكتاب\");\r\n\r\n\t\tBookTitleTxt = new Text(shell, SWT.BORDER);\r\n\t\tBookTitleTxt.setBounds(56, 206, 334, 24);\r\n\r\n\t\tLabel bookIDLabel = new Label(shell, SWT.NONE);\r\n\t\tbookIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookIDLabel.setBounds(415, 170, 119, 32);\r\n\t\tbookIDLabel.setText(\"رمز الكتاب\");\r\n\r\n\t\tLabel editionLabel = new Label(shell, SWT.NONE);\r\n\t\teditionLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\teditionLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\teditionLabel.setBounds(415, 235, 119, 28);\r\n\t\teditionLabel.setText(\"إصدار الكتاب\");\r\n\r\n\t\teditionTxt = new Text(shell, SWT.BORDER);\r\n\t\teditionTxt.setBounds(271, 240, 119, 24);\r\n\r\n\t\tLabel lvlLabel = new Label(shell, SWT.NONE);\r\n\t\tlvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tlvlLabel.setText(\"المستوى\");\r\n\t\tlvlLabel.setBounds(415, 269, 119, 27);\r\n\r\n\t\tCombo lvlBookCombo = new Combo(shell, SWT.NONE);\r\n\t\tlvlBookCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\tlvlBookCombo.setBounds(326, 272, 64, 25);\r\n\t\tlvlBookCombo.select(0);\r\n\r\n\t\tLabel priceLabel = new Label(shell, SWT.NONE);\r\n\t\tpriceLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tpriceLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tpriceLabel.setText(\"السعر\");\r\n\t\tpriceLabel.setBounds(415, 351, 119, 28);\r\n\r\n\t\tGroup groupType = new Group(shell, SWT.NONE);\r\n\t\tgroupType.setBounds(56, 320, 334, 24);\r\n\r\n\t\tButton button = new Button(groupType, SWT.RADIO);\r\n\t\tbutton.setSelection(true);\r\n\t\tbutton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton.setBounds(21, 0, 73, 21);\r\n\t\tbutton.setText(\"مجاناً\");\r\n\r\n\t\tButton button_1 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_1.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_1.setBounds(130, 0, 73, 21);\r\n\t\tbutton_1.setText(\"إعارة\");\r\n\r\n\t\tButton button_2 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_2.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_2.setBounds(233, 0, 80, 21);\r\n\t\tbutton_2.setText(\"للبيع\");\r\n\r\n\t\tpriceTxtValue = new Text(shell, SWT.BORDER);\r\n\t\tpriceTxtValue.setBounds(326, 355, 64, 24);\r\n\r\n\t\tLabel ownerInfoLabel = new Label(shell, SWT.NONE);\r\n\t\townerInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\townerInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\townerInfoLabel.setText(\"معلومات صاحبة الكتاب\");\r\n\t\townerInfoLabel.setAlignment(SWT.CENTER);\r\n\t\townerInfoLabel.setBounds(147, 400, 242, 28);\r\n\r\n\t\tLabel ownerIDLabel = new Label(shell, SWT.NONE);\r\n\t\townerIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerIDLabel.setBounds(415, 441, 119, 34);\r\n\t\townerIDLabel.setText(\"الرقم الأكاديمي\");\r\n\r\n\t\townerIDValue = new Text(shell, SWT.BORDER);\r\n\t\townerIDValue.setBounds(204, 444, 186, 24);\r\n\t\t// need to check if the owner is already in the database...\r\n\r\n\t\tLabel nameLabel = new Label(shell, SWT.NONE);\r\n\t\tnameLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tnameLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tnameLabel.setBounds(415, 481, 119, 28);\r\n\t\tnameLabel.setText(\"الاسم الثلاثي\");\r\n\r\n\t\tnameTxt = new Text(shell, SWT.BORDER);\r\n\t\tnameTxt.setBounds(56, 485, 334, 24);\r\n\r\n\t\tLabel phoneLabel = new Label(shell, SWT.NONE);\r\n\t\tphoneLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tphoneLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tphoneLabel.setText(\"رقم الجوال\");\r\n\t\tphoneLabel.setBounds(415, 515, 119, 27);\r\n\r\n\t\tphoneTxt = new Text(shell, SWT.BORDER);\r\n\t\tphoneTxt.setBounds(204, 521, 186, 24);\r\n\r\n\t\tLabel ownerLvlLabel = new Label(shell, SWT.NONE);\r\n\t\townerLvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerLvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerLvlLabel.setBounds(415, 548, 119, 31);\r\n\t\townerLvlLabel.setText(\"المستوى\");\r\n\r\n\t\tCombo owneLvlCombo = new Combo(shell, SWT.NONE);\r\n\t\towneLvlCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\towneLvlCombo.setBounds(326, 554, 64, 25);\r\n\t\towneLvlCombo.select(0);\r\n\r\n\t\tLabel emailLabel = new Label(shell, SWT.NONE);\r\n\t\temailLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\temailLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\temailLabel.setBounds(415, 583, 119, 38);\r\n\t\temailLabel.setText(\"البريد الإلكتروني\");\r\n\r\n\t\temailTxt = new Text(shell, SWT.BORDER);\r\n\t\temailTxt.setBounds(56, 586, 334, 24);\r\n\r\n\t\tButton addButton = new Button(shell, SWT.NONE);\r\n\t\taddButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString bookQuery = \"INSERT INTO kaff.BOOK(bookID, bookTitle, price, level,available, type) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\t\t\t\t\tString bookEdition = \"INSERT INTO kaff.bookEdition(bookID, edition, year) VALUES (?, ?, ?)\";\r\n\t\t\t\t\tString ownerQuery = \"INSERT INTO kaff.user(userID, fname, mname, lastname, phone, level, personalEmail, email) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\t\t\tString bookID = bookIDTxt.getText();\r\n\t\t\t\t\tString bookTitle = BookTitleTxt.getText();\r\n\t\t\t\t\tint bookLevel = lvlBookCombo.getSelectionIndex();\r\n\t\t\t\t\tString type = groupType.getText();\r\n\t\t\t\t\tdouble price = Double.parseDouble(priceTxtValue.getText());\r\n\t\t\t\t\tboolean available = true;\r\n\r\n\t\t\t\t\t// must error handle\r\n\t\t\t\t\tString[] ed = editionTxt.getText().split(\" \");\r\n\t\t\t\t\tString edition = ed[0];\r\n\t\t\t\t\tString year = ed[1];\r\n\r\n\t\t\t\t\tString ownerID = ownerIDValue.getText();\r\n\r\n\t\t\t\t\t// error handle if the user enters two names or just first name\r\n\t\t\t\t\tString[] name = nameTxt.getText().split(\" \");\r\n\t\t\t\t\tString fname = \"\", mname = \"\", lname = \"\";\r\n\t\t\t\t\tSystem.out.println(\"name array\" + name);\r\n\t\t\t\t\tif (name.length > 2) {\r\n\t\t\t\t\t\tfname = name[0];\r\n\t\t\t\t\t\tmname = name[1];\r\n\t\t\t\t\t\tlname = name[2];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString phone = phoneTxt.getText();\r\n\t\t\t\t\tint userLevel = owneLvlCombo.getSelectionIndex();\r\n\t\t\t\t\tString email = emailTxt.getText();\r\n\r\n\t\t\t\t\tDatabase.openConnection();\r\n\t\t\t\t\tPreparedStatement bookStatement = Database.getConnection().prepareStatement(bookQuery);\r\n\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, bookTitle);\r\n\t\t\t\t\tbookStatement.setInt(3, bookLevel);\r\n\t\t\t\t\tbookStatement.setString(4, type);\r\n\t\t\t\t\tbookStatement.setDouble(5, price);\r\n\t\t\t\t\tbookStatement.setBoolean(6, available);\r\n\r\n\t\t\t\t\tint bookre = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tbookStatement = Database.getConnection().prepareStatement(bookEdition);\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, edition);\r\n\t\t\t\t\tbookStatement.setString(3, year);\r\n\r\n\t\t\t\t\tint edResult = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tPreparedStatement ownerStatement = Database.getConnection().prepareStatement(ownerQuery);\r\n\t\t\t\t\townerStatement.setString(1, ownerID);\r\n\t\t\t\t\townerStatement.setString(2, fname);\r\n\t\t\t\t\townerStatement.setString(3, mname);\r\n\t\t\t\t\townerStatement.setString(4, lname);\r\n\t\t\t\t\townerStatement.setString(5, phone);\r\n\t\t\t\t\townerStatement.setInt(6, userLevel);\r\n\t\t\t\t\townerStatement.setString(7, ownerID + \"iau.edu.sa\");\r\n\t\t\t\t\townerStatement.setString(8, email);\r\n\t\t\t\t\tint ownRes = ownerStatement.executeUpdate();\r\n\r\n\t\t\t\t\tSystem.out.println(\"results: \" + ownRes + \" \" + edResult + \" bookre\");\r\n\t\t\t\t\t// test result of excute Update\r\n\t\t\t\t\tif (ownRes != 0 && edResult != 0 && bookre != 0) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is updated\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is not updated\");\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDatabase.closeConnection();\r\n\t\t\t\t} catch (SQLException sql) {\r\n\t\t\t\t\tSystem.out.println(sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\taddButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\taddButton.setBounds(54, 666, 85, 26);\r\n\t\taddButton.setText(\"إضافة\");\r\n\r\n\t\tButton backButton = new Button(shell, SWT.NONE);\r\n\t\tbackButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tAdminMenu am = new AdminMenu();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tam.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbackButton.setBounds(150, 666, 85, 26);\r\n\t\tbackButton.setText(\"رجوع\");\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(177, 72, 192, 21);\r\n\t\tlabel.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(22, 103, 167, 21);\r\n\t\t// get user name here to display\r\n\t\tString name = getUserName();\r\n\t\tlabel_1.setText(\"مرحباً ...\" + name);\r\n\r\n\t\tbookIDTxt = new Text(shell, SWT.BORDER);\r\n\t\tbookIDTxt.setBounds(271, 170, 119, 24);\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "protected void createContents() {\n\t\tDelAllShell = new Shell(SWT.CLOSE | SWT.MIN);\n\t\tfinal int WIDTH=java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;\n\t\tfinal int HEIGHT=java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;\n\t\t\n\t\tDelAllShell.setBounds((WIDTH-441)/2,(HEIGHT-300)/2,441, 177);\n\t\tDelAllShell.setText(\"清空\");\n\t\t\n\t\tLabel messgLabel_1 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_1.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_1.setBounds(10, 10, 405, 23);\n\t\tmessgLabel_1.setText(\"您所选择的分组为通讯录列表,确认删除时\");\n\t\t\n\t\tLabel messgLabel_2 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_2.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_2.setBounds(62, 39, 272, 23);\n\t\tmessgLabel_2.setText(\"清空所有内容!\");\n\t\t\n\t\tButton yesButton = new Button(DelAllShell, SWT.NONE);\n\t\tyesButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tTreeItem[] treeItem=mainTreeItem.getItems();\n\t\t\t\t\tfor(int i=0;i<treeItem.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttreeItem[i].dispose();\n\t\t\t\t\t}\n\t\t\t\tGroups.getGroupList().clear();\n\t\t\t\tUsers.getUserList().clear();\n\t\t\t\tGroups.updateToFile();\n\t\t\t\tUsers.updateToFile();\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"清空文件失败\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDelAllShell.close();\n\t\t\t\t//final Group mainTreeItem = new Group(tree, SWT.NONE);\n\t\t\t\t//mainTreeItem.setText(\"通讯录列表\");\n\t\t\t\t//mainShell.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tyesButton.setBounds(86, 102, 80, 27);\n\t\tyesButton.setText(\"确定\");\n\t\t\n\t\tButton noButton = new Button(DelAllShell, SWT.NONE);\n\t\tnoButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tDelAllShell.close();\n\t\t\t}\n\t\t});\n\t\tnoButton.setText(\"取消\");\n\t\tnoButton.setBounds(254, 102, 80, 27);\n\n\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(250, 150);\n\t\tshell.setText(getText());\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.SOUTH);\n\t\tcomposite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite_1.setLayout(new GridLayout(4, false));\n\t\tnew Label(composite_1, SWT.NONE);\n\t\t\n\t\tLabel lblHour = new Label(composite_1, SWT.NONE);\n\t\tlblHour.setSize(0, 0);\n\t\tlblHour.setText(\"Hour\");\n\t\t\n\t\tLabel lblMin = new Label(composite_1, SWT.NONE);\n\t\tlblMin.setSize(0, 0);\n\t\tlblMin.setText(\"Min\");\n\t\t\n\t\tButton btnAm = new Button(composite_1, SWT.RADIO);\n\t\tbtnAm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tampm=0;\n\t\t\t}\n\t\t});\n\t\tbtnAm.setSize(0, 0);\n\t\tbtnAm.setText(\"AM\");\n\t\t\n\t\tLabel lblStartTime = new Label(composite_1, SWT.NONE);\n\t\tlblStartTime.setSize(0, 0);\n\t\tlblStartTime.setText(\"Start Time:\");\n\t\t\n\t\tfinal Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\thourSpinner.setSize(0, 0);\n\t\thourSpinner.setMaximum(12);\n\t\thourSpinner.setMinimum(1);\n\t\t\n\t\tfinal Spinner minSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\tminSpinner.setSize(0, 0);\n\t\tminSpinner.setMaximum(59);\n\t\tminSpinner.setMinimum(0);\n\t\t\n\t\t\n\t\tButton btnPm = new Button(composite_1, SWT.RADIO);\n\t\tbtnPm.setSize(0, 0);\n\t\tbtnPm.setText(\"PM\");\n\t\t\n\t\tButton btnCancel = new Button(composite, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnOk = new Button(composite, SWT.NONE);\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thour = Integer.valueOf(hourSpinner.getText());\n\t\t\t\tminute = Integer.valueOf(minSpinner.getText());\n\t\t\t\tparent.setHour(hour);\n\t\t\t\tSystem.out.println(\"print hour-->\"+hour+\". print parent.hour-->\"+parent.hour);\n\t\t\t\tSystem.out.println(parent.hour);\n\t\t\t\tparent.setMinute(minute);\n\t\t\t\tparent.setAmpm(ampm);\n\t\t\t\tshell.close();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnOk.setText(\"OK\");\n\t\t\n\t\t\n\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "private void createContents() {\n shell = new Shell(getParent(), getStyle());\n shell.setSize(540, 297);\n shell.setLayout(new GridLayout(1, false));\n\n Composite cmpTop = new Composite(shell, SWT.NONE);\n cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n GridLayout gl_cmpTop = new GridLayout(4, false);\n gl_cmpTop.verticalSpacing = 0;\n cmpTop.setLayout(gl_cmpTop);\n\n Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER);\n lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBankAccountNumber.setBounds(0, 0, 59, 14);\n lblBankAccountNumber.setText(\"Bank Account\");\n Label lblBranch = new Label(cmpTop, SWT.CENTER);\n lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBranch.setBounds(0, 0, 59, 14);\n lblBranch.setText(\"Branch\");\n\n Label lblBank = new Label(cmpTop, SWT.CENTER);\n lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBank.setText(\"Bank\");\n new Label(cmpTop, SWT.NONE);\n\n txtBankAccountNumber = new Text(cmpTop, SWT.BORDER);\n txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n txtBankAccountNumber.setBounds(0, 0, 64, 19);\n\n txtBranch = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBranch.widthHint = 50;\n txtBranch.setLayoutData(gd_txtBranch);\n txtBranch.setBounds(0, 0, 64, 19);\n\n txtBank = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBank.widthHint = 50;\n txtBank.setLayoutData(gd_txtBank);\n btnSearch = new Button(cmpTop, SWT.NONE);\n btnSearch.setAlignment(SWT.RIGHT);\n btnSearch.setText(\"Search\");\n btnSearch.setEnabled(false);\n\n Composite cmpResults = new Composite(shell, SWT.NONE);\n cmpResults.setLayout(new GridLayout(1, false));\n GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_cmpResults.heightHint = 129;\n cmpResults.setLayoutData(gd_cmpResults);\n\n tblAccounts = new Table(cmpResults, SWT.BORDER);\n GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_tblAccounts.heightHint = 71;\n tblAccounts.setLayoutData(gd_tblAccounts);\n tblAccounts.setHeaderVisible(true);\n tblAccounts.setLinesVisible(true);\n\n TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnAccountNumber.setWidth(120);\n tblclmnAccountNumber.setText(\"Player Account\");\n\n TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmsFirstName.setWidth(100);\n tblclmsFirstName.setText(\"First Name\");\n\n TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnLastName.setWidth(100);\n tblclmnLastName.setText(\"Last Name\");\n\n TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnActivated.setWidth(95);\n tblclmnActivated.setText(\"From\");\n\n TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnDeactivated.setWidth(100);\n tblclmnDeactivated.setText(\"To\");\n\n Composite cmpFooter = new Composite(shell, SWT.NONE);\n cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n cmpFooter.setLayout(new GridLayout(2, false));\n\n lblResultsMessage = new Label(cmpFooter, SWT.NONE);\n lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\n Composite cmpButtons = new Composite(cmpFooter, SWT.NONE);\n cmpButtons.setLayout(new GridLayout(3, false));\n cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));\n\n btnLoad = new Button(cmpButtons, SWT.NONE);\n btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnLoad.setText(\"Load Account\");\n btnLoad.setEnabled(false);\n\n btnCancel = new Button(cmpButtons, SWT.NONE);\n btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnCancel.setText(\"Cancel\");\n new Label(cmpButtons, SWT.NONE);\n }", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tLabel lblUsername = new Label(shell, SWT.NONE);\n\t\tlblUsername.setBounds(73, 30, 55, 15);\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\tLabel lblPassword = new Label(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(73, 78, 55, 15);\n\t\t\n\t\ttxtUsername = new Text(shell, SWT.BORDER);\n\t\ttxtUsername.setText(\"lisa\");\n\t\ttxtUsername.setBounds(139, 24, 209, 21);\n\t\t\n\t\ttxtPassword = new Text(shell, SWT.BORDER);\n\t\ttxtPassword.setText(\"password1\");\n\t\ttxtPassword.setBounds(139, 72, 209, 21);\n\t\t\n\t\tButton btnLogin = new Button(shell, SWT.NONE);\n\t\tbtnLogin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tString usrname = txtUsername.getText();\n\t\t\t\tString usrpass = txtPassword.getText();\n\t\t\t\t\n\t\t\t\t// Call authenticate user credentials through authentication RMI server\n\t\t\t\tLoginInterface login;\n\t\t\t\ttry{\n\t\t\t\t\tlogin = (LoginInterface)Naming.lookup(\"rmi://localhost/login\");\n\t\t\t\t\t\n\t\t\t\t\tboolean authenticated = login.authenticate(usrname, usrpass);\n\t\t\t\t\tif(authenticated){\n\t\t\t\t\t\tSystem.out.println(\"User authenticated.\");\n\t\t\t\t\t\tclose();\n\n\t\t\t\t\t\tevaluator.EvaluatorClient.main(null);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t\tlblMsgOut.setText(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}catch(Exception e2){\n\t\t\t\t\tSystem.out.println(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t\tlblMsgOut.setText(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(272, 118, 75, 25);\n\t\tbtnLogin.setText(\"Login\");\n\t\t\n\t\tlblMsgOut = new Label(shell, SWT.BORDER | SWT.WRAP);\n\t\tlblMsgOut.setBounds(10, 174, 414, 77);\n\t\tlblMsgOut.setText(\"Output:\");\n\n\t}", "protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\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\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\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} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite composite_3 = new Composite(shell, SWT.NONE);\n final FormData fd_composite_3 = new FormData();\n fd_composite_3.top = new FormAttachment(0, 1);\n fd_composite_3.left = new FormAttachment(0, 5);\n fd_composite_3.height = 100;\n fd_composite_3.right = new FormAttachment(100, -5);\n composite_3.setLayoutData(fd_composite_3);\n composite_3.setLayout(new FormLayout());\n\n final Group basicGroup = new Group(composite_3, SWT.NONE);\n basicGroup.setLayout(new FormLayout());\n final FormData fd_basicGroup = new FormData();\n fd_basicGroup.bottom = new FormAttachment(100, -1);\n fd_basicGroup.top = new FormAttachment(0, -6);\n fd_basicGroup.right = new FormAttachment(100, 0);\n fd_basicGroup.left = new FormAttachment(0, 0);\n basicGroup.setLayoutData(fd_basicGroup);\n\n final Label label = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label = new FormData();\n fd_label.top = new FormAttachment(0, 0);\n fd_label.right = new FormAttachment(15, 0);\n fd_label.left = new FormAttachment(0, 0);\n label.setLayoutData(fd_label);\n label.setText(\"节点名称:\");\n\n txtName = new Text(basicGroup, SWT.BORDER);\n final FormData fd_txtName = new FormData();\n fd_txtName.top = new FormAttachment(0, 0);\n fd_txtName.right = new FormAttachment(40, 0);\n fd_txtName.left = new FormAttachment(label, 0);\n txtName.setLayoutData(fd_txtName);\n txtName.setEditable(true);\n\n final Label label_1 = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(0, 0);\n fd_label_1.right = new FormAttachment(55, 0);\n fd_label_1.left = new FormAttachment(txtName, 0);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"数据表名:\");\n\n txtTableName = new Text(basicGroup, SWT.BORDER);\n txtTableName.setEditable(false);\n final FormData fd_txtTableName = new FormData();\n fd_txtTableName.top = new FormAttachment(0, 0);\n fd_txtTableName.right = new FormAttachment(90, 0);\n fd_txtTableName.left = new FormAttachment(label_1, 0);\n txtTableName.setLayoutData(fd_txtTableName);\n\n final Button btnSelectTable = new Button(basicGroup, SWT.NONE);\n final FormData fd_btnSelectTable = new FormData();\n fd_btnSelectTable.top = new FormAttachment(0, 0);\n fd_btnSelectTable.right = new FormAttachment(100, -1);\n fd_btnSelectTable.left = new FormAttachment(txtTableName, 0);\n fd_btnSelectTable.height = 23;\n btnSelectTable.setLayoutData(fd_btnSelectTable);\n btnSelectTable.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n DataTable dt = dataSoruceDlg.open();\n if (dt != null) {\n txtTableName.setText(dt.getCnName());\n nodeProperties.setTableName(dt.getCnName());\n nodeProperties.setName(dt.getName());\n loadFieldsInfo(dt);\n nodeProperties.setDataTable(dt);\n int res = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\\r\\n注意:已有字段信息将被覆盖!\");\n if (res == SWT.YES) {\n dataFieldList.clear();\n for (DataField df : dt.getFields()) {\n dataFieldList.add(df);\n }\n tvDataField.refresh();\n }\n }\n }\n });\n btnSelectTable.setText(\"选择表\");\n\n final Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_lblDescription = new FormData();\n fd_lblDescription.top = new FormAttachment(label, 10);\n fd_lblDescription.bottom = new FormAttachment(100, -2);\n fd_lblDescription.left = new FormAttachment(0, 0);\n fd_lblDescription.right = new FormAttachment(15, 0);\n lblDescription.setLayoutData(fd_lblDescription);\n lblDescription.setText(\"说明:\");\n\n txtDes = new StyledText(basicGroup, SWT.BORDER);\n final FormData fd_txtDes = new FormData();\n fd_txtDes.top = new FormAttachment(txtName, 5);\n fd_txtDes.left = new FormAttachment(15, 0);\n fd_txtDes.right = new FormAttachment(100, -2);\n fd_txtDes.bottom = new FormAttachment(100, -2);\n txtDes.setLayoutData(fd_txtDes);\n\n final Button btnOk = new Button(shell, SWT.NONE);\n btnOk.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/tick.png\"));\n final FormData fd_btnOk = new FormData();\n fd_btnOk.height = 28;\n fd_btnOk.width = 80;\n fd_btnOk.bottom = new FormAttachment(100, -5);\n fd_btnOk.right = new FormAttachment(50, -10);\n btnOk.setLayoutData(fd_btnOk);\n btnOk.setText(\"确定(&O)\");\n btnOk.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n save();\n result = 1;\n close();\n }\n });\n\n final Button btnCancel = new Button(shell, SWT.NONE);\n btnCancel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/cross.png\"));\n final FormData fd_btnCancel = new FormData();\n fd_btnCancel.height = 28;\n fd_btnCancel.width = 80;\n fd_btnCancel.bottom = new FormAttachment(100, -5);\n fd_btnCancel.left = new FormAttachment(50, 10);\n btnCancel.setLayoutData(fd_btnCancel);\n btnCancel.setText(\"取消(&C)\");\n btnCancel.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n close();\n }\n });\n\n final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TabItem ti = (TabItem) e.item;\n if (ti.getText().startsWith(\"SQL\")) {\n DataNodeProperties d = new DataNodeProperties();\n d.setAdditionSql(txtOtherCondition.getText());\n // d.setTableName(nodeProperties.getTableName());\n d.setName(nodeProperties.getName());\n d.setFields(dataFieldList);\n d.setFilters(filterList);\n txtSQL.setText(d.getSQL(null));\n }\n else if (ti.getText().startsWith(\"过滤\")) {\n String[] fNames = null;\n if (dataFieldList != null && dataFieldList.size() > 0) {\n fNames = new String[dataFieldList.size()];\n for (int i = 0; i < dataFieldList.size(); i++) {\n fNames[i] = dataFieldList.get(i).getAliasName();\n }\n }\n else fNames = new String[] { \"\" };\n // filtersCellModifier.setAliasNames(fNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n tvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n }\n else if (ti.getText().startsWith(\"列表配置\")) {\n \tif (dataFieldList.size() > configList.size()) {\n \t\tint configLength = configList.size();\n \t\t//添加\n \tfor (int i = 0 ;i<dataFieldList.size();i++ ) {\n \t\tDataField dataField = dataFieldList.get(i);\n \t\tString cnName = dataField.getCnName();\n String aliasName = dataField.getAliasName();\n if (!\"\".equals(cnName) && !\"\".equals(aliasName)) {\n \tboolean haveFlg = false;\n \tfor (int j = 0 ;j< configLength;j++) {\n \t\tFieldConfig filedCfig = configList.get(j);\n \t\tif (!(filedCfig.getCnName().equals(cnName) &&filedCfig.getName().equals(aliasName))) {\n \t\t\tcontinue;\n \t\t} else {\n \t\t\thaveFlg = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (!haveFlg) {//原列表不存在此记录\n FieldConfig newFieldCfig = new FieldConfig();\n \t\t\tnewFieldCfig.setCnName(cnName);\n \t\t\tnewFieldCfig.setName(aliasName);\n \t\t\tconfigList.add(newFieldCfig);\n \t}\n }\n \t}\n \t//\n// \tfor (int k = 0;k< configLength;k++) {\n// \t\tFieldConfig filedCfig = configList.get(k);\n// \t\tString cnName = filedCfig.getCnName();\n// String aliasName = filedCfig.getName();\n// boolean haveFiledFlg = false;\n// for (int i = 0 ;i<dataFieldList.size();i++ ) {\n// \tDataField dataField = dataFieldList.get(i);\n// \tif (!(dataField.getAliasName().equals(aliasName) && dataField.getCnName().equals(cnName))) {\n// \t\tcontinue;\n// \t} else {\n// \t\thaveFiledFlg = true;\n// \t\tbreak;\n// \t}\n// }\n// if (!haveFiledFlg) {\n// \tconfigList.remove(k);\n// }\n// \n// \t}\n \t//刷新列表\n \ttvShowConfig.refresh();\n \t}\n }\n }\n });\n final FormData fd_tabFolder = new FormData();\n fd_tabFolder.bottom = new FormAttachment(100, -40);\n fd_tabFolder.top = new FormAttachment(composite_3, 3, SWT.BOTTOM);\n fd_tabFolder.right = new FormAttachment(100, -5);\n fd_tabFolder.left = new FormAttachment(0, 5);\n tabFolder.setLayoutData(fd_tabFolder);\n\n final TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n tabFields.setText(\"查询字段\");\n\n final Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n composite_1.setLayout(new FormLayout());\n tabFields.setControl(composite_1);\n\n final Group group_1 = new Group(composite_1, SWT.NONE);\n final FormData fd_group_1 = new FormData();\n fd_group_1.left = new FormAttachment(0, 0);\n fd_group_1.bottom = new FormAttachment(100, 0);\n fd_group_1.right = new FormAttachment(100, 0);\n fd_group_1.top = new FormAttachment(0, -6);\n group_1.setLayoutData(fd_group_1);\n group_1.setLayout(new FormLayout());\n // tabFields.setControl(group_1);\n\n tvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvDataField.setContentProvider(new ViewContentProvider());\n tvDataField.setLabelProvider(new DataFieldsLabelProvider0());\n tvDataField.setColumnProperties(DATAFIELDS0);\n tblDataField = tvDataField.getTable();\n\n CellEditor[] cellEditor = new CellEditor[7];\n cellEditor[0] = new TextCellEditor(tblDataField);\n cellEditor[1] = new TextCellEditor(tblDataField);\n cellEditor[2] = new TextCellEditor(tblDataField);\n cellEditor[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n cellEditor[4] = new TextCellEditor(tblDataField);\n cellEditor[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n// cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n// cellEditor[7] = new TextCellEditor(tblDataField);\n cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n Text text1 = (Text) cellEditor[4].getControl();\n text1.addVerifyListener(new VerifyListener() {\n public void verifyText(VerifyEvent e) {\n String str = e.text;\n if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n }\n });\n// Text text2 = (Text) cellEditor[7].getControl();\n// text2.addVerifyListener(new VerifyListener() {\n// public void verifyText(VerifyEvent e) {\n// String str = e.text;\n// if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n// }\n// });\n\n tvDataField.setCellEditors(cellEditor);\n tvDataField.setCellModifier(new DataFieldsCellModifier2(tvDataField));\n\n final FormData fd_table_1 = new FormData();\n fd_table_1.bottom = new FormAttachment(100, -22);\n fd_table_1.top = new FormAttachment(0, -6);\n fd_table_1.right = new FormAttachment(100, 0);\n fd_table_1.left = new FormAttachment(0, 0);\n tblDataField.setLayoutData(fd_table_1);\n tblDataField.setLinesVisible(true);\n tblDataField.setHeaderVisible(true);\n\n final TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n colCnName.setWidth(100);\n colCnName.setText(\"中文名\");\n\n final TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n colFieldName.setWidth(100);\n colFieldName.setText(\"字段名\");\n\n final TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n colAliasName.setWidth(100);\n colAliasName.setText(\"别名\");\n\n final TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n colDataType.setWidth(80);\n colDataType.setText(\"数据类型\");\n\n final TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n colSortNo.setWidth(60);\n colSortNo.setText(\"排序顺序\");\n\n final TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n colSortDirect.setWidth(80);\n colSortDirect.setText(\"排序方向\");\n\n final TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n colOutput.setWidth(80);\n colOutput.setText(\"是否输出\");\n\n final TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n tabFilter.setText(\"过滤条件\");\n\n final Composite composite = new Composite(tabFolder, SWT.NONE);\n composite.setLayout(new FormLayout());\n tabFilter.setControl(composite);\n\n final Group group_2 = new Group(composite, SWT.NO_RADIO_GROUP);\n final FormData fd_group_2 = new FormData();\n fd_group_2.left = new FormAttachment(0, 0);\n fd_group_2.right = new FormAttachment(100, 0);\n fd_group_2.top = new FormAttachment(0, -6);\n fd_group_2.bottom = new FormAttachment(100, -80);\n group_2.setLayoutData(fd_group_2);\n group_2.setLayout(new FormLayout());\n\n tvFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n tvFilter.setLabelProvider(new FiltersLabelProvider());\n tvFilter.setContentProvider(new ViewContentProvider());\n tvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n tblFilter = tvFilter.getTable();\n CellEditor[] cellEditor1 = new CellEditor[3];\n cellEditor1[0] = new TextCellEditor(tblFilter);\n String[] aliasNames = new String[] { \"\" };\n cellEditor1[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n cellEditor1[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n cellEditor1[2] = new TextCellEditor(tblFilter);\n tvFilter.setCellEditors(cellEditor1);\n // filtersCellModifier = new FiltersCellModifier(tvFilter, aliasNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n final FormData fd_table_2 = new FormData();\n fd_table_2.bottom = new FormAttachment(100, -21);\n fd_table_2.top = new FormAttachment(0, -5);\n fd_table_2.right = new FormAttachment(100, -1);\n fd_table_2.left = new FormAttachment(0, 1);\n tblFilter.setLayoutData(fd_table_2);\n tblFilter.setLinesVisible(true);\n tblFilter.setHeaderVisible(true);\n\n final TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n colFilterFieldName.setWidth(120);\n colFilterFieldName.setText(\"字段名称\");\n\n final TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n colOper.setWidth(120);\n colOper.setText(\"操作符\");\n\n final TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n colFilterData.setWidth(500);\n colFilterData.setText(\"操作数据\");\n\n final Button btnFilterAdd = new Button(group_2, SWT.NONE);\n btnFilterAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n Filter df = new Filter();\n df.setField(\"\");\n df.setOperator(\"=\");\n df.setExpression(\"\");\n filterList.add(df);\n tvFilter.refresh();\n }\n });\n btnFilterAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFilterAdd = new FormData();\n fd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n fd_btnFilterAdd.left = new FormAttachment(0, 1);\n fd_btnFilterAdd.height = 20;\n fd_btnFilterAdd.width = 20;\n btnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n final Button btnFilterDel = new Button(group_2, SWT.NONE);\n btnFilterDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblFilter.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n Filter o = (Filter) ti.getData();\n filterList.remove(o);\n }\n tvFilter.refresh();\n }\n }\n });\n btnFilterDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFilterDel = new FormData();\n fd_btnFilterDel.bottom = new FormAttachment(100, -1);\n fd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n fd_btnFilterDel.height = 20;\n fd_btnFilterDel.width = 20;\n btnFilterDel.setLayoutData(fd_btnFilterDel);\n\n final Button btnFilterUp = new Button(group_2, SWT.NONE);\n btnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnFilterUp = new FormData();\n fd_btnFilterUp.bottom = new FormAttachment(100, -1);\n fd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n fd_btnFilterUp.height = 20;\n fd_btnFilterUp.width = 20;\n btnFilterUp.setLayoutData(fd_btnFilterUp);\n btnFilterUp.setVisible(false);\n\n final Button btnFilterDown = new Button(group_2, SWT.NONE);\n btnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnFilterDown = new FormData();\n fd_btnFilterDown.bottom = new FormAttachment(100, -1);\n fd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n fd_btnFilterDown.height = 20;\n fd_btnFilterDown.width = 20;\n btnFilterDown.setLayoutData(fd_btnFilterDown);\n btnFilterDown.setVisible(false);\n\n final Label label_2 = new Label(composite, SWT.NONE);\n final FormData fd_label_2 = new FormData();\n fd_label_2.bottom = new FormAttachment(100, -60);\n fd_label_2.top = new FormAttachment(group_2, 1);\n fd_label_2.width = 70;\n fd_label_2.left = new FormAttachment(0, 0);\n label_2.setLayoutData(fd_label_2);\n label_2.setText(\"其他条件:\");\n\n txtOtherCondition = new StyledText(composite, SWT.BORDER);\n final FormData fd_txtOtherCondition = new FormData();\n fd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n fd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n fd_txtOtherCondition.right = new FormAttachment(100, -1);\n fd_txtOtherCondition.left = new FormAttachment(0, 1);\n txtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n final Button btnFieldAdd = new Button(group_1, SWT.NONE);\n btnFieldAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataField df = new DataField();\n df.setOutput(Consts.YES);\n df.setSortDirect(\"\");\n df.setSortNo(\"\");\n df.setAggregate(\"\");\n dataFieldList.add(df);\n tvDataField.refresh();\n }\n });\n btnFieldAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFieldAdd = new FormData();\n fd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n fd_btnFieldAdd.left = new FormAttachment(0, 0);\n fd_btnFieldAdd.height = 20;\n fd_btnFieldAdd.width = 20;\n btnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n final Button btnFieldDel = new Button(group_1, SWT.NONE);\n btnFieldDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblDataField.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n DataField o = (DataField) ti.getData();\n //\n String cnName = o.getCnName();\n String aliasName = o.getAliasName();\n for (int i = 0;i< configList.size();i++) {\n \tFieldConfig cfig = configList.get(i);\n \tif (cnName.equals(cfig.getCnName()) && aliasName.equals(cfig.getName())) {\n \t\tconfigList.remove(i);\n \t\tbreak;\n \t}\n }\n \n dataFieldList.remove(o);\n }\n tvDataField.refresh();\n tvShowConfig.refresh();\n }\n }\n });\n btnFieldDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFieldDel = new FormData();\n fd_btnFieldDel.bottom = new FormAttachment(100, 0);\n fd_btnFieldDel.left = new FormAttachment(0, 21);\n fd_btnFieldDel.height = 20;\n fd_btnFieldDel.width = 20;\n btnFieldDel.setLayoutData(fd_btnFieldDel);\n\n final TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n tabSQL.setText(\"SQL语句\");\n\n final Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n composite_2.setLayout(new FormLayout());\n tabSQL.setControl(composite_2);\n\n final Group group = new Group(composite_2, SWT.NONE);\n final FormData fd_group = new FormData();\n fd_group.top = new FormAttachment(0, -6);\n fd_group.right = new FormAttachment(100, 0);\n fd_group.left = new FormAttachment(0, 0);\n fd_group.bottom = new FormAttachment(100, 0);\n group.setLayoutData(fd_group);\n group.setLayout(new FormLayout());\n\n txtSQL = new StyledText(group, SWT.BORDER|SWT.WRAP|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL);\n final FormData fd_txtSQL = new FormData();\n fd_txtSQL.bottom = new FormAttachment(100, 0);\n fd_txtSQL.top = new FormAttachment(0, -6);\n fd_txtSQL.right = new FormAttachment(100, 0);\n fd_txtSQL.left = new FormAttachment(0, 0);\n txtSQL.setLayoutData(fd_txtSQL);\n txtSQL.setWordWrap(true);\n txtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n txtSQL.setEditable(false);\n\n final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);\n tabItem.setText(\"列表配置\");\n\n final Composite composite_1_1 = new Composite(tabFolder, SWT.NONE);\n composite_1_1.setLayout(new FormLayout());\n tabItem.setControl(composite_1_1);\n\n final Group group_3 = new Group(composite_1_1, SWT.NONE);\n group_3.setLayout(new FormLayout());\n final FormData fd_group_3 = new FormData();\n fd_group_3.left = new FormAttachment(0, 0);\n fd_group_3.bottom = new FormAttachment(100, 0);\n fd_group_3.right = new FormAttachment(100, 0);\n fd_group_3.top = new FormAttachment(0, -6);\n group_3.setLayoutData(fd_group_3);\n\n tvShowConfig = new TableViewer(group_3, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvShowConfig.setContentProvider(new ViewContentProvider());\n tvShowConfig.setLabelProvider(new ShowConfigLabelProvider());\n tvShowConfig.setColumnProperties(DATAFIELDS);\n tblShowConfig = tvShowConfig.getTable();\n\n CellEditor[] cfigCellEditor = new CellEditor[8];\n cfigCellEditor[0] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[1] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[2] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[3] = new ComboBoxCellEditor(tblShowConfig, Consts.ALIGN_LABEL, SWT.READ_ONLY);\n cfigCellEditor[4] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[5] = new ComboBoxCellEditor(tblShowConfig, Consts.YESNO_LABEL, SWT.READ_ONLY);\n cfigCellEditor[6] = new ComboBoxCellEditor(tblShowConfig, codeSetNames, SWT.READ_ONLY);\n// cellEditor[7] = new DetailLinkCellEditor(tblShowConfig, configList, diagram.getNodes());\n Text text10 = (Text) cfigCellEditor[4].getControl();\n text10.addVerifyListener(new NumberVerifier());\n\n tvShowConfig.setCellEditors(cfigCellEditor);\n tvShowConfig.setCellModifier(new ShowConfigCellModifier(tvShowConfig));\n \n final FormData fd_table_1_1 = new FormData();\n fd_table_1_1.bottom = new FormAttachment(100, -21);\n fd_table_1_1.top = new FormAttachment(0, 1);\n fd_table_1_1.right = new FormAttachment(100, -1);\n fd_table_1_1.left = new FormAttachment(0, 0);\n tblShowConfig.setLayoutData(fd_table_1_1);\n tblShowConfig.setLinesVisible(true);\n tblShowConfig.setHeaderVisible(true);\n\n final TableColumn colCnName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colCnName_1.setWidth(120);\n colCnName_1.setText(\"中文名\");\n\n final TableColumn colFieldName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colFieldName_1.setWidth(120);\n colFieldName_1.setText(\"列名\");\n\n final TableColumn colDataType_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colDataType_1.setWidth(60);\n colDataType_1.setText(\"数据格式\");\n\n final TableColumn colAlign = new TableColumn(tblShowConfig, SWT.NONE);\n colAlign.setWidth(70);\n colAlign.setText(\"对齐方式\");\n\n final TableColumn colWidth = new TableColumn(tblShowConfig, SWT.NONE);\n colWidth.setWidth(40);\n colWidth.setText(\"宽度\");\n\n final TableColumn colVisible = new TableColumn(tblShowConfig, SWT.NONE);\n colVisible.setWidth(70);\n colVisible.setText(\"是否显示\");\n\n final TableColumn colCodeSet = new TableColumn(tblShowConfig, SWT.NONE);\n colCodeSet.setWidth(100);\n colCodeSet.setText(\"代码集\");\n\n final Button btnUp = new Button(group_3, SWT.NONE);\n btnUp.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx > 0) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx - 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnUp = new FormData();\n fd_btnUp.left = new FormAttachment(0,1);\n fd_btnUp.top = new FormAttachment(tblShowConfig, 1);\n fd_btnUp.width = 20;\n fd_btnUp.height = 20;\n btnUp.setLayoutData(fd_btnUp);\n btnUp.setText(\"button\");\n\n final Button btnDown = new Button(group_3, SWT.NONE);\n btnDown.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx < tblShowConfig.getItemCount()) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx + 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnDown = new FormData();\n fd_btnDown.top = new FormAttachment(tblShowConfig, 1);\n fd_btnDown.width = 20;\n fd_btnDown.height = 20;\n fd_btnDown.left = new FormAttachment(btnUp, 1);\n btnDown.setLayoutData(fd_btnDown);\n btnDown.setText(\"button\");\n\n //\n init();\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshell.setSize(750, 450);\n\t\tshell.setText(\"Sensitivity Analysis for: \" + parentNode.getName());\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tsashForm = new SashForm(shell, SWT.NONE);\n\n\t\tscrolledComposite = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\n\t\tSaCriterionListComp = new Composite(scrolledComposite, SWT.NONE);\n\t\tSaCriterionListComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a criterion weighting SaCriterionListComp for every criterion\n\t\tweightingSelectComponents = new SaCriterionWeightingSelectComp[c.length];\n\n\t\tArrayList<Criterion> criteria = parentNode.getCriteria();\n\t\tfor (int i = 0; i < c.length; i++) {\n\n\t\t\tSaCriterionWeightingSelectComp scwsc = new SaCriterionWeightingSelectComp(\n\t\t\t\t\tSaCriterionListComp, SWT.None, criteria.get(i), c[i], i);\n\n\t\t\tscwsc.addWeightingChangedListener(new SaCriterionWeightingChangedListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void doCriterionWeightingChanged(\n\t\t\t\t\t\tSaCriterionWeightingChangedEvent e) {\n\t\t\t\t\tupdateCriteriaWeightings(e.getCriterionIndex(),\n\t\t\t\t\t\t\te.getNewValue());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tweightingSelectComponents[i] = scwsc;\n\t\t}\n\n\t\tscrolledComposite.setContent(SaCriterionListComp);\n\t\tscrolledComposite.setMinSize(SaCriterionListComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tscrolledComposite_1 = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite_1.setExpandHorizontal(true);\n\t\tscrolledComposite_1.setExpandVertical(true);\n\n\t\tSaAlternativeWeighingComp = new Composite(scrolledComposite_1, SWT.NONE);\n\t\tSaAlternativeWeighingComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a bar component for every alternative\n\t\talternativeBarComponents = new SaAlternativeWeightingBarComp[a.length];\n\n\t\tfor (int i = 0; i < alternatives.size(); i++) {\n\t\t\tSaAlternativeWeightingBarComp sawc = new SaAlternativeWeightingBarComp(\n\t\t\t\t\tSaAlternativeWeighingComp, SWT.NONE, alternatives.get(i)\n\t\t\t\t\t\t\t.getName(), a[i]);\n\n\t\t\talternativeBarComponents[i] = sawc;\n\t\t}\n\n\t\tscrolledComposite_1.setContent(SaAlternativeWeighingComp);\n\t\tscrolledComposite_1.setMinSize(SaAlternativeWeighingComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tsashForm.setWeights(new int[] { 1, 1 });\n\n\t\tsetBarValues();\n\t}", "@Override\n public Control createDialogArea(Composite parent) {\n Composite top = (Composite) super.createDialogArea(parent);\n\n /*\n * Create the main layout for the shell.\n */\n GridLayout mainLayout = new GridLayout(1, false);\n mainLayout.verticalSpacing = 15;\n top.setLayout(mainLayout);\n GridData mainLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);\n top.setLayoutData(mainLayoutData);\n\n createStormTypeArea(top);\n createViewerArea(top);\n createTransmitArea(top);\n\n /*\n * Sets dialog title\n */\n getShell().setText(\"View/Send PSH\");\n\n // Update GUI from PshData.\n updateGui(pshData);\n\n return top;\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t\ttext = new Text(parent, SWT.READ_ONLY | SWT.NO_FOCUS);\n\n\t\t\t// Use the compact margins employed by PopupDialog.\n\t\t\tGridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);\n\t\t\tgd.horizontalIndent = 5;\n\t\t\tgd.verticalAlignment = SWT.CENTER;\n\t\t\ttext.setLayoutData(gd);\n\t\t\ttext.setText(contents);\n\n\t\t\t// since SWT.NO_FOCUS is only a hint...\n\t\t\ttext.addFocusListener(new FocusAdapter() {\n\t\t\t\tpublic void focusGained(FocusEvent event) {\n\t\t\t\t\tContentProposalPopup.this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn text;\n\t\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "private final void createContents() {\n\t\tthis.shell = new Shell(this.getParent(), getStyle());\n\t\tthis.shell.setSize(450, 140);\n\t\tthis.shell.addTraverseListener(new TraverseListener() {\n\t\t\t@Override\n\t\t\tpublic void keyTraversed(TraverseEvent e) {\n\t\t\t\tif(e.character == SWT.ESC) {\n\t\t\t\t\te.doit = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.shell.setText(\"Rename file - \" + this.getParent().getText());\n\t\tthis.shell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\te.doit = false;\n\t\t\t\tRenameFileDialog.this.result = Response.CLOSE;\n\t\t\t}\n\t\t});\n\t\tFunctions.centerShell2OnShell1(getParent(), this.shell);\n\t\tthis.shell.setImages(Main.getShellImages());\n\t\t\n\t\tLabel lblPleaseChooseA = new Label(this.shell, SWT.BORDER | SWT.WRAP);\n\t\tlblPleaseChooseA.setBounds(10, 10, 424, 40);\n\t\tlblPleaseChooseA.setText(\"Please choose a new name for the file \\\"\" + this.originalName + \"\\\":\");\n\t\t\n\t\tButton btnDone = new Button(this.shell, SWT.NONE);\n\t\tbtnDone.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.text.getText();\n\t\t\t\tRenameFileDialog.this.result = Response.DONE;\n\t\t\t}\n\t\t});\n\t\tbtnDone.setBounds(10, 81, 209, 23);\n\t\tbtnDone.setText(\"Done\");\n\t\t\n\t\tButton btnCancel = new Button(this.shell, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.originalName;\n\t\t\t\tRenameFileDialog.this.result = Response.CANCEL;\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(225, 81, 209, 23);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tthis.text = new Text(this.shell, SWT.BORDER);\n\t\tthis.text.setBounds(10, 56, 424, 19);\n\t\tthis.text.setText(this.originalName);\n\t\tthis.text.selectAll();\n\t}", "protected abstract JDialog createDialog();", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "public void openDialogCreateVisual(){\n DataHeader[] tabHeader = dataset.getListDataHeaderDouble(true);\n TypeVisualization[] tabVis = getListTypeVisualization(tabHeader.length);\n DataHeader[] tabHeaderLabel = dataset.getListDataHeaderDouble(false);\n CreateDataVisualDialog dialog = new CreateDataVisualDialog(this, tabVis, tabHeader, tabHeaderLabel);\n dialog.setVisible(true);\n }", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "public abstract void createContents(Panel mainPanel);", "protected void createContents(String value) {\n\t\tshlResult = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE);\n\t\tshlResult.setSize(762, 532);\n\t\tshlResult.setText(title);\n\t\t\n\t\tComposite composite = new Composite(shlResult, SWT.NONE);\n\t\tcomposite.setBounds(0, 0, 746, 494);\n\t\t\n\t\ttext = new StyledText(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext.setBounds(0, 0, 750, 500);\n\t\ttext.setText(value);\n\t\ttext.setKeyBinding('A'| SWT.CONTROL, ST.SELECT_ALL);\n\t\ttext.setKeyBinding('C' | SWT.CONTROL, ST.COPY);\n\t\ttext.setKeyBinding('V' | SWT.CONTROL, ST.PASTE);\n\t\ttext.setKeyBinding('X' | SWT.CONTROL, ST.CUT);\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell(SWT.APPLICATION_MODAL|SWT.CLOSE);\r\n\t\tshell.setSize(800, 600);\r\n\t\tshell.setText(\"租借/归还车辆\");\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\r\n\t\t/**换肤功能已经实现*/\r\n\t\tString bgpath = ChangeSkin.getCurrSkin();\r\n\t\tInputStream bg = this.getClass().getResourceAsStream(bgpath);\r\n\t\t\r\n\t\tInputStream reimg = this.getClass().getResourceAsStream(\"/Img/icon1.png\");\r\n\t\tshell.setBackgroundImage(new Image(display,bg));\r\n\t\tshell.setImage(new Image(display, reimg));\r\n\t\t\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(52, 48, 168, 20);\r\n\t\tlabel.setText(\"\\u8BF7\\u60A8\\u8BA4\\u771F\\u586B\\u5199\\u79DF\\u8D41\\u4FE1\\u606F:\");\r\n\t\t\r\n\t\tLabel lblid = new Label(shell, SWT.NONE);\r\n\t\tlblid.setBounds(158, 180, 61, 20);\r\n\t\tlblid.setText(\"\\u8F66\\u8F86ID\");\r\n\t\t\r\n\t\tui_car_id = new Text(shell, SWT.BORDER);\r\n\t\tui_car_id.setBounds(225, 177, 129, 26);\r\n\t\t\r\n\t\tui_renter = new Text(shell, SWT.BORDER);\r\n\t\tui_renter.setBounds(225, 228, 129, 26);\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(159, 231, 61, 20);\r\n\t\tlabel_1.setText(\"\\u79DF\\u8D41\\u4EBA\");\r\n\t\t\r\n\t\tDateTime ui_start = new DateTime(shell, SWT.BORDER);\r\n\t\tui_start.setBounds(225, 271, 129, 28);\r\n\t\t\r\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setBounds(144, 271, 76, 20);\r\n\t\tlabel_2.setText(\"\\u5F00\\u59CB\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setBounds(144, 326, 76, 20);\r\n\t\tlabel_3.setText(\"\\u7ED3\\u675F\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setBounds(559, 97, 76, 20);\r\n\t\tlabel_4.setText(\"\\u5F53\\u524D\\u8D39\\u7528:\");\r\n\t\t\r\n\t\tLabel ui_count_price = new Label(shell, SWT.BORDER | SWT.CENTER);\r\n\t\tui_count_price.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 16, SWT.NORMAL));\r\n\t\tui_count_price.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tui_count_price.setBounds(539, 205, 156, 77);\r\n\t\tui_count_price.setText(\"0.00\");\r\n\t\t\r\n\t\tDateTime ui_end = new DateTime(shell, SWT.BORDER);\r\n\t\tui_end.setBounds(225, 318, 129, 28);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentser = new RentService();\r\n\t\t\t\tdouble day_pri = rentser.rentPrice(ui_car_id.getText());\r\n\t\t\t\t/*当前仅能计算一个月以内的租用情况\r\n\t\t\t\t * @Time 10/09/15.03\r\n\t\t\t\t * \r\n\t\t\t\t * **/\r\n\t\t\t\t//不管当月几天,都按照30天计算\r\n\t\t\t\tint month = ui_end.getMonth()-ui_start.getMonth();\r\n\t\t\t\tint day = (ui_end.getDay() - ui_start.getDay()) +\r\n\t\t\t\t\t\tmonth * 30\r\n\t\t\t\t\t\t;\r\n\t\t\t\tif(day_pri > 0) {\r\n\t\t\t\t\tui_count_price.setText(String.valueOf(day*day_pri));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"数据非法\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(122, 393, 141, 30);\r\n\t\tbutton.setText(\"\\u4F30\\u7B97\\u5F53\\u524D\\u79DF\\u8D41\\u4EF7\\u683C\");\r\n\t\t\r\n\t\tButton button_1 = new Button(shell, SWT.NONE);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentService = new RentService();\r\n\t\t\t\tString sdate = ui_start.getDay()+\"-\"+ui_start.getMonth()+\"月-\"+ui_start.getYear();\r\n\t\t\t\tString edate = ui_end.getDay()+\"-\"+ui_end.getMonth()+\"月-\"+ui_end.getYear();\r\n\t\t\t\t/**这个地方可能有问题*/\r\n\t\t\t\tboolean rentCar = rentService.rentCar(ui_car_id.getText(),sdate , edate, ui_count_price.getText());\r\n\t\t\t\tif(rentCar) {\r\n\t\t\t\t\tui_count_price.setText(\"租借成功!\");\r\n\t\t\t\t\t/**租借成功,就该让信息表中的数据减1**/\r\n\t\t\t\t\tCarService cars = new CarService();\r\n\t\t\t\t\tcars.minusCar(ui_car_id.getText());\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"租借失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(292, 393, 98, 30);\r\n\t\tbutton_1.setText(\"\\u79DF\\u501F\");\r\n\t\t\r\n\t\r\n\r\n\t}", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "protected Control createDialogArea(Composite parent) {\n\t\t//Composite composite = (Composite) super.createDialogArea(parent);\n\t\tComposite composite = new Composite(parent, SWT.NULL);\n\t\t\n\t\tGridLayout layout = new GridLayout(5, false);\n\t\tlayout.marginWidth = 15;\n\t\tlayout.marginHeight = 10;\n\t\tlayout.verticalSpacing = 8;\n\t\tcomposite.setLayout(layout);\n\t\t\n\t\tLabel l;\n\t\tGridData gridData;\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Fecha:\");\n\t\ttxtFecha = new Text(composite, SWT.BORDER);\n\t\tgridData = new GridData(60,15);\n\t\ttxtFecha.setLayoutData(gridData);\n\t\t//txtFecha.addKeyListener(this.crearKeyAdapter(txtFecha)); // calendar ya incluye esto\n\t\t\n\t\tbFecha = new Button(composite, SWT.NONE);\n\t\tgridData = new GridData(16,16);\n\t\t//gridData.horizontalSpan = 2;\n\t\tbFecha.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, IImageKeys.CALENDARIO);\n\t\tbFecha.setImage(image.createImage());\n\t\tbFecha.addSelectionListener(this.crearCalendario(shell, txtFecha));\n\n\t\tfinal Label labelNoches = new Label(composite, SWT.NONE);\n\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\n\t\tComposite compQty = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tcompQty.setLayout(layout);\n\t\t\n\t\ttxtCantidad = new Text(compQty, SWT.BORDER);\n\t\tgridData = new GridData(25,15);\n\t\ttxtCantidad.setLayoutData(gridData);\n\t\t\n\t\tfinal Label labelEspacios = new Label(compQty, SWT.NONE);\n\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\tgridData = new GridData(45, 15);\n\t\tgridData.horizontalIndent = 10;\n\t\tlabelEspacios.setLayoutData(gridData);\n\t\ttxtEspacios = new Text(compQty, SWT.BORDER);\n\t\ttxtEspacios.setLayoutData(new GridData(25,15));\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo:\");\n\t\tcomboTipo = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 120;\n\t\tgridData.horizontalSpan = 2;\n\t\tcomboTipo.setLayoutData(gridData);\n\t\tcdTipoProductos = cdController.getComboDataTipoProductos();\n\t\tcomboTipo.setItems(cdTipoProductos.getTexto());\n\t\tcomboTipo.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint indice = comboTipo.getSelectionIndex();\n\t\t\t\tif (indice != -1) {\n\t\t\t\t\tLong seleccionado = cdTipoProductos.getKeyAsLongByIndex(indice);\n\t\t\t\t\tproductos.filtrarByTipo(seleccionado, true); // eliminamos cualquier filtro previo\n\t\t\t\t}\n\t\t\t\tcomboProducto.setItems(productos.getTexto());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Actividad:\");\n\t\tcomboProducto = new Combo(composite, SWT.READ_ONLY);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 150;\n\t\tcomboProducto.setLayoutData(gridData);\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionListener() {\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetDefSel: \" + comboProducto.getText());\n\t\t\t}\n\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"widgetSelected: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tSystem.out.println(\"modifyText: \" + comboProducto.getText());\t\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tcomboProducto.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (!comboProducto.getText().equals(\"\")) {\n\t\t\t\t\tLong idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\t\tisRecursoAEP = p.isHotelAEP();\n\t\t\t\t\tisModificable = p.isModificable();\n\t\t\t\t\tprecioMinimo = p.getPrecioMinimo();\n\t\t\t\t\tSystem.out.println(\"Minimo: \" + precioMinimo);\n\t\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\t\tlabelEspacios.setText(\"PAX(s):\");\n\t\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t\t}\n\t\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t\t\ttxtPrecio.setEditable(isModificable == null ? false : isModificable.booleanValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\tcomboProducto.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint idProducto = productos.getIdProductoByName(comboProducto.getText());\n\t\t\t\tProducto p = productos.getProductoByIdProducto(idProducto);\n\t\t\t\tString tipoReserva = p.getTipoReserva();\n\t\t\t\tif (tipoReserva.equals(\"Hotel\") || tipoReserva.equals(\"Hospedaje\")) {\n\t\t\t\t\tlabelNoches.setText(\"Noche(s):\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"Room(s):\");\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t} else {\n\t\t\t\t\tlabelNoches.setText(\"Cantidad:\");\n\t\t\t\t\tlabelNoches.pack();\n\t\t\t\t\tlabelNoches.redraw();\n\t\t\t\t\tlabelEspacios.setText(\"PAXs:\");\n\t\t\t\t\tlabelEspacios.setAlignment(SWT.RIGHT);\n\t\t\t\t\tlabelEspacios.pack();\n\t\t\t\t\tlabelEspacios.redraw();\n\t\t\t\t}\n\t\t\t\tlistaTipoPrecio.setEnabled(true);\n\t\t\t\tlistaTipoPrecio.deselectAll();\n\t\t\t\ttxtPrecio.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Tipo de precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\tgridData = new GridData();\n\t\tgridData.widthHint = 75;\n\t\tgridData.horizontalSpan = 2;\n\n\t\tlistaTipoPrecio = new List(composite, SWT.SINGLE | SWT.BORDER);\n\t\tlistaTipoPrecio.setLayoutData(gridData);\n\t\tlistaTipoPrecio.setItems(new String[] {\"Comisionable\", \"Operador\", \"Público\"});\n\t\tlistaTipoPrecio.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tobtenerPrecio(listaTipoPrecio.getSelection()[0]);\n\t\t\t}\n\t\t});\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Precio:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tComposite compPrecio = new Composite(composite, SWT.NONE);\n\t\tlayout = new GridLayout(3, false);\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tcompPrecio.setLayout(layout);\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tcompPrecio.setLayoutData(gridData);\n\t\t\n\t\ttxtPrecio = new Text(compPrecio, SWT.BORDER);\n\t\ttxtPrecio.setEditable(false);\n\t\tgridData = new GridData(50,15);\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\ttxtPrecio.setLayoutData(gridData);\n\n\t\tButton bCuadrar = new Button(compPrecio, SWT.PUSH);\n\t\tgridData = new GridData(12,16);\n\t\tbCuadrar.setLayoutData(gridData);\n\t\timage = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, \"icons/cuadrar.gif\");\n\t\tbCuadrar.setImage(image.createImage());\n\t\tbCuadrar.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSystem.out.println(\"Botón de cuadrar...\");\n\t\t\t\tcuadrarCotizacion();\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tbVisible = new Button(compPrecio, SWT.CHECK);\n\t\tbVisible.setText(\"Visible\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalIndent = 15;\n\t\tbVisible.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Comentarios:\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = SWT.TOP;\n\t\tgridData.verticalIndent = 3;\n\t\tl.setLayoutData(gridData);\n\t\ttxtComentario = new Text(composite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);\n\t\tgridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.heightHint = 40;\n\t\ttxtComentario.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\tl.setText(\"Un \\\"*\\\" al inicio del comentario mostrará el mismo en el PDF de la cotización.\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalSpan = 4;\n\t\tl.setLayoutData(gridData);\n\t\t\n\t\tl = new Label(composite, SWT.NONE);\n\t\t\n\t\tl = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgridData.heightHint = 10;\n\t\tgridData.horizontalSpan = 5;\n\t\tl.setLayoutData(gridData);\n\n\t\tllenarCampos();\n\t\t\n\t\treturn composite;\n\t}", "public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tGridData dGrid = new GridData();\r\n\t\tdGrid.horizontalSpan = 180;\r\n\t\tdGrid.horizontalAlignment = GridData.FILL;\r\n\t\tcontainer.setLayoutData(dGrid);\r\n\t\t\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tnameLabel = new Label(container,SWT.LEFT);\r\n\t\tString labelText = \"Most of the features for SimplifIDE require knowledge of the project structure.\\r\\n\";\r\n\t\tlabelText += \"Currently you are editting a file outside of the project where many features will not work properly.\\r\\n\";\r\n\t\tlabelText += \"Instructions for setting up your project can be found at http://simplifide.com/html2/project_structure/simplifide_structure.htm, or\\r\\n\";\r\n\t\tlabelText += \"for a simple project only containing rtl files at http://simplifide.com/html2/getting_started/simple_suite.htm.\\r\\n\";\r\n\t\tnameLabel.setText(labelText);\r\n\t\t\r\n\t\tthis.ONESHOT = true;\r\n\t\t\r\n\t\treturn container;\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}", "@Override\n protected Control createDialogArea(Composite parent) {\n Composite container = (Composite) super.createDialogArea(parent);\n container.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n final SashForm hsashForm = new SashForm(container, SWT.HORIZONTAL);\n hsashForm.SASH_WIDTH = 1;\n\n hsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n // Create the buttons and their event handlers\n tree = new Tree(hsashForm, SWT.V_SCROLL);\n tree.setLinesVisible(true);\n tree.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n AddDetailedInfo2Tables();\n }\n });\n tree.setLayout(new FillLayout());\n\n final Composite tabledock = new Composite(hsashForm, SWT.PUSH);\n tabledock.setLayout(new FillLayout(SWT.VERTICAL));\n\n final SashForm vsashForm = new SashForm(tabledock, SWT.VERTICAL);\n vsashForm.SASH_WIDTH = 1;\n vsashForm.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_GREEN));\n\n ruletable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n ruletable.setHeaderVisible(true);\n ruletable.setLinesVisible(true);\n\n TableColumn col_entitysubject = new TableColumn(ruletable, SWT.CENTER);\n col_entitysubject.setWidth(87);\n col_entitysubject.setText(Messages.BaselineShowDialog_1);\n\n TableColumn col_relation = new TableColumn(ruletable, SWT.CENTER);\n col_relation.setWidth(88);\n col_relation.setText(Messages.BaselineShowDialog_2);\n\n TableColumn col_quantifier = new TableColumn(ruletable, SWT.CENTER);\n col_quantifier.setWidth(79);\n col_quantifier.setText(Messages.BaselineShowDialog_3);\n\n TableColumn col_number = new TableColumn(ruletable, SWT.CENTER);\n col_number.setWidth(80);\n col_number.setText(Messages.BaselineShowDialog_4);\n\n TableColumn col_entityguest = new TableColumn(ruletable, SWT.CENTER);\n col_entityguest.setWidth(88);\n col_entityguest.setText(Messages.BaselineShowDialog_5);\n\n requirementtable = new Table(vsashForm, SWT.BORDER | SWT.FULL_SELECTION);\n requirementtable.setHeaderVisible(true);\n requirementtable.setLinesVisible(true);\n\n TableColumn tblclmnFormaldesc = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnFormaldesc.setWidth(234);\n tblclmnFormaldesc.setText(Messages.BaselineShowDialog_6);\n\n TableColumn tblclmnRelatedentity = new TableColumn(requirementtable, SWT.CENTER);\n tblclmnRelatedentity.setWidth(195);\n tblclmnRelatedentity.setText(Messages.BaselineShowDialog_7);\n\n\n hsashForm.setWeights(new int[] {2, 2});\n\n if (AddBaseline2Tree(tree, filepath)) {\n if (tree.getItemCount() > 0) {\n tree.getItem(0).setExpanded(true);\n }\n\n tree.pack();\n }\n\n return container;\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}" ]
[ "0.7466458", "0.71222836", "0.7078501", "0.705914", "0.7038887", "0.69836694", "0.69679385", "0.68532664", "0.68156505", "0.68133014", "0.6804004", "0.67994684", "0.6797812", "0.67964184", "0.67905307", "0.67821527", "0.6770468", "0.6748968", "0.67205244", "0.6719345", "0.6703629", "0.6684576", "0.6681602", "0.6677436", "0.66772723", "0.6667592", "0.66631293", "0.66598266", "0.66587645", "0.66495544", "0.66360897", "0.6593394", "0.6590234", "0.6586062", "0.6575335", "0.65748876", "0.65703803", "0.6554085", "0.6542067", "0.65187144", "0.6517909", "0.65163213", "0.651163", "0.6510053", "0.6509935", "0.6505028", "0.6499005", "0.64574546", "0.6452101", "0.6432741", "0.6406629", "0.6395953", "0.6351412", "0.63274086", "0.63181823", "0.631563", "0.62904304", "0.62759805", "0.62537587", "0.6242837", "0.6242466", "0.62140924", "0.6213636", "0.6204242", "0.6194346", "0.61896044", "0.61779475", "0.6170502", "0.6169834", "0.609542", "0.609238", "0.6091523", "0.6086698", "0.606994", "0.6068662", "0.60655874", "0.60630524", "0.6051287", "0.6049328", "0.60425276", "0.6037902", "0.6033686", "0.60335255", "0.60055906", "0.59912246", "0.59584266", "0.595837", "0.59555316", "0.5929039", "0.5926745", "0.59199274", "0.5906463", "0.59061575", "0.58914274", "0.5889978", "0.58853275", "0.58851635", "0.5871382", "0.5870567", "0.58565897" ]
0.6844874
8
Creates the dynamic suite for tests execution on Selenium Grid
public void createSuite(String gridProject, String suiteName, String includeCategory) throws IOException { fileNames =""; importStatements =""; String classesDetails[]; String classesNames; String classesImportStatements; classesDetails = getTestClassNames("../"+gridProject); classesNames = classesDetails[0].replaceFirst(" , ",""); classesImportStatements = classesDetails[1]; FileOutputStream fout; PrintStream prints; File file = new File("../common/src/com/oracle/pgbu/common/helpers/"+suiteName+".java"); fout = new FileOutputStream(file); prints = new PrintStream(fout); prints.println("package com.oracle.pgbu.common.helpers;\n"); prints.println("import com.oracle.pgbu.common.categories.ParallelCategories;\n"); prints.println("import org.junit.runner.RunWith;\n"); prints.println("import org.junit.runners.Suite.SuiteClasses;\n"); prints.println(classesImportStatements+"\n"); if (!includeCategory.equals("All")) { prints.println("import org.junit.experimental.categories.Categories.IncludeCategory;\n"); prints.println("import com.oracle.pgbu.common.categories."+includeCategory+";\n"); prints.println("@IncludeCategory("+includeCategory+".class)"); } prints.println("@RunWith(ParallelCategories.class)"); prints.println("@SuiteClasses({ "+ classesNames +" })\n"); prints.println("public class "+suiteName+" { \n }"); fout.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Test createSuite()\n {\n //Let's discover what tests have been scheduled for execution.\n // (we expect a list of fully qualified test class names)\n String tests = System.getProperty(TEST_LIST_PROPERTY_NAME);\n if (tests == null || tests.trim().length() == 0)\n {\n tests = \"\";\n }\n logger.debug(\"specfied test list is: \" + tests);\n\n StringTokenizer st = new StringTokenizer(tests);\n String[] ids = new String[st.countTokens()];\n int n = 0;\n while (st.hasMoreTokens())\n {\n ids[n++] = st.nextToken().trim();\n }\n\n TestSuite suite = new TestSuite();\n for (int i=0; i<n; i++)\n {\n String testName = ids[i];\n if (testName != null && testName.trim().length() > 0)\n {\n try\n {\n Class<?> testClass = Class.forName(testName);\n if ((bc == null)\n && BundleActivator.class.isAssignableFrom(testClass))\n {\n logger.error(\"test \" + testName\n + \" skipped - it must run under felix\");\n }\n else\n {\n suite.addTest(new TestSuite(testClass));\n }\n }\n catch (ClassNotFoundException e)\n {\n logger.error(\"Failed to load standalone test \" + testName);\n }\n }\n }\n return suite;\n }", "public static Test suite()\r\n {\r\n return suite(com.redknee.app.crm.TestPackage.createDefaultContext());\r\n }", "public void ExecuteTests() throws IOException{\r\n\t\t\r\n\t\tAutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();\r\n\t\ttestcaseinfo.GetTestCaseInformation();\r\n\t\tTestsBrowserList = testcaseinfo.getTestsBrowserList();\r\n\t\tTestsClassesList = testcaseinfo.getTestsClassesList();\r\n\t\tClassesMethodList = testcaseinfo.getClassesMethodList();\r\n\t\tTestsParamList = testcaseinfo.getTestsParamList();\r\n\t\tTestNGConfig = testcaseinfo.getTestNGConfig();\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\t\r\n\t\tlogger.info(\"Generating TestNG.xml file\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code creates testNG xmlSuite and sets the configuration\r\n\t\t */\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(TestNGConfig.get(\"AutomationSuiteName\"));\r\n\t\t\r\n\t\tif(TestNGConfig.get(\"ParallelMode\").toString().equalsIgnoreCase(\"True\")) {\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.TESTS);\r\n\t\t\tsuite.setThreadCount(Integer.parseInt(TestNGConfig.get(\"ThreadCount\")));\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.NONE);\r\n\t\t}\r\n\t\t\r\n\t\tsuite.setVerbose(Integer.parseInt(TestNGConfig.get(\"Verbose\")));\r\n\t\tif(TestNGConfig.get(\"PreserveOrder\").toString().equalsIgnoreCase(\"True\"))\r\n\t\t\tsuite.setPreserveOrder(Boolean.TRUE);\r\n\t\telse \r\n\t\t\tsuite.setPreserveOrder(Boolean.FALSE);\r\n\t\t\r\n\t\t\r\n\t\t//suite.addListener(\"frameworkcore.ReportingClass.ListenersImpl\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code assigns the Test classes/mathods/parameters to the TestNG Suite\r\n\t\t */\r\n\t\tfor (String key : TestsBrowserList.keySet()){\r\n\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(key.toString());\r\n\t\t\tHashMap<String,String> browserinfo = new HashMap<String,String>();\r\n\t\t\tbrowserinfo.put(\"BrowserName\", TestsBrowserList.get(key).toString());\r\n\t\t\ttest.setParameters(browserinfo);\r\n\t\t\tSetParameters(test);\r\n\t\t\tCollection<String> classvalues = TestsClassesList.get(key);\r\n\t\t\tfor(String testclass : classvalues){\r\n\t\t\t\tXmlClass testClass = new XmlClass();\r\n\t\t testClass.setName(testclass);\r\n\t\t Collection<String> methodvalues = ClassesMethodList.get(testclass);\r\n\t\t ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>();\r\n\t\t for(String method: methodvalues){\r\n\t\t \tif(method.toLowerCase().contains(\"tag\")||method.toLowerCase().contains(\"ignore\"))\r\n\t\t \t\tlogger.info(\"Method \" + method + \" will not run\" );\r\n\t\t \telse\r\n\t\t \t\tmethodsToRun.add(new XmlInclude(method));\r\n\t\t }\r\n\t\t testClass.setIncludedMethods(methodsToRun);\r\n\t\t \r\n\t\t classes.add(testClass);\r\n\t\t\t}\r\n\t\t\ttest.setXmlClasses(classes);\r\n\t\t}\r\n\t\t\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\t/**\r\n\t\t * Writing the TestNG.xml information to a file\r\n\t\t */\r\n\t\t FileWriter writer;\r\n\t\t File TestNGFile = new File(\"TestNG.xml\");\r\n\t\t if(TestNGFile.exists())\t\t\t\t\t\t// Delete TestNG if exists\r\n\t\t\t TestNGFile.delete();\r\n\t\t \r\n\t\t\twriter = new FileWriter(TestNGFile);\r\n\t\t\t writer.write(suite.toXml());\r\n\t\t writer.flush();\r\n\t\t writer.close();\r\n\t\t logger.info(\"TestNG file Generated Successfully\");\r\n\t\t\r\n\t\tTestNG tng = new TestNG();\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.run(); \r\n\t\t\r\n\t}", "public static Test suite() {\n return createModuleTest(WizardsTest.class);\n }", "public static Test suite() {\n\t\t// the type safe way is in SimpleTest\n\t\t// the dynamic way :\n\t\treturn new TestSuite(DSetOfActivitiesInSitesTest.class);\n\t}", "public static Test suite() {\n\t\tTestSuite suite = new TestSuite(\"Test for Server\");\n\t\tsuite.addTestSuite(DatabaseTest.class);\n suite.addTest(SuiteTestMenu.suite());\n\t\tsuite.addTestSuite(ServerGameTest.class);\n\t\tsuite.addTestSuite(ManagedGameTest.class);\n\t\tsuite.addTestSuite(UserManagerTest.class);\n\t\tsuite.addTestSuite(SessionManagerTest.class);\n\t\treturn suite;\n\t}", "public static Test suite() {\n\treturn TestAll.makeTestSuite(CompilerInterface.NONE);\n }", "public abstract void initializeTestSuite();", "public static Test suite() {\n\t\treturn new AllTests();\n\t}", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(FunctionalTests.suite());\n // functional tests\n suite.addTest(GUITests.suite());\n\n TestSetup wrapper = new TestSetup(suite) {\n protected void setUp() {\n Runnable r = new Runnable() {\n public void run() {\n com.topcoder.umltool.deploy.UMLToolDeploy.main(new String[0]);\n }\n };\n\n try {\n SwingUtilities.invokeAndWait(r);\n } catch (Exception e) {\n }\n }\n\n protected void tearDown() throws Exception {\n File generateCode = new File(TestHelper.getCodeGenBase() + \"/c\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n generateCode = new File(TestHelper.getCodeGenBase() + \"/java\");\n if (generateCode.exists()) {\n //deleteFolder(generateCode);\n }\n }\n\n private void deleteFolder(File dir) {\n File filelist[] = dir.listFiles();\n int listlen = filelist.length;\n for (int i = 0; i < listlen; i++) {\n if (filelist[i].isDirectory()) {\n deleteFolder(filelist[i]);\n } else {\n filelist[i].delete();\n }\n }\n dir.delete();\n }\n };\n\n return wrapper;\n }", "public static Test suite()\n {\n TestSuite ts = new TestSuite(\"TestAPI\") ;\n\t\t\t\n // This test should run first, in order to enable the optimizer for subsequent tests\n\t\tts.addTest(new TestAPI(\"testOptimizerDisable\")) ;\n\t\tts.addTest(new TestAPI(\"testOptimizerEnable\")) ;\n\t\tts.addTest(new TestAPI(\"testExplain\")) ;\n\t\tts.addTest(new TestAPI(\"testIndex\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability1\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability2\")) ;\n\t\t\n // Wrapper for the test suite including the test cases which executes the setup only once\n\t\tTestSetup wrapper = new TestSetup(ts) \n\t\t{\n\t\t\tprotected void setUp() \n\t\t\t{\n\t\t\t\toneTimeSetUp();\n\t\t\t}\n\n\t\t\tprotected void tearDown() \n\t\t\t{\n\t\t\t\toneTimeTearDown();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn wrapper ;\n }", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(ClientsPrepopulatingBaseActionTest.class);\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n\n\n suite.addTestSuite(EntityNotFoundExceptionTest.class);\n suite.addTestSuite(DAOExceptionTest.class);\n suite.addTestSuite(DAOConfigurationExceptionTest.class);\n\n suite.addTestSuite(CompanyDAOBeanTest.class);\n suite.addTestSuite(ClientStatusDAOBeanTest.class);\n suite.addTestSuite(ProjectDAOBeanTest.class);\n suite.addTestSuite(ClientDAOBeanTest.class);\n suite.addTestSuite(ProjectStatusDAOBeanTest.class);\n suite.addTestSuite(HelperTest.class);\n\n suite.addTestSuite(ProjectStatusTest.class);\n suite.addTestSuite(CompanyTest.class);\n suite.addTestSuite(ClientStatusTest.class);\n suite.addTestSuite(ProjectTest.class);\n suite.addTestSuite(AuditableEntityTest.class);\n suite.addTestSuite(ClientTest.class);\n suite.addTestSuite(GenericEJB3DAOTest.class);\n suite.addTestSuite(SearchByFilterUtilityImplTest.class);\n return suite;\n }", "public static Test suite() {\r\n\t\tHyadesTestSuite testTPBridgeClient = new HyadesTestSuite(\r\n\t\t\t\t\"TestTPBridgeClient\");\r\n\t\ttestTPBridgeClient.setArbiter(DefaultTestArbiter.INSTANCE).setId(\r\n\t\t\t\t\"F968DA8CBEFEFE1A799AE350F11611DB\");\r\n\t\r\n\t\ttestTPBridgeClient.addTest(new TestTPBridgeClient(\"testTPBridgeClient\")\r\n\t\t\t\t.setId(\"F968DA8CBEFEFE1AAC5A86B9F11611DB\").setTestInvocationId(\r\n\t\t\t\t\t\t\"F968DA8CBEFEFE1A34EBB2E0F11911DB\"));\r\n\t\treturn testTPBridgeClient;\r\n\t}", "public static Test suite() {\n final TestSuite ts = new TestSuite();\n ts.addTestSuite(BuildAgentTest.class);\n return new DistributedMasterBuilderTest.LUSTestSetup(ts);\n }", "private void setTestSuites(TestNG driver, URI ets) {\r\n if (ets.getScheme().equalsIgnoreCase(\"jar\")) {\r\n // jar:{url}!/{entry}\r\n String[] jarPath = ets.getSchemeSpecificPart().split(\"!\");\r\n File jarFile = new File(URI.create(jarPath[0]));\r\n driver.setTestJar(jarFile.getAbsolutePath());\r\n driver.setXmlPathInJar(jarPath[1].substring(1));\r\n } else {\r\n List<String> testSuites = new ArrayList<String>();\r\n File tngFile = new File(ets);\r\n if (tngFile.exists()) {\r\n LOGR.log(Level.CONFIG, \"Using TestNG config file {0}\", tngFile.getAbsolutePath());\r\n testSuites.add(tngFile.getAbsolutePath());\r\n } else {\r\n throw new IllegalArgumentException(\"A valid TestNG config file reference is required.\");\r\n }\r\n driver.setTestSuites(testSuites);\r\n }\r\n }", "public static void xmlclassgeneration_parallel_web(Integer noOfBrowsers, String executionType) {\n\t\tSystem.out.println(noOfBrowsers);\r\n\t\tSystem.out.println(executionType);\r\n\r\n\t\t/**\r\n\t\t * Add Listener Classes\r\n\t\t */\r\n\t\t// Thread count need to be provided for running scripts sequential\r\n\t\tif (listner_count < count) {\r\n\t\t\t// add pdf listener\r\n\t\t\tsuite.addListener(\"com.vil.web.reports.MyExtentListners\");\r\n\t\t\t// suite.addListener(\"com.utteshappend.pdfngreport.PDFReportListener\");\r\n\t\t\tlistner_count = listner_count + 1;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Add Parameters for suite level\r\n\t\t */\r\n\r\n\t\tHashMap<String, String> testParameters1 = new HashMap<String, String>();\r\n\t\ttestParameters1.put(\"pdfngreport-properties\", \"pdfngreport.properties\");\r\n\t\tsuite.setParameters(testParameters1);\r\n\t\tsuite.setGroupByInstances(false);\r\n\t\tsuite.setThreadCount(noOfBrowsers);\r\n\t\tsuite.setParallel(\"tests\");\r\n\r\n\t\t// find total module count from ModuleExecutionControl\r\n\t\t// sheet config.xlsx file\r\n\t\tArrayList<String> moduleNames = new ArrayList<String>();\r\n\t\tint totalModuleRowCount = ExcelLibrary.getExcelRowCount(\"./config/config.xlsx\", \"ModuleExecutionControl\");\r\n\t\tfor (int i = 1; i <= totalModuleRowCount; i++) {\r\n\t\t\tif (ExcelLibrary\r\n\t\t\t\t\t.getExcelData(\"./config/config.xlsx\", \"ModuleExecutionControl\", i, GenericLib\r\n\t\t\t\t\t\t\t.getHeaderColumnIndex(\"./config/config.xlsx\", \"ModuleExecutionControl\", \"Execution_Status\"))\r\n\t\t\t\t\t.trim().equals(\"Yes\")) {\r\n\t\t\t\tmoduleNames\r\n\t\t\t\t\t\t.add(ExcelLibrary.getExcelData(\"./config/config.xlsx\", \"ModuleExecutionControl\", i, GenericLib\r\n\t\t\t\t\t\t\t\t.getHeaderColumnIndex(\"./config/config.xlsx\", \"ModuleExecutionControl\", \"ModuleName\")));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Iterate loop based number of browsers to parameters to <test> in <suite>\r\n\t\tArrayList<String> browserNames = new ArrayList<String>();\r\n\t\tfor (int i = 1; i <= noOfBrowsers; i++) {\r\n\t\t\tbrowserNames.add(ExcelLibrary.getExcelData(\"./config/config.xlsx\", \"config\", i,\r\n\t\t\t\t\tGenericLib.getHeaderColumnIndex(\"./config/config.xlsx\", \"config\", \"Browser Name\")));\r\n\t\t}\r\n\r\n\t\tif (noOfBrowsers > 1) {\r\n\t\t\tif (moduleNames.size() != 0) {\r\n\r\n\t\t\t\tfor (int i = 1; i <= noOfBrowsers; i++) {\r\n\t\t\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\t\t\tHashMap<String, String> testCases = new HashMap<String, String>();\r\n\r\n\t\t\t\t\tfor (int l = 0; l < moduleNames.size(); l++) {\r\n\t\t\t\t\t\tString modulenames[] = GenericLib.testConfigutration(\"./config/config.xlsx\",\r\n\t\t\t\t\t\t\t\tmoduleNames.get(l));\r\n\t\t\t\t\t\ttestCases.put(moduleNames.get(l),\r\n\t\t\t\t\t\t\t\tArrays.toString(modulenames).replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\"loop\" + i);\r\n\t\t\t\t\tSystem.out.println(testCases.size());\r\n\t\t\t\t\tSet<String> keys = testCases.keySet();\r\n\t\t\t\t\tArrayList<String> testNames = new ArrayList<String>();\r\n\t\t\t\t\tfor (String key : keys) {\r\n\t\t\t\t\t\ttestNames.add(key);\r\n\t\t\t\t\t\tSystem.out.println(key);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tHashMap<String, String> testParameters = new HashMap<String, String>();\r\n\r\n\t\t\t\t\ttestParameters.put(\r\n\t\t\t\t\t\t\tExcelLibrary.getExcelData(\"./config/config.xlsx\", \"config\", 0,\r\n\t\t\t\t\t\t\t\t\tGenericLib.getHeaderColumnIndex(\"./config/config.xlsx\", \"config\", \"Browser Name\")),\r\n\t\t\t\t\t\t\tExcelLibrary.getExcelData(\"./config/config.xlsx\", \"config\", i,\r\n\t\t\t\t\t\t\t\t\tGenericLib.getHeaderColumnIndex(\"./config/config.xlsx\", \"config\", \"Browser Name\")));\r\n\t\t\t\t\tfor (Map.Entry entry : testParameters.entrySet()) {\r\n\t\t\t\t\t\tSystem.out.println(entry.getKey() + \" : \" + entry.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString testname = Arrays.toString(testNames.toArray());\r\n\t\t\t\t\t// System.out.println(testname);\r\n\r\n\t\t\t\t\ttest.setName(\"Regression_Test_\" + browserNames.get(i - 1) + \"_\" + i);\r\n\t\t\t\t\t// test.setPreserveOrder(\"true\");\r\n\t\t\t\t\ttest.setPreserveOrder(true);\r\n\t\t\t\t\ttest.setParameters(testParameters);\r\n\t\t\t\t\t// testParameters.clear();\r\n\t\t\t\t\ttest.setThreadCount(noOfBrowsers);\r\n\t\t\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\t\t\tIterator it = testCases.entrySet().iterator();\r\n\t\t\t\t\twhile (it.hasNext()) {\r\n\t\t\t\t\t\tSystem.out.println(\"inside\");\r\n\t\t\t\t\t\tMap.Entry pair = (Map.Entry) it.next();\r\n\t\t\t\t\t\tSystem.out.println(pair.getKey() + \" = \" + pair.getValue());\r\n\t\t\t\t\t\tString[] testcases = pair.getValue().toString().replace(\",\", \"\").split(\" \");\r\n\t\t\t\t\t\tSystem.out.println(\"Test cases length \" + testcases.length);\r\n\r\n\t\t\t\t\t\t// Add all test cases in before creating xml file\r\n\t\t\t\t\t\tfor (int k = 0; k < testcases.length; k++) {\r\n\t\t\t\t\t\t\tString className = \"com.vil.web.tests.\" + pair.getKey() + \".\"\r\n\t\t\t\t\t\t\t\t\t+ testcases[k].replace(\"]\", \"\");\r\n\t\t\t\t\t\t\tSystem.out.println(className);\r\n\t\t\t\t\t\t\tclasses.add(new XmlClass(className));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\ttest.setXmlClasses(classes);\r\n\t\t\t\t\t\tit.remove();\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t} else if (moduleNames.size() == 0) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"Please select modules which you wan execute in under config_execution --> Test Execution Control\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Please configure > 1 browser in config.xlsx--> config for Parallel execution\");\r\n\t\t}\r\n\r\n\t\tsuites.add(suite);\r\n\t\tsuite.setName(\"Suite\");\r\n\t\ttry {\r\n\t\t\tFileWriter writer = new FileWriter(\"testng_\" + \"web_parallel\" + \".xml\");\r\n\t\t\twriter.write(suite.toXml());\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n public WebDriver createWebDriver() {\n MutableCapabilities capabilities = createSpecificGridCapabilities(webDriverConfig);\r\n capabilities.merge(driverOptions);\r\n \r\n // \r\n gridConnector.uploadMobileApp(capabilities);\r\n\r\n // connection to grid is made here\r\n driver = getDriver(gridConnector.getHubUrl(), capabilities);\r\n\r\n setImplicitWaitTimeout(webDriverConfig.getImplicitWaitTimeout());\r\n if (webDriverConfig.getPageLoadTimeout() >= 0 && SeleniumTestsContextManager.isWebTest()) {\r\n setPageLoadTimeout(webDriverConfig.getPageLoadTimeout());\r\n }\r\n\r\n this.setWebDriver(driver);\r\n\r\n runWebDriver();\r\n\r\n ((RemoteWebDriver)driver).setFileDetector(new LocalFileDetector());\r\n\r\n return driver;\r\n }", "public void createTestSuite(TestSuite testsuite) throws Exception {\r\n\t\tlogger\r\n\t\t\t\t.info(\"start to create testsuite:\"\r\n\t\t\t\t\t\t+ testsuite.getTestSuiteName());\r\n\t\tint suiteRowNum = addTestSuite(testsuite);\r\n\t\tcaseSuiteMapImpl.addTestCaseBatchByArrayList(testsuite\r\n\t\t\t\t.getTestcaseList(), suiteRowNum);\r\n\t\tlogger.info(\"create testsuite:\" + testsuite.getTestSuiteName()\r\n\t\t\t\t+ \" success!\");\r\n\r\n\t}", "public static InterfaceTestSuite isuite()\n {\n InterfaceTestSuite suite = new InterfaceTestSuite(ServiceContextExtCannedBenchmark.class);\n suite.setName(ServiceContextExt.class.getName());\n suite.addFactory(new CannedServiceContextExtTestFactory());\n return suite;\n }", "public static Test suite() {\r\n\t\treturn new JUnit4TestAdapter(AllTests.class);\r\n\t}", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "@BeforeSuite(alwaysRun = true)\n public static void startSuite() {\n\n ThreadContext.put(THREAD_ID, Thread.currentThread().getName());\n EnvironmentConfig.initializeEnvironment();\n\n // Instantiates and stores the WebDriver into the ThreadLocal variable\n driverThread = ThreadLocal.withInitial(() -> {\n /*\n The following instruction is used to tell log4j which file the log will be written to\n depending on the thread name. The thread name is used as the value threadId that is used as\n the routing key in the routing appender. Check the log4j2.xml config file.\n For more info check here:\n https://stackoverflow.com/questions/8355847/how-to-log-multiple-threads-in-different-log-files\n http://logging.apache.org/log4j/2.x/faq.html#separate_log_files\n */\n ThreadContext.put(THREAD_ID, Thread.currentThread().getName());\n\n logger.trace(\"Instantiate WebDriver\");\n DriverFactory webDriverThread = new DriverFactory();\n webDriverThreadPool.add(webDriverThread);\n return webDriverThread;\n });\n }", "static public TestSuite suite() {\r\n return new TestIndividual( \"TestIndividual\" );\r\n }", "public static Test suite() {\r\n return suite(ProjectServiceRemoteTests.class);\r\n }", "public static Test suite() {\n return new TestSuite(DefaultDetailWindowTest.class);\n }", "public static TestSuite suite()\n\t{\n\t\tTestSuite suite = new TestSuite();\n\n\t\t//\n\t\t// Add one line per class in our test cases. These should be in order of\n\t\t// complexity.\n\n\t\t// ANTTest should be first as it ensures that test parameters are\n\t\t// being sent to the suite.\n\t\t//\n\t\tsuite.addTestSuite(ANTTest.class);\n\n\t\t// Basic Driver internals\n\t\tsuite.addTestSuite(DriverTest.class);\n\t\tsuite.addTestSuite(ConnectionTest.class);\n\t\tsuite.addTestSuite(DatabaseMetaDataTest.class);\n\t\tsuite.addTestSuite(DatabaseMetaDataPropertiesTest.class);\n\t\tsuite.addTestSuite(EncodingTest.class);\n\n\t\t// Connectivity/Protocols\n\n\t\t// ResultSet\n\t\tsuite.addTestSuite(ResultSetTest.class);\n\n\t\t// Time, Date, Timestamp\n\t\tsuite.addTestSuite(DateTest.class);\n\t\tsuite.addTestSuite(TimeTest.class);\n\t\tsuite.addTestSuite(TimestampTest.class);\n\n\t\t// PreparedStatement\n\t\tsuite.addTestSuite(PreparedStatementTest.class);\n\n\t\t// ServerSide Prepared Statements\n\t\tsuite.addTestSuite(ServerPreparedStmtTest.class);\n\n\t\t// BatchExecute\n\t\tsuite.addTestSuite(BatchExecuteTest.class);\n\n\n\t\t// Other misc tests, based on previous problems users have had or specific\n\t\t// features some applications require.\n\t\tsuite.addTestSuite(JBuilderTest.class);\n\t\tsuite.addTestSuite(MiscTest.class);\n\t\tsuite.addTestSuite(NotifyTest.class);\n\n\t\t// Fastpath/LargeObject\n\t\tsuite.addTestSuite(BlobTest.class);\n\t\tsuite.addTestSuite(OID74Test.class);\n\n\t\tsuite.addTestSuite(UpdateableResultTest.class );\n\n\t\tsuite.addTestSuite(CallableStmtTest.class );\n\t\tsuite.addTestSuite(CursorFetchTest.class);\n\t\tsuite.addTestSuite(ServerCursorTest.class);\n\n\t\t// That's all folks\n\t\treturn suite;\n\t}", "@BeforeSuite\r\n\tpublic void setUpSuite()\r\n\t{\n\t\t\r\n\t\t Reporter.log(\"*****************Setting up reports and test started********************\", true);\r\n\t\t exceldata = new ExcelDataProvider();\r\n\t\t configreader = new ConfigReader();\r\n\t\t \r\n\t\tExtentHtmlReporter extent = new ExtentHtmlReporter(new File(System.getProperty(\"user.dir\") + \"/Reports/SampleFramwork.html\"));\r\n\t\treport = new ExtentReports();\r\n\t\treport.attachReporter(extent);\r\n\t\t Reporter.log(\"******************All configurations done********************\", true);\r\n\t}", "public void createTestSuite(TestSuite testsuite, String[] testcases)\r\n\t\t\tthrows Exception {\r\n\r\n\t\tlogger\r\n\t\t\t\t.info(\"start to create testsuite:\"\r\n\t\t\t\t\t\t+ testsuite.getTestSuiteName());\r\n\t\tint suiteRowNum = addTestSuite(testsuite);\r\n\t\tcaseSuiteMapImpl.addTestCaseBatchByStringArray(testcases, suiteRowNum);\r\n\t\tlogger.info(\"create testsuit:\" + testsuite.getTestSuiteName()\r\n\t\t\t\t+ \" success!\");\r\n\r\n\t}", "@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }", "public static Test suite() {\n \n TestSuite suite = new TestSuite(\"ImplementationSuite\");\n suite.addTest(org.mmbase.storage.search.implementation.BasicAggregatedFieldTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicCompareFieldsConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicCompositeConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldCompareConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldNullConstraintTest.suite());\n// yet to be implemented:\n// suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueBetweenConstraintTest.suite()); \n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueInConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicLegacyConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicRelationStepTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicSearchQueryTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicSortOrderTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStepTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStepFieldTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStringSearchConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.database.DatabaseSuite.suite());\n suite.addTest(org.mmbase.storage.search.implementation.ModifiableQueryTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.NodeSearchQueryTest.suite());\n //:JUNIT--\n //This value MUST ALWAYS be returned from this function.\n return suite;\n }", "public static void main (String [] args) {\r\n TestNG runner= new TestNG();\r\n suitefiles=new ArrayList<String>();\r\n checkarguments(args);\r\n //suitefiles.add(\"C:\\\\data\\\\workspace\\\\webauto\\\\Suites.xml\");\r\n runner.setTestSuites(suitefiles);\r\n runner.run();\r\n }", "public static Test suite() {\n TestSuite suite = new TestSuite(\"All hypertree Tests\");\n suite.addTest(TestHTModel.suite());\n suite.addTest(TestHTCoord.suite());\n return suite;\n }", "@BeforeClass\n @Parameters({\"browser\", \"url\"})\n // Step 2: create a method with appropriate params\n void setup(String mBrowser, String mUrl){\n // Step 3: make use of the parameters\n if(mBrowser.equalsIgnoreCase(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/chromedriver_win32/chromedriver.exe\");\n driver = new ChromeDriver();\n }else if(mBrowser.equalsIgnoreCase(\"firefox\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/firefox_win32/firefoxdriver.exe\");\n driver = new FirefoxDriver();\n }\n // Step 3: make use of the parameters\n driver.get(mUrl);\n }", "public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "public static Test suite() {\n return new TestSuite(DefineVariableCommandTest.class);\n }", "public static junit.framework.Test suite() {\r\n return new JUnit4TestAdapter(ProjectTermsOfUseDaoImplStressTests.class);\r\n }", "public static Test getTestSuite() {\n \t\tTestSuite testSuite = new TestSuite(\"TCF Launch tests\"); //$NON-NLS-1$\n \n \t\t// add ourself to the test suite\n \t\ttestSuite.addTestSuite(TcfLaunchTests.class);\n \n \t\treturn testSuite;\n \t}", "@BeforeClass\r\n\tpublic void setUp() {\n\t\tdriver = BrowserFactory.startApplication(DataProviderFactory.getConfig().getStagingURL(), DataProviderFactory.getConfig().getBrowser());\r\n\t}", "public static Test suite() {\r\n return new TestSuite(DistributionScriptParserImplTest.class);\r\n }", "public static junit.framework.Test suite() {\r\n return new JUnit4TestAdapter(HelperUnitTests.class);\r\n }", "public static Test suite()\n {\n TestSuite suite = new TestSuite();\n suite.addTest(new PSJdbcTableSchemaTest(\"testDef\"));\n return suite;\n }", "private XmlSuite executeSubTest(String[] testClasses) throws IOException {\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(\"TmpSuite\");\r\n\t\tsuite.setFileName(\"/home/test/seleniumRobot/data/core/testng/testLoggging.xml\");\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\tfor (String testClass: testClasses) {\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(testClass.substring(testClass.lastIndexOf(\".\") + 1));\r\n\t\t\tList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tclasses.add(new XmlClass(testClass));\r\n\t\t\ttest.setXmlClasses(classes) ;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tTestNG tng = new TestNG(false);\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.addListener((IReporter)reporter);\r\n\t\ttng.addListener((IReporter)reporter2);\r\n\t\ttng.addListener((ITestListener)testListener);\r\n\t\ttng.addListener((IInvokedMethodListener)testListener);\r\n\t\ttng.addListener(retry);\r\n\t\ttng.setOutputDirectory(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory());\r\n\t\ttng.run(); \r\n\t\tSeleniumRobotLogger.parseLogFile();\r\n\t\t\r\n\t\treturn suite;\r\n\t}", "@Override\n public ITestbed create(ITasResolver tasResolver) {\n List<String> emChosenFeatures = Arrays.asList(\"Enterprise Manager\", \"WebView\");\n\n \n // Collector1 role\n EmRole collector1Role =\n new EmRole.LinuxBuilder(COLLECTOR1_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.COLLECTOR)\n .silentInstallChosenFeatures(emChosenFeatures)\n .dbhost(tasResolver.getHostnameById(MOM_ROLE_ID))\n .installDir(TasBuilder.LINUX_SOFTWARE_LOC+\"em_col\")\n .emPort(5005).emWebPort(8085).wvEmPort(8090)\n .nostartEM().nostartWV()\n .build();\n \n // MOM role\n EmRole momRole =\n new EmRole.LinuxBuilder(MOM_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.MANAGER)\n .emCollector(collector1Role)\n .nostartEM().nostartWV().build();\n \n //CDV role\n EmRole cdvRole = new EmRole.LinuxBuilder(CDV_ROLE_ID, tasResolver)\n .emClusterRole(DeployEMFlowContext.EmRoleEnum.CDV)\n .silentInstallChosenFeatures(emChosenFeatures)\n .emCollector(collector1Role)\n .nostartEM().nostartWV().build();\n\n // QAAppRole for Tomcat\n WebAppRole<TomcatRole> qaAppTomcatRole =\n new QaAppTomcatRole.Builder(QA_APP_TOMCAT_ROLE_ID, tasResolver)\n .cargoDeploy().contextName(\"qa-app\")\n .build(); \n\n // Tomcat Role\n TomcatRole tomcatRole =\n new TomcatRole.LinuxBuilder(TOMCAT_ROLE_ID, tasResolver).tomcatVersion(TomcatVersion.v70)\n .tomcatCatalinaPort(9091).webApp(qaAppTomcatRole).build();\n\n // Tomcat Agent Role\n IRole tomcatAgentRole =\n new AgentRole.LinuxBuilder(TOMCAT_AGENT_ROLE_ID, tasResolver).webAppServer(tomcatRole)\n .intrumentationLevel(AgentInstrumentationLevel.FULL).emRole(momRole)\n .build();\n \n \n // Configuration of Cdv machine\n TestbedMachine cdvMachine =\n TestBedUtils\n .createLinuxMachine(CDV_MACHINE_ID, EM_TEMPLATE_ID, cdvRole); \n \n // Configuration of Collector1 machine\n TestbedMachine emMachine =\n TestBedUtils\n .createLinuxMachine(EM_MACHINE_ID, EM_TEMPLATE_ID, momRole, collector1Role);\n\n\n // Configuration of Agent Machine\n TestbedMachine agentMachine =\n TestBedUtils.createLinuxMachine(AGENT_MACHINE_ID, AGENT_MACHINE_TEMPLATE_ID,\n tomcatRole, qaAppTomcatRole, tomcatAgentRole);\n \n return Testbed.create(this, cdvMachine, emMachine, agentMachine);\n\n }", "protected void createSuite(String parent, String bootstrapSuitePath, String[] classPath, Boolean littleEndian, String suiteName) {\n StringBuffer buffer = new StringBuffer();\n appendSuiteCreatorCommand(buffer, bootstrapSuitePath);\n appendSuiteCreatorOptions(buffer, parent, bootstrapSuitePath, classPath, littleEndian);\n buffer.append(\" \");\n buffer.append(suiteName);\n String command = buffer.toString();\n env.exec(command);\n }", "@BeforeClass public static void initialiseScenario(){\n SelectionScenario.initialiseScenario();\n }", "public TestNGExecutor(String testngSuite) {\r\n this(testngSuite, System.getProperty(\"java.io.tmpdir\"), false);\r\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n\n suite.addTest(HelperTest.suite());\n suite.addTest(Demo.suite());\n suite.addTest(HelperTest.suite());\n suite.addTest(InstanceTest.suite());\n suite.addTest(InstanceAbstractImplTest.suite());\n suite.addTest(ObjectTest.suite());\n suite.addTest(ObjectImplTest.suite());\n suite.addTest(StimulusTest.suite());\n suite.addTest(StimulusImplTest.suite());\n suite.addTest(LinkTest.suite());\n suite.addTest(LinkEndTest.suite());\n suite.addTest(LinkEndImplTest.suite());\n suite.addTest(LinkImplTest.suite());\n suite.addTest(ProcedureTest.suite());\n suite.addTest(ProcedureImplTest.suite());\n\n return suite;\n }", "public static Test suite() {\n\t\tTestSuite suite = new TestSuite();\n\n\t\texecuteScript(false, \"testdata/monitor-data.sql\");\n\n\t\t// run all tests\n\t\t// suite = new TestSuite(TestLogMessageService.class);\n\n\t\t// or a subset thereoff\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessages\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByApplicationType\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByDeviceIdentification\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByDeviceIdentifications\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByDeviceId\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByDeviceIds\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByHostName\"));\n\t\tsuite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByHostNames\"));\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessagesByHostId\"));\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessagesByHostIds\"));\n\t\tsuite.addTest(new TestLogMessageService(\"testGetLogMessagesByService\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByServiceStatusId\"));\n\t\tsuite.addTest(new TestLogMessageService(\n\t\t\t\t\"testGetLogMessagesByHostGroupName\"));\n\t\t/*suite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testUnlinkLogMessagesFromHost\"));*/\n\t\tsuite.addTest(new TestLogMessageService(\"testHostStateTransitions\"));\n\t\t/*suite\n\t\t\t\t.addTest(new TestLogMessageService(\n\t\t\t\t\t\t\"testGetLogMessagesByCriteria\"));*/\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessagesByHostGroupNames\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessagesByHostGroupId\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessagesByHostGroupIds\"));\n\t\t// suite.addTest(new TestLogMessageService(\"testGetLogMessageById\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testUnlinkLogMessagesFromService\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testDeleteLogMessagesForDevice\"));\n\t\t// suite.addTest(new\n\t\t// TestLogMessageService(\"testGetLogMessageForConsolidationCriteria\"));\n\t\t// suite.addTest(new TestLogMessageService(\"testSetIsStateChanged\"));\n\n suite.addTest(new TestLogMessageService(\"testSetDynamicProperty\"));\n\n\t\treturn suite;\n\t}", "private DesiredCapabilities createSpecificGridCapabilities(DriverConfig webDriverConfig) {\r\n \tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n \t\r\n \tif (SeleniumTestsContextManager.isMobileTest()) {\r\n \t\tcapabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getMobilePlatformVersion());\r\n \t} else {\r\n \t\tcapabilities.setCapability(CapabilityType.PLATFORM, webDriverConfig.getPlatform().toLowerCase());\r\n \t\tif (webDriverConfig.getBrowserVersion() != null) {\r\n \t\t\tcapabilities.setCapability(CapabilityType.VERSION, webDriverConfig.getBrowserVersion());\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn capabilities;\r\n }", "public static Test suite() throws FileNotFoundException, IOException, InterruptedException, ProcessingException {\n\t\tString filename = TESTDESCRIPTIONFILENAME;\r\n\t\tString fnProperty = System.getProperty(\"test.description.file\");\r\n\t\tif (null != fnProperty && fnProperty.length() > 0) {\r\n\t\t\tfilename = fnProperty;\r\n\t\t}\r\n\t\tFile tempFile = new File(filename);\r\n\t\tif (!tempFile.exists() || !tempFile.canRead()) {\r\n\t\t\tthrow new FileNotFoundException(\"Could not find test description file \" + filename);\r\n\t\t}\r\n\t\tLOGGER.log(Level.CONFIG, \"Reading test description from file \" + filename);\r\n\t\tJsonNode testDescription = JsonLoader.fromFile(new File(filename));\r\n\r\n\t\t// LOGGER.log(Level.INFO, \"Validating description against JSON-schema\");\r\n\t\t// JsonNode schemaNode = JsonLoader.fromFile(new File(SCHEMAFILENAME));\r\n\t\t// JsonSchemaFactory schemaFactory = JsonSchemaFactory.byDefault();\r\n\t\t// JsonSchema schema = schemaFactory.getJsonSchema(schemaNode);\r\n\t\t// schema.validate(testDescription);\r\n\r\n\t\t// use the JSON for test setup\r\n\t\tTestSuiteFactory factory = new TestSuiteFactory();\r\n\t\tTestSuite suite = factory.makeSuiteFromJSON(testDescription);\r\n\r\n\t\tTestSetup ts = new TestSetup(suite) {\r\n\r\n\t\t\tprotected void setUp() throws Exception {\r\n\t\t\t\tLOGGER.log(Level.INFO, \"Setting up web driver pool\");\r\n\t\t\t\tGenericObjectPoolConfig _webDriverPoolConfig = new GenericObjectPoolConfig();\r\n\t\t\t\t_webDriverPoolConfig.setBlockWhenExhausted(true);\r\n\t\t\t\t_webDriverPoolConfig.setMinIdle(5);\r\n\t\t\t\t_webDriverPoolConfig.setMaxTotal(15);\r\n\t\t\t\tBasePooledWebDriverFactory factory = new BasePooledWebDriverFactory();\r\n\t\t\t\t_webDriverPool = new GenericObjectPool<WebDriver>(PoolUtils.synchronizedPooledFactory(factory),\r\n\t\t\t\t\t\t_webDriverPoolConfig);\r\n\t\t\t}\r\n\r\n\t\t\tprotected void tearDown() throws Exception {\r\n\t\t\t\tLOGGER.log(Level.CONFIG, \"Closing web driver pool\");\r\n\t\t\t\t_webDriverPool.close();\r\n\t\t\t}\r\n\r\n\t\t};\r\n\r\n\t\treturn ts;\r\n\t}", "public static Test suite() {\n TestSuite suite = new TestSuite();\n Properties props = new Properties();\n int count = 1;\n String path;\n URL url;\n \n try {\n props.load(TestPluginTokenizer.class.getResourceAsStream(CONFIG_FILE));\n } catch (Exception ex) {\n throw new ExtRuntimeException(ex);\n }\n \n while ((path = props.getProperty(PROP_PATH + count)) != null) {\n if ((url = TestPluginTokenizer.class.getResource(path)) != null) {\n path = url.getFile();\n }\n suite.addTest(new TestPluginTokenizer(\"testContentsParsing\", path));\n suite.addTest(new TestPluginTokenizer(\"testContentsFormatting\", path));\n count++;\n }\n return suite;\n }", "public static junit.framework.Test suite() {\n TestSuite suite = new NbTestSuite();\n if (Utilities.isUnix()) return suite;\n String zipFile = \"C:\\\\Program Files\\\\Microsoft Visual Studio\\\\vss.zip\";\n if (!new File(zipFile).exists()) return suite; // This test suite can't run where zip with empty VSS repository is not prepared.\n suite.addTest(new RegularDevelopment(\"testCheckoutFile\"));\n suite.addTest(new RegularDevelopment(\"testModifyFile\"));\n suite.addTest(new RegularDevelopment(\"testViewDifferences\"));\n suite.addTest(new RegularDevelopment(\"testCheckinFile\"));\n suite.addTest(new RegularDevelopment(\"testViewHistory\"));\n suite.addTest(new RegularDevelopment(\"testGetMissingFile\"));\n suite.addTest(new RegularDevelopment(\"testUnlockFile\"));\n return suite;\n }", "public static Test suite() {\n return new TestSuite(ProjectManagerImplTest.class);\n }", "public static junit.framework.Test suite() throws Exception {\n\n junit.framework.TestSuite suite =\n new junit.framework.TestSuite(AllSystemTestsConfigQ.class\n .getName());\n\n suite.addTest(org.fcrepo.test.AllCommonSystemTests.suite());\n suite.addTest(org.fcrepo.test.api.TestAPIAConfigA.suite());\n suite.addTest(org.fcrepo.test.api.TestAPIALiteConfigA.suite());\n suite.addTest(org.fcrepo.test.api.TestHTTPStatusCodesConfigQ.suite());\n suite.addTest(org.fcrepo.test.api.TestManyDisseminations.suite());\n\n return suite;\n }", "@BeforeMethod\n @Parameters(\"browser\")\n public static void startTest(String browser) throws Exception {\n if (browser.equalsIgnoreCase(\"firefox\")) {\n //create firefox instance\n WebDriverManager.firefoxdriver().setup();\n Constant.WEBDRIVER = new FirefoxDriver();\n Constant.WEBDRIVER.manage().window().maximize();\n }\n //Check if parameter passed as 'chrome'\n else if (browser.equalsIgnoreCase(\"chrome\")) {\n //set path to chromedriver.exe\n WebDriverManager.chromedriver().setup();\n //create chrome instance\n Constant.WEBDRIVER = new ChromeDriver();\n Constant.WEBDRIVER.manage().window().maximize();\n }\n //Check if parameter passed as 'Edge'\n else if (browser.equalsIgnoreCase(\"Edge\")) {\n //set path to Edge.exe\n WebDriverManager.edgedriver().setup();\n //create Edge instance\n Constant.WEBDRIVER = new EdgeDriver();\n Constant.WEBDRIVER.manage().window().maximize();\n } else {\n //If no browser passed throw exception\n throw new Exception(\"Browser is not correct\");\n }\n\n// String filePath = \"D:\\\\Selenium1\\\\selenium_1\\\\Reports\\\\\" + Utils.time() + \"extent.html\";\n// File extentReportFile = new File(filePath);\n// extent = new ExtentReports(filePath, true, DisplayOrder.OLDEST_FIRST, NetworkMode.ONLINE);\n// extent.loadConfig(new File(\"D:\\\\logi\\\\selen_project_git\\\\logi_selenium\\\\selen_gr_railway2\\\\src\\\\main\\\\\" +\n// \"resources\\\\ExtentReport\\\\extent-config.xml\"));\n }", "public static Test suite() {\n return new TestSuite(TestLearningAPI.class);\n }", "public static Test suite() {\r\n return new TestSuite(JPADigitalRunTrackStatusDAOTest.class);\r\n }", "public static Test suite() {\n\t\tEPPCodecTst.initEnvironment();\n\n\t\tTestSuite suite = new TestSuite(EPPFeeTst.class);\n\n\t\t// iterations Property\n\t\tString numIterProp = System.getProperty(\"iterations\");\n\n\t\tif (numIterProp != null) {\n\t\t\tnumIterations = Integer.parseInt(numIterProp);\n\t\t}\n\n\t\t// Add the EPPNSProductExtFactory to the EPPCodec.\n\t\ttry {\n\t\t\tEPPFactory.getInstance().addMapFactory(\n\t\t\t\t\t\"com.verisign.epp.codec.host.EPPHostMapFactory\");\n\t\t\tEPPFactory.getInstance().addMapFactory(\n\t\t\t\t\t\"com.verisign.epp.codec.domain.EPPDomainMapFactory\");\n\t\t\tEPPFactory.getInstance().addExtFactory(\n\t\t\t\t\t\"com.verisign.epp.codec.fee.v08.EPPFeeExtFactory\");\n\t\t}\n\t\tcatch (EPPCodecException e) {\n\t\t\tAssert.fail(\"EPPCodecException adding factories to EPPCodec: \" + e);\n\t\t}\n\n\t\treturn suite;\n\t}", "public static Test suite() {\r\n final TestSuite suite = new TestSuite();\r\n\r\n suite.addTestSuite(ProjectServiceBeanTestsV11.class);\r\n\r\n /**\r\n * <p>\r\n * Setup the unit test.\r\n * </p>\r\n */\r\n TestSetup wrapper = new TestSetup(suite) {\r\n /**\r\n * <p>\r\n * Setup the EJB test.\r\n * </p>\r\n */\r\n @Override\r\n protected void setUp() throws Exception {\r\n deleteAllProjects();\r\n\r\n lookupProjectServiceRemoteWithUserRole();\r\n }\r\n\r\n /**\r\n * <p>\r\n * Tear down the EJB test.\r\n * </p>\r\n */\r\n @Override\r\n protected void tearDown() throws Exception {\r\n ctx = null;\r\n projectService = null;\r\n }\r\n };\r\n\r\n return wrapper;\r\n }", "@BeforeSuite\r\n\tpublic void before_suite() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"G:\\\\chromedriver.exe\");\r\n\t}", "public static Test suite() {\n \t\treturn new TestSuite(ModelObjectReaderWriterTest.class);\n \t}", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(ActorUtilTest.suite());\n suite.addTest(AddActionTest.suite());\n suite.addTest(AddActorActionTest.suite());\n suite.addTest(AddExtendActionTest.suite());\n suite.addTest(AddIncludeActionTest.suite());\n suite.addTest(AddSubsystemActionTest.suite());\n suite.addTest(AddUseCaseActionTest.suite());\n suite.addTest(CopyActionTest.suite());\n suite.addTest(CopyActorActionTest.suite());\n suite.addTest(CopyExtendActionTest.suite());\n suite.addTest(CopyIncludeActionTest.suite());\n suite.addTest(CopySubsystemActionTest.suite());\n suite.addTest(CopyUseCaseActionTest.suite());\n suite.addTest(CutActionTest.suite());\n suite.addTest(CutActorActionTest.suite());\n suite.addTest(CutExtendActionTest.suite());\n suite.addTest(CutIncludeActionTest.suite());\n suite.addTest(CutSubsystemActionTest.suite());\n suite.addTest(CutUseCaseActionTest.suite());\n suite.addTest(ExtendUtilTest.suite());\n suite.addTest(IncludeUtilTest.suite());\n suite.addTest(InvalidDataContentExceptionTest.suite());\n suite.addTest(ModelTransferTest.suite());\n suite.addTest(PasteActionTest.suite());\n suite.addTest(PasteActorActionTest.suite());\n suite.addTest(PasteExtendActionTest.suite());\n suite.addTest(PasteIncludeActionTest.suite());\n suite.addTest(PasteSubsystemActionTest.suite());\n suite.addTest(PasteUseCaseActionTest.suite());\n suite.addTest(RemoveActionTest.suite());\n suite.addTest(RemoveActorActionTest.suite());\n suite.addTest(RemoveExtendActionTest.suite());\n suite.addTest(RemoveIncludeActionTest.suite());\n suite.addTest(RemoveSubsystemActionTest.suite());\n suite.addTest(RemoveUseCaseActionTest.suite());\n suite.addTest(SubsystemUtilTest.suite());\n suite.addTest(UsecaseToolUtilTest.suite());\n suite.addTest(UsecaseUndoableActionTest.suite());\n suite.addTest(UseCaseUtilTest.suite());\n\n suite.addTest(Demo.suite());\n\n return suite;\n }", "public static void main(String[] args) {\n\t\tTestNG testNG = new TestNG();\n\t\tTestListenerAdapter adapter = new TestListenerAdapter();\n\t\tList<String> suites = new ArrayList<>();\n\t\ttestNG.addListener((ITestNGListener) adapter);\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/main_testng.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng1.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng2.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng3.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng4.xml\");\n\t\ttestNG.setTestSuites(suites);\n\t\ttestNG.setParallel(XmlSuite.ParallelMode.METHODS);\n\t\ttestNG.setPreserveOrder(true);\n\t\ttestNG.setSuiteThreadPoolSize(5);\n\t\ttestNG.setVerbose(0);\n\t\ttestNG.setOutputDirectory(\"test-output\");\n\t\ttestNG.run();\n\t}", "public static Test suite()\r\n {\r\n return new TestSuite(UserTest.class);\r\n\t}", "@BeforeClass\n public void BeforeTest(){\n Configuration.browser = \"Chrome\";\n\n }", "public static Test suite() {\r\n return new TestSuite(UserClientPKUnitTests.class);\r\n }", "@BeforeSuite\n public void beforeSuite(ITestContext context) {\n useGrid = Boolean.parseBoolean(getTestNGParam(context,\"run.on.grid\"));\n \t//data properties file\n initDataFile(getTestNGParam(context,\"data.file.name\"));\n //device log\n initDeviceLogsFolder(context);\n }", "public static junit.framework.Test suite() {\r\n\t\treturn new JUnit4TestAdapter(SimpleTest.class);\r\n\t}", "@Before\n public void setUp() {\n gridClient = new GridClient(\"admin\", \"Experitest2012\", \"\", \"http://localhost:8090\");\n client = gridClient.lockDeviceForExecution(\"Untitled\", \"@serialnumber='HT71C0200017'\", 120, TimeUnit.MINUTES.toMillis(2));\n client.setReporter(\"xml\", \"reports\" , \"Untitled\");\n }", "SeleniumFactory getSeleniumFactory();", "public static junit.framework.Test suite() {\n\t\treturn new JUnit4TestAdapter(\n\t\t\t\tJDBCReviewFeedbackManagerStressUnitTests.class);\n\t}", "@BeforeMethod(alwaysRun = true)\n public static void setUp(){\n // ConfigReader.readProperties(Constants.CONFIGURATION_FILEPATH);\n ConfigReader.readProperties(Constants.CONFIGURATION_FILE);\n switch (ConfigReader.getPropertyValue(\"browser\")){\n case \"chrome\":\n //System.setProperty(\"webdriver.chrome.driver\", \"Drivers/chromedriver.exe\");\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n //System.setProperty(\"webdriver.gecko.driver\", \"Drivers/geckodriver.exe\");\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n break;\n default:\n throw new RuntimeException(\"Invalid name of browser\");\n }\n driver.get(ConfigReader.getPropertyValue(\"url\"));\n driver.manage().window().maximize();\n //driver.manage().timeouts().implicitlyWait(Constants.IMPLICIT_WAIT, TimeUnit.SECONDS);\n }", "@BeforeSuite\n\tpublic void initialize(){\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\t// loading config Repositories\n\t\t\tconfig = new Properties();\n\t\t\tFileInputStream fp = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hrm\\\\config\\\\config.properties\");\n\t\t\tconfig.load(fp);\n\t\t\t\n\t\t\t\n\t\t\t// checking the type of browser\n\t\t\tif(config.getProperty(\"browserType\").equalsIgnoreCase(\"Firefox\")){\n\t\n\t\t\t\twbDv = new FirefoxDriver();\n\t\t\t\t\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"IE\")){\n\t\t\t\t\n\t\t\t\twbDv = new InternetExplorerDriver();\n\t\t\t\tDesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();\n\t\t\t\tieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t\t\twbDv = new InternetExplorerDriver(ieCapabilities);\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"Chrome\")){\n\t\t\t\t\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"\\\\OtherUtility\\\\chromedriver.exe\");\n\t\t\t wbDv = new ChromeDriver();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdriver = new EventFiringWebDriver(wbDv);\n\t\t\t\n\t\t\t// putting an implicit wait after every Action or Event\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\t\n\t\t\t// Loading the browser\n\t\t\tdriver.get(\"http://croissanceservices.com/hrm\");\n\t\t\t\n\t\t\t// opening the browser\n\t\t\tdriver.manage().window().maximize();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "@BeforeMethod\n public void acilis() {\n// WebDriverManager.chromedriver().setup();\n// driver = new ChromeDriver();\n Driver.getDriver().manage().window().maximize();\n Driver.getDriver().manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n System.out.println(\"TestNG\");\n actions = new Actions(Driver.getDriver());\n }", "public static Test suite() {\r\n\t\treturn new CanvasCCPTestSuite();\r\n\t}", "public static Test suite() {\r\n final TestSuite suite = new TestSuite();\r\n\r\n suite.addTest(CategoryConfigurationUnitTest.suite());\r\n suite.addTest(CategoryTypeUnitTest.suite());\r\n suite.addTest(EntityTypeUnitTest.suite());\r\n suite.addTest(ForumEntityNotFoundExceptionUnitTest.suite());\r\n suite.addTest(JiveForumManagementExceptionUnitTest.suite());\r\n suite.addTest(JiveForumManagerUnitTest.suite());\r\n suite.addTest(UserNotFoundExceptionUnitTest.suite());\r\n suite.addTest(UserRoleUnitTest.suite());\r\n\r\n suite.addTest(HelperUnitTest.suite());\r\n suite.addTest(TCAuthTokenUnitTest.suite());\r\n\r\n suite.addTest(ServiceConfigurationExceptionUnitTest.suite());\r\n\r\n suite.addTest(JiveForumServiceBeanUnitTest.suite());\r\n\r\n suite.addTest(MockJiveForumServiceTest.suite());\r\n return suite;\r\n }", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(UserUnitTests.class);\n }", "private static List<TestSetup> getTests() {\n PivotPicker middlePiv = Quick::alwaysPickMiddle;\n\n // Pivot Pickers\n PivotPicker leftPiv = Quick::alwaysPickLeftmost;\n PivotPicker rightPiv = Quick::alwaysPickRightmost;\n PivotPicker motPiv = Quick::medianOfThree;\n PivotPicker[] pivots = {leftPiv, middlePiv, rightPiv, motPiv};\n String[] pivotNames = {\"Always Pick Leftmost\", \"Always Pick Middle\", \"Always Pick Rightmost\", \"Median Of Three\"};\n\n // Partitioning methods\n Partitioner jonPart = (array, left, right, pivot) -> partition_Jon(array, left, right, pivot);\n Partitioner lomutoPart = Quick::partition_Lomuto;\n Partitioner hoarePart = Quick::partition_Hoare;\n Partitioner[] partitioners = {lomutoPart, hoarePart};\n String[] partNames = {\"lomuto\", \"hoare\"};\n\n // Subsort methods and sizes\n Subsort insertionSub = Quick::insertionSort;\n Subsort[] subsorts = {insertionSub};\n String[] subsortNames = {\"insertion\"};\n List<Integer> sizes = new ArrayList<>();\n for (int i = 3; i < 128; i = 1 + (int) (i * 1.45)) {\n sizes.add(i);\n }\n Integer[] subsortSizes = sizes.toArray(new Integer[sizes.size()]);\n\n // Data generators\n Generator randomGen = (size) -> {\n return generateArray(100, 999, size);\n };\n Generator sortedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = i;\n }\n return arr;\n };\n Generator reversedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = arr.length - i;\n }\n return arr;\n };\n Generator[] generators = {\n randomGen,\n //sortedGen, reversedGen,\n //(size) -> { return generateArray(10000, 99999, size, 0xDEADBEEF); },\n //(size) -> { return generateArray(10000, 99999, size, 0xCAFEBABE); },\n //(size) -> { return generateArray(10000, 99999, size, 0xBAADF00D); },\n\n };\n String[] generatorNames = {\n \"Random\",\n //\"sorted\", \"reversed\",\n //\"Sequence:0xDEADBEEF\",\n //\"Sequence:0xCAFEBABE\",\n //\"Sequence:0xBAADF00D\",\n };\n\n // Default test data\n TestSetup defaultTest = new TestSetup(\"Default\", null, null, 0, null, null);\n\n List<TestSetup> tests = new ArrayList<>();\n tests.add(defaultTest);\n List<TestSetup> temp = new ArrayList<>();\n { // Block for creating partition method variants\n\n\n // Create variations of the test with different partitioning methods\n for (TestSetup setup : tests) {\n\n for (int i = 0; i < partitioners.length; i++) {\n TestSetup variant = new TestSetup(setup, partNames[i]);\n variant.part = partitioners[i];\n temp.add(variant);\n }\n }\n }\n\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n // Create variations of the test with different pivot picking methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < pivots.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" + \" + pivotNames[i]);\n variant.pivp = pivots[i];\n temp.add(variant);\n }\n }\n\n { // Block for creating generator (dataset) variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different data generation methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < generators.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" on \" + generatorNames[i] + \" data\");\n variant.gen = generators[i];\n temp.add(variant);\n }\n }\n }\n\n\n { // Block for creating subsort variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different subsort methods and thresholds\n for (TestSetup setup : tests) {\n temp.add(setup);\n\n for (int i = 0; i < subsorts.length; i++) {\n // And also one version for each size!\n for (int k = 0; k < subsortSizes.length; k++) {\n TestSetup variant = new TestSetup(setup, setup.name + \"+\" + subsortNames[i] + \" below \" + subsortSizes[k]);\n variant.sst = subsortSizes[k];\n variant.ssort = subsorts[i];\n //temp.add(variant);\n\n TestSetup variant_finalSort = new TestSetup(variant, variant.name + \" once at end\");\n variant_finalSort.sortFinal = true;\n temp.add(variant_finalSort);\n }\n }\n }\n }\n\n\n // Return completed variation list\n return temp;\n }", "@BeforeSuite\n\tpublic void initialize(){\n\t\t\n\t\t// loading all the configuration values\n\t\ttry{\n\t\t\tconfig = new Properties();\n\t\t\tFileInputStream fp = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hybridsec\\\\telepath\\\\config\\\\config.properties\");\n\t\t\tconfig.load(fp);\n\t\t\t\n\t\t\t// loading Objects Repository\n\t\t\tOR = new Properties();\n\t\t\tfp = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hybridsec\\\\telepath\\\\config\\\\OR.properties\");\n\t\t\tOR.load(fp);\n\t\t\t\n\t\t\tdatatable = new Xls_Reader(System.getProperty(\"user.dir\")+\"\\\\src\\\\com\\\\hybridsec\\\\telepath\\\\xls\\\\Controller.xlsx\");\n\t\t\t\n\t\t\t// checking the type of browser and launching the browser\n\t\t\tif(config.getProperty(\"browserType\").equalsIgnoreCase(\"Firefox\")){\n\t\t\t\t\n\t\t\t\twbDv = new FirefoxDriver();\n\t\t\t\t\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"IE\")){\n\t\t\t\t\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", System.getProperty(\"user.dir\")+\"\\\\OtherUtilities\\\\IEDriverServer.exe\");\n\t\t\t\twbDv = new InternetExplorerDriver();\n\t\t\t\t\n\t\t\t}else if(config.getProperty(\"browserType\").equalsIgnoreCase(\"Chrome\")){\n\t\t\t\t\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"\\\\OtherUtilities\\\\chromedriver.exe\");\n\t\t\t\twbDv = new ChromeDriver();\n\t\t\t}\n\t\t\t\n\t\t\tdriver = new EventFiringWebDriver(wbDv);\n\t\t\t\n\t\t\t// Putting an implicit wait after every Action or Event\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\t\n\t\t\t// Maximize the browser window\n\t\t\tdriver.manage().window().maximize();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@BeforeClass\n\tpublic void setup() {\n\t\treport2 = new ExtentReports(\"./Reports/ElfuScripts.html\");\n\n\t}", "public AllTests() {\n\t\taddTest(new TestSuite(TestSuiteTest.class));\n\t}", "@BeforeClass\n public static void setUpSelenium1() {\n activateSelenium1();\n }", "@BeforeClass // runs before all test cases; runs only once\n public static void setUpSuite() {\n\n }", "public void generateReport(List<XmlSuite> xmlSuites, List<ISuite>suites, \r\n\t\tString outputDirectory){//creating a method that takes three arguments,\r\n\t//to generate a report, arguments list requirements, \r\n\t//using a mechanism called List, which gets the array input\r\n\t//script will go back to xml suites, and look for \"suites\" which are the classes we created\r\n\t//we will create an xml file to contain all the classes within our test cases\r\n\t//PASS, FAIL, or SKIP will be string outputs; String outputDirectory\r\n\t//XML Suite: big time testing based on testing type\r\n\t//ISuite: pages we are working on; classes created to perform action; under test folder\r\n\t\r\n\textent = new ExtentReports(outputDirectory + File.separator\r\n\t\t\t+ \"Extent.html\", true);\r\n\t//creating an object for extent report, creating a virtual object to save all output to save all results\r\n\t//as a string, file seperator is not needed, it doesn't matter how u received the result\r\n\t//seperate them and consolidate the results\r\n\t//telling you how to save the file name, html is easy to open on any device and lightweight\r\n\t//outputDirectory: SKIP, PASS, FAIL\r\n\t//the reason for boolean option: if yu receive results, generate report//if yu dont then dont generate\r\n\tfor(ISuite suite : suites){//for loop is created\r\n\t\t//map obtains a key value, not duplicate, and then maps it to one location, which is the\r\n\t\t//extent report\r\n\t\t//an interface in java, between key value and location (between status and extent report)\r\n\t\t//will make sure how to map and seperate results under each class\r\n\t\tMap<String, ISuiteResult>result = suite.getResults();\r\n\t\r\n\tfor(ISuiteResult r : result.values()){\r\n\t\tITestContext context =r.getTestContext();//for each of the classes, create log status\r\n\t\t//test context: script that we are running, results from it\r\n\t\t//: is a conditional operator, which lists the conditions, which lists out the conditions\r\n\t\t//script should be able to run \r\n\t\t//one suite, or multiple suites in one shot\r\n\t\t//making context\r\n\t\t\r\n\t\t\r\n\t\tbuildTestNo(context.getPassedTests(), LogStatus.PASS);\r\n\t\tbuildTestNo(context.getFailedTests(), LogStatus.FAIL);\r\n\t\t//retrieving status using results/context\r\n\t\tbuildTestNo(context.getSkippedTests(), LogStatus.SKIP);\r\n\t\t\t\r\n\t}\r\n}\r\nextent.flush();//take results and place on html file\r\nextent.close();\r\n\r\n}", "@BeforeMethod\n\n\t// for parallel testing\n\t@Parameters(\"browser\")\n\t// public void init(String Browservalue) throws IOException {\n\n\tpublic void init() throws IOException {\n\t\tString Userpath = System.getProperty(\"user.dir\");\n\n\t\t// Read data from excel\n\t\texceldata = new Excelconfig(Userpath + \"\\\\Data\\\\Testdata.xlsx\");\n\n\t\tconfig = new Properties();\n\t\tobjectrepo = new Properties();\n\n\t\tfis = new FileInputStream(Userpath + \"\\\\src\\\\config\\\\config.properties\");\n\t\tLocator = new FileInputStream(Userpath + \"\\\\src\\\\objectrepo\\\\Locators.properties\");\n\n\t\tconfig.load(fis);\n\t\tobjectrepo.load(Locator);\n\n\t\t// Extent Reporting\n\t\tExtentHtmlReporter extent = new ExtentHtmlReporter(\n\t\t\t\tUserpath + \"\\\\Reports\\\\Login\" + Helper.getCurrentDateTime() + \".html\");\n\t\treport = new ExtentReports();\n\t\treport.attachReporter(extent);\n\n\t\t// Read from config.properties file\n\t\tString Browservalue = config.getProperty(\"Browser\");\n\n\t\tif (Browservalue.equalsIgnoreCase(\"chrome\")) {\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.chrome.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\chromedriver.exe\"); driver = new ChromeDriver();\n\t\t\t */\n\n\t\t} else if (Browservalue.equalsIgnoreCase(\"firefox\")) {\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.gecko.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\geckodriver.exe\"); driver = new FirefoxDriver();\n\t\t\t */\n\n\t\t} else if (Browservalue.equalsIgnoreCase(\"ie\")) {\n\t\t\tWebDriverManager.iedriver().setup();\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.ie.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\IEDriverServer.exe\"); driver = new InternetExplorerDriver();\n\t\t\t */\n\n\t\t} else if (Browservalue.equalsIgnoreCase(\"edge\")) {\n\t\t\tWebDriverManager.edgedriver().setup();\n\t\t\tdriver = new EdgeDriver();\n\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.edge.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\msedgedriver.exe\"); driver = new EdgeDriver();\n\t\t\t */\n\t\t}\n\n\t\tString URL = config.getProperty(\"url\");\n\t\tdriver.manage().window().maximize();\n\n\t\tdriver.get(URL);\n\n\t}", "public static junit.framework.Test suite() {\n return new junit.framework.JUnit4TestAdapter(TestBetamon.class);\n }", "public static junit.framework.Test suite() {\r\n return new JUnit4TestAdapter(ProjectTermsOfUseDaoImplUnitTests.class);\r\n }", "public CanvasCCPTestSuite() {\r\n\t\tCorePlugin.getDefault().getPreferenceStore().setValue(BridgePointPreferencesStore.USE_DEFAULT_NAME_FOR_CREATION,true);\r\n\t\taddTestSuite(CanvasCopyPasteTests.class);\r\n\t\taddTestSuite(CanvasCCPTestsSuite.class);\r\n\t\taddTestSuite(CanvasCutTests.class);\r\n\t\taddTestSuite(CanvasCopyTests.class);\r\n\t\taddTestSuite(CanvasStateMachineCopyPasteTests.class);\r\n\t\tTestSuite testSuite = new ModelRecreationTestSuite();\r\n\t\taddTest(testSuite);\r\n\t}", "public static Test suite() {\r\n final TestSuite suite = new TestSuite();\r\n\r\n suite.addTest(DatabaseReviewAuctionPersistenceAccuracyTests.suite());\r\n suite.addTest(DatabaseReviewApplicationPersistenceAccuracyTests.suite());\r\n\r\n suite.addTest(ReviewApplicationManagerImplAccuracyTests.suite());\r\n suite.addTest(ReviewAuctionManagerImplAccuracyTests.suite());\r\n\r\n suite.addTest(ReviewApplicationFilterBuilderAccuracyTests.suite());\r\n\r\n return suite;\r\n }", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(HelperUtiliyTest.class);\n }", "@Parameters({ \"report_name\" })\n\t@BeforeSuite\n\tpublic void setUp() {\n\t\tString reportName = \"Report-\" + getCurrentDateNTime(\"yyyy-MM-dd-HH-mm-ss\");\n\t\t//String reportFileName = reportName + \".html\";\n\t\tString reportFileName = \"TestExecutionReport.html\";\n\t\treports = new ExtentReports(\"./ExecutionReport/\" + reportFileName, true);\n\t\treports.loadConfig(new File(\"extent-config.xml\"));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void runTestSuites() throws InterruptedException {\n // all test suites are located under this directory\n String testSuiteDirectory = config.getTestSuiteDirectoryPathString();\n if (!testSuiteDirectory.endsWith(Constants.FILE_SEPARATOR)) {\n testSuiteDirectory += Constants.FILE_SEPARATOR;\n }\n\n String programNames = options.getValueFor(Constants.PROGRAMS_OPTION);\n String[] programNamesSeparated = programNames.split(Constants.COLON);\n\n // Find test subdirectories that match program names\n List<String> matchingDirectories;\n for (String programName : programNamesSeparated) {\n Path path = Paths.get(programName);\n String fname = path.getFileName().toString();\n programName = fname;\n DirectoryNameMatcher directoryFinder = new DirectoryNameMatcher(programName);\n try {\n Files.walkFileTree(Paths.get(testSuiteDirectory), directoryFinder);\n matchingDirectories = directoryFinder.getMatchingDirectories();\n if (matchingDirectories.isEmpty()) {\n Log.warn(messages.get(\"WRN001\", programName, testSuiteDirectory));\n }\n } catch (IOException ioException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR019\", programName));\n }\n\n for (String matchingDirectory : matchingDirectories) {\n TestSuiteConcatenator concatenator =\n new TestSuiteConcatenator(config, options);\n testSuite = concatenator.concatenateTestSuites(matchingDirectory);\n\n // Create READER for the Cobol source program to be tested\n StringBuilder cobolSourceInPath = new StringBuilder();\n cobolSourceInPath.append(System.getProperty(\"user.dir\"));\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n cobolSourceInPath.append(config.getApplicationSourceDirectoryPathString());\n if (!cobolSourceInPath.toString().endsWith(Constants.FILE_SEPARATOR)) {\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n }\n cobolSourceInPath.append(programName);\n\n List<String> applicationFilenameSuffixes = config.getApplicationFilenameSuffixes();\n for (String suffix : applicationFilenameSuffixes) {\n Log.debug(\"Driver looking for source file <\" + cobolSourceInPath.toString() + suffix + \">\");\n if (Files.isRegularFile(Paths.get(cobolSourceInPath.toString() + suffix))) {\n cobolSourceInPath.append(suffix);\n Log.debug(\"Driver recognized this file as a regular file: <\" + cobolSourceInPath.toString() + \">\");\n break;\n }\n }\n String cobolSourceInPathString = adjustPathString(cobolSourceInPath.toString());\n\n try {\n cobolSourceIn = new FileReader(cobolSourceInPathString);\n } catch (IOException cobolSourceInException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR018\", programName));\n }\n\n // Create WRITER for the test source program (copy of program to be tested plus test code)\n StringBuilder testSourceOutPath = new StringBuilder();\n testSourceOutPath.append(new File(Constants.EMPTY_STRING).getAbsolutePath());\n testSourceOutPath.append(Constants.FILE_SEPARATOR);\n testSourceOutPath.append(\n config.getString(Constants.TEST_PROGRAM_NAME_CONFIG_KEY,\n Constants.DEFAULT_TEST_PROGRAM_NAME));\n\n Log.debug(\"Driver.runTestSuites() testSourceOutPath: <\" + testSourceOutPath.toString() + \">\");\n\n try {\n testSourceOut = new FileWriter(testSourceOutPath.toString());\n } catch (IOException testSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR016\", programName));\n }\n\n mergeTestSuitesIntoTheTestProgram();\n try {\n testSourceOut.close();\n } catch (IOException closeTestSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR017\", programName));\n }\n\n // Compile and run the test program\n String processConfigKeyPrefix;\n ProcessLauncher launcher = null;\n switch (PlatformLookup.get()) {\n case LINUX :\n Log.debug(\"Driver launching Linux process\");\n processConfigKeyPrefix = \"linux\";\n launcher = new LinuxProcessLauncher(config);\n break;\n case WINDOWS :\n Log.debug(\"Driver launching Windows process\");\n processConfigKeyPrefix = \"windows\";\n launcher = new WindowsProcessLauncher(config);\n break;\n case OSX :\n Log.debug(\"Driver launching OS X process\");\n processConfigKeyPrefix = \"osx\";\n //launcher = new OSXProcessLauncher(config);\n break;\n case ZOS :\n Log.debug(\"Driver launching z/OS process\");\n processConfigKeyPrefix = \"zos\";\n //launcher = new ZOSProcessLauncher(config);\n break;\n default :\n Log.debug(\"Driver launching default process\");\n processConfigKeyPrefix = \"unix\";\n launcher = new LinuxProcessLauncher(config);\n break;\n }\n String processConfigKey = processConfigKeyPrefix + Constants.PROCESS_CONFIG_KEY;\n String processName = config.getString(processConfigKey);\n if (isBlank(processName)) {\n String errorMessage = messages.get(\"ERR021\", processConfigKey);\n Log.error(errorMessage);\n throw new PossibleInternalLogicErrorException(errorMessage);\n }\n if (launcher != null){\n Process process = launcher.run(testSourceOutPath.toString());\n int exitCode = 1;\n// try {\n exitCode = process.waitFor();\n// } catch (InterruptedException interruptedException) {\n// exitCode = 1;\n// }\n Log.info(messages.get(\"INF009\", processName, String.valueOf(exitCode)));\n }\n }\n }\n }", "@BeforeClass(description = \"Before class: start the Chrome browser\")\n public void setUpBrowser()\n {\n reports = new ExtentReports(\"C:\\\\Dev\\\\ToDoMVCTEST\\\\HTML_Report\\\\Report.html\", true);\n HTMLReport htmlReport = new HTMLReport();\n htmlReport.log(\"STARTING BeforeClass\");\n htmlReport.logINFO(\"Initialization of browser's driver\");\n driver = getDriver();\n htmlReport.logINFO(\"Maximize the window of browser\");\n driver.manage().window().maximize();\n htmlReport.logINFO(\"Setting timeouts in seconds\");\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n }", "public static Test suite() {\n final TestSuite suite = new TestSuite();\n suite.addTest(ConfigurationExceptionAccuracyTest.suite());\n suite.addTest(DefaultManagersProviderAccuracyTest.suite());\n suite.addTest(DefaultUploadExternalServicesAccuracyTest.suite());\n suite.addTest(DefaultUploadServicesAccuracyTest.suite());\n suite.addTest(InvalidProjectExceptionAccuracyTest.suite());\n suite.addTest(InvalidProjectPhaseExceptionAccuracyTest.suite());\n suite.addTest(InvalidSubmissionExceptionAccuracyTest.suite());\n suite.addTest(InvalidSubmissionStatusExceptionAccuracyTest.suite());\n suite.addTest(InvalidUserExceptionAccuracyTest.suite());\n suite.addTest(PersistenceExceptionAccuracyTest.suite());\n suite.addTest(UploadServicesExceptionAccuracyTest.suite());\n return suite;\n }", "@Override\r\n\tpublic void buildDriver() throws DriverException\r\n\t{\r\n\t\tif(ConfigUtil.isLocalEnv())\r\n\t\t{\r\n\t\t\t// if it is a Selenium tool, then create selenium ChromeDriver\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\t\r\n\t\t\t\tFile chromeDriverFile=getChromeDriverFile();\r\n\t\t\t\tSystem.out.println(\" Found Driver file\");\r\n\t\t\t\tdriver =SeleniumDriver.buildChromeDriver(chromeDriverFile);\r\n\t\t\t\t //new org.openqa.selenium.chrome.ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isRemoteEnv())\r\n\t\t{\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\tcapabilities = DesiredCapabilities.chrome();\t\r\n\t\t\t\tdriver = SeleniumDriver.buildRemoteDriver(capabilities);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isBrowserStackEnv())\r\n\t\t{\r\n\t\t\tcapabilities = DesiredCapabilities.chrome();\r\n\t\t\tbuildBrowserstackCapabilities();\r\n\r\n\t\t}\r\n\r\n\t}", "public static junit.framework.Test suite() {\n return new JUnit4TestAdapter(UserServiceImplUnitTests.class);\n }", "@Test\n\tpublic void Reports_18961_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to Advance Reports in navbar \n\t\tsugar().navbar.navToModule(ds.get(0).get(\"advance_report_name\"));\n \t\tnavigationCtrl.click();\n \t\t\n \t\t// Click on View Advance Report link\n \t\tviewAdvanceReportCtrl = new VoodooControl(\"a\", \"css\", \"[data-navbar-menu-item='LNK_LIST_REPORTMAKER']\");\n \t\tviewAdvanceReportCtrl.click();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// click on list item\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 > td:nth-child(3) a\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click to Select to add data format in report\n \t\tnew VoodooControl(\"input\", \"css\", \"#form [title='Select']\").click();\n \t\tVoodooUtils.focusWindow(1);\n \t\t\n \t\t// select data format in list\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 td:nth-child(1) a\").click();\n \t\tVoodooUtils.focusWindow(0);\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click \"Edit\" of a \"Data Format\"\n \t\tnew VoodooControl(\"a\", \"css\", \"#contentTable tr.oddListRowS1 > td:nth-child(6) > slot > a:nth-child(3)\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\tnew VoodooControl(\"input\", \"id\", \"name\").assertEquals(ds.get(0).get(\"data_format_name\"), true);\n \t\tnew VoodooControl(\"input\", \"id\", \"query_name\").assertEquals(ds.get(0).get(\"query_name\"), true);\n \t\tnew VoodooControl(\"a\", \"css\", \"#Default_DataSets_Subpanel tr:nth-child(1) td:nth-child(4) a\").assertEquals(ds.get(0).get(\"report_name\"), true);\n \t\tVoodooUtils.focusDefault();\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@BeforeClass\n public static void setup(){\n WebDriverManager.chromedriver().setup();\n webDriver = new ChromeDriver();\n webDriver.manage().window().maximize();\n webDriver.manage().timeouts().implicitlyWait(3000, TimeUnit.MILLISECONDS);\n }" ]
[ "0.6998086", "0.6625144", "0.6553405", "0.6439279", "0.6353656", "0.63236815", "0.6301455", "0.6259616", "0.6222044", "0.6151997", "0.61313295", "0.6113249", "0.6110756", "0.60313016", "0.6029955", "0.60130614", "0.5998508", "0.59971327", "0.5974936", "0.5945571", "0.59314036", "0.59205157", "0.5895438", "0.5893442", "0.58811784", "0.5875674", "0.5867079", "0.5863826", "0.5855627", "0.5854479", "0.58446676", "0.58299017", "0.580963", "0.58047086", "0.5792662", "0.57894194", "0.5758217", "0.5740957", "0.57155573", "0.5710316", "0.5707513", "0.56995004", "0.5692936", "0.5691264", "0.56624436", "0.5657", "0.5642143", "0.56345576", "0.5628698", "0.56229633", "0.56217796", "0.5620592", "0.5614932", "0.5595251", "0.5577563", "0.55743045", "0.5572121", "0.5571069", "0.55631936", "0.55440915", "0.55404234", "0.5532831", "0.55277777", "0.5516725", "0.55153334", "0.5514509", "0.5513338", "0.5509317", "0.5508475", "0.5505325", "0.55005807", "0.54994893", "0.54986477", "0.54936314", "0.54812306", "0.5478899", "0.547881", "0.5473579", "0.54711956", "0.54708165", "0.54450446", "0.54428506", "0.5442611", "0.54425985", "0.54410326", "0.54184717", "0.5413025", "0.5411624", "0.54079187", "0.5387525", "0.53862315", "0.53827274", "0.5380485", "0.5376857", "0.53726256", "0.5369632", "0.5359837", "0.5357382", "0.5352784", "0.5351665" ]
0.6485263
3
Reads the current directory and subdirectories and fetches the '.class' files with names starting with 'Test', ending with '.class' and does not contain '$' As this file will be called from build.xml in systemtests folder, it will fetch the class files from project folder (like 'systemtests') and its subdirectories
public String[] getTestClassNames(String directoryName) { File directory = new File(directoryName); File[] fList = directory.listFiles(); for (File file : fList){ if (file.isFile()){ if (file.getName().startsWith("Test") && file.getName().endsWith(".class") && !file.getName().contains("$")) { //Class Names fileNames = fileNames + " , " +file.getName(); //create import statements from absolute paths absolutePath = file.getAbsolutePath(); importStatements += "import "+absolutePath.substring(absolutePath.indexOf("com"),absolutePath.indexOf(".class")).replace("\\", ".")+";\n"; } } else if (file.isDirectory()){ getTestClassNames(file.getAbsolutePath()); } } testClasses[0]=fileNames; testClasses[1]=importStatements; return testClasses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Class<?>[] findTestClasses(File testDir) throws ClassNotFoundException {\n\t\tList<File> testClassFiles = findFilesEndingWith(testDir, new String[] { \"Test.class\" });\n\t\tList<Class<?>> classes = convertToClasses(testClassFiles, testDir);\n\t\treturn classes.toArray(new Class[classes.size()]);\n\t}", "public static String[] listFilesAsArray() {\n\t\t// Recursively find all .java files\n\t\tFile path = new File(Project.pathWorkspace());\n\t\tFilenameFilter filter = new FilenameFilter() {\n\n\t\t\tpublic boolean accept(File directory, String fileName) {\n\t\t\t\treturn fileName.endsWith(\".java\");\n\t\t\t}\n\t\t};\n\t\tCollection<File> files = listFiles(path, filter, true);\n\n\t\tArrayList<File> t = new ArrayList<File>(files);\n\t\tfor (int i = 0; i < t.size(); i++) {\n\t\t\tString s = t.get(i).getAbsolutePath();\n\t\t\tif (s.contains(\"XX\") || s.contains(\"testingpackage\") || s.contains(\"datageneration\")) {\n\t\t\t\tt.remove(t.get(i));\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tfiles = t;\n\n\t\t// Convert the Collection into an array\n\t\tFile[] allJavaFiles = new File[files.size()];\n\t\tfiles.toArray(allJavaFiles);\n\n\t\tString[] allTestClasses = new String[allJavaFiles.length];\n\t\tString temp = \"\";\n\n\t\t// convert file path to full package declaration for the class\n\t\tfor (int i = 0; i < allJavaFiles.length; i++) {\n\t\t\ttemp = allJavaFiles[i].toString();\n\t\t\ttemp = temp.replace(\".java\", \"\").replace(\"\\\\\", \".\"); // remove .java convert backslash\n\t\t\tif (temp.indexOf(\"com.textura\") < 0) {\n\t\t\t\tallTestClasses[i] = \"null\";\n\t\t\t} else {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\"com.textura\"));\n\t\t\t\ttemp = temp.replace(\"com.\", \"\");\n\t\t\t\tallTestClasses[i] = temp;\n\t\t\t}\n\t\t}\n\t\treturn allTestClasses;\n\t}", "protected static String createClassPathExcludingTestClasses()\n {\n String sSep;\n if (\"\\\\\".endsWith(File.separator))\n {\n sSep = \"\\\\\\\\\";\n }\n else\n {\n sSep = File.separator;\n }\n String sPattern = String.format(\".*%sio%starget%s.*\", sSep, sSep, sSep);\n return ClassPath.automatic().excluding(sPattern).toString();\n }", "public void testGetRootClasses() throws TimeoutException, ExecutionException {\r\n String file1 = \"TravProjPsiFile1.java\";\r\n String file2 = \"TravProjPsiFile2.java\";\r\n String file3 = \"TravProjPsiFile3.java\";\r\n String file4 = \"TravProjPsiDir/TravProjPsiFile4.java\";\r\n String file5 = \"TravProjPsiDir/TravProjPsiFile5.java\";\r\n\r\n String[] fileNames = {file1, file2, file3, file4, file5};\r\n AnActionEvent e = createAnActionEventWithSeveralFiles(fileNames);\r\n Project project = getProject();\r\n\r\n Set<PsiClass> actual = TraverseProjectPsi.getRootClasses(project);\r\n List<String> expected = Arrays.asList(\"ClassInFile1\", \"ClassInFile2\", \"Class1InFile3\", \"Class2InFile3\");\r\n\r\n assertEquals(actual.size(), 4);\r\n for (PsiClass c : actual) {\r\n assertTrue(expected.contains(c.getName()));\r\n }\r\n }", "public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }", "public static Class<?>[] findTestClasses(Class<?> clazz) throws ClassNotFoundException {\n\t\tFile testDir = findClassDir(clazz);\n\t\treturn findTestClasses(testDir);\n\t}", "static URL[] getClassPath() throws MalformedURLException {\n List<URL> classPaths = new ArrayList<>();\n\n classPaths.add(new File(\"target/test-classes\").toURI().toURL());\n\n // Add this test jar which has some frontend resources used in tests\n URL jar = getTestResource(\"jar-with-frontend-resources.jar\");\n classPaths.add(jar);\n\n // Add other paths already present in the system classpath\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL[] urls = URLClassLoader.newInstance(new URL[] {}, classLoader)\n .getURLs();\n for (URL url : urls) {\n classPaths.add(url);\n }\n return classPaths.toArray(new URL[0]);\n }", "@Test\n public void testGetClasses() throws Exception {\n for (Class clazz : TestClass.class.getClasses()) {\n System.out.println(clazz.getName());\n }\n }", "public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }", "public static void main(String[] args) {\n\t\n\tList<Class<?>> test_classes = new ArrayList<Class<?>>(); //List of loaded classes\n\tList<String> class_names = new ArrayList<String>(); \n\tString[] jar_pathes = new String[args.length -1];\n\tSystem.arraycopy(args, 0, jar_pathes, 0, args.length-1);\n\t\n\tfor (String jar_path : jar_pathes) {\t\n\t\ttry {\n\t\t\tJarFile jarFile = new java.util.jar.JarFile(jar_path);\n\t\t\tEnumeration<JarEntry> jar_entries_enum = jarFile.entries();\n\t\t\t\n\t\t\tURL[] urls = { new URL(\"jar:file:\" + jar_pathes[0]+\"!/\") };\n\t\t\tURLClassLoader cl = URLClassLoader.newInstance(urls);\n\t\t\t\n\t\t\twhile (jar_entries_enum.hasMoreElements()) {\n\t\t JarEntry jar_entry = (JarEntry) jar_entries_enum.nextElement();\n\t\t if(jar_entry.isDirectory() || !jar_entry.getName().endsWith(\".class\")) {\n\t\t \tcontinue;\n\t\t }\n\n\t\t\t String className = jar_entry.getName().substring(0,jar_entry.getName().length()-6); //-6 == len(\".class\")\n\t\t\t className = className.replace('/', '.');\n\t\t\t \n\t\t\t Class<?> c = cl.loadClass(className);\n\t\t\t if (TestCase.class.isAssignableFrom(c) || has_annotations(c)){ \n\t\t\t \ttest_classes.add(c);\n\t\t\t \tclass_names.add(className);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tjarFile.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t}\n\t\n\tif (test_classes.isEmpty())\n\t{\n\t\tSystem.err.println(\"There is nothing to test.\");\n\t\tSystem.exit(1);\n\t}\n\telse{\n\t\tSystem.out.println(Arrays.toString(class_names.toArray()));\n\t\t\n\tJUnitCore runner = new JUnitCore();\n\tCustomListener custom_listener = new CustomListener();\n\tcustom_listener.reporter = new Reporter(args[args.length-1]);\n\trunner.addListener(custom_listener);\n\trunner.run(test_classes.toArray(new Class[test_classes.size()]));\n\t\t}\n\t}", "void runTestSuites() throws InterruptedException {\n // all test suites are located under this directory\n String testSuiteDirectory = config.getTestSuiteDirectoryPathString();\n if (!testSuiteDirectory.endsWith(Constants.FILE_SEPARATOR)) {\n testSuiteDirectory += Constants.FILE_SEPARATOR;\n }\n\n String programNames = options.getValueFor(Constants.PROGRAMS_OPTION);\n String[] programNamesSeparated = programNames.split(Constants.COLON);\n\n // Find test subdirectories that match program names\n List<String> matchingDirectories;\n for (String programName : programNamesSeparated) {\n Path path = Paths.get(programName);\n String fname = path.getFileName().toString();\n programName = fname;\n DirectoryNameMatcher directoryFinder = new DirectoryNameMatcher(programName);\n try {\n Files.walkFileTree(Paths.get(testSuiteDirectory), directoryFinder);\n matchingDirectories = directoryFinder.getMatchingDirectories();\n if (matchingDirectories.isEmpty()) {\n Log.warn(messages.get(\"WRN001\", programName, testSuiteDirectory));\n }\n } catch (IOException ioException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR019\", programName));\n }\n\n for (String matchingDirectory : matchingDirectories) {\n TestSuiteConcatenator concatenator =\n new TestSuiteConcatenator(config, options);\n testSuite = concatenator.concatenateTestSuites(matchingDirectory);\n\n // Create READER for the Cobol source program to be tested\n StringBuilder cobolSourceInPath = new StringBuilder();\n cobolSourceInPath.append(System.getProperty(\"user.dir\"));\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n cobolSourceInPath.append(config.getApplicationSourceDirectoryPathString());\n if (!cobolSourceInPath.toString().endsWith(Constants.FILE_SEPARATOR)) {\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n }\n cobolSourceInPath.append(programName);\n\n List<String> applicationFilenameSuffixes = config.getApplicationFilenameSuffixes();\n for (String suffix : applicationFilenameSuffixes) {\n Log.debug(\"Driver looking for source file <\" + cobolSourceInPath.toString() + suffix + \">\");\n if (Files.isRegularFile(Paths.get(cobolSourceInPath.toString() + suffix))) {\n cobolSourceInPath.append(suffix);\n Log.debug(\"Driver recognized this file as a regular file: <\" + cobolSourceInPath.toString() + \">\");\n break;\n }\n }\n String cobolSourceInPathString = adjustPathString(cobolSourceInPath.toString());\n\n try {\n cobolSourceIn = new FileReader(cobolSourceInPathString);\n } catch (IOException cobolSourceInException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR018\", programName));\n }\n\n // Create WRITER for the test source program (copy of program to be tested plus test code)\n StringBuilder testSourceOutPath = new StringBuilder();\n testSourceOutPath.append(new File(Constants.EMPTY_STRING).getAbsolutePath());\n testSourceOutPath.append(Constants.FILE_SEPARATOR);\n testSourceOutPath.append(\n config.getString(Constants.TEST_PROGRAM_NAME_CONFIG_KEY,\n Constants.DEFAULT_TEST_PROGRAM_NAME));\n\n Log.debug(\"Driver.runTestSuites() testSourceOutPath: <\" + testSourceOutPath.toString() + \">\");\n\n try {\n testSourceOut = new FileWriter(testSourceOutPath.toString());\n } catch (IOException testSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR016\", programName));\n }\n\n mergeTestSuitesIntoTheTestProgram();\n try {\n testSourceOut.close();\n } catch (IOException closeTestSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR017\", programName));\n }\n\n // Compile and run the test program\n String processConfigKeyPrefix;\n ProcessLauncher launcher = null;\n switch (PlatformLookup.get()) {\n case LINUX :\n Log.debug(\"Driver launching Linux process\");\n processConfigKeyPrefix = \"linux\";\n launcher = new LinuxProcessLauncher(config);\n break;\n case WINDOWS :\n Log.debug(\"Driver launching Windows process\");\n processConfigKeyPrefix = \"windows\";\n launcher = new WindowsProcessLauncher(config);\n break;\n case OSX :\n Log.debug(\"Driver launching OS X process\");\n processConfigKeyPrefix = \"osx\";\n //launcher = new OSXProcessLauncher(config);\n break;\n case ZOS :\n Log.debug(\"Driver launching z/OS process\");\n processConfigKeyPrefix = \"zos\";\n //launcher = new ZOSProcessLauncher(config);\n break;\n default :\n Log.debug(\"Driver launching default process\");\n processConfigKeyPrefix = \"unix\";\n launcher = new LinuxProcessLauncher(config);\n break;\n }\n String processConfigKey = processConfigKeyPrefix + Constants.PROCESS_CONFIG_KEY;\n String processName = config.getString(processConfigKey);\n if (isBlank(processName)) {\n String errorMessage = messages.get(\"ERR021\", processConfigKey);\n Log.error(errorMessage);\n throw new PossibleInternalLogicErrorException(errorMessage);\n }\n if (launcher != null){\n Process process = launcher.run(testSourceOutPath.toString());\n int exitCode = 1;\n// try {\n exitCode = process.waitFor();\n// } catch (InterruptedException interruptedException) {\n// exitCode = 1;\n// }\n Log.info(messages.get(\"INF009\", processName, String.valueOf(exitCode)));\n }\n }\n }\n }", "@Test\n public void testSpecificationFile() {\n \texpectedExit = 0;\n \tignoreNotes = true;\n \tString subdir = \"testspecs\" + \"/\" + classname;\n \tString testname = null;\n for (File f: new File(subdir).listFiles()) {\n \tif (f.getName().startsWith(\"Test\")) {\n \t\ttestname = f.getName().replace(\".java\",\"\");\n \t\tbreak;\n \t}\n }\n \thelpTCF(subdir,subdir,testname);\n }", "List<? extends Test> build() throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException{\n\t\tfor(String eachPositive:this.listOfPositive){\n\t\t\tcreateTest(eachPositive, getPositiveFileContent(eachPositive));\n\t\t}\n\t\tfor(String eachNegative:this.listOfNegative){\n\t\t\tcreateTest(eachNegative, getNegativeFileContent(eachNegative));\n\t\t}\n\t\t\n\t\t// create class loader\n\t\tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { new File(PATH_BASE).toURI().toURL() });\n\t\t\n\t\t// load all classes\n\t\tList<NamedTestCase> returnValue=new ArrayList<NamedTestCase>(this.listOfNegative.size()+this.listOfPositive.size());\n\t\tfor(String eachPositive:this.listOfPositive){\n\t\t\tClass<?> cls = Class.forName(eachPositive, true, classLoader);\n\t\t\treturnValue.add((NamedTestCase)cls.newInstance());\n\t\t}\n\t\tfor(String eachNegative:this.listOfNegative){\n\t\t\tClass<?> cls = Class.forName(eachNegative, true, classLoader);\n\t\t\treturnValue.add((NamedTestCase)cls.newInstance());\n\t\t}\n\n\t\t// sort for output\n\t\tCollections.sort(returnValue, new Comparator<NamedTestCase>(){\n\t\t\t@Override\n\t\t\tpublic int compare(NamedTestCase o1, NamedTestCase o2) {\n\t\t\t\treturn o2.getName().compareTo(o1.getName());\n\t\t\t}\n\t\t});\n\t\treturn returnValue; \n\t}", "public TestOutcome executeTests()\n\t//throws InternalBuildServerException//, IOException \n\t{\n\t\tString buildServerTestFilesDir = getDirectoryFinder().getTestFilesDirectory().getAbsolutePath() + File.separator;\n\t\t\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n //TODO Factor the amount of memory and the extra -D parameters into config.properties\n javaArgs.add(\"-Xmx256m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n String vmArgs = tester.getTestProperties().getVmArgs();\n if (vmArgs != null) {\n // Break up into separate tokens if necessary\n StringTokenizer tokenizer = new StringTokenizer(vmArgs);\n while (tokenizer.hasMoreElements()) {\n String nextArg = tokenizer.nextToken();\n nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n // nextArg = nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n }\n }\n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\" + getProjectSubmission().getProjectJarFile().getAbsolutePath() + \"\");\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\" + getDirectoryFinder().getBuildDirectory().getAbsolutePath());\n\t\t// Add trusted code bases\n\t\tfor (Iterator<TrustedCodeBase> i = getTrustedCodeBaseFinder().getCollection().iterator(); i.hasNext(); ) {\n\t\t\tTrustedCodeBase trustedCodeBase = i.next();\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\" + trustedCodeBase.getValue());\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\" \n + new File(getDirectoryFinder().getTestFilesDirectory(), \"security.policy\").getAbsolutePath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tif (nextTestNumber > 0) {\n\t\t\tjavaArgs.add(\"-startTestNumber\");\n\t\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\t\t}\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType);\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties().getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInSeconds() != 0) {\n\t\t\ttimeoutInSeconds = testCase.getMaxTimeInSeconds();\n getLog().trace(\"Using @MaxTestTime(value=\" +timeoutInSeconds+ \") annotation\");\n }\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\t\t\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir() && !testType.equals(TestOutcome.STUDENT_TEST))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\t\t\n\t\tgetLog().debug(\"TestRunner working directory: \" +testRunnerCWD);\n\t\t\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\t//XXX What is this timing? This assumes we're timing the entire process, which\n\t\t// we're clearly not doing from here\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t\ttestRunner = Runtime.getRuntime().exec(\n\t\t\t\t\tjavaArgs.toArray(new String[javaArgs.size()]),\n\t\t\t\t\tenvironment,\n\t\t\t\t\ttestRunnerCWD\n\t\t\t);\n \n String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n try {\n int pid=MarmosetUtilities.getPid(testRunner);\n getLog().debug(\"Subprocess for submission \" +getProjectSubmission().getSubmissionPK() +\n \" for testSetup \" +getProjectSubmission().getProjectJarfilePK() +\n \" for \"+testType +\" \"+nextTestNumber+\n \" \" +testMethod+\n \" in testClass \" +testClass+\n \" has pid = \" +pid);\n } catch (IllegalAccessException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n } catch (NoSuchFieldException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n }\n \n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(), testRunner.getErrorStream());\n\t\t\tmonitor.start();\n\t\t\t\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n // Groovy, we finished before the alarm went off.\n // Disable it (and clear our interrupted status)\n // in case it went off just after the process wait\n // finished.\n alarm.turnOff();\n \n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n if (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n getLog().warn(\"Clover could not be initialized due to an AccessControlException. \" +\n \" Please check your security.policy file and make sure that student code \" +\n \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n }\n\t\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult=getFullTestName() +\" failed with IOException: \" +e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult=e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n getLog().trace(\"Timeout for \" +testType+ \" \" +testMethod+ \" \" +nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber, TestOutcome.TIMEOUT, shortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning)\n\t\t\t\ttestRunner.destroy();\n\t\t}\n\t\t\n\t\tif (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName() +\" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass,\n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t}\n\t\t\n\t\tgetLog().debug(getFullTestName()+ \" test finished with \" + new File(outputFilename).length() +\n\t\t\t\t\" bytes of output\");\n\n\t\treturn readTestOutcomeFromFile();\n\t}", "public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}", "public void execute()\n throws BuildException {\n this.validator = new TestClassValidator.DefaultClassValidator();\n this.validator.setListener(new TestClassValidator.ClassValidatorListener() {\n public void info(String message) {\n log(\"INFO> \" + message, verbosity);\n System.out.println(\"INFO> \" + message);\n }\n\n public void warning(String message) {\n log(\"WARNING> \" + message, verbosity);\n System.out.println(\"WARNING> \" + message);\n }\n\n public void error(String message) {\n log(\"ERROR> \" + message, verbosity);\n System.out.println(\"ERROR> \" + message);\n }\n });\n\n\n if (classpath != null) {\n classpath.setProject(project);\n this.loader = new AntClassLoader(project, classpath);\n }\n\n log(TestClassValidator.BANNER, Project.MSG_VERBOSE);\n System.out.println(TestClassValidator.BANNER);\n int count = 0;\n for (int i = 0; i < filesets.size(); i++) {\n FileSet fs = (FileSet) filesets.get(i);\n\n try {\n DirectoryScanner ds = fs.getDirectoryScanner(project);\n ds.scan();\n\n String[] files = ds.getIncludedFiles();\n\n for (int k = 0; k < files.length; k++) {\n String pathname = files[k];\n if (pathname.endsWith(\".class\")) {\n String classname = pathname.substring(0, pathname.length() - \".class\".length()).replace(File.separatorChar, '.');\n processFile(classname);\n }\n }\n count += files.length;\n } catch (BuildException e) {\n if (failonerror) {\n throw e;\n } else {\n log(e.getMessage(), quiet ? Project.MSG_VERBOSE : Project.MSG_WARN);\n }\n } catch (ClassNotFoundException e) {\n if (failonerror) {\n throw new BuildException(e);\n } else {\n log(e.getMessage(), quiet ? Project.MSG_VERBOSE : Project.MSG_WARN);\n }\n }\n log(\"Number of classes: \" + count, Project.MSG_VERBOSE);\n System.out.println(\"Number of classes: \" + count);\n }\n }", "public ClassFile[] getClassFiles() {\n\t\treturn getResult().getClassFiles();\n\t}", "@Test\r\n\tpublic void testScanBaseClass(){\n\t\tString path = JDocPluginUtils.getProjectDir().getPath()+ \"/src/test/java/\";\r\n\t\tSystem.out.println(\"path:\" + path);\r\n\t\tJavaSourceScanner scaner = new JavaSourceScanner();\r\n\t\tscaner.setSourceDir(path);\r\n\t\tList<JClassDoc> jdocs = scaner.scan(\"org.onetwo.plugins.jdoc.test\");\r\n\t\tSystem.out.println(\"testScanBaseClass:\" + getInfoDoc(jdocs).toString().trim());\r\n\t\t\r\n\t\tassertJDoc(jdocs);\r\n\t}", "public TestOutcome executeTests()\n\n\t{\n\t try {\n\t\tString buildServerTestFilesDir = getDirectoryFinder()\n\t\t\t\t.getTestFilesDirectory().getCanonicalPath() + File.separator;\n\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n\t\t// TODO Factor the amount of memory and the extra -D parameters into\n\t\t// config.properties\n\t\tString vmArgs = tester.getTestProperties().getVmArgs();\n\t\tboolean memorySet = false;\n\t\tif (vmArgs != null) {\n\t\t if (vmArgs.contains(\"-Xmx\"))\n\t\t memorySet = true;\n\t\t\t// Break up into separate tokens if necessary\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(vmArgs);\n\t\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\t\tString nextArg = tokenizer.nextToken();\n\t\t\t\tnextArg = nextArg.replace(\"${buildserver.test.files.dir}\",\n\t\t\t\t\t\tbuildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n\t\t\t}\n\t\t}\n\t\tif (!memorySet)\n\t\t javaArgs.add(\"-Xmx456m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n \n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\n\t\t// Do not allow access to home directory\n\t\tjavaArgs.add(\"-Duser.home=/dev/null\");\n\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\"\n\t\t\t\t+ getProjectSubmission().getTestSetup().getCanonicalPath());\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\"\n\t\t\t\t+ getDirectoryFinder().getBuildDirectory().getCanonicalPath());\n\t\t// Add trusted code bases\n\t\tfor (TrustedCodeBase trustedCodeBase \n\t\t : getTrustedCodeBaseFinder().getCollection()) {\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\"\n\t\t\t\t\t+ trustedCodeBase.getValue());\n//\t\t\tgetLog().debug(\"adding trusted codebase \" + trustedCodeBase);\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\"\n\t\t\t\t\t+ new File(getDirectoryFinder().getTestFilesDirectory(),\n\t\t\t\t\t\t\t\"security.policy\").getCanonicalPath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tjavaArgs.add(\"-startTestNumber\");\n\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType.toString());\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties()\n\t\t\t\t.getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInMilliseconds() != 0) {\n\t\t\ttimeoutInSeconds = 1 + (int)( testCase.getMaxTimeInMilliseconds() / 1000);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Using @Test(timeout=\" + timeoutInSeconds\n\t\t\t\t\t\t\t+ \") annotation\");\n\t\t}\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir()\n\t\t\t\t&& !testType.equals(TestOutcome.TestType.STUDENT))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\n\t\tgetLog().debug(\"TestRunner working directory: \" + testRunnerCWD);\n\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\t\t\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n \n\t\t\ttestRunner = Untrusted.execute(\n\t\t\t\t\ttestRunnerCWD, javaArgs.toArray(new String[javaArgs.size()]));\n\n int pid = MarmosetUtilities.getPid(testRunner);\n getLog().debug(\n \"Subprocess for submission \"\n + getProjectSubmission().getSubmissionPK()\n + \" for testSetup \"\n + getProjectSubmission().getTestSetupPK()\n + \" for \" + testType + \" \" + nextTestNumber\n + \" \" + testMethod + \" in testClass \"\n + testClass + \" has pid = \" + pid);\n\n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(),\n\t\t\t\t\ttestRunner.getErrorStream());\n\t\t\tmonitor.start();\n\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n\t\t\t// Groovy, we finished before the alarm went off.\n\t\t\t// Disable it (and clear our interrupted status)\n\t\t\t// in case it went off just after the process wait\n\t\t\t// finished.\n\t\t\talarm.turnOff();\n\n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\n\t\t\t\t\t\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n\t\t\tif (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n\t\t\t\tgetLog().warn(\n\t\t\t\t\t\t\"Clover could not be initialized due to an AccessControlException. \"\n\t\t\t\t\t\t\t\t+ \" Please check your security.policy file and make sure that student code \"\n\t\t\t\t\t\t\t\t+ \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" failed with IOException: \" + e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult = e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Timeout for \" + testType + \" \" + testMethod + \" \"\n\t\t\t\t\t\t\t+ nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.TIMEOUT,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning && testRunner != null) {\n\t\t\t\ttestRunner.destroy();\n\t\t\t\t// process should already be dead, kill again\n\t\t\t\tMarmosetUtilities.destroyProcessGroup(testRunner, getLog());\n\t\t\t}\n\t\t}\n\n\t\tif (exitCode == 2) {\n // Test runner couldn't execute the tests for some reason.\n // This is probably not our fault.\n // Just add an outcome recording the output of\n // the test runner process.\n String longTestResult = monitor.getCombinedOutput();\n String shortTestResult = \"An expected class could not be found\";\n int end = longTestResult.indexOf('\\n');\n if (end > 0 && longTestResult.startsWith(\"java.lang.NoClassDefFoundError: \")) {\n String missing = longTestResult.substring(\"java.lang.NoClassDefFoundError: \".length(), end);\n missing = missing.replace('/','.');\n shortTestResult = \"Could not find expected class \" + missing;\n longTestResult = \"\";\n }\n getLog().error(shortTestResult);\n return Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n testClass, nextTestNumber, TestOutcome.MISSING_COMPONENT,\n shortTestResult, longTestResult);\n } else if (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t}\n\n\t\tgetLog().debug(\n\t\t\t\tgetFullTestName() + \" test finished with \"\n\t\t\t\t\t\t+ new File(outputFilename).length()\n\t\t\t\t\t\t+ \" bytes of output\");\n\n\t\tTestOutcome testOutcome = readTestOutcomeFromFile();\n\t\tif (testType == TestType.SECRET) {\n\t\t\tString longTestResult = testOutcome.getLongTestResult();\n\t\t\tString output = monitor.getCombinedOutput().trim();\n\t\t\tif (output.length() > 0)\n\t\t\t\ttestOutcome.setLongTestResultCompressIfNeeded(longTestResult + \"\\nTest output:\\n\" + output);\n\t\t}\n\t\treturn testOutcome;\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t throw new RuntimeException(\"Unexpected IO Exception\", e);\n\t }\n\t}", "@Test\n public void should_find_as_many_test_units_as_features_and_examples_available_in_classpath() throws Exception {\n List<TestUnit> testUnits = finder.findTestUnits(HideFromJUnit.Concombre.class);\n\n // then\n assertThat(testUnits).hasSize(8);\n }", "@Before\n public void setUp() throws Exception {\n classPathScanner =\n new ClassPathScanner(ClassPathScanner.getDefaultClasspaths(getInstrumentation()));\n }", "@Test\n @Disabled(\"Not work in Java >=9\")\n void printAllClassJars() {\n var sysClassLoader = org.apache.commons.io.FileUtils.class.getClassLoader();\n var urLs = ((URLClassLoader) sysClassLoader).getURLs();\n for (var url : urLs) {\n System.out.println(url.getFile());\n }\n }", "@BeforeClass\n\tpublic static void setUpClass() {\n\t\tString resourcesDir = System.getProperty(\"user.dir\") + File.separator + \"src\" +\n File.separator + \"test\" + File.separator + \"resources\";\n\n tsmResources = resourcesDir + File.separator + \"tsm\";\n //testDir = new File(resourcesDir, \"tsm-output\"); \n\t}", "public void testGetClassPath() {\n assertEquals(mb.getClassPath(), System.getProperty(\"java.class.path\"));\n }", "public String findPackageForTest(String testClassName);", "@Test\n public void multidex() throws IOException {\n Set<String> result = classPathScanner.getClassPathEntries(new AcceptAllFilter());\n assertThat(result)\n .containsAtLeast(\n \"androidx.test.multidex.app.MultiDexTestClassA\",\n \"androidx.test.multidex.app.MultiDexTestClassB\",\n \"androidx.test.multidex.app.MultiDexTestClassC\",\n \"androidx.test.multidex.app.MultiDexTestClassD\",\n \"androidx.test.multidex.app.MultiDexApplication\");\n\n // ensure classes from binary under test are not included\n // this relies on build adding \"androidx.test.testing.fixtures.CustomTestFilter\" to target app\n // only\n assertThat(result).doesNotContain(\"androidx.test.testing.fixtures.CustomTestFilter\");\n }", "public abstract List<String> scanAllClassNames();", "@Test\n public void testGetDecalredClasses() {\n for (Class clazz : TestClass.class.getDeclaredClasses()) {\n System.out.println(clazz.getName());\n }\n }", "protected String readTestFile(String path) throws IOException {\n return FileUtils.readClasspathFile(path);\n }", "@Test\n public void testGetClassesInPackage() throws Exception\n {\n\n WarMachine machine = TestHelpers.createWarMachine(WarNames.SERVLET);\n\n Set<String> clist1 = machine.getClassesInPackage(\"com.example.servlet\", false);\n assertEquals(\"number of classes in WEB-INF, non-recursive\", 1, clist1.size());\n assertTrue(\"searching for file in WEB-INF, non-recursive\", clist1.contains(\"com.example.servlet.SomeServlet\"));\n\n Set<String> clist2 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", false);\n assertEquals(\"number of classes in JAR, non-recursive\", 13, clist2.size());\n assertTrue(\"searching for classes in JAR, non-recursive\", clist2.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n\n Set<String> clist3 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", true);\n assertEquals(\"number of classes in JAR, recursive\", 17, clist3.size());\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.function.Constants\"));\n }", "private static void runTests() {\r\n\t\tfor (int i = 0; i < testFiles.length; i++) {\r\n\t\t\tConverter file = new Converter(testFiles[i]);\r\n\t\t\tfile.convert();\r\n\t\t\tSystem.out.println(\"---------\");\r\n\t\t}\r\n\t}", "@Timeout(10)\n @TestFactory\n public DynamicContainer generateTestsForAllClasses() throws URISyntaxException {\n List<DynamicNode> tests = new ArrayList<>();\n\n if (structureOracleJSON == null) {\n fail(\"The ClassTest test can only run if the structural oracle (test.json) is present. If you do not provide it, delete ClassTest.java!\");\n }\n\n for (int i = 0; i < structureOracleJSON.length(); i++) {\n JSONObject expectedClassJSON = structureOracleJSON.getJSONObject(i);\n JSONObject expectedClassPropertiesJSON = expectedClassJSON.getJSONObject(JSON_PROPERTY_CLASS);\n\n // Only test the classes that have additional properties (except name and package) defined in the structure oracle.\n if (expectedClassPropertiesJSON.has(JSON_PROPERTY_NAME) && expectedClassPropertiesJSON.has(JSON_PROPERTY_PACKAGE) && hasAdditionalProperties(expectedClassPropertiesJSON)) {\n String expectedClassName = expectedClassPropertiesJSON.getString(JSON_PROPERTY_NAME);\n String expectedPackageName = expectedClassPropertiesJSON.getString(JSON_PROPERTY_PACKAGE);\n ExpectedClassStructure expectedClassStructure = new ExpectedClassStructure(expectedClassName, expectedPackageName, expectedClassJSON);\n tests.add(dynamicTest(\"testClass[\" + expectedClassName + \"]\", () -> testClass(expectedClassStructure)));\n }\n }\n if (tests.size() == 0) {\n fail(\"No tests for classes available in the structural oracle (test.json). Either provide attributes information or delete ClassTest.java!\");\n }\n // Using a custom URI here to workaround surefire rendering the JUnit XML without the correct test names.\n return dynamicContainer(getClass().getName(), new URI(getClass().getName()), tests.stream());\n }", "private void scanClass(String scanPackage) {\n URL url = this.getClass().getClassLoader().getResource(\"/\" + scanPackage.replaceAll(\"\\\\.\", \"/\"));\n File dir = new File(url.getFile());\n for (File file : dir.listFiles()) {\n if (file.isDirectory()) {\n scanClass(scanPackage + \".\" + file.getName());\n } else {\n classNames.add(scanPackage + \".\" + file.getName().replaceAll(\".class\", \"\").trim());\n }\n }\n\n }", "private void buildClassPath() throws InterruptedException, IOException, CheckedAnalysisException {\n IClassPathBuilder builder = classFactory.createClassPathBuilder(bugReporter);\n\n for (String path : project.getFileArray()) {\n builder.addCodeBase(classFactory.createFilesystemCodeBaseLocator(path), true);\n }\n for (String path : project.getAuxClasspathEntryList()) {\n builder.addCodeBase(classFactory.createFilesystemCodeBaseLocator(path), false);\n }\n\n builder.scanNestedArchives(analysisOptions.scanNestedArchives);\n\n builder.build(classPath, progress);\n\n appClassList = builder.getAppClassList();\n\n if (PROGRESS) {\n System.out.println(appClassList.size() + \" classes scanned\");\n }\n\n // If any of the application codebases contain source code,\n // add them to the source path.\n // Also, use the last modified time of application codebases\n // to set the project timestamp.\n for (Iterator<? extends ICodeBase> i = classPath.appCodeBaseIterator(); i.hasNext();) {\n ICodeBase appCodeBase = i.next();\n\n if (appCodeBase.containsSourceFiles()) {\n String pathName = appCodeBase.getPathName();\n if (pathName != null) {\n project.addSourceDir(pathName);\n }\n }\n\n project.addTimestamp(appCodeBase.getLastModifiedTime());\n }\n\n }", "public static Class<?>[] getClassesInFile(File testsListFile){\n\t\tList<Class<?>> list = null;\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(testsListFile), \"UTF-8\")); //$NON-NLS-1$\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} \n\t\ttry {\n\t\t\tString line;\n\t\t\tlist = new ArrayList<Class<?>>();\n\t\t\ttry {\n\t\t\t\twhile ((line= br.readLine()) != null) {\n\t\t\t\t\tlist.add(Class.forName(line));\n\t\t\t\t}\n\t\t\t} catch (ClassNotFoundException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn list.toArray(new Class<?>[list.size()]);\n\t}", "public AllTests() {\n\t\taddTest(new TestSuite(TestSuiteTest.class));\n\t}", "public void testJavaClassRepository871() throws Exception {\n\t\tJavaClassRepository var2730 = new JavaClassRepository();\n\t\tvar2730.getClass(Foreach.class.getCanonicalName());\n\t\tvar2730.getClass(CyclomaticMethods.class.getCanonicalName());\n\t\tvar2730.getClass(LineNumbersForConditionals.class.getCanonicalName());\n\t}", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "public void listRunningTests() {\r\n\t\tList<Configuration> tests = testCache.getAllTests();\r\n\t\tlog.info(\"List of running tests in the framework.\\n\");\r\n\t\tlog.info(HEADER);\r\n\t\tlog.info(\"S.No\\tTest\");\r\n\t\tlog.info(HEADER);\r\n\t\tint i = 1;\r\n\t\tfor (Configuration test : tests) {\r\n\t\t\tlog.info(String.format(\"%d.\\t%s\\n\", i++, test));\r\n\t\t}\r\n\t}", "static Method[] getAllDeclaredMethods(String testsClassName) {\n\n Class<?> testsClazz = getClassObject(testsClassName);\n\n //Get all methods from file\n Method[] methods = testsClazz.getDeclaredMethods();\n\n\n if (methods.length != 0) {\n return methods;\n } else {\n log.error(\"В классе {} нет ни одного метода !\", testsClazz);\n return new Method[0];\n }\n\n\n }", "@Test\n public void testGet() {\n try {\n QVCSAntTask getAntTask = initQVCSAntTask();\n getAntTask.setOperation(\"get\");\n getAntTask.execute();\n File testDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = testDirectory.listFiles();\n assertTrue(\"Nothing was fetched!\", files.length > 0);\n } catch (BuildException e) {\n fail(\"Caught build exception.\");\n } catch (InterruptedException e) {\n fail(\"Caught interrupted exception.\");\n }\n }", "public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }", "private void listAllClasses(List<Path> foundFiles, Path root) {\r\n if (root.toFile().isFile()) {\r\n foundFiles.add(root);\r\n } else {\r\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, filter)) {\r\n for (Path path : stream) {\r\n if (Files.isDirectory(path)) {\r\n listAllClasses(foundFiles, path);\r\n } else {\r\n foundFiles.add(path);\r\n }\r\n }\r\n } catch (AccessDeniedException e) {\r\n logger.error(\"Access denied to directory {}\", root, e);\r\n } catch (IOException e) {\r\n logger.error(\"Error while reading directory {}\", root, e);\r\n }\r\n }\r\n }", "public void junitClassesStarted() { }", "public void junitClassesStarted() { }", "@Test\n\tpublic void testClassAndFileLinks() throws Exception\n\t{\n\t\tFile file = new File(System.getProperty(\"user.dir\"));\n\t\twhile (! file.getName().equals(\"swac-testbed\")) {\n\t\t\tfile = file.getParentFile();\n\t\t\tif (file == null)\n\t\t\t\tAssert.fail(\"Could not find create scenario scripts. Started from \" + System.getProperty(\"user.dir\") + \" and went up\");\n\t\t}\n\t\t\n\t\t// Find swac-assembly dir\n\t\tFile swacParent = file.getParentFile();\n\t\tif (swacParent == null)\n\t\t\tAssert.fail(\"Could not find create scenario scripts, no dir above swac-controller\");\n\t\t\n\t\tFile swacAssembly = new File(swacParent, \"swac-assembly\");\n\t\tif (swacAssembly == null || ! swacAssembly.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts, swac-assembly not parallel to swac-controller\");\n\t\t\n\t\t// Find windows and unix creat scenario scripts\n\t\tchar sep = File.separatorChar; \n\t\tFile swacAssemblyBin = new File(swacAssembly.getAbsolutePath() + sep + \"src\" + sep + \"main\" + sep + \"bin\");\n\t\tif (swacAssemblyBin == null || ! swacAssemblyBin.exists())\n\t\t\tAssert.fail(\"Could not find create scenario scripts in swac-assembly/src/main/bin\");\n\t\t\n\t\tFile windowsScript = new File(swacAssemblyBin, \"swac-create-scenario.bat\");\n\t\tif (! windowsScript.exists())\n\t\t\tAssert.fail(\"Could not find windows create scenario script in swac-assembly/src/main/bin/swac-create-scenario.bat\");\n\t\t\n\t\tFile unixScript = new File(swacAssemblyBin, \"new-swac-create-scenario.sh\");\n\t\tif (! unixScript.exists())\n\t\t\tAssert.fail(\"Could not find unix create scenario script in swac-assembly/src/main/bin/new-swac-create-scenario.sh\");\n\n\n\t\t// Read in windows create scenario script, parse out file and class lists.\n\t\tSet<String> winFilesSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_name_templates\", windowsScript, winFilesSet);\n\t\tSet<String> winClassSet = new LinkedHashSet<String>();\n\t\tparseWindowsScript(\"file_classes\", windowsScript, winClassSet);\n\t\tAssert.assertEquals(\"For windows create scenario script, num of files != num of classes, file \" + winFilesSet.size() + \", classes \" + winClassSet.size(),\n\t\t\t\t\t\t\twinFilesSet.size(), winClassSet.size());\n\t\tMap<String, String> winFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(winFilesSet, winClassSet, winFileClassMap);\n\t\t\n\t\t// Read in unix create scenario script, parse out file and class lists. \n\t\t// Adjust some values to align with windows style to allow apple to apples comparisons\n\t\tSet<String> unixFilesSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Files\", unixScript, unixFilesSet);\n\t\tunixFilesSet = adjustUnixFiles(unixFilesSet, new LinkedHashSet<String>());\n\t\tSet<String> unixClassSet = new LinkedHashSet<String>();\n\t\tparseUnixScript(\"Classes\", unixScript, unixClassSet);\n\t\tunixClassSet = adjustUnixClasses(unixClassSet, new LinkedHashSet<String>());\n\t\tAssert.assertEquals(\"For unix create scenario script, num of files != num of classes, file \" + unixFilesSet.size() + \", classes \" + unixClassSet.size(),\n\t\t\t\tunixFilesSet.size(), unixClassSet.size());\n\t\tMap<String, String> unixFileClassMap = new HashMap<String, String>();\n\t\tcombineToMap(unixFilesSet, unixClassSet, unixFileClassMap); \n\n\t\t// Test if the classes in windows and unix scripts match up\n\t\tif (! winClassSet.equals(unixClassSet)) {\n\t\t\tLinkedHashSet<String> uniqueWindowClasses = new LinkedHashSet<String>(winClassSet);\n\t\t\tuniqueWindowClasses.removeAll(unixClassSet);\n\t\t\t\n\t\t\tLinkedHashSet<String> uniqueUnixClasses = new LinkedHashSet<String>(unixClassSet);\n\t\t\tuniqueUnixClasses.removeAll(winClassSet);\n\t\t\t\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\tif(! uniqueWindowClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique windows class(es): \").append(uniqueWindowClasses).append(\". \");\n\t\t\tif(! uniqueUnixClasses.isEmpty()) \n\t\t\t\tsb.append(\"Unique unix class(es): \").append(uniqueUnixClasses).append(\". \");\n\t\t\t\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t\t\n\t\t// Test if the files in windows and unix scripts match up\n\t\tStringBuilder sb = null;\n\t\tfor (Entry<String, String> winEntry : winFileClassMap.entrySet()) {\n\t\t\tString winFile = winEntry.getValue();\n\t\t\tString unixFile = unixFileClassMap.get(winEntry.getKey());\n\t\t\tif (! winFile.equals(unixFile)) {\n\t\t\t\tif (sb == null) {\n\t\t\t\t\tsb = new StringBuilder();\n\t\t\t\t\tsb.append(\"Create scenario script mismatch error between windows and unix. \");\n\t\t\t\t}\n\t\t\t\tsb.append(\"Different files specified for class '\" + winEntry.getKey() + \"': windows: '\" + winFile + \"', unix: '\" + unixFile + \"'. \");\n\t\t\t}\n\t\t}\n\t\tif (sb != null) {\n\t\t\tSystem.out.println(sb);\n\t\t\tAssert.fail(sb.toString());\n\t\t}\n\t}", "private static List<Class> findClasses(File directory, String packageName)\n\t\t\tthrows ClassNotFoundException {\n\t\tList<Class> classes = new ArrayList<Class>();\n\t\tif (directory.exists()) {\n\t\t\tFile[] files = directory.listFiles();\n\t\t\tfor (File file : files) {\n\t\t\t\tif (file.isDirectory()) {\n\t\t\t\t\tassert !file.getName().contains(\".\");\n\t\t\t\t\tclasses.addAll(findClasses(file,\n\t\t\t\t\t\t\tpackageName + \".\" + file.getName()));\n\t\t\t\t} else if (file.getName().endsWith(\".class\") && !file.getName().endsWith(\"Test.class\")) {\n\t\t\t\t\tclasses.add(Class.forName(packageName\n\t\t\t\t\t\t\t+ '.'\n\t\t\t\t\t\t\t+ file.getName().substring(0,\n\t\t\t\t\t\t\t\t\tfile.getName().length() - 6)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn classes;\n\t}", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "@Test\n public void should_find_one_test_unit_for_one_feature_available_in_classpath() throws Exception {\n List<TestUnit> testUnits = finder.findTestUnits(HideFromJUnit.Cornichon.class);\n\n // then\n assertThat(testUnits).hasSize(1);\n Description description = testUnits.get(0).getDescription();\n assertThat(description.getFirstTestClass()).contains(HideFromJUnit.Cornichon.class.getSimpleName());\n assertThat(description.getName()).containsIgnoringCase(\"Shopping\").containsIgnoringCase(\"change\");\n }", "@Test\n public void should_find_one_test_unit_for_one_feature_available_in_classpath_using_subclassed_runner() throws Exception {\n \tList<TestUnit> testUnits = finder.findTestUnits(HideFromJUnit.Pepino.class);\n \t\n \t// then\n \tassertThat(testUnits).hasSize(1);\n \tDescription description = testUnits.get(0).getDescription();\n \tassertThat(description.getFirstTestClass()).contains(HideFromJUnit.Pepino.class.getSimpleName());\n \tassertThat(description.getName()).containsIgnoringCase(\"Shopping\").containsIgnoringCase(\"change\");\n }", "private File getClassFile(String name) {\n File file = new File(\"/Users/dingchenchen/Downloads/Test.class\");\n return file;\n }", "public static void main(String[] args) throws Exception {\n\t\tLogger.getRootLogger().setLevel(Level.OFF);\n\t\tConfigurationLib configLib = new ConfigurationLib();\n\t\tString binPath = configLib.getTestSuitePath();\n\t\tTestNG testng = new TestNG();\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\n\t\tXmlSuite mySuite = new XmlSuite();\n\t\tList<XmlClass> xmlClasses = new ArrayList<XmlClass>();\n\t\tXmlTest test = null;\n\t\tString className = null;\n\t\tbinPath = binPath.replace(\"null\", \"\");\n\n\t\tFile dir = new File(binPath);\n\t\tList<File> files = (List<File>) FileUtils.listFiles(dir, TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE);\n\t\tfor (File f : files) {\n\t\t\ttest = new XmlTest(mySuite);\n\t\t\tclassName = ((f.getCanonicalPath().replace(configLib.getBinaryPath(), \"\")).replace(\"\\\\\", \".\"));\n\t\t\tclassName = StringUtils.removeEnd(className, \".class\");\n\t\t\ttest.setName(className);\n\t\t\txmlClasses.add(new XmlClass(Class.forName(className)));\n\t\t}\n\n\t\ttest.setXmlClasses(xmlClasses);\n\t\tAnnotationTransformerImpl myTransformer = new AnnotationTransformerImpl();\n\t\ttestng.addListener(myTransformer);\n\t\tAlterSuiteImpl alterSuite = new AlterSuiteImpl();\n\t\ttestng.addListener(alterSuite);\n\t\tsuites.add(mySuite);\n\t\ttestng.setXmlSuites(suites);\n\t\tsuiteExec = true;\n\t\ttestng.run();\n\t}", "public Set<String> getJavaSourceListing() {\n Set<String> javasrcs = new TreeSet<String>();\n \n String javasrc;\n for(String classname: classlist) {\n if(classname.contains(\"$\")) {\n continue; // skip (inner classes don't have a direct 1::1 java source file\n }\n \n javasrc = classname.replaceFirst(\"\\\\.class$\", \".java\");\n javasrcs.add(javasrc);\n }\n \n return javasrcs;\n }", "private static File getTestDataDir() {\n File ancestor = new File(\".\");\n try {\n ancestor = ancestor.getCanonicalFile();\n } catch (IOException e) {\n throw new RuntimeException(\n \"Couldn't get canonical name of working directory.\", e);\n }\n while (ancestor != null && ancestor.exists()) {\n if (new File(ancestor, \"src/google/protobuf\").exists()) {\n return new File(ancestor, \"src/google/protobuf/testdata\");\n }\n ancestor = ancestor.getParentFile();\n }\n\n throw new RuntimeException(\n \"Could not find golden files. This test must be run from within the \" +\n \"protobuf source package so that it can read test data files from the \" +\n \"C++ source tree.\");\n }", "private XmlSuite executeSubTest(String[] testClasses) throws IOException {\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(\"TmpSuite\");\r\n\t\tsuite.setFileName(\"/home/test/seleniumRobot/data/core/testng/testLoggging.xml\");\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\tfor (String testClass: testClasses) {\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(testClass.substring(testClass.lastIndexOf(\".\") + 1));\r\n\t\t\tList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tclasses.add(new XmlClass(testClass));\r\n\t\t\ttest.setXmlClasses(classes) ;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tTestNG tng = new TestNG(false);\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.addListener((IReporter)reporter);\r\n\t\ttng.addListener((IReporter)reporter2);\r\n\t\ttng.addListener((ITestListener)testListener);\r\n\t\ttng.addListener((IInvokedMethodListener)testListener);\r\n\t\ttng.addListener(retry);\r\n\t\ttng.setOutputDirectory(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory());\r\n\t\ttng.run(); \r\n\t\tSeleniumRobotLogger.parseLogFile();\r\n\t\t\r\n\t\treturn suite;\r\n\t}", "public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "public void testClasspathFileChange() throws JavaModelException {\n IPath projectPath = env.addProject(\"Project\");\n //$NON-NLS-1$\n env.removePackageFragmentRoot(projectPath, \"\");\n //$NON-NLS-1$\n IPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n //$NON-NLS-1$\n env.setOutputFolder(projectPath, \"bin\");\n IPath classTest1 = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n root, //$NON-NLS-1$ //$NON-NLS-2$\n \"p1\", //$NON-NLS-1$ //$NON-NLS-2$\n \"Test1\", //$NON-NLS-1$\n \"package p1;\\n\" + //$NON-NLS-1$\n \"public class Test1 extends Zork1 {}\");\n // not yet on the classpath\n //$NON-NLS-1$\n IPath src2Path = env.addFolder(projectPath, \"src2\");\n //$NON-NLS-1$\n IPath src2p1Path = env.addFolder(src2Path, \"p1\");\n //$NON-NLS-1$ //$NON-NLS-2$\n env.addFile(//$NON-NLS-1$ //$NON-NLS-2$\n src2p1Path, //$NON-NLS-1$ //$NON-NLS-2$\n \"Zork1.java\", //$NON-NLS-1$\n \"package p1;\\n\" + //$NON-NLS-1$\n \"public class Zork1 {}\");\n fullBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(classTest1, new Problem(\"src\", \"Zork1 cannot be resolved to a type\", classTest1, 39, 44, CategorizedProblem.CAT_TYPE, IMarker.SEVERITY_ERROR));\n //----------------------------\n // Step 2\n //----------------------------\n //$NON-NLS-1$\n StringBuffer buffer = new StringBuffer(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n //$NON-NLS-1$\n buffer.append(\"<classpath>\\n\");\n //$NON-NLS-1$\n buffer.append(\" <classpathentry kind=\\\"src\\\" path=\\\"src\\\"/>\\n\");\n // add src2 on classpath through resource change //$NON-NLS-1$\n buffer.append(\" <classpathentry kind=\\\"src\\\" path=\\\"src2\\\"/>\\n\");\n String[] classlibs = Util.getJavaClassLibs();\n for (int i = 0; i < classlibs.length; i++) {\n //$NON-NLS-1$ //$NON-NLS-2$\n buffer.append(\" <classpathentry kind=\\\"lib\\\" path=\\\"\").append(classlibs[i]).append(\"\\\"/>\\n\");\n }\n //$NON-NLS-1$\n buffer.append(\" <classpathentry kind=\\\"output\\\" path=\\\"bin\\\"/>\\n\");\n //$NON-NLS-1$\n buffer.append(\"</classpath>\");\n boolean wasAutoBuilding = env.isAutoBuilding();\n try {\n // turn autobuild on\n env.setAutoBuilding(true);\n // write new .classpath, will trigger autobuild\n //$NON-NLS-1$\n env.addFile(projectPath, \".classpath\", buffer.toString());\n // ensures the builder did see the classpath change\n env.waitForAutoBuild();\n expectingNoProblems();\n } finally {\n env.setAutoBuilding(wasAutoBuilding);\n }\n }", "public static Test suite() {\r\n return new TestSuite(FileSystemPersistenceTestCase.class);\r\n }", "@PathSensitive(PathSensitivity.RELATIVE)\n @InputFiles\n @SkipWhenEmpty\n public FileCollection getClassesDirs() {\n return classesDirs;\n }", "public List<PhpUnitTestReport> readSuite(TestSuite testSuite, String parentFileName) {\n List<PhpUnitTestReport> result = new ArrayList<PhpUnitTestReport>();\n List<TestSuite> testSuites = testSuite.getTestSuites();\n if (testSuites != null) {\n for (TestSuite childSuite : testSuites) {\n readSuite(childSuite, testSuite.getFile());\n }\n }\n // For all cases\n List<TestCase> testCases = testSuite.getTestCases();\n if (testCases != null) {\n for (TestCase testCase : testCases) {\n String testClassName = testCase.getClassName();\n // FIXME bug in phpunit for test cases with @dataProvider. Format is incorrect,\n // we get the fileName in the enclosing testSuite in the name attribute before string \"::\"\n if (testClassName == null) {\n String name = testSuite.getName();\n int testSuiteClassIndex = name.indexOf(TESTSUITE_CLASS_NAME_SEPARATOR);\n if (testSuiteClassIndex > 0) {\n testClassName = name.substring(0, testSuiteClassIndex);\n }\n }\n PhpUnitTestReport report = reportsPerClass.get(testClassName);\n // If no reports exists for this class we create one\n if (report == null) {\n report = new PhpUnitTestReport();\n report.setDetails(new ArrayList<TestCase>());\n report.setClassKey(testClassName);\n String file = testCase.getFile();\n // FIXME bug in phpunit for test cases with @dataProvider. Format is incorrect,\n // we get the file name in the parent test suite.\n if (file == null) {\n file = parentFileName;\n }\n report.setFile(file);\n // and add it to the map\n reportsPerClass.put(testClassName, report);\n }\n if (parentFileName == null) {\n report.setTime(testSuite.getTime());\n }\n cumulateTestCaseDetails(testCase, report);\n }\n }\n result.addAll(reportsPerClass.values());\n return result;\n }", "public static Test suite() {\n\t\treturn new AllTests();\n\t}", "public String[] getClassesToCompile();", "@Test\n public void testGetClass() throws Exception {\n Class<?> mainClass = MainGetClassSubClass.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, SuperClass.class, SubClass.class),\n // Prevent SuperClass from being merged into SubClass.\n keepMainProguardConfiguration(mainClass, ImmutableList.of(\"-keep class **.SuperClass\")),\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public ClassPath getClassPath();", "public void ExecuteTests() throws IOException{\r\n\t\t\r\n\t\tAutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();\r\n\t\ttestcaseinfo.GetTestCaseInformation();\r\n\t\tTestsBrowserList = testcaseinfo.getTestsBrowserList();\r\n\t\tTestsClassesList = testcaseinfo.getTestsClassesList();\r\n\t\tClassesMethodList = testcaseinfo.getClassesMethodList();\r\n\t\tTestsParamList = testcaseinfo.getTestsParamList();\r\n\t\tTestNGConfig = testcaseinfo.getTestNGConfig();\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\t\r\n\t\tlogger.info(\"Generating TestNG.xml file\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code creates testNG xmlSuite and sets the configuration\r\n\t\t */\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(TestNGConfig.get(\"AutomationSuiteName\"));\r\n\t\t\r\n\t\tif(TestNGConfig.get(\"ParallelMode\").toString().equalsIgnoreCase(\"True\")) {\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.TESTS);\r\n\t\t\tsuite.setThreadCount(Integer.parseInt(TestNGConfig.get(\"ThreadCount\")));\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.NONE);\r\n\t\t}\r\n\t\t\r\n\t\tsuite.setVerbose(Integer.parseInt(TestNGConfig.get(\"Verbose\")));\r\n\t\tif(TestNGConfig.get(\"PreserveOrder\").toString().equalsIgnoreCase(\"True\"))\r\n\t\t\tsuite.setPreserveOrder(Boolean.TRUE);\r\n\t\telse \r\n\t\t\tsuite.setPreserveOrder(Boolean.FALSE);\r\n\t\t\r\n\t\t\r\n\t\t//suite.addListener(\"frameworkcore.ReportingClass.ListenersImpl\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code assigns the Test classes/mathods/parameters to the TestNG Suite\r\n\t\t */\r\n\t\tfor (String key : TestsBrowserList.keySet()){\r\n\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(key.toString());\r\n\t\t\tHashMap<String,String> browserinfo = new HashMap<String,String>();\r\n\t\t\tbrowserinfo.put(\"BrowserName\", TestsBrowserList.get(key).toString());\r\n\t\t\ttest.setParameters(browserinfo);\r\n\t\t\tSetParameters(test);\r\n\t\t\tCollection<String> classvalues = TestsClassesList.get(key);\r\n\t\t\tfor(String testclass : classvalues){\r\n\t\t\t\tXmlClass testClass = new XmlClass();\r\n\t\t testClass.setName(testclass);\r\n\t\t Collection<String> methodvalues = ClassesMethodList.get(testclass);\r\n\t\t ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>();\r\n\t\t for(String method: methodvalues){\r\n\t\t \tif(method.toLowerCase().contains(\"tag\")||method.toLowerCase().contains(\"ignore\"))\r\n\t\t \t\tlogger.info(\"Method \" + method + \" will not run\" );\r\n\t\t \telse\r\n\t\t \t\tmethodsToRun.add(new XmlInclude(method));\r\n\t\t }\r\n\t\t testClass.setIncludedMethods(methodsToRun);\r\n\t\t \r\n\t\t classes.add(testClass);\r\n\t\t\t}\r\n\t\t\ttest.setXmlClasses(classes);\r\n\t\t}\r\n\t\t\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\t/**\r\n\t\t * Writing the TestNG.xml information to a file\r\n\t\t */\r\n\t\t FileWriter writer;\r\n\t\t File TestNGFile = new File(\"TestNG.xml\");\r\n\t\t if(TestNGFile.exists())\t\t\t\t\t\t// Delete TestNG if exists\r\n\t\t\t TestNGFile.delete();\r\n\t\t \r\n\t\t\twriter = new FileWriter(TestNGFile);\r\n\t\t\t writer.write(suite.toXml());\r\n\t\t writer.flush();\r\n\t\t writer.close();\r\n\t\t logger.info(\"TestNG file Generated Successfully\");\r\n\t\t\r\n\t\tTestNG tng = new TestNG();\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.run(); \r\n\t\t\r\n\t}", "public static void main(String[] args) throws ClassNotFoundException {\n\t\tClass cc = Class.forName(\"JUnit.Test\");\n\t\tnew Test();\n\t\t//Test test = null;//\n\t\t//new Test();\n\t\t//ClassLoadTest t = new ClassLoadTest();\n\t}", "public static void loadTest(){\n }", "public String[] getTestbedClassName() {\r\n\t\treturn testbedClassName;\r\n\t}", "@TestFactory\n Stream<DynamicTest> codeGenRun_TRUE() {\n // Compile all trueFiles to test that they can be run\n this.compileTrueFiles();\n\n // Get the java compiler and compile all the code-generated java files into .class files\n JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();\n compiler.run(null, null, null, this.getAllBlockPaths());\n\n ClassLoader classLoader;\n try {\n classLoader = new URLClassLoader(new URL[]{new File(\"src\" + File.separator).toURI().toURL()});\n } catch (MalformedURLException e) {\n throw new RuntimeException(e);\n }\n\n File codeGenTrueFolder = new File(CODE_GEN_FOLDER);\n File[] subDirectories = new File(codeGenTrueFolder.getPath()).listFiles(File::isDirectory);\n\n // Make empty stream of dynamic tests to use later\n Stream<DynamicTest> testStream = Stream.empty();\n\n // Go through all directories with class files in them\n for (File subDir : subDirectories) {\n List<File> filesInDir = Arrays.asList(Objects.requireNonNull(subDir.listFiles()));\n\n // Make a stream of all class files to run (Valid main blocks)\n Stream<DynamicTest> testInDir = filesInDir.stream()\n .filter(file -> file.getName().contains(\".class\"))\n .filter(file -> this.isValidMainBlock(file, classLoader))\n .map(file -> DynamicTest.dynamicTest(\"Testing [\" + subDir.getName() + \"]: '\" + file.getName() + \"'\",\n () -> testAutoGenBlock(getBlockClassFromFile(file, classLoader))));\n\n testStream = Stream.concat(testStream, testInDir);\n }\n\n return testStream;\n }", "public List<File> createJunitTestFiles(List<ExecutableSequence> sequences,\n\t\t\tString junitTestsClassName) {\n\t\tif (sequences.size() == 0) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"No sequences given to createJunitFiles. No Junit class created.\");\n\t\t\treturn new ArrayList<File>();\n\t\t}\n\n\t\t// Create the output directory.\n\t\tFile dir = getDir();\n\t\tif (!dir.exists()) {\n\t\t\tboolean success = dir.mkdirs();\n\t\t\tif (!success) {\n\t\t\t\tthrow new Error(\"Unable to create directory: \"\n\t\t\t\t\t\t+ dir.getAbsolutePath());\n\t\t\t}\n\t\t} else {\n\t\t\t// JJ\n\t\t\tFile[] files = dir.listFiles();\n\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\tif (files[i].toString().contains(\"RandoopTest\"))\n\t\t\t\t\tfiles[i].delete();\n\t\t\t}\n\t\t}\n\n\t\tList<File> ret = new ArrayList<File>();\n\t\tList<List<ExecutableSequence>> subSuites = CollectionsExt\n\t\t\t\t.<ExecutableSequence> chunkUp(\n\t\t\t\t\t\tnew ArrayList<ExecutableSequence>(sequences),\n\t\t\t\t\t\ttestsPerFile);\n\t\tfor (int i = 0; i < subSuites.size(); i++) {\n\t\t\tret.add(writeSubSuite(subSuites.get(i), i, junitTestsClassName));\n\t\t}\n\t\tcreatedSequencesAndClasses.put(junitTestsClassName, subSuites);\n\t\treturn ret;\n\t}", "@Test\n public void test() throws Exception {\n List<Class<?>> parentClasses =\n ImmutableList.of(\n Parent.class,\n Parent.Inner1.class,\n Parent.Inner2.class,\n Parent.Inner3.class,\n Parent.Inner4.class);\n\n Path parent =\n testForD8()\n .addProgramClasses(parentClasses)\n .setMinApi(parameters.getApiLevel())\n .compile()\n .writeToZip();\n\n Path child =\n testForD8()\n .addProgramClasses(Child.class)\n .addClasspathClasses(parentClasses)\n .setMinApi(parameters.getApiLevel())\n .compile()\n .writeToZip();\n\n // Run the classloader test loading the two dex applications.\n testForD8()\n .addProgramFiles(\n Paths.get(\"build/test/examplesAndroidApi/classes/classloader/Runner.class\"))\n .setMinApi(parameters.getApiLevel())\n .compile()\n .run(\n parameters.getRuntime(),\n \"classloader.Runner\",\n parent.toString(),\n child.toString(),\n Child.class.getTypeName())\n .assertSuccessWithOutput(\"SUCCESS\");\n }", "@Test\n public void testGenerateXMLList() throws Exception {\n System.out.println(\"generateXMLList\");\n File path = new File(\"./\");\n XMLListGenerator instance = new XMLListGenerator(\"http://dipforge.sourceforge.net/\", \n path.getPath(), DirectoryUtil.recurseDirectory(path, \"java\"));\n\n String expResult = instance.generateXMLList();\n String result = instance.generateXMLList();\n System.out.println(result);\n assertEquals(expResult, result);\n\n instance = new XMLListGenerator(\"http://dipforge.sourceforge.net/\",\n path.getPath(), DirectoryUtil.recurseDirectory(path, \".java\"),\".java\");\n\n expResult = instance.generateXMLList();\n result = instance.generateXMLList();\n System.out.println(result);\n assertEquals(expResult, result);\n\n }", "public static void runTests( Class<?> testclass) {\r\n\t\tResult result = org.junit.runner.JUnitCore.runClasses( testclass );\r\n\t\tint count = result.getRunCount();\r\n\t\tint failed = result.getFailureCount();\r\n\t\tSystem.out.printf(\"%s: Running %d tests\\n\", testclass.getSimpleName(), count);\r\n\t\tList<Failure> failures = result.getFailures();\r\n\t\t// this doesn't seem to return all the failures\r\n\t\tfor(Failure f: failures) {\r\n\t\t\tDescription d = f.getDescription();\r\n\t\t\tSystem.out.println( f.getTestHeader() +\": \"+ f.getMessage() );\r\n\t\t\tSystem.out.println( d.getDisplayName() );\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: Success %d Failure %d\\n\",\r\n\t\t\t\ttestclass.getSimpleName(), count-failed, failed);\r\n\t}", "private static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }", "public List<File> getClasspathElements() {\n\t\tthis.parseSystemClasspath();\n\t return classpathElements;\n\t}", "@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}", "private void generateClassFiles(ClassTree classtree) {\n String[] packageNames = configuration.classDocCatalog.packageNames();\n for (int packageNameIndex = 0; packageNameIndex < packageNames.length;\n packageNameIndex++) {\n generateClassFiles(configuration.classDocCatalog.allClasses(\n packageNames[packageNameIndex]), classtree);\n }\n }", "int getClasspathCount();", "int getClasspathCount();", "private static File getTestDataDir() {\n File ancestor = new File(System.getProperty(\"protobuf.dir\", \".\"));\n String initialPath = ancestor.getAbsolutePath();\n try {\n ancestor = ancestor.getCanonicalFile();\n } catch (IOException e) {\n throw new RuntimeException(\n \"Couldn't get canonical name of working directory.\", e);\n }\n while (ancestor != null && ancestor.exists()) {\n if (new File(ancestor, \"src/google/protobuf\").exists()) {\n return new File(ancestor, \"src/google/protobuf/testdata\");\n }\n ancestor = ancestor.getParentFile();\n }\n\n throw new RuntimeException(\n \"Could not find golden files. This test must be run from within the \" +\n \"protobuf source package so that it can read test data files from the \" +\n \"C++ source tree: \" + initialPath);\n }", "public String getClassPath();", "java.util.List<java.lang.String>\n getClasspathList();", "public void scanClasspath() {\n List<String> classNames = new ArrayList<>(Collections.list(dexFile.entries()));\n\n ClassLoader classLoader = org.upacreekrobotics.dashboard.ClasspathScanner.class.getClassLoader();\n\n for (String className : classNames) {\n if (filter.shouldProcessClass(className)) {\n try {\n Class klass = Class.forName(className, false, classLoader);\n\n filter.processClass(klass);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (NoClassDefFoundError e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void testJavaClassRepository872() throws Exception {\n\t\tJavaClassRepository var2730 = new JavaClassRepository();\n\t\tvar2730.getClass(SingleMethodClass.class.getCanonicalName());\n\t\tvar2730.getClass(Example.class.getCanonicalName());\n\t}", "public static void analyze(String rootPath) {\n\n File rootDirectory = new File(rootPath);\n if (!rootDirectory.exists()) {\n System.err.println(\"The root directory does not exist.\");\n return;\n }\n// List<File> directories = FileUtil.traverseRootDirectory(rootDirectory, \"junit\");\n// for (File directory : directories) {\n// traverseJUnitDirectory(directory);\n// }\n// for()\n }", "public void getSourceJavaFilesForOneRepository(File dir, FilenameFilter searchSuffix, ArrayList<File> al) {\n\n\t\tFile[] files = dir.listFiles();\t\t\n\t\tfor(File f : files) {\n\t\t\tString lowercaseName = f.getName().toLowerCase();\n\t\t\tif(lowercaseName.indexOf(\"test\")!=-1)\n\t\t\t{\n\t\t\t\t/* we do not consider test files in our study */\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t if(f.isDirectory()){\n\t\t\t\t /* iterate over every directory */\n\t\t\t\t getSourceJavaFilesForOneRepository(f, searchSuffix, al);\t\t\n\t\t\t } else {\n\t\t\t\t /* returns the desired java files */\n\t\t\t\t if(searchSuffix.accept(dir, f.getName())){\n\t\t\t\t\t al.add(f);\n\t\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}", "@Test\n\tpublic void testClasses() throws Exception {\n\t\ttestWith(String.class);\n\t}", "private List<Class> getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes;\n }", "java.util.List<java.lang.String>\n getClasspathList();", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "public String[] readClasses();", "@BeforeClass\n public static void beforeClass() throws Exception {\n SystemUtil.addClasspath(\"D:\\\\project\\\\java\\\\aos\\\\config\");\n }", "private void getCompilationUnits(String filePath) {\n File file = new File(filePath);\n\n for(File f : file.listFiles()) {\n if(f.isFile() && f.getName().endsWith(\".java\")) {\n FileInputStream in = null;\n try {\n\n in = new FileInputStream(f);\n CompilationUnit cu = JavaParser.parse(in);\n compilationUnits.add(cu);\n\n } catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException from getCompilationUnits method\");\n e.printStackTrace();\n } catch (Exception e) {\n System.out.println(\"Exception from getCompilationUnits method\");\n e.printStackTrace();\n } finally {\n try {\n\n in.close();\n\n } catch (IOException e) {\n System.out.println(\"IOException from getCompilationUnits method\");\n e.printStackTrace();\n }\n }\n }\n }\n }", "protected void setUp() {\r\n File cleanDir = new File(this.clean);\r\n dest = new File(root + \"\\\\field\");\r\n if (!dest.exists()) {\r\n dest.mkdirs();\r\n }\r\n\r\n (new FileCopy(\r\n new File(cleanDir, \"field_RenameFieldTest.java\"),\r\n new File(dest, \"RenameFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_UsesFieldTest.java\"),\r\n new File(dest, \"UsesFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"field_InheritFieldTest.java\"),\r\n new File(dest, \"InheritFieldTest.java\"),\r\n false)).run();\r\n (new FileCopy(\r\n new File(cleanDir, \"XDateChooser.java\"),\r\n new File(root + \"\\\\XDateChooser.java\"),\r\n false)).run();\r\n\r\n (new SummaryTraversal(root)).run();\r\n }", "@Test(groups = { \"v11\" })\n public void test2() {\n configureProject(\"PCTWSComp/test2/build.xml\");\n executeTarget(\"test\");\n }", "public void testJavaClassRepository870() throws Exception {\n\t\tJavaClassRepository var2730 = new JavaClassRepository();\n\t\tvar2730.getClass(CyclomaticMethods.class.getCanonicalName());\n\t\tvar2730.getClass(LineNumbersForConditionals.class.getCanonicalName());\n\t\tvar2730.getClass(EmptyClass.class.getCanonicalName());\n\t}", "public static void main(String[] args) throws ClassNotFoundException {\n Class<Test.TestD> testDClass = Test.TestD.class;\n Class<Test.TestA> testAClass = Test.TestA.class;\n getClassHierarchy(testDClass);\n getClassHierarchyRecurs(testDClass, true);\n\n getClassInformation(testDClass);\n System.out.println();\n getClassInformation(testAClass);\n }", "public void test() {\n\t\tFile file = new File(\"/home/students/\");\r\n\t\t\r\n\t\tString[] list = file.list(new FilenameFilter() {\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\tif (name.toLowerCase().endsWith(\".py\")) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfor (String f : list) {\r\n\t\t\tSystem.out.println(f);\r\n\t\t}\r\n\t}" ]
[ "0.6484536", "0.64691836", "0.64363253", "0.61502075", "0.614478", "0.61429656", "0.6093261", "0.6049258", "0.6040761", "0.60085756", "0.5925774", "0.58653516", "0.5837389", "0.578483", "0.5764108", "0.57284653", "0.5707969", "0.5655841", "0.5655297", "0.5653421", "0.56519717", "0.56282014", "0.56062144", "0.55907065", "0.5566885", "0.5544612", "0.55333656", "0.5524118", "0.55135494", "0.5504683", "0.5501505", "0.5499062", "0.5482017", "0.5478001", "0.54715693", "0.5445548", "0.5435887", "0.54063416", "0.5366858", "0.53648716", "0.535849", "0.535117", "0.5338731", "0.5319001", "0.5319001", "0.5287318", "0.52576196", "0.5249867", "0.5240846", "0.52336353", "0.5223713", "0.52189267", "0.52041894", "0.51972234", "0.5192462", "0.5186447", "0.518459", "0.517913", "0.51784956", "0.5177903", "0.5177102", "0.51565415", "0.51517075", "0.51448196", "0.5140597", "0.5137605", "0.51263267", "0.5110679", "0.51065135", "0.50890636", "0.5084078", "0.50825536", "0.50809675", "0.50788707", "0.5078374", "0.507534", "0.506895", "0.5066421", "0.5066421", "0.50659114", "0.50570846", "0.50506395", "0.5047122", "0.5037892", "0.50378615", "0.50377256", "0.50347465", "0.5032842", "0.5028754", "0.50278217", "0.5027397", "0.50206923", "0.5018111", "0.5014919", "0.50130796", "0.5012172", "0.5011863", "0.50092715", "0.5004492", "0.49956724" ]
0.6726424
0
TODO Autogenerated method stub
@Override protected void onPause() { super.onPause(); if (is_resume) { is_resume = false; } else { // mHomeWatcher.stopWatch();// 在onPause中停止监听,不然会报错的。 Music.pause(mContext); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); if (is_resume) { is_resume = false; } else { Music.restart(mContext); } }
{ "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
Created by ShineYang on 16/4/18.
public interface DataInterface extends MvpView { void setPlusNumber(OperateNumber plus_number); void setMinusNumber(OperateNumber minus_number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void kk12() {\n\n\t}", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private void strin() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "public void skystonePos4() {\n }", "private void init() {\n\n\t}", "public void mo6081a() {\n }", "@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\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "public void m23075a() {\n }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo21779D() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public void skystonePos6() {\n }", "private void m50367F() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void init() {\n\t}", "public void Tyre() {\n\t\t\r\n\t}" ]
[ "0.616813", "0.6017499", "0.6002517", "0.59350914", "0.5920269", "0.59147274", "0.59147274", "0.58325297", "0.5821516", "0.58169365", "0.5792804", "0.57867545", "0.57639796", "0.5763892", "0.5742257", "0.5733795", "0.570031", "0.5699116", "0.5692221", "0.568516", "0.5672063", "0.5644992", "0.5644992", "0.5644992", "0.5644992", "0.5644992", "0.56417686", "0.5634562", "0.56290215", "0.56285447", "0.5615735", "0.5609184", "0.5587202", "0.5587202", "0.5587202", "0.5587202", "0.5587202", "0.5587202", "0.5587202", "0.5581735", "0.55815554", "0.55759895", "0.5555031", "0.5555031", "0.5553964", "0.5551197", "0.5547324", "0.55465007", "0.5537477", "0.5532993", "0.5532306", "0.5499254", "0.54965794", "0.5485658", "0.5485538", "0.5482503", "0.5476235", "0.54744804", "0.54744804", "0.54744804", "0.547126", "0.54704446", "0.54694885", "0.5467415", "0.5467415", "0.5467415", "0.54644614", "0.54644614", "0.54644614", "0.54644614", "0.54644614", "0.54644614", "0.5462862", "0.5460868", "0.54581004", "0.54581004", "0.54581004", "0.54569983", "0.54569983", "0.54539645", "0.5451888", "0.54433763", "0.54417545", "0.5440837", "0.54394114", "0.54391634", "0.54322773", "0.54317844", "0.54312587", "0.54215705", "0.54215705", "0.5420969", "0.54196715", "0.5416746", "0.5410043", "0.5395427", "0.5392207", "0.53860205", "0.53843606", "0.53834885", "0.538046" ]
0.0
-1
boolean detect(float x, float y);
boolean detect(Point p, MapLayer layer);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public boolean contains(float x, float y);", "public boolean contains(float x, float y);", "public abstract boolean isHit(int x, int y);", "private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "boolean fenced(int x, int y);", "public boolean isOn (int x, int y) {\n boolean on = false;\n int xPos = xPosition + radius;\n int yPos = yPosition + radius;\n double tempX = Math.pow(x-xPos, 2);\n double tempY = Math.pow(y-yPos, 2);\n \n double dist = Math.sqrt(tempX + tempY);\n if(dist <= radius) {\n on = true;\n }\n return on;\n }", "private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);", "public abstract boolean containsPoint(int x, int y);", "private static boolean atSensor(SensorEvent e, int x, int y) {\n return e.getXpos() == x && e.getYpos() == y;\n }", "public abstract boolean isAlive(int x, int y);", "static Boolean pointInPgm(int x, int y) {\n return (x >= 0 ) && (y >= 0) && (x <= pgmInf.width) && (y <= pgmInf.height);\n }", "public boolean detect(Mat img, Mat points) {\n return detect_0(nativeObj, img.nativeObj, points.nativeObj);\n }", "boolean wasHit();", "int hitGfx();", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);", "public boolean detectCollision(int x, int y) {\n\t\tif(this.x <= x && this.y <= y && this.x + width >= x && this.y + height >= y) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isClicked(int x, int y) {\n boolean in_flag = false ;\n int i ;\n int j=0 ;\n for (i=1; i<4; i++) {\n j=i-1 ;\n if ((((ypoints[i] <= y) && (y < ypoints[j])) || ((ypoints[j] <= y) && (y < ypoints[i]))) \n && (x < (xpoints[j] - xpoints[i]) * (y - ypoints[i]) / (ypoints[j] - ypoints[i]) + xpoints[i])) {\n in_flag = !in_flag ;\n }\n } // end for\n return in_flag ;\n //System.out.println(\"IN_FLAG=\"+in_flag+VIDStr(100)) ;\n /*\n int dx = x - pos.x ;\n int dy = y - pos.y ;\n double dist = Math.sqrt(dx*dx+dy*dy) ;\n if (dist<=length) {\n return true ;\n } else {\n return false ; \n }\n */\n }", "public float[] getHitPoint();", "public void detect(float[] buffer)\n\t{\n\t\tfEnergy(buffer);\n\t}", "boolean mo2269a(View view, PointF pointF);", "int hit();", "public boolean hitCheck(float x, float y) {\r\n if (boxX <= x && x <= boxX + boxSize &&\r\n boxY <= y && y <= frameHeight) {\r\n return true;\r\n }\r\n return false;\r\n }", "public abstract boolean sensorFound();", "public boolean isInside(int x, int y){\n \tif( ( x >= xpos && x <= xpos + img.getWidth()) &&\n \t\t ( y >= ypos && y <= ypos + img.getHeight()) ){\n \t\treturn true;\n \t}else\n \t\treturn false;\n\t}", "public abstract boolean hit(Rectangle2D r);", "public boolean contains(double x, double y){\n\t\treturn (x >= this.x && x <= this.x + img.getWidth(null))\n\t\t\t\t&& (y >= this.y && y <= this.y + img.getHeight(null));\n\t}", "public void detect(View view) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new MainActivity.DetectionTask().execute(inputStream);\n\n // Prevent button click during detecting.\n setAllButtonsEnabledStatus(false);\n }", "boolean contains(ShortPoint2D position);", "boolean touchingPoint(float x, float y) {\n if (_hitbox.length == 1) return dist(x,y,_hitboxCenter.x, _hitboxCenter.y) < _hitbox[0].x;\n return _ptPoly(new PVector(x,y), _getPoints());\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "public abstract boolean pointerInside(int iPosX, int iPosY);", "public float getDetectThreshold() {\n return detectThreshold;\n }", "public boolean isOver(int x, int y) {\n // if the point is not within any of the edges of the image, we return false\n if ((y < this.y) || (y > (this.y + image.height))\n || ((x < this.x) || (x > (this.x + image.width)))) {\n return false;\n }\n\n // otherwise, (it is somewhere over the image) we return true\n return true;\n\n }", "boolean selectAt(double x, double y);", "public boolean isVisionary(EntityPlayer player);", "boolean handleInput(float x, float y){\n return r1_.x_ <= x && r2_.x_ >= x && r1_.y_ >= y && r2_.y_ <= y;\n }", "public boolean contains(double x, double y){\t\t\n\t\t\n\t\treturn x > xCoord - getWidth()/2 &&\n\t\t\t x < xCoord + getWidth()/2 &&\n\t\t\t y > yCoord - getHeight()/2 &&\n\t\t\t y < yCoord + getHeight()/2;\n\t}", "DetectionResult getObjInImage(Mat image);", "@Override\n public boolean detect() {\n QQRobot.findWindowLocation(RGB_SCREEN);\n if (QQTetris.QQCoord.x != -1) {\n return true;\n } else {\n return false;\n }\n }", "boolean mo61579as(float f);", "@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}", "public boolean test(MyList<Point> pixels, Image img)\r\n/* 19: */ {\r\n/* 20:33 */ int volume = 0;\r\n/* 21:35 */ for (MyListNode<Point> n = pixels.getHead(); n != null; n = n.getNext())\r\n/* 22: */ {\r\n/* 23:36 */ Point p = (Point)n.getDatum();\r\n/* 24: */ \r\n/* 25:38 */ int[] val = img.getVXYByte(p.x, p.y);\r\n/* 26:40 */ for (int c = 0; c < val.length; c++) {\r\n/* 27:41 */ volume += img.getXYCByte(p.x, p.y, c);\r\n/* 28: */ }\r\n/* 29: */ }\r\n/* 30:44 */ if (volume < this.threshold) {\r\n/* 31:44 */ return false;\r\n/* 32: */ }\r\n/* 33:45 */ return true;\r\n/* 34: */ }", "public boolean atPosition(float x, float y) {\n return (Math.abs(y-this.y) <= 0.25 || Math.abs(x-this.x) <= 0.25);\n }", "public boolean contains( float x, float y )\n {\n float llx = getLowerLeftX();\n float urx = getUpperRightX();\n float lly = getLowerLeftY();\n float ury = getUpperRightY();\n return x >= llx && x <= urx &&\n y >= lly && y <= ury;\n }", "public boolean hitBallChecker(int x, int y) {\n if (fishX < x && x < (fishX + fish[0].getWidth()) && fishY < y && y < (fishY + fish[0].getHeight())) {\n return true;\n }\n return false;\n }", "int getGreen(int x, int y);", "Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }", "boolean is_inside(float v[])\r\n {\r\n int i;\r\n \r\n for (i = 0; i < dimension; i++)\r\n {\r\n if (v[i] < bounces[2*i] || // upper limit\r\n v[i] > bounces[2*i + 1]) // lower limit\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean detectedCollision(int xCoordinate, int yCoordinate) {\n return xCoordinate >= x && xCoordinate <= x + width\n && yCoordinate >= y && yCoordinate <= y + height;\n }", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public boolean hit(int x, int y) {\n if (x >= arrow_orange_right_left && x <= (arrow_orange_right_left + arrow_orange_right_width) &&\n y >= arrow_orange_right_top && y <= (arrow_orange_right_top + arrow_orange_right_height)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean contains(int x, int y) {\n\t\tfloat[][] pos = getScreenPosition();\n\t\t\n\t\t// See http://mathworld.wolfram.com/TriangleInterior.html for mathematical explanation\n\t\tfloat v0_x = pos[0][0];\n\t\tfloat v0_y = pos[0][1];\n\t\tfloat v1_x = pos[1][0] - v0_x;\n\t\tfloat v1_y = pos[1][1] - v0_y;\n\t\tfloat v2_x = pos[2][0] - v0_x;\n\t\tfloat v2_y = pos[2][1] - v0_y;\n\t\t\n\t\tfloat denominator = determinant(v1_x, v1_y, v2_x, v2_y);\n\t\t\n\t\tfloat a = (determinant(x, y, v2_x, v2_y) - determinant(v0_x, v0_y, v2_x, v2_y)) / denominator;\n\t\tfloat b = - (determinant(x, y, v1_x, v1_y) - determinant(v0_x, v0_y, v1_x, v1_y)) / denominator;\n\t\t\n\t\tif (a > 0 && b > 0 && a + b < 1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }", "public void detect(AudioBuffer ab)\n\t{\n\t\tdetect(ab.toArray());\n\t}", "public void detect(Mat inputImage, MatOfRect Bbox, MatOfFloat confidence)\r\n {\r\n Mat Bbox_mat = Bbox;\r\n Mat confidence_mat = confidence;\r\n detect_0(nativeObj, inputImage.nativeObj, Bbox_mat.nativeObj, confidence_mat.nativeObj);\r\n \r\n return;\r\n }", "public static native int getEdgeDetection(int pin) throws RuntimeException;", "boolean checked(int x, int y);", "float getThreshold();", "public boolean apply(int x0, int y0, int x, int y);", "public List<Result> recognize(IplImage image);", "protected boolean isSingle(int x, int y){\n \tint a[] = {x - 1 , x + 1 , x , x};\n \tint b[] = {y , y , y - 1 , y + 1};\n\n for (int i = 0 ; i < 4 ; i++){\n if (!validatePoint(a[i], b[i]))\n continue;\n int xx = a[i];\n \t\tint yy = b[i];\n \t\tif (!GoPoint.isEnemy(getPoint(x, y), getPoint(xx, yy))) return false;\n \t}\n \treturn true;\n }", "boolean hasPicture();", "private boolean inCircle(int x, int y) {\n return Math.pow(x - xs, 2) + Math.pow(y - ys, 2) <= Math.pow(r, 2);\n }", "@Override\n public boolean hitTest(double x, double y) {\n return rect.hitTest(x, y) || marker.hitTest(x, y);\n }", "boolean selectTo(double x, double y);", "public boolean isInside(int x, int y) {\r\n if (this.state == 0) {\r\n if ((x >= this.x && x <= (this.x +width)) &&\r\n y >= this.y && y <= (this.y +height)) {\r\n return true;\r\n }\r\n } else if (this.state == 1) {\r\n if ((x <= this.x && x >= (this.x - height)) &&\r\n y >= this.y && y <= (this.y + width)) {\r\n return true;\r\n }\r\n } else if (this.state == 2) {\r\n if ((x <= this.x && x >= (this.x - width)) &&\r\n y <= this.y && y >= (this.y - height)) {\r\n return true;\r\n }\r\n } else if (this.state == 3) {\r\n if ((x >= this.x && x <= (this.x + height)) &&\r\n y <= this.y && y >= (this.y - width)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public native boolean thresholdImage(double threshold)\n\t\t\tthrows MagickException;", "public boolean isDetecting()\n\t{\n\t\treturn currentlyDetecting;\n\t}", "boolean getFaceDetectionPref();", "boolean outOfSight();", "boolean hasNoise();", "boolean hasRecognizer();", "public boolean isMine(int x, int y);", "public interface IVisionManager {\n public void enable();\n public void disable();\n public void setRoi(Size frameSize, Rect rect);\n// public void startDetecting();\n// public void stopDetecting();\n public void release();\n}", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "boolean contains(double x, double y) {\r\n\t\t//cordinate of the left edge\r\n\t\tdouble xLeftEdge = this.getX() - this.width / 2;\r\n\t\t//cordinate of the right edge\r\n\t\tdouble xRightEdge = this.getX() + this.width / 2;\r\n\t\t////cordinate of the top edge\r\n\t\tdouble yTopEdge = this.getY() + this.height / 2;\r\n\t\t//cordinate of the bottom edge\r\n\t\tdouble yBottomEdge = this.getY() - this.height / 2;\r\n\r\n\t\t//if the point is between the edges it is inside the rectangle\r\n\t\treturn (x < xRightEdge) && (x > xLeftEdge) && (y < yTopEdge)\r\n\t\t\t\t&& (y > yBottomEdge) ? true : false;\r\n\t}", "public boolean ballDetected()\n\t{\n\t\tusSampleProvider.fetchSample(usData, 0);\n\t\tusDistance = (double)(usData[0]*100.0);\n\t\t\n\t\t//while the robot isn't seeing an object\n\t\twhile (usDistance>100)\n\t\t{\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.forward();\n\t\t\tmainRightMotor.forward();\n\t\t}\n\t\tmainLeftMotor.stop();\n\t\tmainRightMotor.stop();\n\t\t\n\t\treturn true;\n\t}", "public boolean needFaceDetection() {\n return true;\n }", "public boolean hitEdge(int newX, int newY)\n {\n return (newX > 0 && newX < screenWidth-width && newY > 0 && newY < screenHeight-height);\n }", "public boolean isTouched(float x1, float x2, float y1, float y2){\n input.set(Gdx.input.getX(),Gdx.input.getY(),0);\n camera.unproject(input);\n if ( input.x >= x1 && input.x <= x2 && input.y >= y1 && input.y <=y2){\n if(Gdx.input.justTouched())\n return true;\n }\n return false;\n }", "int getMoistureCode(int x, int y);", "public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean contains(int x, int y) {\n\t\treturn (Math.abs(x - pos.x) <= rad) && (Math.abs(y - pos.y) <= rad); \n\t}", "public boolean contains(int x, int y)\n\t{\n\t\treturn (boundingBox.contains(x,y));\n\t}", "boolean land();", "public boolean hitSide(int xLow, int xHigh, int yLow, int yHigh)\n\t{\n\t\tif ((x + frogSize >= xHigh) || (x <= xLow))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\t\n\t\tif ((y <= yLow) || (y + frogSize >= yHigh))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasFloat();", "public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }", "public boolean inside(int x, int y, Graphics graphics){\r\n\r\n boolean clicked = false;\r\n\r\n if((x >= _x && x <= (_x + (_width * graphics.getScale())) && (y >= _y && y <= _y + (_height * graphics.getScale())))){\r\n\r\n clicked = true;\r\n }\r\n\r\n return clicked;\r\n }", "boolean hasCoordInfo();", "@Override\n public boolean detect() {\n QQRobot.checkBoardExists(RGB_MY_SPACE);\n CurrentData.REAL.reset();\n QQRobot.findBoard(RGB_MY_SPACE, CurrentData.REAL.board);\n QQRobot.findAndCleanBoard(CurrentData.REAL.board, CurrentData.REAL.tetromino, CurrentData.REAL.nextBlocks);\n QQRobot.findFutures(RGB_MY_SPACE, CurrentData.REAL.nextBlocks);\n\n if (CurrentData.REAL.tetromino.isValid()) {\n return true;\n } else {\n return false;\n }\n }", "public void detect(Frame input) {\n\t\t// Isolate the blue color from the image.\n\t\tinput.isolateRange(this.frame,\n\t\t\tConfig.Colors.blueLower,\n\t\t\tConfig.Colors.blueUpper\n\t\t);\n\t\t\n\t\t// Find largest triangle and return out if missing.\n\t\tMatOfPoint2f triangle = this.findTriangle(this.frame);\n\t\tif (triangle == null) return;\n\t\t\n\t\t// Get list of points from triangle.\n\t\tthis.points = triangle.toArray();\n\t\t\n\t\t// Find frame width and height.\n\t\tdouble width = this.frame.getSource().cols();\n\t\tdouble height = this.frame.getSource().rows();\n\t\t\n\t\t// Transform the found points.\n\t\tthis.projector.transformPosition(this.points, width, height);\n\t\tthis.triangle = new MatOfPoint2f(this.points);\n\n\t\t// Find the front point in the triangle.\n\t\tthis.front = this.findFront(this.points);\n\t\t\n\t\t// Find the back point in the triangle.\n\t\tthis.back = this.findBack(this.points);\n\t\t\n\t\t// Find the center point of the triangle.\n\t\tthis.center = this.findCenter(this.triangle);\n\t\t\n\t\t// Find the rotation of the triangle.\n\t\tthis.rotation = this.findRotation(this.front, this.back);\n\t}", "public boolean collidepoint(float mX, float mY){\n return super.shape.contains(mX, mY);\n //return isPressed;\n }", "public boolean isCircle();", "@Override\n public boolean detect() {\n \t slowDown();\n final MoveResult move = CurrentData.CALCULATED.tetromino.move;\n\t\t\t\t\t\tif (move.hasMove()) {\n final Tetromino moveTetromino = move.tetromino;\n final int y = QQRobot.findTetromino(moveTetromino, 3 + missingTetromino * 2);\n if (y == -1) {\n missingTetromino++;\n if (missingTetromino == 3) {\n // System.out.println(\"没找到块\" + nr + \"!\" + CurrentData.CALCULATED.tetromino.move + \", \"\n // + CurrentData.CALCULATED.tetromino + \", \"\n // + CurrentData.CALCULATED.tetromino.move.tetromino);\n // QQDebug.save(QQRobot.getScreen(), \"qqtetris_\" + nr);\n // nr++;\n throw new NoTetrominoFoundException(\"没找到块!\");\n // CurrentData.CALCULATED.tetromino.move.doMove();\n }\n } else {\n \t final int fallen = y - moveTetromino.y;\n if (fallen > 0) {\n // System.out.println(\"掉落:\" + fallen);\n moveTetromino.y = y;\n } \t \n \t if (move.clever) {\n \t \t if (firstScan) {\n \t \t firstScan = false;\n \t \t } else if (fallen > 0) {\n\t\t\t move.doMove(); \t \t \t \n \t \t }\n \t } else {\n\t\t move.doMove();\n \t }\n }\n }\n if (move.hasMove()) {\n return false;\n } else {\n // QQDebug.printBoard(CurrentData.CALCULATED.board);\n return true;\n }\n }", "public void probe(int x, int y) {\n\t\tif (answerMap[x][y] == -1) {\n\t\t\tisSafe = false;\n\t\t\tcoveredMap[x][y] = SIGN_NETTLE;\n\t\t}\n\t\telse {\n\t\t\tcoveredMap[x][y] = (char) ('0' + answerMap[x][y]);\n\t\t}\n\t\tfor (int i = 0; i < unknown.size(); i++) {\n\t\t\tif (unknown.get(i)[0] == x && unknown.get(i)[1] == y) {\n\t\t\t\tunknown.remove(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (answerMap[x][y] == 0) {\n\t\t\tdiscoverZeroNeighbors(x, y);\n\t\t}\n\t}", "public boolean onScreen(double x, double y) {\n // get the in game coordinates and real coordinates on screen\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n double basex = (map.getWidth() * scaledWidth) / 2.0\n + scaledWidth / 4.0;\n double basey = scaledHeight / 4.0;\n\n //reverse the math logic from the GameRenderer\n double realX = ((y - x) / 2.0) * scaledWidth + currentXOffset + xOffset + basex;\n double realY = ((y + x) / 2.0) * scaledHeight + currentYOffset + yOffset + basey;\n\n return !(realX < -0.1 * viewPortWidth - basex || realX > 1.1 * viewPortWidth + basex ||\n realY < -0.1 * viewPortHeight - basex || realY > 1.1 * viewPortHeight + basey);\n }" ]
[ "0.71460193", "0.6752755", "0.6752755", "0.66560644", "0.66275764", "0.626829", "0.61591715", "0.6085434", "0.605729", "0.60112786", "0.59822553", "0.5977868", "0.5975022", "0.59627944", "0.5934835", "0.59127986", "0.5891345", "0.5878168", "0.58388203", "0.5835088", "0.58197653", "0.57966727", "0.5794437", "0.57752365", "0.5763609", "0.5758301", "0.5709166", "0.5689252", "0.5671284", "0.5649348", "0.56484246", "0.5647061", "0.5643342", "0.564235", "0.56235796", "0.5609186", "0.56060714", "0.5603681", "0.5582415", "0.55798113", "0.5577867", "0.5571872", "0.5571612", "0.55623823", "0.55613804", "0.5558455", "0.554304", "0.5541139", "0.55296946", "0.5520116", "0.5514692", "0.5514692", "0.5514692", "0.54930985", "0.54761857", "0.5474", "0.54622865", "0.54606414", "0.5443377", "0.54380375", "0.5420279", "0.5409515", "0.53955364", "0.539106", "0.5390427", "0.5389917", "0.537269", "0.5369995", "0.53637004", "0.53634936", "0.5349175", "0.53438216", "0.5337665", "0.5331225", "0.53224486", "0.5319539", "0.53187543", "0.53160685", "0.5299018", "0.52950144", "0.52938354", "0.5290099", "0.52868664", "0.5284388", "0.52824193", "0.52818346", "0.52747595", "0.52596986", "0.5257266", "0.5254542", "0.52494293", "0.5245736", "0.5232803", "0.5227297", "0.5226915", "0.5226823", "0.5218448", "0.52164173", "0.52116096", "0.52034485" ]
0.782997
0
TODO: Implement launch billing flow here
public void startPurchaseFlow(String skuId, String billingType) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BillingSource billingSource();", "public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"sm@razorpay.com\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }", "public void continue_billing() {\r\n\t\t\tthis.Continue_Billing.click();\r\n\t\t}", "ShipmentItemBilling createShipmentItemBilling();", "public static void openBillingPage (final Object... args)\n {\n if (CShell.isGuest()) {\n MsoyUI.infoAction(_cmsgs.gobuyMustLogon(), _cmsgs.gobuyLogon(), Link.createHandler(\n Pages.ACCOUNT, \"logon\"));\n\n } else if (CShell.isPermaguest()) {\n MsoyUI.infoAction(_cmsgs.gobuyMustRegister(), _cmsgs.gobuyRegister(),\n NaviUtil.onMustRegister());\n\n } else if (MemberMailUtil.isPlaceholderAddress(CShell.creds.accountName)) {\n MsoyUI.infoAction(_cmsgs.gobuyMustConfigure(), _cmsgs.gobuyConfigure(),\n Link.createHandler(Pages.ACCOUNT, \"config\"));\n\n } else {\n Link.go(Pages.BILLING, args);\n }\n }", "private void initiateCCAvenuePurchase() {\n try {\n String strAmount = Double.toString(planToPurchaseDiscountedPrice);\n Intent intent = new Intent(currentActivity, EnterMobileNumberActivity.class);\n //Intent intent = new Intent(currentActivity, WebViewActivity.class);\n //Intent intent = new Intent(currentActivity, PaymentOptionsActivity.class);\n intent.putExtra(AvenuesParams.CURRENCY, currencyCode);\n intent.putExtra(AvenuesParams.AMOUNT, strAmount);\n intent.putExtra(currentActivity.getString(R.string.app_cms_site_name), appCMSSite.getGist().getSiteInternalName());\n intent.putExtra(currentActivity.getString(R.string.app_cms_user_id), getLoggedInUser());\n intent.putExtra(currentActivity.getString(R.string.app_cms_plan_id), planToPurchase);\n intent.putExtra(\"plan_to_purchase_name\", planToPurchaseName);\n intent.putExtra(\"siteId\", appCMSSite.getGist().getSiteInternalName());\n intent.putExtra(\"email\", getLoggedInUserEmail());\n intent.putExtra(\"authorizedUserName\", getLoggedInUser());\n intent.putExtra(\"x-api-token\", apikey);\n intent.putExtra(\"auth_token\", getAuthToken());\n intent.putExtra(\"renewable\", isRenewable);\n intent.putExtra(\"mobile_number\", \"\");\n intent.putExtra(\"api_base_url\", appCMSMain.getApiBaseUrl());\n intent.putExtra(\"si_frequency\", \"2\");\n intent.putExtra(\"si_frequency_type\", renewableFrequency);\n intent.putExtra(\"color_theme\", getAppCMSMain().getBrand().getCta().getPrimary().getBackgroundColor());\n currentActivity.startActivity(intent);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"multipz.paresh@gmail.com\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }", "private void launchPayPalPayment() {\n\n\t\tPayPalPayment thingsToBuy = prepareFinalCart();\n\n\t\tIntent intent = new Intent(MainActivity.this, PaymentActivity.class);\n\n\t\tintent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, paypalConfig);\n\n\t\tintent.putExtra(PaymentActivity.EXTRA_PAYMENT, thingsToBuy);\n\n\t\tstartActivityForResult(intent, REQUEST_CODE_PAYMENT);\n\t}", "public void startNewPurchase() throws VerificationFailedException {\n\t}", "public void startNewPurchase() throws VerificationFailedException {\n\t}", "@Override\r\n\t\t\tpublic void startLicense(long nonce) throws RemoteException {\n\r\n\t\t\t BillingService mBillingService = new BillingService();\r\n\t\t mBillingService.setContext(CheckDonation.this);\r\n\r\n\t\t // Check if billing is supported.\r\n\t\t if (mBillingService.checkBillingSupported()) {\r\n\t\t mBillingService.restoreTransactions();\r\n\t\t }\r\n\t\t mBillingService.unbind();\r\n\t\t\t}", "@Override\r\n public void onStart() {\n System.out.println(\"Get Bill Details \");\r\n System.out.println(\"Get Bill Details URL \"+jobDecrypt(context.getString(R.string.url_inquire)));\r\n }", "private void launchPayUMoneyFlow(String name, String number, String description, String amt) {\n\n PayUmoneyConfig payUmoneyConfig = PayUmoneyConfig.getInstance();\n\n //Use this to set your custom text on result screen button\n payUmoneyConfig.setDoneButtonText(\"Done\");\n\n //Use this to set your custom title for the activity\n payUmoneyConfig.setPayUmoneyActivityTitle(\"DeliveryHUB PAYMENTS\");\n\n payUmoneyConfig.disableExitConfirmation(isDisableExitConfirmation);\n\n PayUmoneySdkInitializer.PaymentParam.Builder builder = new PayUmoneySdkInitializer.PaymentParam.Builder();\n\n double amount = 0;\n try {\n amount = Double.parseDouble(amt);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n String txnId = \"SH\" + System.currentTimeMillis();\n //String txnId = \"TXNID720431525261327973\";\n String phone = number;\n String productName = description;\n String firstName = name;\n String email = \"nasuruddinshaik@gmail.com\";\n String udf1 = \"\";\n String udf2 = \"\";\n String udf3 = \"\";\n String udf4 = \"\";\n String udf5 = \"\";\n String udf6 = \"\";\n String udf7 = \"\";\n String udf8 = \"\";\n String udf9 = \"\";\n String udf10 = \"\";\n\n AppEnvironment appEnvironment = ((BaseApplication) getActivity().getApplication()).getAppEnvironment();\n builder.setAmount(String.valueOf(amount))\n .setTxnId(txnId)\n .setPhone(phone)\n .setProductName(productName)\n .setFirstName(firstName)\n .setEmail(email)\n .setsUrl(appEnvironment.surl())\n .setfUrl(appEnvironment.furl())\n .setUdf1(udf1)\n .setUdf2(udf2)\n .setUdf3(udf3)\n .setUdf4(udf4)\n .setUdf5(udf5)\n .setUdf6(udf6)\n .setUdf7(udf7)\n .setUdf8(udf8)\n .setUdf9(udf9)\n .setUdf10(udf10)\n .setIsDebug(appEnvironment.debug())\n .setKey(appEnvironment.merchant_Key())\n .setMerchantId(appEnvironment.merchant_ID());\n\n try {\n mPaymentParams = builder.build();\n\n /*\n * Hash should always be generated from your server side.\n * */\n // generateHashFromServer(mPaymentParams);\n\n /* *//**\n * Do not use below code when going live\n * Below code is provided to generate hash from sdk.\n * It is recommended to generate hash from server side only.\n * */\n mPaymentParams = calculateServerSideHashAndInitiatePayment1(mPaymentParams);\n\n\n PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams, getActivity(), R.style.AppTheme_pink, true);\n\n\n } catch (Exception e) {\n // some exception occurred\n Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n // payNowButton.setEnabled(true);\n }\n }", "@Before\n public void setUp() throws Exception {\n billingService = new CustomBillingService();\n\n // prepare fake patient\n Patient patient1 = new Patient(1, \"Connor\", \"MacLeod\", 498, false);\n Patient patient2 = new Patient(2, \"Benjamin\", \"Button\", 4, true);\n Patient patient3 = new Patient(3, \"Leon\", \"Reno\", 68, false);\n\n // prepare fake services\n List<Integer> services1 = new ArrayList<>();\n services1.add(ServiceEnum.DIAGNOSIS.id);\n services1.add(ServiceEnum.XRAY.id);\n services1.add(ServiceEnum.ECG.id);\n\n List<Integer> services2 = new ArrayList<>();\n services2.add(ServiceEnum.BLOODTEST.id);\n services2.add(ServiceEnum.VACCINE.id);\n\n List<Integer> services3 = new ArrayList<>();\n services3.add(ServiceEnum.BLOODTEST.id);\n services3.add(ServiceEnum.ECG.id);\n\n // add the bills\n Bill bill1 = new Bill(1, patient1, services1, 0);\n billingService.addBill(bill1);\n\n Bill bill2 = new Bill(2, patient2, services2, 2);\n billingService.addBill(bill2);\n\n Bill bill3 = new Bill(3, patient3, services3, 1);\n billingService.addBill(bill3);\n }", "public void autoPay() {}", "public static void popBillingPage (String url)\n {\n if (CShell.isGuest()) {\n MsoyUI.infoAction(_cmsgs.gobuyMustLogon(), _cmsgs.gobuyLogon(),\n Link.createHandler(Pages.ACCOUNT, \"logon\"));\n\n } else if (CShell.isPermaguest()) {\n MsoyUI.infoAction(_cmsgs.gobuyMustRegister(), _cmsgs.gobuyRegister(),\n NaviUtil.onMustRegister());\n\n } else if (MemberMailUtil.isPlaceholderAddress(CShell.creds.accountName)) {\n MsoyUI.infoAction(_cmsgs.gobuyMustConfigure(), _cmsgs.gobuyConfigure(),\n Link.createHandler(Pages.ACCOUNT, \"config\"));\n\n } else {\n Window.open(getAbsoluteBillingURL(url),\n \"_blank\",\n // For those silly browsers that open this in a new window instead of a new\n // tab, enable all the chrome options on the new window.\n \"resizable=1,menubar=1,toolbar=1,location=1,status=1,scrollbars=1\");\n }\n }", "@Override\n\t\t\tpublic void mainBuyPro() {\n\t\t\t\tif (iap_is_ok && mHelper != null) {\n\t\t\t\t\t\n\t\t\t\t\t String payload = \"\";\n\t\t\t\t\t mHelper.launchPurchaseFlow(MainActivity.this, Paid_Id_VF, RC_REQUEST, mPurchaseFinishedListener);\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}", "private void launchPayUMoneyFlow() {\n\n PayUmoneyConfig payUmoneyConfig = PayUmoneyConfig.getInstance();\n\n //Use this to set your custom text on result screen button\n payUmoneyConfig.setDoneButtonText(\"Continue\");\n\n //Use this to set your custom title for the activity\n payUmoneyConfig.setPayUmoneyActivityTitle(\"VUCabs\");\n\n PayUmoneySdkInitializer.PaymentParam.Builder builder = new PayUmoneySdkInitializer.PaymentParam.Builder();\n\n double amount = 0;\n try {\n amount = Double.parseDouble(String.valueOf(Amount));\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n String txnId = System.currentTimeMillis() + \"\";\n String phone = mobile_til.getEditText().getText().toString().trim();\n String productName = \"VUCabs\";\n String firstName = name_et.getText().toString();\n String email = email_til.getEditText().getText().toString().trim();\n String udf1 = \"\";\n String udf2 = \"\";\n String udf3 = \"\";\n String udf4 = \"\";\n String udf5 = \"\";\n String udf6 = \"\";\n String udf7 = \"\";\n String udf8 = \"\";\n String udf9 = \"\";\n String udf10 = \"\";\n\n AppEnvironment appEnvironment = ((AppController) getApplication()).getAppEnvironment();\n builder.setAmount(amount)\n .setTxnId(txnId)\n .setPhone(phone)\n .setProductName(productName)\n .setFirstName(firstName)\n .setEmail(email)\n .setsUrl(appEnvironment.surl())\n .setfUrl(appEnvironment.furl())\n .setUdf1(udf1)\n .setUdf2(udf2)\n .setUdf3(udf3)\n .setUdf4(udf4)\n .setUdf5(udf5)\n .setUdf6(udf6)\n .setUdf7(udf7)\n .setUdf8(udf8)\n .setUdf9(udf9)\n .setUdf10(udf10)\n .setIsDebug(appEnvironment.debug())\n .setKey(appEnvironment.merchant_Key())\n .setMerchantId(appEnvironment.merchant_ID());\n\n try {\n mPaymentParams = builder.build();\n\n /*\n * Hash should always be generated from your server side.\n * */\n generateHashFromServer(mPaymentParams);\n\n /* *//**\n * Do not use below code when going live\n * Below code is provided to generate hash from sdk.\n * It is recommended to generate hash from server side only.\n * *//*\n mPaymentParams = calculateServerSideHashAndInitiatePayment1(mPaymentParams);\n\n if (AppPreference.selectedTheme != -1) {\n PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,PayUMoneyActivity.this, AppPreference.selectedTheme,mAppPreference.isOverrideResultScreen());\n } else {\n PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,PayUMoneyActivity.this, R.style.AppTheme_default, mAppPreference.isOverrideResultScreen());\n }*/\n\n } catch (Exception e) {\n // some exception occurred\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n payNowButton.setEnabled(true);\n }\n }", "void payBills();", "public void initiateItemPurchase() {\n checkForExistingSubscription(false);\n\n if (useCCAvenue()) {\n //Log.d(TAG, \"Initiating CCAvenue purchase\");\n if (isUserSubscribed()) {\n try {\n showLoadingDialog(true);\n appCMSSubscriptionPlanCall.call(\n currentActivity.getString(R.string.app_cms_get_current_subscription_api_url,\n appCMSMain.getApiBaseUrl(),\n getLoggedInUser(),\n appCMSSite.getGist().getSiteInternalName()),\n R.string.app_cms_subscription_subscribed_plan_key,\n null,\n apikey,\n getAuthToken(),\n listResult -> {\n //Log.v(\"currentActivity\", \"currentActivity\");\n showLoadingDialog(false);\n }, appCMSSubscriptionPlanResults -> {\n showLoadingDialog(false);\n sendCloseOthersAction(null, true, false);\n refreshSubscriptionData(this::sendRefreshPageAction, true);\n },\n appCMSSubscriptionPlanResult -> {\n showLoadingDialog(false);\n try {\n if (appCMSSubscriptionPlanResult != null) {\n upgradePlanAPICall();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"refreshSubscriptionData: \" + e.getMessage());\n }\n }\n );\n } catch (Exception ex) {\n //\n }\n } else {\n initiateCCAvenuePurchase();\n }\n } else {\n if (currentActivity != null &&\n inAppBillingService != null &&\n TextUtils.isEmpty(getRestoreSubscriptionReceipt())) {\n //Log.d(TAG, \"Initiating Google Play Services purchase\");\n try {\n Bundle activeSubs = null;\n try {\n activeSubs = inAppBillingService.getPurchases(3,\n currentActivity.getPackageName(),\n \"subs\",\n null);\n } catch (RemoteException e) {\n //Log.e(TAG, \"Failed to retrieve current active subscriptions: \" + e.getMessage());\n }\n\n ArrayList<String> subscribedSkus = null;\n\n if (activeSubs != null) {\n subscribedSkus = activeSubs.getStringArrayList(\"INAPP_PURCHASE_ITEM_LIST\");\n }\n\n Bundle buyIntentBundle;\n if (subscribedSkus != null && !subscribedSkus.isEmpty()) {\n //Log.d(TAG, \"Initiating upgrade purchase\");\n } else {\n //Log.d(TAG, \"Initiating new item purchase\");\n }\n\n buyIntentBundle = inAppBillingService.getBuyIntentToReplaceSkus(5,\n currentActivity.getPackageName(),\n subscribedSkus,\n skuToPurchase,\n \"subs\",\n null);\n\n if (buyIntentBundle != null) {\n int resultCode = buyIntentBundle.getInt(\"RESPONSE_CODE\");\n if (resultCode == 0) {\n PendingIntent pendingIntent = buyIntentBundle.getParcelable(\"BUY_INTENT\");\n if (pendingIntent != null) {\n //Log.d(TAG, \"Launching intent to initiate item purchase\");\n currentActivity.startIntentSenderForResult(pendingIntent.getIntentSender(),\n RC_PURCHASE_PLAY_STORE_ITEM,\n new Intent(),\n 0,\n 0,\n 0);\n } else {\n showToast(currentActivity.getString(R.string.app_cms_cancel_subscription_subscription_not_valid_message),\n Toast.LENGTH_LONG);\n }\n } else {\n setSelectedSubscriptionPlan(true);\n if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_USER_CANCELED) {\n showDialog(DialogType.SUBSCRIBE, \"Billing response was cancelled by user\", false, null, null);\n } else if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE) {\n showDialog(DialogType.SUBSCRIBE, \"Billing response is unavailable\", false, null, null);\n } else if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE) {\n addGoogleAccountToDevice();\n } else if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE) {\n showDialog(DialogType.SUBSCRIBE, \"Billing response result item is unavailable\", false, null, null);\n } else if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_DEVELOPER_ERROR) {\n showDialog(DialogType.SUBSCRIBE, \"Billing response result developer error\", false, null, null);\n } else if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_ERROR) {\n showDialog(DialogType.SUBSCRIBE, \"Billing response result error\", false, null, null);\n } else if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED) {\n showDialog(DialogType.SUBSCRIBE, \"Billing response item already purchased\", false, null, null);\n } else if (resultCode == IabHelper.BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED) {\n showDialog(DialogType.SUBSCRIBE, \"Billing response item not owned\", false, null, null);\n }\n }\n }\n } catch (RemoteException | IntentSender.SendIntentException e) {\n //Log.e(TAG, \"Failed to purchase item with sku: \"\n// + skuToPurchase\n// + e.getMessage());\n }\n } else if (!TextUtils.isEmpty(getRestoreSubscriptionReceipt())) {\n //Log.d(TAG, \"Finalizing subscription after signup - existing subscription: \" +\n// getRestoreSubscriptionReceipt());\n try {\n InAppPurchaseData inAppPurchaseData = gson.fromJson(getRestoreSubscriptionReceipt(),\n InAppPurchaseData.class);\n skuToPurchase = inAppPurchaseData.getProductId();\n finalizeSignupAfterSubscription(getRestoreSubscriptionReceipt());\n } catch (Exception e) {\n //Log.e(TAG, \"Could not parse InApp Purchase Data: \" + getRestoreSubscriptionReceipt());\n }\n } else {\n //Log.e(TAG, \"InAppBillingService: \" + inAppBillingService);\n }\n }\n // setSelectedSubscriptionPlan(false);\n }", "@Override\n public void execute(ProcessBundle bundle) throws Exception {\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n // Variable declaration\n // Variable declaration\n String proposalId = null;\n String proposalattrId = null;\n if (bundle.getParams().get(\"Escm_Proposalmgmt_ID\") != null) {\n proposalId = bundle.getParams().get(\"Escm_Proposalmgmt_ID\").toString();\n }\n if (bundle.getParams().get(\"Escm_Proposal_Attr_ID\") != null) {\n proposalattrId = bundle.getParams().get(\"Escm_Proposal_Attr_ID\").toString();\n EscmProposalAttribute proposalAttr = OBDal.getInstance().get(EscmProposalAttribute.class,\n proposalattrId);\n proposalId = proposalAttr.getEscmProposalmgmt().getId();\n }\n EscmProposalMgmt proposalmgmt = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n final String clientId = bundle.getContext().getClient();\n final String orgId = proposalmgmt.getOrganization().getId();\n final String userId = bundle.getContext().getUser();\n User user = OBDal.getInstance().get(User.class, userId);\n String purchaseOrderType = \"PUR\";\n List<EscmPurchaseOrderConfiguration> config = new ArrayList<EscmPurchaseOrderConfiguration>();\n List<Location> bploclist = new ArrayList<Location>();\n List<Warehouse> warehouselist = new ArrayList<Warehouse>();\n List<PriceList> priceListlist = new ArrayList<PriceList>();\n List<PaymentTerm> paymentTermList = new ArrayList<PaymentTerm>();\n Location bplocation = null;\n String yearId = null, transdoctypeId = null;\n SimpleDateFormat d1 = new SimpleDateFormat(\"dd-MM-yyyy\");\n Warehouse warehouse = null;\n PriceList priceList = null;\n PaymentTerm paymentTerm = null;\n String startingDate = \"\", budgetReferenceId = null;\n\n String motContactPerson = \"\";\n String motContactPosition = \"\";\n String description = null;\n String alertWindow = sa.elm.ob.scm.util.AlertWindow.contractUser;\n String windowId = \"2ADDCB0DD2BF4F6DB13B21BBCCC3038C\";\n NextRoleByRuleVO nextApproval = null;\n\n ProposalManagementProcessDAO proposalDAO = new ProposalManagementProcessDAOImpl();\n // get the connection\n Connection conn = OBDal.getInstance().getConnection();\n\n boolean isMinProposalApproved = false;\n if (proposalmgmt.getProposalstatus().equals(\"PAWD\")) {\n isMinProposalApproved = proposalDAO.isMinProposalApproved(proposalmgmt);\n }\n\n if ((proposalmgmt.getProposalappstatus().equals(\"APP\")\n && proposalmgmt.getProposalstatus().equals(\"AWD\"))\n || (proposalmgmt.getProposalstatus().equals(\"PAWD\")\n && (isMinProposalApproved || proposalmgmt.getProposalappstatus().equals(\"APP\")))) {\n\n // based on configuration minvalue , getting purchase order type is purchase order /contract\n if (proposalmgmt.getProposalstatus().equals(\"PAWD\")) {\n config = proposalDAO.getPOTypeBasedOnValue(orgId, proposalmgmt.getAwardamount());\n } else {\n config = proposalDAO.getPOTypeBasedOnValue(orgId, proposalmgmt.getTotalamount());\n }\n\n if (config.size() > 0) {\n purchaseOrderType = config.get(0).getOrdertype();\n\n // Setting mot contact person and position\n\n EscmPurchaseOrderConfiguration configuration = config.get(0);\n motContactPosition = configuration.getMOTContactPosition();\n motContactPerson = configuration.getMOTContactPerson() != null\n ? configuration.getMOTContactPerson().getName()\n : null;\n\n } else {\n\n // Setting mot contact person and position\n\n EscmPurchaseOrderConfiguration configuration = PurchaseAgreementCalloutDAO\n .checkDocTypeConfig(OBContext.getOBContext().getCurrentClient().getId(),\n proposalmgmt.getOrganization().getId(), purchaseOrderType);\n\n motContactPosition = configuration.getMOTContactPosition();\n motContactPerson = configuration.getMOTContactPerson() != null\n ? configuration.getMOTContactPerson().getName()\n : null;\n\n }\n\n // Throw error if contract category is inactive\n if (proposalmgmt != null && proposalmgmt.getContractType() != null\n && !proposalmgmt.getContractType().isActive()) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_ContractCategoryInactive@\");\n bundle.setResult(result);\n return;\n }\n\n startingDate = proposalDAO.getPeriodStartDate(clientId);\n budgetReferenceId = proposalDAO.getBudgetFromPeriod(clientId, startingDate);\n if (\"\".equals(budgetReferenceId)) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Efin_Budget_Init_Mandatory@\");\n bundle.setResult(result);\n return;\n }\n if (budgetReferenceId != null) {\n if (!proposalmgmt.getEfinBudgetinitial().getId().equals(budgetReferenceId)) {\n // OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@Escm_YearClosed_Err@\");\n // bundle.setResult(result);\n // return;\n }\n }\n\n // fetching finacial year\n yearId = proposalDAO.getFinancialYear(clientId);\n if (\"\".equals(yearId)) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_FinancialYear_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n // fetching warehouse\n warehouselist = proposalDAO.getWarehouse(proposalmgmt.getClient().getId());\n if (warehouselist.size() > 0) {\n warehouse = warehouselist.get(0);\n } else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@ESCM_Warehouse_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n // fetching bplocation\n bploclist = proposalDAO.getLocation(proposalmgmt.getSupplier().getId());\n if (bploclist.size() > 0)\n bplocation = bploclist.get(0);\n else {\n String message = OBMessageUtils.messageBD(\"ESCM_SuppLoc_NotDefine\");\n message = message.replace(\"%\", proposalmgmt.getSupplier().getName());\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", message);\n bundle.setResult(result);\n return;\n }\n\n // fetching pricelist\n priceListlist = proposalDAO.getPriceList(proposalmgmt.getClient().getId());\n if (priceListlist.size() > 0)\n priceList = priceListlist.get(0);\n else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@ESCM_PriceList_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n // fetching payment term\n paymentTermList = proposalDAO.getPaymentTerm(proposalmgmt.getClient().getId());\n if (paymentTermList.size() > 0)\n paymentTerm = paymentTermList.get(0);\n else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_PaymentTerm_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n if (user.getBusinessPartner() == null) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_CrtPOfrmProsal_NotBP@\");\n bundle.setResult(result);\n return;\n }\n // default value brought for mot contact person/position so no need validation.\n /*\n * if (user.getBusinessPartner() != null && user.getBusinessPartner().getEhcmPosition() ==\n * null) { OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n * \"@ESCM_LoggUser_PosNotDef@\"); bundle.setResult(result); return; }\n */\n\n // fetching document type\n Object transdoctype = proposalDAO.getTransactionDoc(orgId, clientId);\n if (transdoctype != null) {\n transdoctypeId = (String) transdoctype;\n } else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@ESCM_PODocType_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n if (transdoctypeId != null && paymentTerm != null && priceList != null && warehouse != null\n && bplocation != null && yearId != null) {\n Order order = OBProvider.getInstance().get(Order.class);\n order.setClient(proposalmgmt.getClient());\n order.setOrganization(proposalmgmt.getOrganization());\n order.setCreatedBy(user);\n order.setUpdatedBy(user);\n order.setSalesTransaction(false);\n order.setDocumentType(OBDal.getInstance().get(DocumentType.class, \"0\"));\n order.setTransactionDocument(OBDal.getInstance().get(DocumentType.class, transdoctypeId));\n order.setDocumentNo(UtilityDAO.getSequenceNo(conn, clientId,\n order.getTransactionDocument().getDocumentSequence().getName(), true));\n order.setDocumentStatus(\"DR\");\n order.setDocumentAction(\"CO\");\n order.setAccountingDate(new java.util.Date());\n order.setOrderDate(new java.util.Date());\n order.setBusinessPartner(proposalmgmt.getSupplier());\n order.setEscmRevision(0L);\n order.setEscmAppstatus(\"DR\");\n order.setEscmFinanyear(OBDal.getInstance().get(Year.class, yearId));\n if (proposalmgmt.getEscmBidmgmt() != null\n && proposalmgmt.getEscmBidmgmt().getBidname() != null) {\n order.setEscmProjectname(proposalmgmt.getEscmBidmgmt().getBidname());\n } else {\n order.setEscmProjectname(proposalmgmt.getBidName());\n }\n // order.setEscmOnboarddateh(new java.util.Date());\n order.setEscmOrdertype(purchaseOrderType);\n // order.setEscmOnboarddategreg(d1.format(new Date()));\n order.setPartnerAddress(bplocation);\n order.setEscmContractduration(null);\n // order.setEscmPeriodtype(\"DT\");\n order.setWarehouse(warehouse);\n order.setPriceList(priceList);\n order.setPaymentTerms(paymentTerm);\n order.setInvoiceTerms(\"D\");\n order.setDeliveryTerms(\"A\");\n order.setFreightCostRule(\"I\");\n order.setFormOfPayment(\"B\");\n order.setDeliveryMethod(\"P\");\n order.setPriority(\"5\");\n order.setEscmAdRole(OBContext.getOBContext().getRole());\n order.setEscmAppstatus(\"DR\");\n order.setEscmAdvpaymntPercntge(BigDecimal.ZERO);\n Currency objCurrency = OBDal.getInstance().get(Currency.class, \"317\");\n order.setCurrency(proposalmgmt.getOrganization().getCurrency() == null ? objCurrency\n : proposalmgmt.getOrganization().getCurrency());\n\n if (proposalmgmt.getProposalstatus().equals(\"PAWD\")) {\n order.setGrandTotalAmount(proposalmgmt.getAwardamount());\n } else {\n order.setGrandTotalAmount(proposalmgmt.getTotalamount());\n }\n\n order.setDocumentStatus(\"DR\");\n order.setEscmDocaction(\"CO\");\n // order.setEscmContractstartdate(new java.util.Date());\n // order.setEscmContractenddate(new java.util.Date());\n order.setEscmBuyername(user);\n order.setEscmRatedategre(d1.format(new Date()));\n if (budgetReferenceId != null)\n order.setEfinBudgetint(\n OBDal.getInstance().get(EfinBudgetIntialization.class, budgetReferenceId));\n order.setEscmProposalmgmt(proposalmgmt);\n // order.setEscmMotcontperson(user.getBusinessPartner().getName());\n // order.setEscmMotcontposition(user.getBusinessPartner().getEhcmPosition());\n order.setEscmMotcontperson(motContactPerson);\n order.setEscmMotcontposition(motContactPosition);\n if (proposalmgmt.getSecondsupplier() != null)\n order.setEscmSecondsupplier(proposalmgmt.getSecondsupplier());\n if (proposalmgmt.getSecondBranchname() != null)\n order.setEscmSecondBranchname(proposalmgmt.getSecondBranchname());\n order.setEscmIssecondsupplier(proposalmgmt.isSecondsupplier());\n if (proposalmgmt.getIBAN() != null)\n order.setEscmSecondIban(proposalmgmt.getIBAN());\n if (proposalmgmt.getSubcontractors() != null)\n order.setEscmSubcontractors(proposalmgmt.getSubcontractors());\n if (proposalmgmt.isTaxLine()) {\n order.setEscmIstax(proposalmgmt.isTaxLine());\n\n }\n if (proposalmgmt.getEfinTaxMethod() != null) {\n order.setEscmTaxMethod(proposalmgmt.getEfinTaxMethod());\n }\n order.setEscmCalculateTaxlines(true);\n if (proposalmgmt.getContractType() != null) {\n order.setEscmContactType(proposalmgmt.getContractType());\n if (proposalmgmt.getContractType().getReceiveType().getSearchKey().equals(\"AMT\")) {\n order.setEscmReceivetype(\"AMT\");\n } else {\n order.setEscmReceivetype(\"QTY\");\n }\n } else {\n order.setEscmContactType(null);\n }\n OBQuery<EscmProposalsourceRef> sourceRef = OBDal.getInstance().createQuery(\n EscmProposalsourceRef.class,\n \"as e where e.escmProposalmgmtLine.id in (select ln.id from \"\n + \"Escm_Proposalmgmt_Line ln where ln.escmProposalmgmt.id=:propId)\");\n sourceRef.setNamedParameter(\"propId\", proposalmgmt.getId());\n List<EscmProposalsourceRef> propSrclist = sourceRef.list();\n if (propSrclist.size() > 0) {\n EscmProposalsourceRef propSrcRef = propSrclist.get(0);\n if (propSrcRef.getRequisition() != null) {\n order.setEscmMaintenanceProject(\n propSrcRef.getRequisition().getEscmMaintenanceProject());\n }\n if (propSrcRef.getRequisition() != null) {\n order.setEscmMaintenanceCntrctNo(\n propSrcRef.getRequisition().getESCMMaintenanceContractNo());\n }\n }\n if (proposalmgmt.getEscmBidmgmt() != null) {\n OBQuery<Escmbidsourceref> bidSrcref = OBDal.getInstance().createQuery(\n Escmbidsourceref.class,\n \"as e where e.escmBidmgmtLine.id in (select bid.id from escm_bidmgmt_line bid where bid.escmBidmgmt.id=:bidId)\");\n bidSrcref.setNamedParameter(\"bidId\", proposalmgmt.getEscmBidmgmt().getId());\n List<Escmbidsourceref> bidSrcList = bidSrcref.list();\n if (bidSrcList.size() > 0) {\n Escmbidsourceref bidSrcRef = bidSrcList.get(0);\n if (bidSrcRef.getRequisition() != null) {\n order.setEscmMaintenanceProject(\n bidSrcRef.getRequisition().getEscmMaintenanceProject());\n order.setEscmMaintenanceCntrctNo(\n bidSrcRef.getRequisition().getESCMMaintenanceContractNo());\n }\n }\n }\n\n OBDal.getInstance().save(order);\n\n proposalmgmt.setDocumentNo(order);\n OBDal.getInstance().save(proposalmgmt);\n\n // Updating the PO reference in PEE(Proposal Attribute)\n // Fetching the PEE irrespective of Proposal Version\n OBQuery<EscmProposalAttribute> proposalAttr = OBDal.getInstance().createQuery(\n EscmProposalAttribute.class,\n \" as a join a.escmProposalevlEvent b where b.status='CO' and a.escmProposalmgmt.proposalno= :proposalID \");\n proposalAttr.setNamedParameter(\"proposalID\", proposalmgmt.getProposalno());\n List<EscmProposalAttribute> proposalAttrList = proposalAttr.list();\n if (proposalAttrList.size() > 0) {\n EscmProposalAttribute proposalAttrObj = proposalAttrList.get(0);\n proposalAttrObj.setOrder(order);\n OBDal.getInstance().save(proposalAttrObj);\n }\n\n OBDal.getInstance().flush();\n\n int ordercount = POcontractAddproposalDAO.insertOrderline(conn, proposalmgmt, order);\n\n if (ordercount == 1) {\n // send an alert to contract user when po is created\n description = sa.elm.ob.scm.properties.Resource\n .getProperty(\"scm.contractuser.alert\", vars.getLanguage())\n .concat(\"\" + proposalmgmt.getProposalno());\n AlertUtility.alertInsertBasedonPreference(order.getId(), order.getDocumentNo(),\n \"ESCM_Contract_User\", order.getClient().getId(), description, \"NEW\", alertWindow,\n \"scm.contractuser.alert\", Constants.GENERIC_TEMPLATE, windowId, null);\n String message = OBMessageUtils.messageBD(\"ESCM_CreatePOForProposal_Success\");\n message = message.replace(\"%\", order.getDocumentNo());\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", message);\n bundle.setResult(result);\n } else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_CreatePOForProsalNotSuccess@\");\n bundle.setResult(result);\n }\n }\n }\n } catch (OBException e) {\n OBDal.getInstance().rollbackAndClose();\n log.error(\" Exception in CreatePOFromProposal: \" + e);\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", e.getMessage());\n bundle.setResult(result);\n return;\n } catch (Exception e) {\n log.error(\"Exeception in CreatePOFromProposal Process:\", e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }", "private void bufferBillingProject() {\n if (getUnfilledBufferSpace() <= 0) {\n return;\n }\n\n final String projectName = createBillingProjectName();\n\n billingProjectBufferEntryDao.save(makeCreatingBufferEntry(projectName));\n\n fireCloudService.createAllOfUsBillingProject(projectName);\n }", "void purchaseMade();", "void askBuyResources();", "public void startSale() {\r\n System.out.println(\"[CashRegister] startSale\");\r\n System.out.println(\"\");\r\n\r\n //receipt = new Receipt(customerId); \r\n receipt = new Receipt(\"100\");\r\n\r\n //addItemToSale(productId, quantity);\r\n addItemToSale(\"A101\", 10);\r\n\r\n addItemToSale(\"B205\", 6);\r\n\r\n addItemToSale(\"C222\", 12);\r\n\r\n }", "@Test(priority=1, dataProviderClass = BillingDataProvider.class, dataProvider=\"dataProviderForGoLive\")\n\tpublic void Billing_UseCase1(String testDataSetId) {\n\t\t\n\t\tLoginPage loginPage = new LoginPage();\n\t\tHomePage homePage = new HomePage();\n\t\tDealershipPage dealershipPage = new DealershipPage();\n\t\tOpportunityPage opportunityPage = new OpportunityPage();\n\t\tProductPage productPage = new ProductPage();\n\t\tBillingObjectPage billingObjectPage = new BillingObjectPage();\n\t\tAriaHierarchyPage ariaHierarchyPage = new AriaHierarchyPage();\n\t\tAriaIntegrationPage ariaIntegrationPage = new AriaIntegrationPage();\n\n\t\t/*Fetch Use Case details*/\n\t\tMap<String, String> useCaseDetails = EdmundsConfigProperties\n\t\t\t\t.XL_READER.fromSheet(\"Use Cases List\").getDataFromRow(\"Case 1\");\n\t\t\n\t\ttestReporter.initTestCase(useCaseDetails.get(\"Use Case ID\") + \" (with \" + testDataSetId + \")\", \n\t\t\t\tuseCaseDetails.get(\"Description\"), \n\t\t\t\tuseCaseDetails.get(\"Category\"));\n\t\t\n\t\t/*Fetch Use Case test data*/\n\t\tTestData data = testDataGetter.getTestData(\"Billing Go Live Test Data\", testDataSetId);\n\n\t\tOpportunityType opportunityType = OpportunityType.convertStringToOpportunityType(data.get(\"Opportunity Type\"));\n\t\tString dateTimeStamp = TextUtil.getCurrentDateTimeStamp();\n\t\tString dealershipName = TextUtil.getAutoPrefixWithDateTimeStamp(data.get(\"Dealership Name\"), dateTimeStamp);\n\t\tString opportunityName = TextUtil.getAutoPrefixWithDateTimeStamp(data.get(\"Opportunity Name\"), dateTimeStamp);\n\t\tString initialStage = data.get(\"Initial Stage\");\n\t\tString finalStage = data.get(\"Final Stage\");\n\t\t\n\t\ttry {\n\t\t\t/*Test Steps*/\n\t\t\tloginPage.login(EdmundsConfigProperties.USERNAME, EdmundsConfigProperties.PASSWORD);\n\t\t\t\n\t\t\thomePage.navigateToDealerShips();\n\t\t\tString dealershipId = dealershipPage.createDealership(dealershipName);\n\t\t\tAssertions.info(\"Dealership Id \t\t= \" + dealershipId);\n\n\t\t\tString opportunityId = opportunityPage.createOpportunity(opportunityType, opportunityName, initialStage, dealershipName);\n\t\t\tAssertions.verify(opportunityId!=null, \n\t\t\t\t\t\"Opportunity Id \t= \" + opportunityId, \n\t\t\t\t\t\"Failed to create opportunity.\");\n\n\t\t\tproductPage.createProduct(opportunityType, data.get(\"Sales Price\"), opportunityName);\n\t\t\tboolean stageChanged = opportunityPage.changeStageTo(finalStage);\n\t\t\t\n\t\t\tif (!stageChanged) {\n\t\t\t\tAssertions.fail(\"Stage could NOT be changed to \" + finalStage);\n\t\t\t\tthrow new TestFailedException();\n\t\t\t} \n\t\t\t\n\t\t\tString totalSalesPrice_InOppty = opportunityPage.labelTotalSalesPrice_Value.getText();\n\t\t\tString liveDate_InOppty = opportunityPage.labelLiveDate_Value.getText();\n\t\t\tString invoicingAccount_InOppty = opportunityPage.linkInvoicingAccount.getText();\n\t\t\tString dealershipName_InOppty = opportunityPage.linkDealershipName.getText();\n\n\t\t\tif (opportunityType.equals(OpportunityType.New)) {\n\t\t\t\topportunityPage.navigateToBillingObject();\n\t\t\t} else {\n\t\t\t\topportunityPage.navigateToBillingObject(opportunityType);\n\t\t\t}\n//\t\t\topportunityPage.navigateToBillingObject();\n\t\t\tString billingObjectId = billingObjectPage.getBillingObjectId();\n\t\t\tAssertions.info(\"Billing Object Id \t= \" + billingObjectId);\n\t\t\t\n\t\t\tString ariaHierarchyId = billingObjectPage.getAriaHierarchyId();\n\t\t\tAssertions.info(\"Aria Hierarchy Id \t= \" + ariaHierarchyId);\n\t\t\t\n\t\t\tString salesPrice_InBO = billingObjectPage.labelSalesPrice_Value.getText();\n\t\t\tString billingStartDate_InBO = billingObjectPage.labelBillingStartDate_Value.getText();\n\t\t\tString invoicingAccount_InBO = billingObjectPage.linkInvoicingAccount.getText();\n\t\t\tString parentAccount_InBO = billingObjectPage.linkParentAccount.getText();\n\t\t\tboolean jBFlagCreateProductAccount_InBO = billingObjectPage.imageJBFlagCreateProductAccount_Checked.isDisplayed();\n\t\t\tboolean jBFlagCreateParentAccount_InBO = billingObjectPage.imageJBFlagCreateParentAccount_Checked.isDisplayed();\n\t\t\t\n\t\t\t//Salesforce Validations before Aria Integration:\n\t\t\tAssertions.info(\"======== Salesforce Validations before Aria Integration ========\");\n\t\t\t\t\t\n\t\t\tAssertions.verify(totalSalesPrice_InOppty.equals(salesPrice_InBO),\n\t\t\t\t\t\"Opportunity Total Sales Price = Billing Object Sales Price\",\n\t\t\t\t\t\"Opportunity Total Sales Price is NOT equal to Billing Object Sales Price\");\n\t\t\tAssertions.verify(liveDate_InOppty.equals(billingStartDate_InBO),\n\t\t\t\t\t\"Opportunity Live Date = Billing Object Billing Start Date\",\n\t\t\t\t\t\"Opportunity Live Date is NOT equal to Billing Object Billing Start Date\");\n\t\t\tAssertions.verify(invoicingAccount_InOppty.equals(invoicingAccount_InBO),\n\t\t\t\t\t\"Opportunity Invoicing Account = Billing Object Invoicing Account\",\n\t\t\t\t\t\"Opportunity Invoicing Account is NOT equal to Billing Object Invoicing Account\");\n\t\t\tAssertions.verify(dealershipName_InOppty.equals(parentAccount_InBO),\n\t\t\t\t\t\"Opportunity Dealership Name = Billing Object Parent Account\",\n\t\t\t\t\t\"Opportunity Dealership Name is NOT equal to Billing Object Parent Account\");\n\n\t\t\tAssertions.verify(\"JB Flag Create Product Account\", \n\t\t\t\t\ttrue, jBFlagCreateProductAccount_InBO);\n\t\t\tAssertions.verify(\"JB Flag Create Parent Account\", \n\t\t\t\t\ttrue, jBFlagCreateParentAccount_InBO);\n\t\t\t\t\t\n\t\t\tbillingObjectPage.linkAriaHierarchy.click();\n\t\t\t\n\t\t\tString dealership_InAH = ariaHierarchyPage.linkDealership.getText();\n\t\t\tString invoicingAccount_InAH = ariaHierarchyPage.labelInvoicingAccount_Value.getText();\n\t\t\tString ariaDealershipAccountNo_InAH = ariaHierarchyPage.labelAriaDealershipAccountNo_Value.getText();\n\t\t\tString ariaInvoicingAccountNo_InAH = ariaHierarchyPage.labelAriaInvoicingAccountNo_Value.getText();\n\t\t\tString empty = \" \";\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Aria Hierarchy:\");\n\t\t\tAssertions.verify(dealership_InAH.equals(dealershipName_InOppty),\n\t\t\t\t\t\"Dealership = Opportunity Dealership Name\",\n\t\t\t\t\t\"Dealership is NOT equal to Opportunity Dealership Name\");\n\t\t\tAssertions.verify(invoicingAccount_InAH.equals(empty)||invoicingAccount_InAH.equals(\"\"),\n\t\t\t\t\t\"Invoicing Account = <Null> \",\n\t\t\t\t\t\"Invoicing Account is NOT <Null> \");\n\t\t\tAssertions.verify(ariaDealershipAccountNo_InAH.equals(empty)||ariaDealershipAccountNo_InAH.equals(\"\"),\n\t\t\t\t\t\"Aria Dealership Account No = <Null>\",\n\t\t\t\t\t\"Aria Dealership Account No is NOT <Null>\");\n\t\t\tAssertions.verify(ariaInvoicingAccountNo_InAH.equals(\" \"),\n\t\t\t\t\t\"Aria Invoicing Account No = <Null>\",\n\t\t\t\t\t\"Aria Invoicing Account No is NOT <Null>\");\n\t\t\t\n\t\t\t//Aria Integration:\n\t\t\thomePage.navigateToAriaIntegrationPage();\n\t\t\tAssertions.info(\"Starting Jitterbit job ...\");\n\t\t\tariaIntegrationPage.startJitterBitJob();\n\t\t\t// Wait to let Jitterbit job complete.\n\t\t\tboolean ariaIntegrationIsDone = ariaIntegrationPage\n\t\t\t\t\t.waitForJitterBitJobToComplete(600);//(EdmundsConfigProperties.ARIA_INTEGRATION_WAITING_TIME);\n\n\t\t\tif (ariaIntegrationIsDone) {\n\t\t\t\n\t\t\t\t//Salesforce Validations after Aria Integration:\n\t\t\t\tAssertions.info(\"======== Salesforce Validations after Aria Integration ========\");\n\t\t\t\topportunityPage.navigateToOpportunity(opportunityId);\n\t\t\t\tif (opportunityType.equals(OpportunityType.New)) {\n\t\t\t\t\topportunityPage.navigateToBillingObject();\n\t\t\t\t} else {\n\t\t\t\t\topportunityPage.navigateToBillingObject(opportunityType);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\topportunityPage.navigateToBillingObject();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tString ariaInvoicingAccountNo_InBO_AfterIntegration = billingObjectPage.labelAriaInvoicingAccountNo_Value.getText();\n\t\t\t\tString ariaParentAccountNo_InBO_AfterIntegration = billingObjectPage.labelAriaParentAccountNo_Value.getText();\n\t\t\t\tString ariaProductAccountNo_InBO_AfterIntegration = billingObjectPage.labelAriaProductAccountNo_Value.getText();\n\t\t\t\t\n\t\t\t\tAssertions.verify(ariaInvoicingAccountNo_InBO_AfterIntegration.equals(\"\") || ariaInvoicingAccountNo_InBO_AfterIntegration.equals(\" \"),\n\t\t\t\t\t\t\"Aria Invoicing Account No = <null>\",\n\t\t\t\t\t\t\"Aria Invoicing Account No is NOT <null>\");\n\t\t\t\tAssertions.verify(\t!\t(ariaParentAccountNo_InBO_AfterIntegration.equals(\"\")||ariaParentAccountNo_InBO_AfterIntegration.equals(\" \")),\n\t\t\t\t\t\t\"Aria Parent Account No = \" + ariaParentAccountNo_InBO_AfterIntegration,\n\t\t\t\t\t\t\"Aria Parent Account No is NOT <populated>\");\n\t\t\t\tAssertions.verify(!ariaProductAccountNo_InBO_AfterIntegration.equals(\"\"),\n\t\t\t\t\t\t\"Aria Product Account No = \" + ariaProductAccountNo_InBO_AfterIntegration,\n\t\t\t\t\t\t\"Aria Product Account No is NOT <populated>\");\n\t\t\t\tAssertions.verify(billingObjectPage.isJBFlagCreateProductAccountUnchecked(),\n\t\t\t\t\t\t\"JB Flag Create Product Account is unchecked\", \n\t\t\t\t\t\t\"JB Flag Create Product Account is NOT unchecked\");\n\t\t\t\tAssertions.verify(billingObjectPage.isJBFlagCreateParentAccountUnchecked(),\n\t\t\t\t\t\t\"JB Flag Create Parent Account is unchecked\", \n\t\t\t\t\t\t\"JB Flag Create Parent Account is NOT unchecked\");\n\t\t\t\t\n\t\t\t\tbillingObjectPage.navigateToAriaHierarchy();\n\t\t\t\t\n\t\t\t\tString ariaDealershipAccountNo_InAH_AfterIntegration = ariaHierarchyPage.labelAriaDealershipAccountNo_Value.getText();\n\t\t\t\t\n\t\t\t\tAssertions.verify(\t!\t(ariaDealershipAccountNo_InAH_AfterIntegration.equals(\"\")||ariaDealershipAccountNo_InAH_AfterIntegration.equals(\" \")),\n\t\t\t\t\t\t\"Aria Dealership Account No = \" + ariaDealershipAccountNo_InAH_AfterIntegration,\n\t\t\t\t\t\t\"Aria Dealership Account No is NOT <populated>\");\n\t\t\t\t\n\t\t\t\thomePage.logout();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Aria API Validations:\n\t\t\t\t\n\t\t\t\t//Product Account\n\t\t\t\tAssertions.info(\"======== Aria side API Validations after Integration ========\");\n\t\t\t\tString productNo = ariaProductAccountNo_InBO_AfterIntegration;\n\t\t\t\tboolean isProductExists = AriaAPIHelper.verifyIfProductExistsInAria(productNo);\n\t\t\t\tAssertions.verify(isProductExists, \n\t\t\t\t\t\t\"Product with number \"+productNo+\" exists in the Aria.\", \n\t\t\t\t\t\t\"Product with number \"+productNo+\" does NOT exists in the Aria.\");\n\t\t\t\t\n\t\t\t\tboolean isSuppPlanAssigned = AriaAPIHelper.checkIfSuppPlanIsAssigned(productNo);\n\t\t\t\tAssertions.verify(isSuppPlanAssigned, \n\t\t\t\t\t\t\"Supplemental Plan is assigned to the Product Account with number \"+productNo+\".\", \n\t\t\t\t\t\t\"Supplemental Plan is NOT assigned to the Product Account with number \"+productNo+\".\");\n\t\t\t\t\n\t\t\t\tAcctHierarchyDetailsReturnElement acctHierarchyDetails = AriaAPIHelper.getAcctHierarchyDetailsElement(productNo);\n\t\t\t\tString actualResponsibilityLevel = AriaAPIHelper.getResponsibilityLevel_FromCode(acctHierarchyDetails.getRespLevelCd());\n\t\t\t\tString expectedResponsibilityLevel = \"Parent Pay\";\n\t\t\t\tAssertions.verify(\"Responsibility Level\", expectedResponsibilityLevel, actualResponsibilityLevel);\n\t\t\t\t\n\t\t\t\tString suppPlanName = AriaAPIHelper.getLatestAssignedSuppPlan(productNo).getPlanName();\n\t\t\t\tAssertions.verify(\"Supplemental Plan Name\", data.get(\"Opportunity Name\"), suppPlanName);\n\t\t\t\t\n\t\t\t\t//Invoice Date\n\t\t\t\tInvoiceHistoryReturnElement invoiceHistory = AriaAPIHelper.getLatestInvoiceFromInvoiceHistory(productNo);\n\t\t\t\tif (invoiceHistory==null){\n\t\t\t\t\tAssertions.info(\"No Invoice History\");\n\t\t\t\t} else {\n\t\t\t\t\tString invoiceDateFromApi = (invoiceHistory.getPostingDate().split(\" \")[0]);\n\t\t\t\t\t\n\t\t\t\t\tDateTimeFormatter \treceivedFormat = DateTimeFormatter.ofPattern(\"uuuu-MM-dd\"),\n\t\t\t\t\t\t\trequiredFormat = DateTimeFormatter.ofPattern(\"MM/dd/yyyy\");\n\t\t\t\t\tLocalDate date = LocalDate.parse(invoiceDateFromApi, receivedFormat);\n\t\t\t\t\tString actualInvoiceDate = date.format(requiredFormat);\n\t\t\t\t\t\n\t\t\t\t\tString splitDate[] = billingStartDate_InBO.split(\"/\");\n\t\t\t\t\tLocalDate billingStartDate_InDate = LocalDate.of(Integer.valueOf(splitDate[2]), Integer.valueOf(splitDate[0]), Integer.valueOf(splitDate[1]));\n\t\t\t\t\tString expectedInvoiceDate = billingStartDate_InDate.format(requiredFormat);//date2.format(requiredFormat);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tAssertions.verify(\"Invoice Date\", expectedInvoiceDate, actualInvoiceDate);\n\t\t\t\t\t\n\t\t\t\t\t//Invoice Details\n\t\t\t\t\tString invoiceNo = invoiceHistory.getInvoiceNo().toString();\n\t\t\t\t\tInvoiceLineItemsReturnElement invoiceLineItem = AriaAPIHelper.getLatestInvoiceLineItem(productNo, invoiceNo);\n\t\t\t\t\tString actualUnits = invoiceLineItem.getUnits().toString();\n\t\t\t\t\tString actualRatePerUnit = invoiceLineItem.getRatePerUnit().toString();\n\t\t\t\t\tString actualAmount = invoiceLineItem.getAmount().toString();\n\t\t\t\t\t//TODO\n\t\t\t\t\tDouble expectedUnitsDoubleValue = Double.valueOf(EdmundsUtil.getUnitsForToday(TimeZone.getTimeZone(\"PST\"))); \n\t\t\t\t\tDouble expectedRatePerUnitDoubleValue = Double.valueOf(\"1000\");\n\t\t\t\t\tDouble expectedAmountDoubleValue = expectedUnitsDoubleValue*expectedRatePerUnitDoubleValue;\n\t\t\t\t\tString expectedUnits = //EdmundsUtil.getDecimalFormat(\"#0.00\", expectedUnitsDoubleValue);\n\t\t\t\t\t\n\t\t\t\t\t(actualUnits.split(\"\\\\.\")[1].length()==1)? \n\t\t\t\t\t\t\tEdmundsUtil.getDecimalFormat(\"#0.0\", expectedUnitsDoubleValue):\n\t\t\t\t\t\t\t\tEdmundsUtil.getDecimalFormat(\"#0.00\", expectedUnitsDoubleValue);\n\t\t\t\t\t\n\t\t\t\t\tString expectedRatePerUnit = EdmundsUtil.getDecimalFormat(\"#0.0\", expectedRatePerUnitDoubleValue);\n\t\t\t\t\tString expectedAmount = (actualAmount.split(\"\\\\.\")[1].length()==1)? \n\t\t\t\t\t\t\tEdmundsUtil.getDecimalFormat(\"#0.0\", expectedAmountDoubleValue):\n\t\t\t\t\t\t\t\tEdmundsUtil.getDecimalFormat(\"#0.00\", expectedAmountDoubleValue);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tAssertions.verify(\"Units\", expectedUnits, actualUnits);\n\t\t\t\t\t\t\tAssertions.verify(\"Rate Per Unit\", expectedRatePerUnit, actualRatePerUnit);\n\t\t\t\t\t\t\tAssertions.verify(\"Amount\", expectedAmount, actualAmount);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Supplemental Fields\n\t\t\t\t\t\t\tMap<String, String> suppFields = AriaAPIHelper.getSuppFields(productNo);\n\t\t\t\t\t\t\tString cddId = suppFields.get(\"CDDID\");\n\t\t\t\t\t\t\tString bundleId = suppFields.get(\"BundleID\");\n\t\t\t\t\t\t\tAssertions.verify(!cddId.isEmpty(), \n\t\t\t\t\t\t\t\t\t\"CDD ID = \" + cddId +\".\",\n\t\t\t\t\t\t\t\t\t\"CDD ID is NOT populated.\");\n\t\t\t\t\t\t\tAssertions.verify(!bundleId.isEmpty(), \n\t\t\t\t\t\t\t\t\t\"Bundle ID = \" + bundleId +\".\",\n\t\t\t\t\t\t\t\t\t\"Bundle ID is NOT populated.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tAssertions.fail(\"Aria Integration\");\n\t\t\t\thomePage.logout();\n\t\t\t}\n\t\t\tAssertions.info(\"Use Case : \" + useCaseDetails.get(\"Use Case ID\") + \" completed.\");\n\t\t} catch (Exception e) {\n\t\t\tAssertions.fail(\"Use case could NOT be completed.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void onBuyPressed() {\n PayPalPayment payment = new PayPalPayment(new BigDecimal(String.valueOf(totalAmount)), \"USD\", \"Total Price\",\n PayPalPayment.PAYMENT_INTENT_SALE);\n\n Intent intent = new Intent(this, PaymentActivity.class);\n\n // send the same configuration for restart resiliency\n intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);\n\n intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);\n\n startActivityForResult(intent, 0);\n }", "@RequestMapping(value = \"confirmpurchase/v1/wallets/{walletId}/serviceproviders/{spId}/widgets/{widgetId}\", method = RequestMethod.GET)\n public TicketPurchaseResponse confirmPurchaseV1(@PathVariable(value = \"walletId\") String walletId,\n @PathVariable(value = \"spId\") String spId, @PathVariable(value = \"widgetId\") String widgetId) {\n LOG.info(\"########confirmPurchaseV1 started\");\n TicketPurchaseResponse ticketPurchaseResponse = null;\n String result = \"Success\";\n String productRef;\n GenerateProductIDResponse generateProductIDResponse;\n String status = \"success\";\n try {\n /* MIFAREHttpClient mifareClient = new MIFAREHttpClient(DIGITIZE_BASE_URI, GENERATE_PRODUCT_REFERENCE); */\n // MIFAREHttpClient mifareClient = new MIFAREHttpClient.Builder().serviceURL(DIGITIZE_BASE_URI)\n // .apiURL(GENERATE_PRODUCT_REFERENCE).build();\n GenerateProductIDRequest request = new GenerateProductIDRequest();\n RequestContextV1 requestContext = new RequestContextV1();\n requestContext.setServiceProviderId(spId);\n String idRequest = \"\" + System.currentTimeMillis();\n requestContext.setCorrelationId(idRequest);\n requestContext.setRequestId(idRequest);\n request.setRequestContext(requestContext);\n Products products = new Products();\n products.setProductTypeId(widgetId);\n productRef = UUID.randomUUID().toString();\n products.setSpProductReference(productRef);\n request.setProductOrders(new ArrayList<>(Arrays.asList(products)));\n \n /** calling seglan service InitPurchaseOrder API if serviceProviderId is NAME_CRTM */\n if (spId.equals(configBean.getCrtmServiceProviderId())) {\n InitPurchaseOrderRequest InitPurchaseOrderRequest = new InitPurchaseOrderRequest();\n InitPurchaseOrderRequest.setDeviceId(\"1234\");\n InitPurchaseOrderRequest.setGoogleAccountId(\"gsrini@gmail.com\");\n InitPurchaseOrderRequest.setProduct(widgetId);\n InitPurchaseOrderResponse initPurchaseOrderResponse = crtmService.processInitPurchaseOrder(InitPurchaseOrderRequest);\n if (!initPurchaseOrderResponse.getResponseCode().equals(\"00\")) {\n status = \"failed\";\n result = \"failed\";\n }\n ticketPurchaseResponse = TicketPurchaseResponse.builder().status(status).ticketId(productRef)\n .digitalTicketId(initPurchaseOrderResponse.getM2gReference()).build();\n } else {\n Header[] headers = new Header[] {\n new BasicHeader(\"content-type\", ContentType.APPLICATION_JSON.getMimeType())};\n // generateProductIDResponse = mifareClient.invokePost(request, GenerateProductIDResponse.class, headers);\n generateProductIDResponse = utils.postRequestWithAbsoluteURL1(request, configBean, configBean.getDIGITIZE_BASE_URI() + configBean.getGENERATE_PRODUCT_REFERENCE(),\n GenerateProductIDResponse.class);\n ticketPurchaseResponse = TicketPurchaseResponse.builder()\n .status(generateProductIDResponse.getResponseContext().getResponseMessage()).ticketId(productRef)\n .digitalTicketId(generateProductIDResponse.getReferences().get(0).getM2gReference()).build();\n result = JsonUtil.toJSON(generateProductIDResponse);\n }\n LOG.info(\"########confirmPurchaseV1 result:\" + result);\n } catch (Exception e) {\n LOG.info(\"#Error occurred during confirm purchase:\" + e);\n result = \"failed\";\n LOG.info(\"########confirmPurchaseV1 result:\" + result);\n ticketPurchaseResponse = TicketPurchaseResponse.builder().status(result).build();\n }\n return ticketPurchaseResponse;\n }", "private void checkout() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter your Name :\");\n\t\t\tscan.nextLine();\n\t\t\tCartController.getInstance().generateBill(scan.nextLine());\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n--------------No Product Available in Cart for Checkout-----------------\\n\");\n\t\t}\n\t}", "public void navigateToBaseActivity() {\n\n //merchantKey = \"gtKFFx\"; //Testing\n merchantKey = \"ImrH8w\"; //Live\n //merchantKey = ((EditText) findViewById(R.id.editTextMerchantKey)).getText().toString();\n // String amount = ((EditText) findViewById(R.id.editTextAmount)).getText().toString();\n // String email = ((EditText) findViewById(R.id.editTextEmail)).getText().toString();\n\n // String value = environmentSpinner.getSelectedItem().toString();\n int environment;\n // String TEST_ENVIRONMENT = getResources().getString(R.string.test);\n // if (value.equals(TEST_ENVIRONMENT))\n //environment = PayuConstants.MOBILE_STAGING_ENV;\n // else\n environment = PayuConstants.PRODUCTION_ENV;\n\n userCredentials = merchantKey + \":\" + \"anafali2000@gmail.com\";// + new AppPreferences(PlaceOrderActivity.this).getEmail();\n\n //TODO Below are mandatory params for hash genetation\n mPaymentParams = new PaymentParams();\n /**\n * For Test Environment, merchantKey = \"gtKFFx\"\n * For Production Environment, merchantKey should be your live key or for testing in live you can use \"0MQaQP\"\n */\n mPaymentParams.setKey(merchantKey);\n mPaymentParams.setAmount(String.valueOf(discountedAmount));\n mPaymentParams.setProductInfo(\"FarmFresh24\");\n mPaymentParams.setFirstName(new AppPreferences(PlaceOrderActivity.this).getFname());\n mPaymentParams.setEmail(new AppPreferences(PlaceOrderActivity.this).getEmail());\n\n /*\n * Transaction Id should be kept unique for each transaction.\n * */\n mPaymentParams.setTxnId(\"\" + System.currentTimeMillis());\n\n /**\n * Surl --> Success url is where the transaction response is posted by PayU on successful transaction\n * Furl --> Failre url is where the transaction response is posted by PayU on failed transaction\n */\n mPaymentParams.setSurl(\"https://payu.herokuapp.com/success\");\n mPaymentParams.setFurl(\"https://payu.herokuapp.com/failure\");\n\n /*\n * udf1 to udf5 are options params where you can pass additional information related to transaction.\n * If you don't want to use it, then send them as empty string like, udf1=\"\"\n * */\n mPaymentParams.setUdf1(\"udf1\");\n mPaymentParams.setUdf2(\"udf2\");\n mPaymentParams.setUdf3(\"udf3\");\n mPaymentParams.setUdf4(\"udf4\");\n mPaymentParams.setUdf5(\"udf5\");\n\n /**\n * These are used for store card feature. If you are not using it then user_credentials = \"default\"\n * user_credentials takes of the form like user_credentials = \"merchant_key : user_id\"\n * here merchant_key = your merchant key,\n * user_id = unique id related to user like, email, phone number, etc.\n * */\n mPaymentParams.setUserCredentials(userCredentials);\n\n //TODO Pass this param only if using offer key\n //mPaymentParams.setOfferKey(\"cardnumber@8370\");\n\n //TODO Sets the payment environment in PayuConfig object\n payuConfig = new PayuConfig();\n payuConfig.setEnvironment(environment);\n\n //TODO It is recommended to generate hash from server only. Keep your key and salt in server side hash generation code.\n //generateHashFromServer(mPaymentParams);\n\n /**\n * Below approach for generating hash is not recommended. However, this approach can be used to test in PRODUCTION_ENV\n * if your server side hash generation code is not completely setup. While going live this approach for hash generation\n * should not be used.\n * */\n String salt = \"BBq8CTgS\"; //Live\n // String salt = \"eCwWELxi\"; //Test\n generateHashFromSDK(mPaymentParams, salt);\n\n }", "public static void main (String[] args) {\n\t\tVindiciaClient.getInstance();\n\t\t// Create a billing plan\n\t\tBillingPlanServiceImpl bpService = new BillingPlanServiceImpl();\n\t\tbpService.createBilingPlan(\"test_product_billing_plan\");\n\t\t// Create a product and assign the billing plan to it \n\t\tProductServiceImpl prodService = new ProductServiceImpl();\n\t\tprodService.createProduct(\"test_product\", \"test_product_billing_plan\");\n\t\t\n\t\t// Move on to creating a subscription\n\t\tSubscriptionServiceImpl subscriptionService = new SubscriptionServiceImpl();\n\t\tString emailAddress = \"test@hallmarklabs.com\";\n\t\t// Credit card payment method\n\t\tAddress address = subscriptionService.fillAddress(\"3130 Wilshire\", \"LA\", \"CA\", \"90021\", \"US\");\n\t\tPaymentMethod pm = subscriptionService.fillPaymentMethod(emailAddress, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"maryamistesting\", address, PaymentMethodType.CreditCard, \"4111111111111111\", \"201608\", \"CVN\", \"123\");\n\t\t\n\t\t// Create a subscription given the email address, payment method and a test product\n\t\tsubscriptionService.createSubscription(emailAddress, pm, \"test_product\");\n\t}", "@Override\n public void onIabPurchaseFinished(IabResult result, Purchase purchase) {\n if (result.isSuccess()) {\n Toast.makeText(getApplicationContext(), \"!! Purchase Success !!\" + result,\n Toast.LENGTH_SHORT).show();\n return;\n } else if (result.isFailure()) {\n Toast.makeText(getApplicationContext(), \"!! Purchase Failed !!\" + result,\n Toast.LENGTH_SHORT).show();\n MainConsumer();\n try {\n mHelper.launchPurchaseFlow(MainActivity.this, inappId, 1001,\n mPurchaseFinishedListener, null);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return;\n } else if (purchase.getSku().equals(\"SKU_GAS\")) {\n Toast.makeText(getApplicationContext(), \"!! Gas \\n Consumed !!\",\n Toast.LENGTH_SHORT).show();\n // consume the gas and update the UI\n } else if (purchase.getSku().equals(\"SKU_PREMIUM\")) {\n Toast.makeText(getApplicationContext(), \"!! Premium !!\",\n Toast.LENGTH_SHORT).show();\n // give user access to premium content and update the UI\n } else if (purchase.getSku().equals(inappId)) {\n Toast.makeText(getApplicationContext(), \"!! Android.Test.Purchased !!\",\n Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tpublic void payCrew() {\n\t\tSystem.out.println(\"Crew paid!, You can start sailing now!\");\n\t\tgame.loading();\n\t}", "@Test(priority = 3)\n\tpublic void switchToFreePlanOnKeepPlan() throws InterruptedException {\n\t\tThread.sleep(1000L);\n\t\tswitchToPlan();\n\t\tbillingpageobject.KeepPlanButton().click();\n\t\tvalidateBillingPageAssertion();\n\t\tlog.info(\"Testcase-2 passed since user clicked on Keep plan button & landed on Account Plan page\");\n\t}", "public void DataPackPurchaseCommonActivity(AndroidDriver<AndroidElement> driver, String methodName, String platformVersion, String ActualSMS, int i) throws NoSuchElementException, MalformedURLException, InterruptedException, Exception, IOException {\n\t\t \n\t\t AllPackCommonActivity Activity= new AllPackCommonActivity();\n \n\t\t //Integer GPPointsBP = Integer.valueOf((driver.findElementById(\"com.portonics.mygp:id/txtGpPoint\").getText()).replaceAll(\"\\\\D+\",\"\"));\n\t\t\n\t\t String PhoneNumber = driver.findElementById(\"com.portonics.mygp:id/UserPhoneNumber\").getText();\n\t\n\t\t boolean RatePlanPrepaid = Arrays.asList(Prepaid).contains(PhoneNumber);\n\t\t boolean RatePlanPostpaid = Arrays.asList(Postpaid).contains(PhoneNumber);\n\t\t boolean RatePlanXplore = Arrays.asList(Xplore).contains(PhoneNumber);\n\t\t \n\t\t if(RatePlanPrepaid==true) {\n\t\t\t ServiceClass = \"prepaid\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t\t \n\t\t if(RatePlanPostpaid==true) {\n\t\t\t ServiceClass = \"postpaid\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t\t \n\t\t if(RatePlanXplore==true) {\n\t\t\t ServiceClass = \"Xplore\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t \n\t\t if (ServiceClass.equals(\"prepaid\")) {\n\n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t\t Thread.sleep(6000);\n\t\t\t \n\t\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Internet']\").click();\n\t\t\t Integer InternetVolumeBP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t \n\t\t\t if (platformVersion.equals(\"6\")) {\n\t \t driver.findElementByAccessibilityId(\"Navigate up\").click();\n\t }\n\t else {\n\t \t driver.navigate().back();\n\t }\t \n\t\t\t \n\t\t\t Map<String, Object> command = ImmutableMap.of(\"command\", \"am start -a android.intent.action.VIEW -d \\\"mygp://pack/internet/\"+ InternetPacks[i][1] +\"\\\" com.portonics.mygp\");\n\t\t\t driver.executeScript(\"mobile:shell\", command);\n\t\t\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Confirm Purchase']\").click();\n\t\t\t Activity.takeGeneralScreenshot(driver, Location, 0);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Go to Home']\").click();\n\t\t\t Activity.takeReportedScreenshot(driver, methodName);\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserInternetBalanceDetails\").click();\n\t\t\t Thread.sleep(4000);\n\t\t\t Integer InternetVolumeAP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t int InternetVolume_With_Bonus_MB= InternetVolumeAP-InternetVolumeBP;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Emergency']\").click();\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Main Account']\").click();\n\t\t\t Thread.sleep(6000);\n\t\t\t \n\t\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t \n\t\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n\t\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t\t \n\t\t\t String csv = \"Prepaid.csv\";\n\t\t CSVWriter writer = new CSVWriter(new FileWriter(csv,true));\n\t\t \n\t\t String [] Reportheader = \"Service class,Product Nanme,MSISDN,Product ID,Date,MA Before Purchase,MA After Purchase,Charged,DA value before purchase,DA value after purchase,DA value changed,Expected volume,Activation SMS,Bonus SMS\".split(\",\");\n\t\t String [] Purchaserecord = {ServiceClass, InternetPacks[i][0], PhoneNumber, \"\", PurchaseTime.toString(), String.valueOf(AccountBalanceBPF), String.valueOf(AccountBalanceAPF), String.valueOf(BalanceDeductedF), String.valueOf(InternetVolumeBP), String.valueOf(InternetVolumeAP), String.valueOf(InternetVolume_With_Bonus_MB)};\n\t\t \n\t\t List<String[]> entries = new ArrayList<>();\n\t\t \n\t\t entries.add(Purchaserecord);\n\t\t writer.writeAll(entries); \n\t\t writer.flush();\n\t\t writer.close();\n\t\t } \n\t\t \n\t\t else {\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t\t Thread.sleep(8000);\n\t\t\t \n\t\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Internet']\").click();\n\t\t\t Integer InternetVolumeBP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t \n\t\t\t if (platformVersion.equals(\"6\")) {\n\t \t driver.findElementByAccessibilityId(\"Navigate up\").click();\n\t }\n\t else {\n\t \t driver.navigate().back();\n\t }\t \n\t\t\t \n\t\t\t Map<String, Object> command = ImmutableMap.of(\"command\", \"am start -a android.intent.action.VIEW -d \\\"mygp://pack/internet/\"+ InternetPacks[i][1] +\"\\\" com.portonics.mygp\");\n\t\t\t driver.executeScript(\"mobile:shell\", command);\n\t\t\n\t\t\t Thread.sleep(2000);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Confirm Purchase']\").click();\n\t\t\t Activity.takeGeneralScreenshot(driver, Location, 0);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Go to Home']\").click();\n\t\t\t Activity.takeReportedScreenshot(driver, methodName);\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserInternetBalanceDetails\").click();\n\t\t\t Thread.sleep(4000);\n\t\t\t Integer InternetVolumeAP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t int InternetVolume_With_Bonus_MB= InternetVolumeAP-InternetVolumeBP;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Main Account']\").click();\n\t\t\t Thread.sleep(8000);\n\t\t\t \n\t\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t \n\t\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n\t\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t\t \n\t\t\t String csv = \"Postpaid.csv\";\n\t\t CSVWriter writer = new CSVWriter(new FileWriter(csv,true));\n\t\t \n\t\t String [] Reportheader = \"Service class,Product Nanme,MSISDN,Product ID,Date,MA Before Purchase,MA After Purchase,Charged,DA value before purchase,DA value after purchase,DA value changed,Expected volume,Activation SMS,Bonus SMS\".split(\",\");\n\t\t String [] Purchaserecord = {ServiceClass, InternetPacks[i][0], PhoneNumber, \"\", PurchaseTime.toString(), String.valueOf(AccountBalanceBPF), String.valueOf(AccountBalanceAPF), String.valueOf(BalanceDeductedF), String.valueOf(InternetVolumeBP), String.valueOf(InternetVolumeAP), String.valueOf(InternetVolume_With_Bonus_MB)};\n\t\t \n\t\t List<String[]> entries = new ArrayList<>();\n\t\t \n\t\t entries.add(Purchaserecord);\n\t\t writer.writeAll(entries); \n\t\t writer.flush();\n\t\t writer.close();\n\t\t }\n\n\t\t \n\t \n//\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n//\t\t \n//\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Thread.sleep(4000);\n//\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t \n\t\t \n\t\t \n\t\t //driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t \n\t\t //Thread.sleep(3000);\n\t\t \n//\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\n\t\n\t\t \n\t\t //Activity.scrollDownForData(driver, InternetPacks, i,0);\n\t\n\t\t \n\n//\t\t Activity.LogOutActivity(driver);\n//\t\t Activity.Login(driver,MSISDN, 1);\n\t\t \n//\t\t Integer GPPointsAP = Integer.valueOf((driver.findElementById(\"com.portonics.mygp:id/txtGpPoint\").getText()).replaceAll(\"\\\\D+\",\"\"));\n//\t\t int GPPoints = GPPointsAP-GPPointsBP;\n\t\t \n\t\t \n\t\t \n\t\t // \n\t\t \n\t\t \n//\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Thread.sleep(4000);\n//\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n//\t\t \n//\t\t System.out.println(AccountBalanceAPF);\n\t\t \n//\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t\t \n//\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n//\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t \n\t\t \n\t\t //System.out.println(BalanceDeductedF);\n\t\t \n\t\t // String SMS= new AllPackCommonActivity().ReadSMS(driver, platformVersion);\n\t\t\n // String SMS= \"1GB Internet started successfully with 10% bonus. Total fee 88.99Tk, valid 7 days (Activation + 6 days). To Check Internet balance & validity click mygp.li/check or dial *121*1*4#. To Cancel, dial *121*3041#.\";\n\t\t\n\t\t // Assert.assertEquals(SMS, driver.findElementByXPath(\"(//android.widget.FrameLayout[@content-desc=\\\"Message from GP Internet\\\"])[4]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView\").getText());\n\t\t // Assert.assertEquals(ActualSMS, SMS);\n\t\t \n//\t\t Pattern Data_Volume = Pattern.compile(InternetPacks[i][1]);\n//\t Pattern Price = Pattern.compile(InternetPacks[i][4]);\n//\t Pattern Validity = Pattern.compile(InternetPacks[i][5]);\n//\t //Pattern GP_Points = Pattern.compile(InternetPacks[i][6]);\n//\t Pattern Bonus_Percent = Pattern.compile(InternetPacks[i][3]);\n//\t Pattern DynamicLink = Pattern.compile(\"mygp.li/check\");\n\t \n//\t Matcher Data_VolumeMatcher = Data_Volume.matcher(SMS);\n//\t Matcher PriceMatcher = Price.matcher(SMS);\n//\t Matcher ValidityMatcher = Validity.matcher(SMS);\n//\t //Matcher GP_PointsMatcher = GP_Points.matcher(String.valueOf(GPPoints));\n//\t Matcher Bonus_PercentMatcher = Bonus_Percent.matcher(SMS);\n//\t Matcher DynamicLinkMatcher = DynamicLink.matcher(SMS);\n\t \n\t \n \n//\t while (Data_VolumeMatcher.find()) \n//\t {\n//\t System.out.println(\"Data Volume: \"+Data_VolumeMatcher.group()); \n//\t }\n//\t \n//\t while (PriceMatcher.find()) \n//\t {\n//\t System.out.println(\"Price: \"+PriceMatcher.group());\n//\t }\n//\t \n//\t while (ValidityMatcher.find()) \n//\t {\n//\t System.out.println(\"Validity: \"+ValidityMatcher.group());\n//\t }\n//\t \n//\t while (Bonus_PercentMatcher.find()) \n//\t {\n//\t System.out.println(\"Bonus_%: \"+Bonus_PercentMatcher.group());\n//\t }\n\t \n//\t while (GP_PointsMatcher.find()) \n//\t {\n//\t System.out.println(\"GP_Points: \"+GP_PointsMatcher.group());\n//\t }\n\t \n//\t while (DynamicLinkMatcher.find()) \n//\t {\n//\t System.out.println(\"MyGP Dynamic Link: \"+DynamicLinkMatcher.group());\n//\t }\n\t \n\t //System.out.println(\"InternetVolume With Bonus MB: \" + InternetVolume_With_Bonus_MB); \n\t \n\t //System.out.println(\"SMS Text: \" + SMS); \n\t \n\t \n\t //System.out.println(Data_VolumeMatcher);\n\t \n\t\n \n //System.out.println(\"Pack Name: \" + InternetPacks[i][0]);\n \n//\t \tcsvWriter.flush();\n//\t \tcsvWriter.close();\n\n\t\t // System.out.println(driver.findElementByXPath(\"(//android.widget.FrameLayout[@content-desc=\\\"Message from GP Internet\\\"])[4]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView\").getText()); \t \n\t }", "@Test(priority = 2)\n\tpublic void accountPlan() throws InterruptedException {\n\t\t// log.info(\"Landed on Give Recog page\");\n\t\tselectAccountPlanSideNavbar();\n\t\tThread.sleep(1000L);\n\t\tvalidateBillingPageAssertion();\n\t\tlog.info(\"Testcase-1 passed since application landed on Manage page and Assertion passed\");\n\t}", "public void runSample(HttpServletRequest request) {\n try {\n this.printMessage(\"<html><head><title>Simple checkout result</title></head><body><div><pre>\");\n example.addOrderReferenceDetails(request.getParameter(\"SellerNote\"),\n request.getParameter(\"OrderReferenceId\"), request.getParameter(\"CustomNote\"),\n request.getParameter(\"StoreName\"), request.getParameter(\"Subtotal\"),\n request.getParameter(\"ShippingType\"), request.getParameter(\"RequestPaymentAuthorization\"));\n\n this.printMessage(\"Order Reference is set with provided details.\");\n this.printMessage(\"Now confirming this order reference...\");\n\n example.confirmOrderReference();\n this.printMessage(\"Order Reference is confirmed and \" + \"moved to 'OPEN' state\");\n this.printMessage(\"Now getting details for Authorization...\");\n\n int authOption = Integer.parseInt(request.getParameter(\"AuthorizeOption\"));\n if (!(authOption == 1 || authOption == 2)) {\n throw new OffAmazonPaymentsServiceException(\"Invalid Authorization Option.\");\n }\n\n boolean captureNow = false;\n String captureNowString = request.getParameter(\"DirectCapture\");\n if (captureNowString != null && captureNowString.equals(\"on\")) {\n captureNow = true;\n }\n String softDescriptor = request.getParameter(\"SoftDescriptor\");\n String sellerAuthorizationNote = request.getParameter(\"SellerAuthorizationNote\");\n String providerId = request.getParameter(\"ProviderId\");\n String creditAmount = request.getParameter(\"CreditAmount\");\n\n example.authorize(captureNow, authOption, softDescriptor, sellerAuthorizationNote, providerId, creditAmount);\n AuthorizationDetails authDetails = this.waitForAuthorizationNotification(captureNow);\n\n this.getPostAuthDetails();\n\n if (captureNow) {\n this.printMessage(\"Authorization with Capture is complete\");\n } else {\n CaptureResponse captureResponse = this.capture(authDetails, request.getParameter(\"softDescriptor\"),\n request.getParameter(\"sellerCaptureNote\"), providerId, creditAmount);\n this.waitForCaptureNotification(captureResponse.getCaptureResult().getCaptureDetails()\n .getAmazonCaptureId());\n this.printMessage(\"Capture for this Order Reference is complete\");\n\n ProviderCreditSummaryList providerCreditSummaryList = null;\n if (providerId != null && creditAmount != null) {\n providerCreditSummaryList = this.waitForCaptureDetailsWithProviderCreditSummaryList(captureResponse\n .getCaptureResult().getCaptureDetails().getAmazonCaptureId());\n getProviderCreditDetails(providerCreditSummaryList);\n }\n }\n this.printMessage(\"Now Closing the Order Reference...\");\n example.closeOrder();\n this.printMessage(\"Order Refernce Moved to CLOSED state.\");\n this.printMessage(\"Simple Checkout Example is complete.\");\n\n } catch (OffAmazonPaymentsServiceException ex) {\n outStream.println(\"Caught Exception: \" + ex.getMessage());\n outStream.println(\"Response Status Code: \" + ex.getStatusCode());\n outStream.println(\"Error Code: \" + ex.getErrorCode());\n outStream.println(\"Error Type: \" + ex.getErrorType());\n outStream.println(\"Request ID: \" + ex.getRequestId());\n outStream.println(\"XML: \" + ex.getXML());\n outStream.println(\"ResponseHeaderMetadata: \" + ex.getResponseHeaderMetadata());\n ex.printStackTrace(outStream);\n } finally {\n this.printMessage(\"</pre></div></body></html>\");\n }\n\n }", "public void setBillingEntity(String billingEntity) {\n this.billingEntity = billingEntity;\n }", "public void processInternalBilling(ReturnDocument rdoc) {\r\n\r\n if (ObjectUtils.isNull(rdoc.getOrderDocument())\r\n || !this.returnOrderBillingDao.hasAccountsForBilling(rdoc.getDocumentNumber()))\r\n return;\r\n\r\n String docNumber = rdoc.getDocumentNumber();\r\n\r\n String warehouseCode = rdoc.getOrderDocument().getWarehouseCd();\r\n\r\n Map<String, List<FinancialInternalBillingItem>> returnedOrderLines = this.returnOrderBillingDao\r\n .getReturnedOrderLines(docNumber);\r\n Set<String> keys = returnedOrderLines.keySet();\r\n Map<String, List<FinancialAccountingLine>> returnedAccountingLines = getReturnBillingAccountingLines(rdoc);\r\n Warehouse warehouse = rdoc.getOrderDocument().getWarehouse();\r\n\r\n if (warehouse == null)\r\n warehouse = StoresPersistableBusinessObject.getObjectByPrimaryKey(Warehouse.class,\r\n warehouseCode);\r\n\r\n for (String key : keys) {\r\n List<FinancialInternalBillingItem> lineItems = returnedOrderLines.get(key);\r\n List<FinancialAccountingLine> acctLines = returnedAccountingLines.get(key);\r\n if (warehouse != null && warehouse.isActive()) {\r\n FinancialCapitalAssetInformation capitalAssetInformation = null;\r\n String astInfoId = null;\r\n if (key.contains(\"-\") && (astInfoId = key.split(\"-\")[1]) != null) {\r\n capitalAssetInformation = new FinancialCapitalAssetInformation();\r\n MMCapitalAssetInformation assetInfo = SpringContext.getBean(\r\n BusinessObjectService.class).findBySinglePrimaryKey(\r\n MMCapitalAssetInformation.class, astInfoId);\r\n if (assetInfo != null) {\r\n adapt(assetInfo, capitalAssetInformation);\r\n List<MMCapitalAssetInformationDetail> assetInformationDetails = assetInfo\r\n .getCapitalAssetInformationDetails();\r\n if (assetInformationDetails != null) {\r\n for (MMCapitalAssetInformationDetail source : assetInformationDetails) {\r\n FinancialCapitalAssetInformationDetail target = new FinancialCapitalAssetInformationDetail();\r\n adapt(source, target);\r\n capitalAssetInformation.getCapitalAssetInformationDetails().add(\r\n target);\r\n }\r\n }\r\n }\r\n }\r\n DocumentHeader ibDocHeader = processInternalBilling(warehouse, lineItems,\r\n acctLines, capitalAssetInformation);\r\n if (ibDocHeader != null) {\r\n String ibDocNumber = ibDocHeader.getDocumentNumber();\r\n if (astInfoId != null) {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n if (detail.getOrderDetailId().toString().equals(astInfoId)) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n else {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // LOG error here\r\n LOG.warn(\"Warehouse \" + lineItems.get(0).getWarehouseCode()\r\n + \" is not valid, so batch did not post charges to the depts\");\r\n }\r\n }\r\n\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonInappBilling();\n//\t\t\t\tonBuyPressed();\n\t\t\t}", "public void navigateToBaseActivity() throws JSONException {\n\n String merchantKey = jsonObject.getString(\"merchantKey\");\n String amount = jsonObject.getString(\"amount\");\n String email = jsonObject.getString(\"email\");\n String value = jsonObject.getString(\"value\");\n String firstName = jsonObject.getString(\"firstName\");\n String phone = jsonObject.getString(\"phone\");\n String txnId = jsonObject.getString(\"txnId\");\n String sUrl = jsonObject.getString(\"sUrl\");\n String fUrl = jsonObject.getString(\"fUrl\");\n String udf1 = jsonObject.getString(\"udf1\");\n String udf2 = jsonObject.getString(\"udf2\");\n String udf3 = jsonObject.getString(\"udf3\");\n String udf4 = jsonObject.getString(\"udf4\");\n String udf5 = jsonObject.getString(\"udf5\");\n salt = jsonObject.getString(\"salt\");\n int environment;\n if (value.equals(\"test\"))\n environment = PayuConstants.STAGING_ENV;\n else\n environment = PayuConstants.PRODUCTION_ENV;\n String userCredentials = merchantKey + \":\" + email;\n mPaymentParams = new PaymentParams();\n mPaymentParams.setKey(merchantKey);\n mPaymentParams.setAmount(amount);\n mPaymentParams.setProductInfo(\"GoCharge power bank charges\");\n mPaymentParams.setFirstName(firstName);\n mPaymentParams.setEmail(email);\n mPaymentParams.setPhone(phone);\n mPaymentParams.setTxnId(txnId);\n mPaymentParams.setSurl(sUrl);\n mPaymentParams.setFurl(fUrl);\n mPaymentParams.setNotifyURL(mPaymentParams.getSurl()); //for lazy pay\n mPaymentParams.setUdf1(udf1);\n mPaymentParams.setUdf2(udf2);\n mPaymentParams.setUdf3(udf3);\n mPaymentParams.setUdf4(udf4);\n mPaymentParams.setUdf5(udf5);\n mPaymentParams.setUserCredentials(userCredentials);\n payuConfig = new PayuConfig();\n payuConfig.setEnvironment(environment);\n generateHashFromSDK(mPaymentParams, salt);\n\n }", "public void makePayment(String amount, String paymentRef) {\n JudoSDKManager.setKeyAndSecret(getApplicationContext(), API_TOKEN, API_SECRET);\n\n// Set environment to Sandbox\n JudoSDKManager.setSandboxMode(getApplicationContext());\n\n String customerRef = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n Intent intent = JudoSDKManager.makeAPayment(getApplicationContext(), JUDO_ID, \"GBP\", amount, paymentRef, customerRef, null);\n startActivityForResult(intent, ACTION_CARD_PAYMENT);\n }", "public void run() {\n\t\t\tfinal double IDLE_PERIOD = workloadConfiguration.getPaymentPeriod();\n\n\t\t\ttry {\n\t\t\t\t// Initial payment cycle time is the time since workload startup.\n\t\t\t\tdouble lastCycleTime = Utilities.getTime() - startTime;\n\n\t\t\t\t// Pay until interrupted\n\t\t\t\twhile (!Thread.interrupted()) {\n\t\t\t\t\tdouble cycleStartTime = Utilities.getTime();\n\n\t\t\t\t\t// Distributes quota (tokens) to the builders.\n\t\t\t\t\tpayAllBuilders(lastCycleTime);\n\n\t\t\t\t\t// Idle for the specified period\n\t\t\t\t\tUtilities.idle(IDLE_PERIOD - (Utilities.getTime() - cycleStartTime));\n\n\t\t\t\t\t// Measure the time taken by the cycle just completed, including any idle time.\n\t\t\t\t\tlastCycleTime = Utilities.getTime() - cycleStartTime;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\treturn;\n\t\t\t} catch (Throwable e) {\n\t\t\t\tEvent.RUNTIME_EXCEPTION.issue(e, \"Failure in payer thread.\");\n\t\t\t}\n\t\t}", "public void setupIAB(){\n Log.d(TAG, \"Starting setup.\");\n /* mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() {\n public void onIabSetupFinished(IabResult result) {\n Log.d(TAG, \"Setup finished.\");\n\n if (!result.isSuccess()) {\n // Oh noes, there was a problem.\n complain(\"Problem setting up in-app billing: \" + result);\n return;\n }\n\n // Have we been disposed of in the meantime? If so, quit.\n if (mHelper == null) return;\n\n // IAB is fully set up. Now, let's get an inventory of stuff we own.\n Log.d(TAG, \"Setup successful. Querying inventory.\");\n mHelper.queryInventoryAsync(mGotInventoryListener);\n }\n });*/\n}", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(R.layout.activity_razorpay);\n Intent intent = getIntent();\n Checkout.preload(getApplicationContext());\n startPayment(intent);\n }", "public void onBuyGasButtonClicked(View arg0) {\n\t\tLog.d(TAG, \"Buy gas button clicked.\");\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// complain(\"No need! You're subscribed to infinite gas. Isn't that awesome?\");\n\t\t// return;\n\t\t// }\n\t\t// if (mTank >= TANK_MAX) {\n\t\t// complain(\"Your tank is full. Drive around a bit!\");\n\t\t// return;\n\t\t// }\n\t\t// launch the gas purchase UI flow.\n\t\t// We will be notified of completion via mPurchaseFinishedListener\n\t\tsetWaitScreen(true);\n\t\tLog.d(TAG, \"Launching purchase flow for gas.\");\n\t\t/*\n\t\t * TODO: for security, generate your payload here for verification. See\n\t\t * the comments on verifyDeveloperPayload() for more info. Since this is\n\t\t * a SAMPLE, we just use an empty string, but on a production app you\n\t\t * should carefully generate this.\n\t\t */\n//\t\tString payload = \"\";\n//\t\tmHelper.launchPurchaseFlow(GameRenderer.mStart, SKU_150000, RC_REQUEST,mPurchaseFinishedListener, payload);\n\t}", "public interface BillingService {\n /**\n * Attempts to charge the order to the credit card. Both successful and\n * failed transactions will be recorded.\n *\n * @return a receipt of the transaction. If the charge was successful, the\n * receipt will be successful. Otherwise, the receipt will contain a\n * decline note describing why the charge failed.\n */\n Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);\n}", "public void makePayment() {\r\n System.out.println(\"pay\");\r\n setPayed(true);\r\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent it = new Intent(MainActivity.this,BillsActivity.class);\n\t\t\t\tstartActivity(it);\n\t\t\t}", "void askBuyDevCards();", "public void onBuyGoldButtonClicked(View arg0) {\n\t\tLog.d(TAG, \"Buy gas button clicked.\");\n\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// complain(\"No need! You're subscribed to infinite gas. Isn't that awesome?\");\n\t\t// return;\n\t\t// }\n\t\t//\n\t\t// if (mTank >= TANK_MAX) {\n\t\t// complain(\"Your tank is full. Drive around a bit!\");\n\t\t// return;\n\t\t// }\n\n\t\t// launch the gas purchase UI flow.\n\t\t// We will be notified of completion via mPurchaseFinishedListener\n\t\tsetWaitScreen(true);\n\t\tLog.d(TAG, \"Launching purchase flow for gas.\");\n\n\t\t/*\n\t\t * TODO: for security, generate your payload here for verification. See\n\t\t * the comments on verifyDeveloperPayload() for more info. Since this is\n\t\t * a SAMPLE, we just use an empty string, but on a production app you\n\t\t * should carefully generate this.\n\t\t */\n//\t\tString payload = \"\";\n\n//\t\tmHelper.launchPurchaseFlow(GameRenderer.mStart, SKU_350000, RC_REQUEST,mPurchaseFinishedListener, payload);\n\t}", "@Test(groups = {\"smoke tests\"})\n public void validPurchase() {\n page.GetInstance(CartPage.class)\n .clickProceedToCheckoutButton() //to OrderAddressPage\n .clickProceedToCheckoutButton() //to OrderShippingPage\n .acceptTermsAndProceedToCheckout() //to OrderPaymentPage\n .clickPayByBankWireButton() //to OrderSummaryPage\n .clickIConfirmMyOrderButton(); //to OrderConfirmationPage\n\n // Then\n page.GetInstance(OrderConfirmationPage.class).confirmValidOrder(\"Your order on My Store is complete.\");\n }", "private void handleConfirmBillPayment() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tPaymentBiller request = new PaymentBiller();\n\t\t\tObjectFactory f = new ObjectFactory();\n\t\t\tCommonParam2 commonParam = f.createCommonParam2();\n\t\t\t\n\t\t\tcommonParam.setProcessingCode(f.createCommonParam2ProcessingCode(\"100601\"));\n\t\t\tcommonParam.setChannelId(f.createCommonParam2ChannelId(\"6018\"));\n\t\t\tcommonParam.setChannelType(f.createCommonParam2ChannelType(\"PB\"));\n\t\t\tcommonParam.setNode(f.createCommonParam2Node(\"WOW_CHANNEL\"));\n\t\t\tcommonParam.setCurrencyAmount(f.createCommonParam2CurrencyAmount(\"IDR\"));\n\t\t\tcommonParam.setAmount(f.createCommonParam2Amount(String.valueOf(billPayBean.getBillAmount())));\n\t\t\tcommonParam.setCurrencyfee(f.createCommonParam2Currencyfee(billPayBean.getFeeCurrency()));\n\t\t\tcommonParam.setFee(f.createCommonParam2Fee(String.valueOf(billPayBean.getFeeAmount())));\n\t\t\tcommonParam.setTransmissionDateTime(f.createCommonParam2TransmissionDateTime(PortalUtils.getSaveXMLGregorianCalendar(Calendar.getInstance()).toXMLFormat()));\n\t\t\tcommonParam.setRequestId(f.createCommonParam2RequestId(MobiliserUtils.getExternalReferenceNo(isystemEndpoint)));\n\t\t\tcommonParam.setAcqId(f.createCommonParam2AcqId(\"213\"));\n\t\t\tcommonParam.setReferenceNo(f.createCommonParam2ReferenceNo(String.valueOf(billPayBean.getReferenceNumber())));\n\t\t\tcommonParam.setTerminalId(f.createCommonParam2TerminalId(\"WOW\"));\n\t\t\tcommonParam.setTerminalName(f.createCommonParam2TerminalName(\"WOW\"));\n\t\t\tcommonParam.setOriginal(f.createCommonParam2Original(billPayBean.getAdditionalData()));\n\t\t\t\n\t\t\trequest.setCommonParam(commonParam);\n\t\t\tPhoneNumber phone = new PhoneNumber(this.getMobiliserWebSession().getBtpnLoggedInCustomer().getUsername());\n\t\t\trequest.setAccountNo(phone.getNationalFormat());\n\t\t\trequest.setBillerCustNo( billPayBean.getSelectedBillerId().getId()); \n\t\t\trequest.setDebitType(\"0\");\n\t\t\trequest.setInstitutionCode(billPayBean.getBillerId());\n\t\t\trequest.setProductID(billPayBean.getProductId());\n\t\t\trequest.setUnitId(\"0901\");\n\t\t\trequest.setProcessingCodeBiller(\"501000\");\n\t\t\t\n\t\t\tString desc1=\"Bill Payment\";\n\t\t\tString desc2= billPayBean.getBillerId();\n\t\t\tString desc3=\"\";\n\t\t\t\n\t\t\trequest.setAdditionalData1(desc1);\n\t\t\trequest.setAdditionalData2(desc2);\n\t\t\trequest.setAdditionalData3(desc3);\n\t\t\t\n\t\t\tPaymentBillerResponse response = new PaymentBillerResponse();\n\t\t\t\n\t\t\tresponse = (PaymentBillerResponse) webServiceTemplete.marshalSendAndReceive(request, \n\t\t\t\t\tnew WebServiceMessageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void doWithMessage(WebServiceMessage message) throws IOException,\n\t\t\t\t\t\tTransformerException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t((SoapMessage) message)\n\t\t\t\t\t.setSoapAction(\"com_btpn_biller_ws_provider_BtpnBillerWsTopup_Binder_paymentBiller\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tif (response.getResponseCode().equals(\"00\")) {\n\t\t\t\tbillPayBean.setStatusMessage(getLocalizer().getString(\"success.perform.billpayment\", this));\n\t\t\t\tsetResponsePage(new BankBillPaymentStatusPage(billPayBean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(MobiliserUtils.errorMessage(response.getResponseCode(), response.getResponseDesc(), getLocalizer(), this));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\tLOG.error(\"An exception was thrown\", e);\n\t\t}\n\t}", "public void makeAnotherPayment() {\n btnMakeAnotherPayment().click();\n }", "public void startBuying(View view) {\n\n startActivity(new Intent(this, Shopping_List.class));\n\n }", "public void validate_Billable_Task_Using_All_Customer_And_All_Project(String custListOption,String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tselectSingleDropDownItem(driver, AttSelectProjectListBox, projectName);\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}", "private void addPaymentStartEvent() {\n /*09th July 2019, Resolved Pyze library issue*/\n HashMap<String, Object> customAttributes = new HashMap<String, Object>();\n customAttributes.put(\"packageID\", String.valueOf(PackageID));\n customAttributes.put(\"userID\", String.valueOf(UserID));\n customAttributes.put(\"paymentType\", getIntent().getStringExtra(\"PaymentType\"));\n PyzeEvents.PyzeCommercePayment.postPaymentStarted(customAttributes);\n }", "public void execute(){\n\t\tnew PayCarOrderTask().execute();\n\t}", "public void performPayment() {\n payment.executePayment(amount);\n }", "Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);", "public void validate_Billable_Task_Using_New_Customer_And_New_Project(String custListOption,String custListName, String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tAttCustomerNameTextBox.sendKeys(custListName);\n\t\tAttProjectNameTextBox.sendKeys(projectName);\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttEnterDateInDateField.sendKeys(getTodaysDate());\n\t\tselectSingleDropDownItem(driver, AttSelectBillingType, billingType);\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}", "public final void launchIBidLive() {\n String format = NewDateHelper.INSTANCE.format(NewDateHelper.INSTANCE.getDateFromString(this.live_date), Constants.DATE_PATTERN_WEBSERVICE_PARAM);\n BidManager bidManager2 = this.bidManager;\n if (bidManager2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"bidManager\");\n }\n AuctionSalesListActivity auctionSalesListActivity2 = this.auctionSalesListActivity;\n if (auctionSalesListActivity2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"auctionSalesListActivity\");\n }\n bidManager2.launchIBidLiveFromProductDetail(auctionSalesListActivity2, this.branchId, format, false, false);\n }", "public void bufferBillingProjects() {\n int creationAttempts = this.workbenchConfigProvider.get().billing.bufferRefillProjectsPerTask;\n for (int i = 0; i < creationAttempts; i++) {\n bufferBillingProject();\n }\n }", "public static boolean isBillingReady ()\n {\n return (!CShell.isGuest() && !CShell.isPermaguest()\n && !MemberMailUtil.isPlaceholderAddress(CShell.creds.accountName));\n }", "@Override\r\n\t\t\t\tpublic boolean run() throws SQLException {\n\t\t\t\t\tString userName=\"\";\r\n\t\t\t\t\tString supplierName=\"\";\r\n\t\t\t\t\tMap<String, Object> variables = new HashMap<String, Object>();\r\n\t\t\t\t\tif (!StringUtil.isEmpty(fillupDate)) {\r\n\t\t\t\t\t\t// 根据userId去staff表里查出订单号\r\n\t\t\t\t\t\tRecord re = service.getOrderNumber(Integer.parseInt(userId));\r\n\t\t\t\t\t\tuserName=re.get(\"person_name\").toString();\r\n\t\t\t\t\t\tsupplierName=re.get(\"supplier_name\").toString();\r\n\t\t\t\t\t\tString orderNumber = re.getStr(\"order_num\");\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_FILLUP_DATE, fillupDate);\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_FILLUP_TIME, fillupTime);\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_CHECKINNUM, checkInNum);\r\n\t\t\t\t\t\tvariables.put(Constants.HR_STAFF_ATTENDANCE_ORDERNUM, orderNumber);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tSysOrg sysOrg = SysOrg.dao.getUserOrg(createBy);\r\n\t\t\t\t\t\tsupplierName=sysOrg.getName();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//判断该订单是否已经终止\r\n\t\t\t\t\tRecord rec=service.queryOrderStatus(orderNum);\r\n\t\t\t\t\tif(rec!=null) {\r\n\t\t\t\t\t\tString orderSignStatus = rec.getStr(\"order_sign_status\");\r\n\t\t\t\t\t\tif(\"终止\".equals(orderSignStatus)) {\r\n\t\t\t\t\t\t\t renderError(\"该订单已终止!\");\r\n\t\t\t\t\t\t\t return false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\t ActReProcdef actReProcdef = ActReProcdef.dao.getProcdef(tableName);\r\n\t\t\t\t\t// 启动流程\r\n\t\t\t\t\tProcessInstance activitiInfo = tasksService.startUp(actReProcdef.getKey(),tasksService.obtainJsonObjectFormKey(actReProcdef.getId(),userName,supplierName,orderNum,variables),null);\r\n\t\t\t\t\t// 判断是订单工作确认还是补打卡申请\r\n\t\t\t\t\tif (Constants.HR_STAFF_ATTENDANCE.equals(tableName)) {\r\n\t\t\t\t\t\t//不能提交当月的\r\n\t\t\t\t\t\tCalendar calendar = new GregorianCalendar();\r\n\t\t\t\t\t\t int month = calendar.get(Calendar.MONTH)+1;\r\n\t\t\t\t\t\t int year = calendar.get(Calendar.YEAR);\r\n\t\t\t\t\t\t String yearsub = attendanceDate.substring(0, 4);\r\n\t\t\t\t\t\t String monthsub = attendanceDate.substring(5,7);\r\n\t\t\t\t\t\t if(year==Integer.parseInt(yearsub)&&month==Integer.parseInt(monthsub)) {\r\n\t\t\t\t\t\t\t renderError(\"订单工作量确认只能提交当月之前的!\");\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t /**\r\n\t\t\t\t\t\t * 每月工作量确认时,晚于“项目结束日期”(项目表单中的里程碑最晚日期)加上一个月的时间点之后的工作量不予确认(时间节点当天可确认),但在提交时应显示提示,文字为“工作量确认仅为项目实施日期内的工作投入。如需变更项目里程碑信息,请于项目信息列表中变更。”如项目实际已结项(即项目状态已改变),则超过“结项日期”加上一个月时间节点的工作量不予确认(时间节点当天可确认)\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\t Boolean bo=service.proStaffWork(orderNum,attendanceDate);\r\n\t\t\t\t\t\t if(!bo) {\r\n\t\t\t\t\t\t\t renderError(\"工作量确认仅为项目实施日期内的工作投入。如需变更项目里程碑信息,请于项目信息列表中变更。\"); \r\n\t\t\t\t\t\t }\r\n\t\t\r\n\t\t\t\t\t\t// 判断补打卡申请是否处理完,若没有,工作量确认不能提交\r\n\t\t\t\t\t\tList<HrStaffAttendance> statusList = service.getfillupStatus(orderNum,\r\n\t\t\t\t\t\t\t\tattendanceDate.substring(0, 7));\r\n\t\t\t\t\t\tfor (HrStaffAttendance hrStaffAttendance : statusList) {\r\n\t\t\t\t\t\t\t// 只要有审批没通过的均不能提交工作量确认\r\n\t\t\t\t\t\t\tif (Constants.HR_FILLUP_ATTENDANCE_STATUS_FILLUP1.equals(hrStaffAttendance.getStatus())\r\n\t\t\t\t\t\t\t\t\t|| Constants.HR_FILLUP_ATTENDANCE_STATUS_FILLUP2\r\n\t\t\t\t\t\t\t\t\t\t\t.equals(hrStaffAttendance.getStatus())) {\r\n\t\t\t\t\t\t\t\trenderError(\"有未完成的补打卡申请单\");\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//判断该订单是否存在转场流程\r\n\t\t\t\t\t\tList<Record> reList = service.getTransStatus(orderNum,attendanceDate.substring(0, 7));\r\n\t\t\t\t\t\tif(reList!=null) {\r\n\t\t\t\t\t\t\tfor (Record record : reList) {\r\n\t\t\t\t\t\t\t\tif(record!=null) {\r\n\t\t\t\t\t\t\t\t\tString str = record.getStr(\"status_type\");\r\n\t\t\t\t\t\t\t\t\tif(str.equals(\"1\")) {\r\n\t\t\t\t\t\t\t\t\t\trenderError(\"该订单内有未完成的转场人员\");\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// 订单工作量走的审批流\r\n\t\t\t\t\t\tfor (String id : userId.split(\",\")) {\r\n\t\t\t\t\t\t\t// 将id为user员工的 ins_id 改为相同的ins_id :activitiInfo.getProcessInstanceId();\r\n\t\t\t\t\t\t\tint i = service.updateInstId(Integer.parseInt(id), activitiInfo.getProcessInstanceId());\r\n\t\t\t\t\t\t\tif (i > 0) {\r\n\t\t\t\t\t\t\t\trenderSuccess(\"工作量确认审批申请:提交成功!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// 补打卡走的审批流 ins_id 改为activitiInfo.getProcessInstanceId()\r\n\t\t\t\t\t\tif(!StringUtil.isEmpty(fillupDate)) {\r\n\t\t\t\t\t\t\tint j = service.updateFillupInstId(fillupDate.substring(0, 7), Integer.parseInt(userId),\r\n\t\t\t\t\t\t\t\t\tactivitiInfo.getProcessInstanceId());\r\n\t\t\t\t\t\t\tif (j > 0) {\r\n\t\t\t\t\t\t\t\trenderSuccess(\"补打卡审批申请:提交成功!\");\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\tKv orderParam = Kv.by(\"number\", orderNum);\r\n\t\t\t\t\tSqlPara orderSqlParam = Db.getSqlPara(\"orderNum.getOrderNum\", orderParam);\r\n\t\t\t\t\tRecord orderRecords = Db.findFirst(orderSqlParam);\r\n\t\t\t\t\tif (orderRecords == null) {\r\n\t\t\t\t\t\trenderError(\"请核对改订单对应的行方负责人是否存在!\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tMap<String, Object> orderRecordMap = orderRecords.getColumns();\r\n\t\t\t\t\tString username = orderRecordMap.get(\"username\").toString();\r\n\t\t\t\t\tTask task = taskService.createTaskQuery().processInstanceId(activitiInfo.getProcessInstanceId())\r\n\t\t\t\t\t\t\t.singleResult();\r\n\t\t\t\t\tActivitiUtil.setUserTaskAssignee(task.getId(), username);\r\n\t\t\t\t\ttasksService.saveHistorical(activitiInfo.getProcessInstanceId(), null);\r\n\t\t\t\t\t// 发送邮件\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttasksService.taskSendEmail(activitiInfo.getProcessInstanceId(), \"1\");\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\tlogger.error(\"Exception: \", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}", "private void startBMS() {\n final Intent bmsActivity = new Intent(this, BMSActivity.class);\n finish();\n startActivity(bmsActivity);\n }", "public void startCheckout (View view) {\n Utility.showMyToast(\"You have started the checkout process\", this);\n\n // Also send an Analytics hit\n sendStartCheckoutHit();\n\n // Show and hide buttons appropriately\n Button button = (Button) findViewById(R.id.start_checkout_btn);\n button.setVisibility(View.INVISIBLE);\n\n button = (Button) findViewById(R.id.checkout_step_2_btn);\n button.setVisibility(View.VISIBLE);\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyPaperbillingAddnewUser() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether the customer is able to register successfully using MUMV without paperless billing option\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Switchtopaperlessacctspecificsdata\");\t\t\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes();\t\t\t\t\t\t \t \t\t\t\t\t \t \t\n\t\tnew BgbRegistrationAction()\t\t\n\t\t.AddNewSuperUser_paperaction(userProfile);\t\t\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile)\n\t\t.AdduserConfirmationPage();\t\n\t\tnew PaperlessBillingAction()\n\t \t.BgbnavigateToLogin()\n\t\t.PBDirectDebitLogin_Secondlogin(userProfile)\n\t\t.BgbverifyAfterLogin();\t\t\t\t\t\n\t \tnew PaperlessBillingAction()\n\t \t.verifyManageAccountLink(userProfile)\n\t \t.specificpaperlesssetupAction()\t\n\t \t.VerifyAudit_EmailtriggeredAction(userProfile);\n\t}", "private void requestBucks() {\n\n\t}", "public static void main(String[] args) {\n Item i1 = new Item(\"Energy Drink 10-pack\", 546.86, 17.89, 550759400);\n Item i2 = new Item(\"Ramen 12-pack\", 74.84, 17.21, 12);\n Item i3 = new Item(\"Coke\", 454.5, 4.99, 123123123);\n Item i4 = new Item(2.98, 926367);\n CheckoutMachine c = new CheckoutMachine(\"Walmart\");\n try {\n System.out.println(\"Scanning Item 1: \" + i1.toString());\n c.scan(i1);\n System.out.println(\"Scanning Item 2: \" + i2.toString());\n c.scan(i2);\n System.out.println(\"Scanning Item 3: \" + i3.toString());\n c.scan(i3);\n System.out.println(\"Scanning Item 4: \" + i4.toString());\n c.scan(i4);\n } catch (InvalidItemException e) {\n System.out.println(e.toString());\n }\n java.time.LocalDate date = java.time.LocalDate.now();\n date = date.minusMonths(1);\n BuzzCard bCard = new BuzzCard(\"John Smith\", 0.0);\n CreditCard cCard = new CreditCard(\"John Smith\", 1000.0, date);\n Cash cash = new Cash(1000.0);\n boolean payed = false;\n try {\n System.out.println(\"Trying BuzzCard\");\n c.payForCart(bCard);\n payed = true;\n } catch (PaymentFailedException e1) {\n System.out.println(e1.toString());\n }\n if (!payed) {\n try {\n System.out.println(\"Trying Credit Card\");\n c.payForCart(cCard);\n payed = true;\n } catch (PaymentFailedException e2) {\n System.out.println(e2.toString());\n }\n }\n if (!payed) {\n try {\n System.out.println(\"Paying With Cash\");\n c.payForCart(cash);\n payed = true;\n } catch (PaymentFailedException e2) {\n System.out.println(e2.toString());\n }\n }\n\n }", "void askDevCardProduction();", "@Transactional \n public void start(){\n\t \n System.out.println(repositoryService.createDeployment().addClasspathResource(\"diagrams/taskProcess.bpmn\").deploy().getName());\n Map<String, Object> vars1 = new HashMap<String, Object>();\n\t \n\tString procId = runtimeService.startProcessInstanceByKey(\"myProcess\", vars1).getId();\n \n System.out.println(\"启动流程流程id=\"+procId);\n \n // 获得第一个任务\n List<Task> tasks = taskService.createTaskQuery().taskCandidateGroup(\"bin\").list();\n //List<Task> tasks = taskService.createTaskQuery().taskCandidateUser(\"test\").list();\n for (Task task : tasks) {\n System.out.println(\"要分配的任名称 \" + task.getName());\n //分配的用户\n taskService.claim(task.getId(), \"bin\");\n }\n \n tasks = taskService.createTaskQuery().taskAssignee(\"bin\").list();\n for (Task task : tasks) {\n System.out.println(\"接收到的任务 \" + task.getName());\n // 执行(完成)任务\n taskService.complete(task.getId());\n } \n \n tasks = taskService.createTaskQuery().taskCandidateGroup(\"management\").list();\n for (Task task : tasks) {\n System.out.println(\"分配任务\" + task.getName());\n // 分配给的人\n taskService.claim(task.getId(), \"bin\");\n \n }\n \n \n tasks = taskService.createTaskQuery().taskAssignee(\"bin\").list();\n \n for (Task task : tasks) {\n \t System.out.println(\"收到的任务\" + task.getName());\n taskService.complete(task.getId());\n }\n \n \n }", "public BillingManager(Activity _activity) {\n mActivity = _activity;\n connectBillingClient();\n }", "boolean hasBillingSetup();", "String makePayment(String userName, String teamName, Payment payment) throws RemoteException, InterruptedException;", "protected void navigateToBillingAccount(String masterPolicyNumber) {\n String billingAccountNumber = getBillingAccountNumber(masterPolicyNumber);\n LOGGER.info(\"Navigate to Billing Account #\" + billingAccountNumber);\n\n MainPage.QuickSearch.search(billingAccountNumber);\n }", "public void credit(){\n\t\tSystem.out.println(\"HSBC BANK :: CREDIT\");\n\t}", "@Override\r\n public void pay() {\n }", "public void validate_Billable_Task_Using_Existing_Customer_And_Existing_Project(String custListOption,String projectName,String taskName,String taskBudgetTime,String billingType) {\n\t\tselectSingleDropDownItem(driver, AttSelectCustListBox, custListOption);\n\t\tselectSingleDropDownItem(driver, AttSelectProjectListBox, projectName);\n\n\t\tAttTaskNameTextBox.sendKeys(taskName);\n\t\tAttBudgetTimeTextBox.sendKeys(taskBudgetTime);\n\t\tAttEnterDateInDateField.sendKeys(getTodaysDate());\n\t\tselectSingleDropDownItem(driver, AttSelectBillingType, billingType);\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t\t\n\t}", "public static void main(String[] args) throws Exception {\n createCustomer();\n launch(args);\n }", "@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }", "public void checkout() {\n\t}", "public static void main(String[] args) throws InterruptedException, IOException {\n\n InputParamsParser parser = new InputParamsParser();\n if(!parser.parseArgs(args)){return;}\n\n\n AtomicInteger totalSuccessRequests = new AtomicInteger();\n AtomicInteger totalFailedRequests = new AtomicInteger();\n\n\n /*\n * create a thread for each store.\n * each store thread will send numPurchases POST request per hour to the server\n */\n\n\n ApiClient shop = new ApiClient();\n shop.setBasePath(parser.getUrl());\n PurchaseApi apiInstance = new PurchaseApi(shop);\n apiInstance.getApiClient().setConnectTimeout(6000);\n apiInstance.getApiClient().setReadTimeout(6000);\n ArrayList<ArrayList<ResponseResult>> responses = new ArrayList<>();\n\n /*\n * phase 1\n * Start the program with 3 countdown latches\n */\n CountDownLatch secondPhase = new CountDownLatch(1);\n CountDownLatch thirdPhase = new CountDownLatch(1);\n CountDownLatch completed = new CountDownLatch(parser.getMaxStore());\n\n long startTime = System.currentTimeMillis();\n int phaseOneStores = parser.getMaxStore() / 4;\n int nextStoreID = 1;\n for (; nextStoreID <= phaseOneStores; nextStoreID++) {\n int storeID = nextStoreID;\n Runnable store = () -> {\n StorePurchaseRequest storePurchase = new StorePurchaseRequest(storeID, parser.getNumCustPerStore(), parser.getMaxNumItems(), parser.getNumItemsPerPurchase());\n for (int j = 0; j < parser.getHOUR_OF_OPERATION(); j++) {\n responses.add(storePurchase.hourlyPurchase(apiInstance, parser.getNumPurchases(),parser.getDate()));\n if (j == 3) {\n secondPhase.countDown();\n }\n if (j == 5) {\n thirdPhase.countDown();\n }\n }\n totalSuccessRequests.addAndGet(storePurchase.successRequests);\n totalFailedRequests.addAndGet(storePurchase.failedRequests);\n completed.countDown();\n };\n\n new Thread(store).start();\n }\n //wait till any store operates three hours\n secondPhase.await();\n\n /*\n * phase 2\n */\n int phaseTwoStores = parser.getMaxStore()/ 2;\n for (; nextStoreID <= phaseTwoStores; nextStoreID++) {\n int storeID = nextStoreID;\n Runnable store = () -> {\n StorePurchaseRequest storePurchase = new StorePurchaseRequest(storeID, parser.getNumCustPerStore(), parser.getMaxNumItems(), parser.getNumItemsPerPurchase());\n for (int j = 0; j < parser.getHOUR_OF_OPERATION(); j++) {\n responses.add(storePurchase.hourlyPurchase(apiInstance, parser.getNumPurchases(),parser.getDate()));\n if (j == 5) {\n thirdPhase.countDown();\n }\n }\n totalSuccessRequests.addAndGet(storePurchase.successRequests);\n totalFailedRequests.addAndGet(storePurchase.failedRequests);\n completed.countDown();\n };\n new Thread(store).start();\n }\n //wait till any store operates 5 hours\n thirdPhase.await();\n\n /*\n * phase 3\n */\n for (; nextStoreID <= parser.getMaxStore(); nextStoreID++) {\n int storeID = nextStoreID;\n Runnable store = () -> {\n StorePurchaseRequest storePurchase = new StorePurchaseRequest(storeID, parser.getNumCustPerStore(), parser.getMaxNumItems(), parser.getNumItemsPerPurchase());\n for (int j = 0; j < parser.getHOUR_OF_OPERATION(); j++) {\n responses.add(storePurchase.hourlyPurchase(apiInstance, parser.getNumPurchases(),parser.getDate()));\n }\n totalSuccessRequests.addAndGet(storePurchase.successRequests);\n totalFailedRequests.addAndGet(storePurchase.failedRequests);\n completed.countDown();\n };\n new Thread(store).start();\n }\n completed.await();\n long endTime = System.currentTimeMillis();\n\n // Write the running result to csv file.\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeFile(\"\", parser.getMaxStore() + \".cvs\", responses);\n\n\n // Print out all statistics\n long wallTime = endTime - startTime;\n DataProcessor dataProcessor=new DataProcessor(responses, wallTime/1000, totalSuccessRequests.intValue());\n System.out.println(\"Total time: \" + wallTime + \" milliseconds\");\n System.out.println(\"Successful request: \" + totalSuccessRequests);\n System.out.println(\"Failed requests: \" + totalFailedRequests);\n System.out.println(\"Throughput: \" + dataProcessor.getThroughput() + \" request/second\");\n System.out.println(\"Mean response time: \" + dataProcessor.getMean() + \" ms\");\n System.out.println(\"Median response time: \" + dataProcessor.getMedian() + \" ms\");\n System.out.println(\"99th percentile: \" + dataProcessor.getNintyninthPercentile() + \" ms\");\n System.out.println(\"Max response time: \" + dataProcessor.getMaxResponse() + \" ms\");\n }", "@Override\n\tpublic void pay() {\n\t\tcreditCard.makePayment();\n\n\t}", "@Override\n protected Void doInBackground(Void... params) {\n\n bjReq = new BookJobRequest(this, this);\n // sysid get from company list response\n bjReq.setSysID(mbook.getSysId() + \"\");\n bjReq.setReqType(\"1\");\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(_context);\n String phone = SharedPreferencesManager.loadStringPreferences(sharedPreferences, MBDefinition.SHARE_PHONE_NUMBER);\n String userName = SharedPreferencesManager.loadStringPreferences(sharedPreferences, MBDefinition.SHARE_NAME);\n bjReq.setPhoneNum(phone);\n bjReq.setPassengerName(userName);\n bjReq.setNumOfPassenger(\"1\");\n bjReq.setNumOfTaxi(\"1\");\n bjReq.setAdviseArrival(\"1\");\n bjReq.setForcedAddressFlag(\"Y\");\n bjReq.setPriority(\"N\");\n bjReq.setHardwareID(Utils.getHardWareId(_context));\n bjReq.setOSPVersion(\"3.0\");\n\n bjReq.setTaxiCompanyID(mbook.getDestID() + \"\");\n\n bjReq.setPickUpTime(mbook.getPickup_time());\n\n if (mbook.getPickup_unit() != null) {\n bjReq.setPickUpUnit(mbook.getPickup_unit());\n }\n\n bjReq.setPickupHouseNum(mbook.getPickup_house_number());\n bjReq.setPickUpStreetName(mbook.getPickup_street_name());\n bjReq.setPickUpDistrict(mbook.getPickup_district());\n bjReq.setPickUpLatitude(Double.toString(mbook.getPickup_latitude()));\n bjReq.setPickUpLongitude(Double.toString(mbook.getPickup_longitude()));\n bjReq.setZipCode(mbook.getPickup_zipCode());//TL-301 this is\n\n if (mbook.getDropoff_unit() != null) {\n bjReq.setDropOffUnit(mbook.getDropoff_unit());\n }\n\n if (mbook.getDropoff_house_number() != null) {\n bjReq.setDropOffHouseNum(mbook.getDropoff_house_number());\n }\n\n if (mbook.getDropoff_street_name() != null) {\n bjReq.setDropOffStreetName(mbook.getDropoff_street_name());\n }\n\n if (mbook.getDropoff_district() != null) {\n bjReq.setDropOffDistrict(mbook.getDropoff_district());\n }\n\n if (Utils.selected_attribute != null) {\n ArrayList<String> temp = new ArrayList<String>();\n for (int i = 0; i < Utils.selected_attribute.size(); i++) {\n temp.add(Utils.selected_attribute.get(i).toString());\n }\n bjReq.setAttributeList(temp);\n }\n\n String remark = mbook.getRemarks();\n for (int i = 0; i < MBDefinition.SPECIAL_CHAR_TO_REMOVE.length; i++) {\n remark = remark.replace(MBDefinition.SPECIAL_CHAR_TO_REMOVE[i], \"\");\n }\n\n bjReq.setRemark(remark);\n\n bjReq.sendRequest(_context.getResources().getString(R.string.name_space), _context.getResources().getString(R.string.url));\n\n return null;\n }", "private void launchOtherTransaction(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public static void main(String[] args) throws SessionException, AbpException, NotAuthorizedException {\n ObjectCommunicator objectCommunicator = ObjectCommunicator.getSharedInstance();\n try {\n objectCommunicator.login(\"lvs\", \"a\", \"1\", \"http://localhost:8080/abp\");\n } catch (Exception e) {\n }\n System.getProperties().put(\"exec.url\", \"http://localhost:8080/abp\");\n AbpSettings.getInstance().initForClient();\n\n // AbpManager abpManager = AbpManager.loginAsGuest(\"oracle\");\n\n // ProgrammeHelper.checkCombination(150L, 235L, 2, abpManager.makeWorkspace(\"oracle\"));\n\n }", "@Override\r\n public void onClick(View view) {\r\n Intent paymentsIntent = new Intent(MainActivity.this, PaymentActivity.class);\r\n startActivity(paymentsIntent);\r\n }", "private void seePayments(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nPayments Dashboard\\n\");\n\n\t\t\tOffer offer;\n\t\t\ttry {\n\t\t\t\tlog.info(\"Select an Offer by typing in the id:\\n\");\n\t\t\t\tlog.info(\"\t\tOr press ENTER to quit\\n\");\n\t\t\t\tInteger offer_id = Integer.parseInt(sc.nextLine());\n\t\t\t\toffer = cService.getOfferById(offer_id);\n\t\t\t\tlog.info(\"Current Offer: \" + offer + \"\\n\");\n\t\t\t\tList<Payment> payments = cService.viewUnPaidPayments(user, offer);\n\t\t\t\tpayments.stream().forEach(p -> log.info(p.toString()));\n\n\t\t\t\tlog.info(\"\\nChoose an option:\");\n\t\t\t\tlog.info(\"\t\tPress 1 to Make a Payment on an Item\");\n\t\t\t\tlog.info(\"\t\tPress anything else to return to the PURCHASES DASHBOARD\");\n\t\t\t\tString choice = sc.nextLine();\n\t\t\t\tswitch (choice) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\tif (payments.size() > 0) {\n\t\t\t\t\t\tmakePayment(user, sc, payments.get(0));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.info(\"\\nSorry, payments can't be made on this offer!\\n\");\n\t\t\t\t\t\trun = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlog.info(\"\\nGoing back to the PURCHASES DASHBOARD\\n\");\n\t\t\t\t\trun = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException n) {\n\t\t\t\tlog.info(\"\\nPlease type in a valid number. Start all over again.\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t} while (run);\n\n\t}", "public void CashPayment()\n {\n }", "@Test\n public void creditApproved() throws Exception {\n Application app = new Application();\n app.setName(\"phil garfield\");\n app.setCreditScore(600);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertTrue(result.isApproved());\n }", "@Override\n public void onClick(View v) {\n\n int totalAmt = (int) Math.ceil(Double.parseDouble(String.valueOf(txtTotalAmount.getText()))); //always rounds up to the nearest whole\n\n try {\n if ((PersistentData.callpermissiongranted)&&(PersistentData.smspermissiongranted))\n {\n\n if (executionComplete && validateFields(v))\n {\n\n //Mobile Money USSD code dialer\n startActivity(new Intent(Intent.ACTION_CALL).setData(Uri.parse(\"tel:*007*1*2*101248*\"+ totalAmt +\"*123456\"+Uri.encode(\"#\"))));\n\n\n // Magic here*/\n\n mHandler.postDelayed(new Runnable() {\n public void run() {\n Log.d(\"CheckOutActivity\",\": paymentconfirmed status \" + PersistentData.paymentConfirmed);\n if(PersistentData.paymentConfirmed){\n Log.d(\"CheckOutActivity\",\": Order Started\");\n RegisterOrder RO = new RegisterOrder();\n RO.execute(\"\");\n Log.d(\"CheckOutActivity\",\": Order Executed\");\n }\n doStuff();\n }\n }, 60000);\n }\n else\n {\n //Incorrect Error handling\n //Toast.makeText(getBaseContext(), \"Your order registration is still in progress.Please await its completion. Siyabonga.\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n checkPermissions();\n }\n }\n catch(Exception ex)\n {\n Toast.makeText(getBaseContext(), ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n\n }", "public void startPaypalService(String payType){\n\n String paymentAmount = \"\";\n\n if(payType.equals(\"Monthly\")){\n paymentAmount = \"1.99\";\n }\n else if(payType.equals(\"Yearly\")){\n paymentAmount = \"14.99\";\n }\n else {\n paymentAmount = \"1.99\";\n }\n\n PayPalPayment payment = new PayPalPayment(new BigDecimal(paymentAmount), \"GBP\", \"Finicky\",\n PayPalPayment.PAYMENT_INTENT_SALE);\n String strId = Integer.toString(id);\n payment.custom(strId);\n\n Intent intent = new Intent(this, PaymentActivity.class);\n\n // send the same configuration for restart resiliency\n intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);\n intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);\n //intent.putExtra(PaymentActivity.E, id);\n startActivityForResult(intent, PAYPAL_REQUEST_CODE);\n }", "public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}", "BillingAccount getBillingAccount();", "@Override\r\n public void start(OpProjectSession session) {\n OpBroker broker = session.newBroker();\r\n try {\r\n if (session.administrator(broker) == null) {\r\n OpUserService.createAdministrator(broker);\r\n }\r\n if (session.everyone(broker) == null) {\r\n OpUserService.createEveryone(broker);\r\n }\r\n\r\n //register system objects with Backup manager\r\n OpBackupManager.addSystemObjectIDQuery(OpUser.ADMINISTRATOR_NAME, OpUser.ADMINISTRATOR_ID_QUERY);\r\n OpBackupManager.addSystemObjectIDQuery(OpGroup.EVERYONE_NAME, OpGroup.EVERYONE_ID_QUERY);\r\n }\r\n finally {\r\n broker.closeAndEvict();\r\n }\r\n }", "@Test(dependsOnMethods = {\"testLogin.LoginTest.userLogin\", \"clickBuyAirtimePage\"},\n dataProviderClass = testData.userTestData.class, dataProvider = \"buyAirtimeData\")\n public void BuyAirtime(int provider,String phoneNum,String amount,String pin) throws InterruptedException\n {\n buyAirtimePage.selectNetworkProvider(provider);\n buyAirtimePage.enterPhoneNumber(phoneNum);\n buyAirtimePage.enterAmount(amount);\n buyAirtimePage.clickBuyAirtimeBtn();\n buyAirtimePage.clickProceed();\n buyAirtimePage.enterTransactionPin(pin);\n buyAirtimePage.clickTransactionButton();\n dashboardPage = buyAirtimePage.clickGoToDashboard();\n //Confirm user is on the dashboard page\n String dashboardUrl = \"https://devbusiness.wallets.africa/dashboard\";\n assertEquals(dashboardPage.getDashboardPageUrl(),dashboardUrl,\"You are not on user dashboard\");\n }", "public static void main(String[] args) {\n\t\tCustomer customer = new Customer(true);\r\n\t\tdouble amount = 105.78;\r\n\t\tdouble donation;\r\n\t\tString cardType= \" \";\r\n\t\t//YOUR CODE GOES BELOW THIS LINE\r\n\t\tCreditCard creditcard = new CreditCard(customer, amount, donation=0);\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\t\r\n\t\t// call for setCardname\r\n\t\tsetCardname(creditcard, scan);\r\n\t\t\r\n\t\t// set card type\r\n\t\tcardType= getCardType(scan, cardType);\r\n\t\t\r\n\t\t// request the card number\r\n\t\tsetCardnumber(creditcard, scan);\r\n\t\t\r\n\t\t//request the expiration date\r\n\t\tsetExpirationDate (creditcard,scan);\r\n\t\r\n\t\t// request the Security Code\r\n\t\tsetSecurityCode (creditcard,scan);\r\n\t\t\r\n\t\t// request billing address\r\n\t\tsetBillingAddress(creditcard, scan);\r\n\t\t\r\n\t\t//request shipping address\r\n\t\tSystem.out.println(\"Shipping address:\\n\" + \"Press 1 if the shipping address is the same as the customer address \\n\" +\r\n\t\t\t\t \"Press 2 if the shipping address is a new address \");\r\n\t\tsetShippingAddress( creditcard, customer, scan);\r\n\t\t\r\n\t\t//\r\n\t\t// get donation\r\n\t\t//\r\n\t\tString userAnswer= (scan.nextLine()).toUpperCase();\r\n\t\tSystem.out.println(\"Would you like to donate? Yes/No: \");\r\n\t\tuserAnswer= (scan.nextLine()).toUpperCase();\r\n\t\t\r\n\t\tif (userAnswer.equals(\"YES\"))\r\n\t\t\tdonation= getDonation(customer, creditcard, scan, donation, amount);\r\n\t\telse\r\n\t\t\tSystem.out.println(\" \");\t\r\n\t\t\r\n\t\t//\r\n\t\t// print summary\r\n\t\t//\r\n\t\tSystem.out.println(\"---------------------------------------------------------------------------\\n\"\r\n\t\t +(customer.firstName).toUpperCase() + \",\" + \"Here Is Your Purchase Summary:\\n\"\r\n\t\t\t\t + \"------------------------------------------------------------------------------\");\r\n\t\tprintSummary( customer, creditcard, donation, cardType, amount,scan);\r\n\t\t\r\n\t\tLastCheck(customer, creditcard, donation, cardType, amount, scan);\r\n\t\t\r\n\t\tscan.close();\r\n\t}", "public static void main(String[] args) {\n bankChargesDemo();\n }", "private void managePayments(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nThe Following are your Purchases\\n\");\n\t\t\tList<Offer> offers = cService.seeAllOwnedOffers(user);\n\t\t\toffers.stream().filter(offer -> offer.getStatus().getStatus_name().equals(\"pending\"))\n\t\t\t\t\t.forEach(offer -> log.info(offer.toString()));\n\n\t\t\tlog.info(\"\\nChoose an option:\");\n\t\t\tlog.info(\"\t\tPress 1 to See Payments for an Item\");\n\t\t\tlog.info(\"\t\tPress anything else to return to the CUSTOMER DASHBOARD\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase \"1\":\n\t\t\t\tseePayments(user, sc);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the CUSTOMER DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\n\t}" ]
[ "0.6869423", "0.67692155", "0.6661415", "0.6321369", "0.63056755", "0.6293799", "0.6278106", "0.6204874", "0.6143653", "0.6143653", "0.60315627", "0.59464806", "0.5946099", "0.5920718", "0.5901486", "0.590023", "0.58736837", "0.5841071", "0.5779072", "0.5751599", "0.568679", "0.5640839", "0.56096", "0.5592016", "0.5576054", "0.55681217", "0.55429745", "0.5530853", "0.5520695", "0.5519718", "0.5510922", "0.549381", "0.5492605", "0.5479734", "0.5474311", "0.54711974", "0.5469857", "0.5467928", "0.54583615", "0.5454188", "0.5444734", "0.54423654", "0.5427723", "0.5399372", "0.5382643", "0.5382272", "0.5382035", "0.5364014", "0.53518987", "0.53512406", "0.53504413", "0.5349161", "0.53484565", "0.53464174", "0.5345735", "0.5343782", "0.5336738", "0.5331966", "0.53163856", "0.53049344", "0.53026664", "0.5301007", "0.5298881", "0.5297872", "0.5288624", "0.5285241", "0.52823365", "0.5263788", "0.5258609", "0.5258077", "0.52438664", "0.52437526", "0.52419925", "0.52411675", "0.5239658", "0.5234666", "0.5232505", "0.5230978", "0.52299976", "0.5229576", "0.5215656", "0.52099854", "0.5207016", "0.52060145", "0.52041394", "0.520192", "0.5201252", "0.5195133", "0.51941156", "0.5192679", "0.5191833", "0.5188489", "0.51882356", "0.5185463", "0.51838076", "0.5169007", "0.5167978", "0.51653266", "0.5163305", "0.51613355" ]
0.6430009
3
I can test my class here: create instances and call the method(s), check the results TODO
public static void main(String[] args) { int [] t = {0}; Tools n = new Tools(); int [] j = n.sortBubble(t); for(int i : j) System.out.println(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void instanceTest() {\n // TODO: test instance\n }", "@Test\n public void testGetInstance() {\n System.out.println(\"getInstance\");\n Fabrica expResult = Fabrica.getInstance();\n Fabrica result = Fabrica.getInstance();\n assertEquals(expResult, result);\n \n }", "Reproducible newInstance();", "@Test\n public void publicInstanceTest() {\n // TODO: test publicInstance\n }", "public void test_ctor() {\n assertNotNull(\"instance should be created.\", instance);\n }", "public void testConstructor() {\r\n assertNotNull(\"unable to create instance\", instance);\r\n }", "@Test\n public void Constructor_ObjectValues_InstanceCreated() {\n\t\ttry {\n Position position = make_PositionWithIntegerPoints(xCoordinate, yCoordinate, direction);\n Surface surface = make_SurfaceWithGivenDimensions(xDimension, yDimension);\n\t\t\tRover rover = make_RoverWithObjectValues(position, surface);\n\t\t}\n\t\tcatch (AssertionError assErr) {\n\t\t\t// Test passed.\n\t\t\treturn;\n\t\t}\n }", "@Test\n public void classInstantiated() {\n assertNotNull(radar);\n }", "@Test\n public void testNewInstance(){\n car = Car.newInstance();\n assertNotNull(car);\n assertNotNull(car.getID());\n }", "@Test\r\n public void testCrear() throws Exception {\r\n System.out.println(\"crear\");\r\n String pcodigo = \"bravos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n Reparacion result = instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "@Before\r\n public void setupTestCases() {\r\n instance = new ShoppingListArray();\r\n }", "@Test\n public void constructorTest(){\n String retrievedName = doggy.getName();\n Date retrievedBirthDate = doggy.getBirthDate();\n Integer retrievedId = doggy.getId();\n\n // Then (we expect the given data, to match the retrieved data)\n Assert.assertEquals(givenName, retrievedName);\n Assert.assertEquals(givenBirthDate, retrievedBirthDate);\n Assert.assertEquals(givenId, retrievedId);\n }", "private Mocks() { }", "Testcase createTestcase();", "@Test\r\n public void testConstructor() {\r\n System.out.println(\"testConstructor\");\r\n try{\r\n new AddMetaInfoToGameService(2L, 3L, 5000);\r\n new AddMetaInfoToGameService(2L, 3L, 0);\r\n //fail();\r\n }catch(Exception e){\r\n e.getMessage();\r\n }\r\n }", "@Test\n public void testCrawlSuccess() {\n new Crawl();\n\n }", "@Test\n void scCreation() {\n StandardCalc sc = new StandardCalc();\n }", "@Test\n public void testLocateManager() {\n System.out.println(\"locateManager\");\n int x = 0;\n int y = 0; \n //instance.locateManager(x, y);\n \n }", "public void testGetters() \r\n\t{\r\n\t\tPurchase instance1 = new Purchase(1, \"Jean-Luc Picard\", \"USS Enterprise\", \"FP\", \"2364-01-01\", 1000, 1 );\r\n\t\tassertEquals(\"ID\", 1, instance1.getID());\r\n\t\tassertEquals(\"Name\", \"Jean-Luc Picard\", instance1.getMerchantName());\r\n\t\tassertEquals(\"City\", \"USS Enterprise\", instance1.getMerchantCity());\r\n\t\tassertEquals(\"State\", \"FP\", instance1.getMerchantState());\r\n\t\tassertEquals(\"Amount\", 1000, instance1.getPurchaseAmount(), 0.01);\r\n\t\tassertEquals(\"Cust ID\", 1, instance1.getCustomerID());\r\n\t}", "@Test\n public void testInitialize() {\n System.out.println(\"Initialize\");\n instance.Initialize(); //calls individual Rate initializer\n assertNotNull(instance);\n }", "@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }", "public void test_instantiation() throws Exception {\n\t\tYahooAuctionService target = new YahooAuctionService();\r\n\t\tassertNotNull(target);\r\n\t}", "@Test\n void constructorTest() {\n super.checkConstruction();\n }", "@Test\n public void testMenu() {\n System.out.println(\"menu\");\n Menu menu = new Menu();\n MenuPlan instance = new MenuPlan(menu); \n Menu expResult = instance.menu();\n Menu result = menu;\n assertEquals(expResult, menu);\n }", "public static void start() {\n\t\t\n\t\ttestEmptyConstructors();\n\t\ttestConstructors();\n\n\t}", "@Test\r\n public void testNew_doctor() {\r\n System.out.println(\"new_doctor\");\r\n doctor instance = new doctor();\r\n instance.new_doctor();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n void operations() {\n HotelOperation.scanner = new Scanner(\"1 2 3 4 5 -1\");\n Receptionist res = new Receptionist();\n assertEquals(1,res.Operations());\n assertEquals(2,res.Operations());\n assertEquals(3,res.Operations());\n assertEquals(4,res.Operations());\n assertEquals(5,res.Operations());\n\n }", "@Test\npublic void testJudge() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"judge\", String.class, String.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}", "public TestModelFacade3(Method method) {\n super(method.toString());\n methodToTest = method;\n }", "@Test\n public void testCollectPayment() {\n System.out.println(\"collectPayment\");\n Money moneyType = Money.QUARTER;\n int unitCount = 0;\n //CashRegister instance = new CashRegister();\n instance.collectPayment(moneyType, unitCount);\n }", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void main(String[] args) {\n testFactoryMethod();\n }", "public void instatnceMethod() {\n System.out.println(\"instatnMethod\");\n System.out.println(\"count = \" + count);\n displayMessage(\"hello from instance methods\");\n }", "public void testOperation();", "SpaceInvaderTest createSpaceInvaderTest();", "@Test\n public void testGetInstance() {\n System.out.println(\"getInstance test ---\");\n ChannelController expResult = ChannelController.getInstance();\n ChannelController result = ChannelController.getInstance();\n assertTrue(expResult == result);\n }", "H create(Method method);", "public static void main(String[] args) {\n //MyClass myClass = new MyClass();\n //myClass.testMethod();\n }", "public static <T> T createObject(Class<T> clas, Object[] arguments) throws InstantiationException {\n ProxyFactory f = new ProxyFactory(); //This starts a proxy factory which will create the proxy.\n f.setSuperclass(clas); //This sets the super class.\n\n Field[] fields = clas.getDeclaredFields(); //Get all the fields from the class it's being made to replicate\n boolean hasFieldInv = ContractHelper.fieldHasInvariant(fields);\n //The is to ensure that a class which has a field invariant \n //then all of the methods will be checked.\n\n f.setFilter((Method m) -> {\n //This checks if any annotations are present for a method supplied.\n return m.getAnnotationsByType(Pre.class).length != 0\n || m.getAnnotationsByType(Post.class).length != 0\n || m.getAnnotationsByType(Invariant.class).length != 0\n || m.getAnnotationsByType(ForAll.class).length != 0\n || m.getAnnotationsByType(Exists.class).length != 0\n || m.getAnnotationsByType(PostThrow.class).length != 0\n || hasFieldInv;\n });\n\n Class c = f.createClass(); //This then creates a new class from the proxy factory.\n\n MethodHandler mi = (Object self, Method m, Method proceed, Object[] args) -> { //This is the method handler for the proxy created.\n Parameter[] params = m.getParameters(); //This gets the parameters of the method.\n //These are maps of all the parameters and fields to be checked.\n HashMap<String, Object> initialParameters = ContractHelper.mapHelper(args, params); //This uses a helper to assign the parameter names and values.\n HashMap<String, Object> afterParameters = initialParameters; //This sets the after parameters to the intial to begin with.\n HashMap<String, Object> initialFields = ContractHelper.fieldHelper(self, fields); //This uses a helper to assign the field name and values\n HashMap<String, Object> afterFields = initialFields; //This sets the after fields to the intial to begin.\n //These are arrays of all the annotations.\n Pre[] preArr = m.getAnnotationsByType(Pre.class); //This gets all the annotations that could be on the methods.\n Post[] postArr = m.getAnnotationsByType(Post.class);\n Invariant[] invArr = m.getAnnotationsByType(Invariant.class);\n ForAll[] forAllArr = m.getAnnotationsByType(ForAll.class);\n Exists[] existsArr = m.getAnnotationsByType(Exists.class);\n\n invArr = getFieldInvs(invArr, fields);\n\n for (Pre pre : preArr) { //This loops through all annotations for pre.\n preCheck(pre.value(), initialParameters, initialFields); //This then checks the pre conditions.\n }\n\n for (Invariant inv : invArr) {\n invCheck(inv.value(), initialParameters, initialFields); //This then checks the invariant condition.\n }\n\n Object result = null; //This intialised the result to null.\n\n try {\n result = proceed.invoke(self, args); // execute the original method.\n\n afterParameters = ContractHelper.mapHelper(args, params); //This gets the parameters after the method is called.\n afterFields = ContractHelper.fieldHelper(self, fields); //This gets the fields after\n\n initialParameters = ContractHelper.alterOldMap(initialParameters);\n initialFields = ContractHelper.alterOldMap(initialFields);\n\n for (Post post : postArr) {\n postCheck(post.value(), initialParameters, afterParameters, initialFields, afterFields, result); //This then runs any post checks.\n }\n \n for (ForAll forAll : forAllArr) {\n forAllCheck(forAll.value(), initialParameters, afterParameters, initialFields, afterFields, result);\n }\n\n for (Exists exist : existsArr) {\n existsCheck(exist.value(), initialParameters, afterParameters, initialFields, afterFields, result);\n }\n \n for (Invariant inv : invArr) {\n invCheck(inv.value(), afterParameters, afterFields);\n }\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException thrownByMethod) {\n Throwable cause = thrownByMethod.getCause();\n\n if (!(cause instanceof AssertionError || cause instanceof ContractException)) {\n if (cause != null) { //If cause is null then it is not an exception from the method.\n PostThrow[] thrown = m.getAnnotationsByType(PostThrow.class);\n\n for (PostThrow post : thrown) {\n if (cause.getClass().equals(post.exception())) { //Check if it has exception to check.\n postThrowCheck(post.condition(), initialParameters, afterParameters, initialFields, afterFields, result, cause); //This then runs any post checks.\n }\n }\n cause.setStackTrace(ContractHelper.alterTrace(cause.getStackTrace())); //This sets the trace of the throwable \n throw cause;\n }\n }\n throw thrownByMethod;\n }\n return result; // this returns the result of the method invocation.\n };\n\n Object obj = ContractHelper.getConstructor(c, arguments); //This uses a helper to get a constructor.\n\n //If it is still null then it can't instantiated by reflection.\n if (obj == null) {\n InstantiationException e = new InstantiationException(\"Class could not be instantiated: \" + clas);\n e.setStackTrace(ContractHelper.alterStackInstantiation(e.getStackTrace()));\n throw e;\n }\n\n ((Proxy) obj).setHandler(mi); //This then sets it's handler using the proxy.\n\n return clas.cast(obj); //This returns the object which should now have the proxy with it.\n }", "@Test\n public void testCrearArchivo() {\n System.out.println(\"CrearArchivo\");\n String Ruta = \"\";\n RandomX instance = null;\n instance.CrearArchivo(Ruta);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "public void testGetInstance(){\r\n assertNotNull(this.lm);\r\n }", "public void testCreation() {\n // First the two standard constructors with meaningfull data.\n // Also test the different setters.\n final String title1 = \"Title1\";\n final String cleavage1 = \"ARNDCQ\";\n final String restrict1 = \"PG\";\n final char[] cv1 = cleavage1.toCharArray();\n final char[] rs1 = restrict1.toCharArray();\n final String pos1 = \"Cterm\";\n final String pos2 = \"nteRm\";\n final int miscleavage = 3;\n\n Enzyme e = new Enzyme(title1, cleavage1, restrict1, pos1);\n Assert.assertEquals(title1, e.getTitle());\n Assert.assertEquals(new String(cv1), new String(e.getCleavage()));\n Assert.assertEquals(new String(rs1), new String(e.getRestrict()));\n Assert.assertEquals(Enzyme.CTERM, e.getPosition());\n Assert.assertEquals(1, e.getMiscleavages());\n\n final String otherTitle = \"other\";\n final String otherCleavage = \"HIK\";\n final String otherRestrict = \"MN\";\n final char[] otherCv = otherCleavage.toCharArray();\n final char[] otherRs = otherRestrict.toCharArray();\n\n e.setTitle(otherTitle);\n e.setCleavage(otherCleavage);\n e.setRestrict(otherRestrict);\n e.setPosition(Enzyme.NTERM);\n e.setMiscleavages(miscleavage);\n\n Assert.assertEquals(otherTitle, e.getTitle());\n Assert.assertEquals(new String(otherCv), new String(e.getCleavage()));\n Assert.assertEquals(new String(otherRs), new String(e.getRestrict()));\n Assert.assertEquals(Enzyme.NTERM, e.getPosition());\n Assert.assertEquals(miscleavage, e.getMiscleavages());\n\n e.setCleavage(cleavage1);\n e.setRestrict(rs1);\n Assert.assertEquals(new String(cv1), new String(e.getCleavage()));\n Assert.assertEquals(new String(rs1), new String(e.getRestrict()));\n\n e = new Enzyme(null, cleavage1, null, pos2, 5);\n Assert.assertTrue(e.getTitle() == null);\n Assert.assertEquals(new String(cv1), new String(e.getCleavage()));\n Assert.assertTrue(e.getRestrict() == null);\n Assert.assertEquals(Enzyme.NTERM, e.getPosition());\n Assert.assertEquals(5, e.getMiscleavages());\n\n try {\n e = new Enzyme(title1, null, restrict1, null);\n fail(\"No NullPointerException thrown when Enzyme constructor was presented with a 'null' cleavage and position String!\");\n } catch(NullPointerException npe) {\n // Okay, this is what we wanted.\n }\n\n try {\n e = new Enzyme(title1, cleavage1, restrict1, null);\n fail(\"No NullPointerException thrown when Enzyme constructor was presented with a 'null' position String!\");\n } catch(NullPointerException npe) {\n // Okay, this is what we wanted.\n }\n }", "@Test\n public void testSquare()\n {\n testSquareConstructor(10, 20);\n testSquareConstructor(30, 40);\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 }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\r\n public void testDoctor_info() {\r\n System.out.println(\"doctor_info\");\r\n doctor instance = new doctor();\r\n instance.doctor_info();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "protected TestResult createResult() {\n return new TestResult();\n }", "@Test\n public void testCSesionInicioxData2() {\n System.out.println(\"testCSesionInicioxData\");\n CSesion instance = new CSesion();\n DataProveedor TC = new DataProveedor(\"153\", \"tim123\", \"tim.cook@apple.com\", \"Tim\", \"Cook\", new Date(60, 10, 1));\n instance.inicioSesion(TC);\n }", "@Test\n public void evaluate() {\n Circle circle = new BlueCircle();\n\n Square square = new RedSquare();\n\n assertNotNull(\"Circle object is not created!\", circle);\n\n circle.applyColor();\n\n assertNotNull(\"Square object is not created!\", circle);\n\n square.applyColor();\n }", "public void testCtorAccuracy() {\r\n assertNotNull(\"Should create the instance successfully.\", log);\r\n assertEquals(NAME, log.getName());\r\n }", "@Test\n public void getStuff() {\n \n Assert.assertEquals(wService.work(), \"Parker\");\n Assert.assertEquals(aService.age(), 25);\n }", "@Test\r\n public void testCrearInterprete() {\r\n System.out.println(\"crearInterprete\");\r\n \r\n //1. Prep\r\n Interprete interprete = new Interprete();\r\n interprete.setNombre(\"MalumaTest\");\r\n interprete.setEdad(24);\r\n interprete.setGenero(\"Masculino\");\r\n interprete.setIdioma(\"Spanish\");\r\n Admin_Interprete instance = new Admin_Interprete();\r\n \r\n //2. Exe\r\n boolean expResult = true;\r\n boolean result = instance.crearInterprete(interprete);\r\n \r\n //3. Verif\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testCreate() {\n\n }", "@Test\npublic void testCalFileUFP() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calFileUFP\", int.class, int.class, int.class, EstimationFileData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}", "public interface PaymentTestMethods {\n\n void pay();\n\n void accessXmlInvoice();\n void accessPdfInvoice();\n void accessNotOwnInvoice();\n void sendEmailWithInvoices();\n void sendEmailWithNotOwnInvoices();\n void getInvoiceInfo();\n void getNotOwnInvoiceInfo();\n\n void viewUserDeposit();\n void getDepositLimits();\n void topUpDeposit();\n void getTopUpHistory();\n void findUserHistoricalDeposits();\n\n void getNotSettledReservations();\n void getNotSettledReservationsTotals();\n void findHistoricalReservations();\n void getSettledTransactionHistory();\n void getTransactionToReauthorise();\n void findHistoricalTransactions();\n void findUserInvoices();\n\n void getProductPrice();\n void getDomainPricing();\n void getVatRate();\n\n void getPrice();\n void findAllPrices();\n void addPrice();\n void modifyPrice();\n void addVatRate();\n void invalidateVat();\n void getValidVat();\n\n //reports\n void findDeposits();\n void findDepositWithHistory();\n void getReadyADPTransactionsReport();\n void findInvoices();\n\n //manage deposits\n void viewDeposit();\n void correctDeposit();\n void depositFundsOffline();\n \n void getTransactionInfoById();\n void getTransactionInfoByOrderId();\n\n}", "@Test\n public void test() {\n Solution solution = new Solution();\n\n }", "@Test\n public void test() {\n Solution solution = new Solution();\n\n }", "@org.testng.annotations.Test\n public void testGetInstance() throws Exception {\n System.out.println(\"getInstance\");\n Store result = Store.getInstance();\n assertEquals(result, Store.getInstance());\n assertTrue(result instanceof Store);\n }", "@Test\n public void testCSesionInicioxNick() throws Exception {\n System.out.println(\"testCSesionInicioxNick\");\n CSesion instance = new CSesion();\n DataUsuario dU = instance.inicioSesion(\"Tim1\", \"tim123\");\n }", "abstract protected Set<Method> createMethods();", "private Instantiation(){}", "@Test\n public void testGetInstance() {\n System.out.println(\"getInstance\");\n ConnectionManager result = ConnectionManager.getInstance();\n assertNotNull(result);\n assertEquals(instance,result);\n }", "@Test\n void createParkingLot() {\n }", "@Test\npublic void testCalTransactionUTF() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calTransactionUTF\", int.class, int.class, int.class, EstimationTransactionData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}", "@BeforeClass\r\n public static void setUp() throws Exception {\r\n instance = new Array1();\r\n }", "@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }", "@Test\r\n public void testDeck() {\r\n Deck instance = new Deck();\r\n System.out.println(\"Testing Contructor\");\r\n assertNotNull(instance);\r\n }", "@Test\n public void TestCreateCat() {\n String expectedName = \"Milo\";\n Date expectedBirthDate = new Date();\n\n Cat newCat = AnimalFactory.createCat(expectedName, expectedBirthDate);\n\n Assert.assertEquals(expectedName, newCat.getName());\n Assert.assertEquals(expectedBirthDate, newCat.getBirthDate());\n }", "@Override\n public void testGetAllObjects() {\n }", "@Test\n public void testCreateCars() throws Exception {\n Car car = carService.generateACarObject();\n testCreateCars(new ElectricCar(car)); // Test to see if electric cars are saved right!\n testCreateCars(new GasCar(car)); // Test to see if gas cars are saved right!\n testCreateCars(new DieselCar(car)); // Test to see if diesel cars are saved right!\n }", "@Test //This is integration test\r\n\tpublic void testCalculatePrice01() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\tassertEquals(exspectedCombinationList, calcPrice.getResult());\r\n\t}", "@Test\n public void testUpgradeSkill_02() {\n System.out.println(\"upgradeSkill\");\n SkillsList instance = new SkillsList();\n instance.upgradeSkill(\"Java\");\n int result = instance.size();\n assertTrue(result==0);\n }", "@Test\n public void testCircle()\n {\n testCircleConstructor(5, 6);\n testCircleConstructor(11, 20);\n }", "@Test\n public void testNewAddress() {\n System.out.println(\"newAddress\");\n String rua = \"felicia\";\n String codigoPostal = \"1211\";\n String localidade = \"Mancelos\";\n Object result = instance.newAddress(rua, codigoPostal, localidade);\n assertTrue(result instanceof Address);\n }", "static void testCaculator(){\n }", "public AcceptanceTestRun() {\n }", "@Override\n public void test() {\n \n }", "public static void main(String[] args)\n {\n int numErrors = 0;\n\n // testing all the methods with one instance of the class\n BasicDoctor d = new BasicDoctor(\"Joe\");\n if(! d.getName().equals(\"Joe\")) {\n System.out.println(\"The constructor or getName failed\");\n numErrors++;\n }\n d.setName(\"Dr. Joe\");\n if(! d.getName().equals(\"Dr. Joe\")) {\n System.out.println(\"The constructor or setName failed\");\n numErrors++;\n }\n String expected = \"\\nName: Dr. Joe\\n\";\n if(!d.toString().equals(expected)) {\n System.out.println(\"The constructor or toString failed\");\n numErrors++;\n }\n\n // testing all the methods with a second instance of the class\n d = new BasicDoctor(\"Mary\");\n if(! d.getName().equals(\"Mary\")) {\n System.out.println(\"The constructor or getName failed\");\n numErrors++;\n }\n d.setName(\"Dr. Mary\");\n if(! d.getName().equals(\"Dr. Mary\")) {\n System.out.println(\"The constructor or setName failed\");\n numErrors++;\n }\n expected = \"\\nName: Dr. Mary\\n\";\n if(!d.toString().equals(expected)) {\n System.out.println(\"The constructor or toString failed\");\n numErrors++;\n }\n\n System.out.println(\"The number of errors found is \" + numErrors);\n }", "protected TestBench() {}", "@Test\n public void testCalculterBoxPloat() throws Exception {\n System.out.println(\"calculterBoxPloat\");\n POJOCompteItem instance = genererInstanceTest();\n\n instance.compte();\n\n instance.calculterBoxPloat();\n\n\n instance = new POJOCompteItem();\n List<Item> listItem = new ArrayList<Item>();\n Item it1 = new Item();\n it1.setDatePub(new DateTime(2013, 1, 1, 1, 0).toDate());\n listItem.add(it1);\n instance.setItems(listItem);\n instance.setDate1(new DateTime(2013, 1, 1, 0, 0).toDate());\n instance.setDate2(new DateTime(2013, 1, 2, 0, 0).toDate());\n\n instance.compte();\n instance.calculterBoxPloat();\n\n\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@Test\npublic void testAddBalance(){ \n sut.addBalance(100,1,new Account());\n}", "@Test\n public void testBusinessClassReservationMethods() {\n \n busClassRes = new BusinessClassReservation(\"Passenger, One\", planeOneClass , true); //1A\n busClassRes.findSeat();\n\n busClassRes = new BusinessClassReservation(\"Passenger, Two\", planeOneClass, false); //1B\n busClassRes.findSeat();\n\n //firstClassRes = new FirstClassReservation(\"Passenger, Three\", planeOneClass, true); //2A\n //firstClassRes.findSeat();\n \n //firstClassRes = new FirstClassReservation(\"Passenger, Three\", planeOneClass, true); //2E\n //firstClassRes.findSeat();\n \n //firstClassRes = new FirstClassReservation(\"Passenger, Three\", planeOneClass, true); //3A\n //firstClassRes.findSeat();\n \n boolean[][] currentSeat = planeOneClass.getSeatOccupationMap();\n assertTrue(currentSeat[0][0]);\n assertTrue(currentSeat[0][1]);\n //assertTrue(currentSeat[1][0]);\n //assertTrue(currentSeat[1][5]);\n //assertTrue(currentSeat[2][0]);\n //assertTrue(currentSeat[2][5]);\n }", "public Vending_MachineTest()\n {\n // initialise instance variables\n \n \n }", "private void constructionHelper(GenericServiceResult genericServiceResult) {\n\n assertEquals(this.string, genericServiceResult.get(\"string\"));\n assertEquals(this.integer, genericServiceResult.get(\"integer\"));\n assertEquals(this.floats, genericServiceResult.get(\"floats\"));\n\n assertTrue(checkIndices(0, \"string\"));\n assertTrue(checkIndices(1, \"integer\"));\n assertTrue(checkIndices(2, \"floats\"));\n }", "@Test\r\n public void testBuscar() throws Exception {\r\n System.out.println(\"buscar\");\r\n String pcodigo = \"pentos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n \r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n Reparacion result = instance.buscar(pcodigo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n //assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "public void objectTest() {\n }", "public FlightTest(){\n }", "Instance createInstance();", "@Test\r\n\tpublic void testIntialation()\r\n\t{\r\n\t\tPokemon pk = new Vulpix(\"Vulpix\", 100);\r\n\t\r\n\t\tassertEquals(\"Vulpix\", pk.getName());\r\n\t\tassertEquals(100, pk.getMaxLfPts());\r\n\t\tassertEquals(100, pk.getCurrentLifePts());\r\n\t\tassertEquals(100, pk.getCurrentLifePts());\r\n\t\tassertEquals(\"Fire\", pk.getType().getType());\r\n\t}", "@Test\npublic void testCreateQueryForClazzHql() throws Exception { \n//TODO: Test goes here... \n}", "@Test\r\n public void testMethod2() {\r\n Targetable instance = new Adapter();\r\n instance.method1();\r\n instance.method2();\r\n }", "public void testNewBattleCruiser() {\n\t\tGame game = new Game(5, \"\");\n\t\t\n\t\t//Method being tested\n\t\tgame.newBattleCruiser();\n\t\t\n\t\t//Check outcome; \n\t\tEnemyShip actual = game.getAllEnemys().iterator().next();\n\t\tBattleCruiser expected = new BattleCruiser(game.getTheGrid());\n\t\t\n\t\tassertTrue(actual.getClass() == expected.getClass());\n\t}", "@Test\n public void testCreation() {\n this.view.getController().addNewTypeOfFood(creationOfFood(\"Banana\", Pair.of(Nutrient.CARBOHYDRATES, 1.0)));\n assertEquals(\"There is only one type of food\", this.controller.getExistingViewFoods().size(), 1);\n assertEquals(\"There is one type of food in each set\", this.view.getFoodTypes().size(), this.controller.getExistingViewFoods().size());\n this.view.getController().addNewTypeOfFood(creationOfFood(\"Fragola\", Pair.of(Nutrient.CARBOHYDRATES, 1.0)));\n this.view.getController().addNewTypeOfFood(creationOfFood(\"Mela\", Pair.of(Nutrient.WATER, 1.0)));\n assertEquals(\"There are three types of food\", this.controller.getExistingViewFoods().size(), 3);\n assertThrows(AlreadyExistingFoodException.class, () -> this.view.getController().addNewTypeOfFood(creationOfFood(\"Mela\", Pair.of(Nutrient.WATER, 1.0))));\n this.view.getController().addNewTypeOfFood(creationOfFood(\"banana\", Pair.of(Nutrient.CARBOHYDRATES, 1.0)));\n assertEquals(\"banana is different from Banana\", this.controller.getExistingViewFoods().size(), 4);\n }", "private ProtomakEngineTestHelper() {\r\n\t}", "@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }", "public void testCtorSuccess() {\r\n new FileSystemPersistence(10);\r\n }", "@SuppressWarnings(\"serial\")\n @Before\n public void setUp() throws Exception {\n testInstance = new ClientsPrepopulatingBaseAction() {\n };\n }", "@Test\n public void createProduct() {\n }", "Method createMethod();", "Method createMethod();" ]
[ "0.67274314", "0.6470319", "0.6453602", "0.6428449", "0.64185953", "0.63462394", "0.6275549", "0.627126", "0.61418265", "0.6110173", "0.6060616", "0.60383654", "0.60161084", "0.6012192", "0.5998568", "0.5976871", "0.59724855", "0.5950261", "0.59380114", "0.59284145", "0.59254974", "0.59244", "0.59189546", "0.5918606", "0.5906721", "0.5904689", "0.58894986", "0.58838195", "0.58662665", "0.58472776", "0.583976", "0.583976", "0.58280516", "0.5823273", "0.58157957", "0.58149517", "0.58133274", "0.5810754", "0.580957", "0.57986903", "0.5795988", "0.57920504", "0.578513", "0.5777317", "0.577576", "0.57682335", "0.5764924", "0.5758751", "0.5756273", "0.5752183", "0.57457346", "0.5743863", "0.5742215", "0.57211745", "0.57157516", "0.57136893", "0.571231", "0.571231", "0.57071114", "0.57048774", "0.57030946", "0.5688817", "0.5686046", "0.56848896", "0.56848216", "0.568198", "0.567848", "0.5677574", "0.5676114", "0.56712186", "0.5658115", "0.5652271", "0.56496316", "0.56494385", "0.56434", "0.5642624", "0.5640894", "0.5639595", "0.56281567", "0.5617892", "0.56174713", "0.5616856", "0.5615509", "0.561465", "0.5613912", "0.56066626", "0.5602138", "0.5601303", "0.5598616", "0.5598257", "0.55915254", "0.5589086", "0.5583673", "0.55794877", "0.55748534", "0.55743253", "0.5571269", "0.55687773", "0.55682456", "0.5567551", "0.5567551" ]
0.0
-1
Created by kamkalet on 11.07.2017.
public interface IUserService { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public final void mo51373a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\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 public void init() {}", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void memoria() {\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\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "public void mo38117a() {\n }", "@Override\r\n\tpublic void init() {}", "private Rekenhulp()\n\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 public int describeContents() { return 0; }", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {\n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private void kk12() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo6081a() {\n }" ]
[ "0.5996547", "0.5922675", "0.5789114", "0.56752497", "0.5672981", "0.5672981", "0.5622837", "0.5617044", "0.5612971", "0.5611177", "0.5587672", "0.5576023", "0.5569173", "0.5567066", "0.5550559", "0.5550559", "0.5550559", "0.5550559", "0.5550559", "0.5550559", "0.55389667", "0.5536931", "0.55336076", "0.5532124", "0.5528797", "0.5527463", "0.55074996", "0.54940677", "0.5488808", "0.5488808", "0.5488808", "0.5488808", "0.5488808", "0.5483649", "0.54834616", "0.54794115", "0.54713553", "0.5455407", "0.5451569", "0.5451569", "0.54503644", "0.5446899", "0.5445225", "0.5435518", "0.54305285", "0.54305285", "0.5428006", "0.5424653", "0.54214984", "0.54214984", "0.54196787", "0.5417119", "0.5406846", "0.5405454", "0.54042983", "0.54042983", "0.54042983", "0.5394046", "0.53795135", "0.5372048", "0.53695524", "0.53695524", "0.53695524", "0.5364365", "0.5358213", "0.5356376", "0.5350419", "0.5350419", "0.5350419", "0.5348823", "0.53471005", "0.53374434", "0.53196084", "0.53143597", "0.5313982", "0.5311915", "0.5309571", "0.5304461", "0.5301958", "0.5301958", "0.5301958", "0.5276286", "0.527081", "0.527081", "0.527081", "0.527081", "0.527081", "0.527081", "0.527081", "0.5260219", "0.5258921", "0.5258921", "0.52520263", "0.5251062", "0.5249111", "0.5248559", "0.5246293", "0.5240387", "0.5233318", "0.5233182", "0.5226205" ]
0.0
-1
Returns true if list is empty
public boolean isEmpty() { return first == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean isEmpty()\n\t{\n\t\treturn list.isEmpty();\n\t}", "public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "public boolean isEmpty(){\n\t\tif(list.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return list.isEmpty();\n }", "public boolean empty() {\n return list.isEmpty();\n }", "public synchronized boolean isEmpty(){\n return list.isEmpty();\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "public synchronized boolean isEmpty () {\n return list.isEmpty();\n }", "boolean isListRemainingEmpty();", "public boolean isEmpty(){\n return this.listSize == 0;\n }", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "public boolean isEmpty() // true if list is empty\r\n\t{\r\n\t\treturn (first == null);\r\n\t}", "public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }", "public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}", "public static boolean isEmpty(List list){\n\n if(list == null){\n return true;\n }\n if(list.size() == 0){\n return true;\n }\n return false;\n }", "public boolean empty()\n {\n boolean result = (dataList.size() == 0) ? true : false;\n return result;\n }", "public boolean isEmpty() {\n\t\treturn firstNode == null; // return true if List is empty\n\t}", "public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}", "boolean isEmpty(int list) {\n\t\treturn m_lists.getField(list, 0) == -1;\n\t}", "public boolean isEmpty() {\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tStudent emptyChecker;\r\n\t\tint size = sizeOfList(list);\r\n\t\twhile (i < size) {\r\n\t\t\temptyChecker = list[i];\r\n\t\t\tif (emptyChecker != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tnumStudents = 0;\r\n\t return true;\r\n\t}", "public boolean isEmpty() {\n return dataList.size() <= 0 || (dataList.size() == 1 && dataList.get(0).isEmpty());\n }", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "public boolean isEmpty(){\n for(int i = 0; i < arrayList.length; i++) {\n if (arrayList[i] != null)\n return false;\n }\n return true;\n }", "boolean isEmpty() {\n return this.myArrayList.isEmpty();\n }", "@Override\n public boolean isEmpty() {\n if(first == null){ //if first element does not exist, the whole is empty\n return true;\n }\n else{\n return false; //if first element exist, list is not empty\n }\n }", "public boolean isEmpty() {\n\t\t//if head is null\n\t\tif (head == null) {\n\t\t\t//return true, no items in list\n\t\t\treturn true;\n\t\t}\n\t\t//otherwise\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n\t\treturn allItems.size() == 0;\n\t}", "public boolean isEmpty() {\n if (head == null && tail == null) {\n System.out.println(\"This list is empty\");\n return true;\n } else {\n return false;\n }\n }", "public boolean isEmpty() {\n\t\tif (l.getHead() == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean isEmpty() {\n\t\treturn m_list_nodes.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn (_items.size() == 0);\n\t}", "public boolean isEmpty() {\n return stack.isListEmpty();\n }", "public boolean isEmpty()\n {\n //this method is used to check length\n //replacing head == null so I don't have to maintain a head\n //also error checks for null lists\n return (entryList == null || (entryList.size() == 0));\n //just doing .size() == 0 will raise a null pointer exception on occasion\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn numItems == 0 ;\r\n\t}", "public boolean isEmpty()\r\n {\r\n if (count > 0) return false;\r\n else return true;\r\n }", "public boolean empty() {\r\n\r\n\t\tif(item_count>0)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public boolean checkListIsEmpty(List<WebElement> eleList) {\n if (eleList.size() == 0) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\r\n return NumItems == 0;\r\n }", "public boolean isEmpty()\r\n {\r\n return (size() == 0);\r\n }", "public boolean isEmpty() {\r\n return items.isEmpty();\r\n }", "public boolean empty() {\r\n return size == 0;\r\n }", "public boolean isEmpty()\n {\n return elements.isEmpty();\n }", "public boolean empty() {\n return size == 0;\n }", "public boolean isEmpty()\n {\n return ll.getSize()==0? true: false;\n }", "public boolean isEmpty() {\n \tif (numItems==0) {\n \t\treturn true;\n \t}\n \treturn false;\n }", "public boolean isEmpty() {\n\n\t\tif (numItems == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\n\t}", "public boolean isEmpty() {\n return items.isEmpty();\n }", "public boolean isEmpty() {\n return items.isEmpty();\n }", "public final boolean isEmpty() {\r\n\t\treturn this.size == 0;\r\n\t}", "public boolean isEmpty() {\n return elements.isEmpty();\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn (count == 0);\r\n\t}", "public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}", "public boolean isEmpty(){\n return(numItems == 0);\n }", "public boolean empty() { \t \n\t\t return size <= 0;\t \n }", "public boolean isEmpty()\n {\n return this.size == 0;\n }", "private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean isEmpty() {\n return (size() == 0);\n }", "public boolean isEmpty() {\r\n return (size == 0);\r\n }", "public boolean isEmpty() {\n\t\treturn(this.size == 0);\n\t}", "public boolean isEmpty(){\n\t\treturn sizeOfLinkedList() == 0;\n\t}", "public boolean isEmpty() {\n return (this.size == 0);\n }", "public boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean isEmpty(){\n return itemCount == 0;\n }", "public boolean isFull()\n\t{\n\t\tif (counter == list.length)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn(size() == 0);\n\t}", "public boolean isEmpty() {\n\t\treturn elements.isEmpty();\n\t}", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() {\n return (size == 0);\n }", "private boolean isEmpty() {\n return (size == 0);\n }", "public boolean empty() {\n return size <= 0;\n }", "public boolean isEmpty() {\n\t return size() == 0;\n\t }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n\t\treturn elements == 0;\n\t}", "public boolean isEmpty() \n\t {\n\t\t return (size()==0);\n\t }", "@Override\n public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean empty()\n {\n\treturn null == head;\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn count == 0;\r\n\t}", "public synchronized boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n return (size == 0);\n\n }", "public boolean isEmpty(){\n return (numItems==0);\n }", "public boolean isEmpty() \r\n\t{\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty(){\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty() {\n\t return size == 0;\n\t }", "public boolean isEmpty() {\n return (this.count == 0);\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }" ]
[ "0.89912534", "0.8978807", "0.88197666", "0.88101035", "0.88101035", "0.88014936", "0.87930673", "0.87509984", "0.87332684", "0.8712839", "0.8697939", "0.862949", "0.85962135", "0.8587294", "0.8536125", "0.8420122", "0.8415568", "0.8386852", "0.8367454", "0.83671325", "0.83230335", "0.8282936", "0.8240049", "0.82271034", "0.81962496", "0.8150818", "0.8118348", "0.8090662", "0.8087048", "0.80514395", "0.80220515", "0.79833347", "0.7981594", "0.79676396", "0.7941223", "0.7931918", "0.79198474", "0.78915197", "0.78882617", "0.7871163", "0.78689206", "0.78565615", "0.7855249", "0.7851798", "0.7847015", "0.782495", "0.7820963", "0.7814395", "0.78086615", "0.78068817", "0.78062373", "0.78018713", "0.77977216", "0.77966464", "0.7792201", "0.7787988", "0.7787988", "0.7782604", "0.7782239", "0.7779255", "0.77712655", "0.77682173", "0.7767033", "0.7765054", "0.77640396", "0.77636594", "0.77635086", "0.7749256", "0.7748923", "0.7747845", "0.7746359", "0.77436894", "0.77407074", "0.7740652", "0.7740652", "0.7736701", "0.7729991", "0.77273816", "0.77273816", "0.77273816", "0.7727269", "0.772381", "0.7722238", "0.77199036", "0.77192396", "0.7716526", "0.7715229", "0.77125096", "0.77116245", "0.7708648", "0.770631", "0.7705644", "0.77016246", "0.76954585", "0.7690748", "0.76874626", "0.76866627", "0.7683891", "0.7683891", "0.7683891", "0.7683891" ]
0.0
-1
Inserts a new Link at the first of the list
public void insertatFirst(String bookName) { Node2 link = new Node2(bookName); if(size() == 0) { //make it the last link //System.out.println("I got there once"); last = link; } link.nextLink = first; link.prevLink = null; first = link; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean insertLink(Link link);", "public Link add(Link link);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "@Override\n public void insertFirst(E e) {\n if (listHead == null) {\n listHead = new Node(e);\n listTail = listHead;\n }\n\n // In the general case, we simply add a new node at the start\n // of the list via the head pointer.\n else {\n listHead = new Node(e, listHead);\n }\n }", "public void addFirst(T item) {\n\t\tNode nn = new Node();\n\t\tnn.data = item;\n\t\tnn.next = null;\n\n\t\t// linking\n\t\tnn.next = head;\n\t\thead = nn;\n\n\t}", "private void addFirst (E item)\n {\n Node<E> temp = new Node<E>(item); // create a new node\n // and link to the first node\n head = temp;\n size++;\n }", "@Override\n\tpublic void insertAtFirst(T item) {\n\t\tNode<T> newNode = new Node<>(item);\n\t\tif (this.head == null) {\n\t\t\tthis.head = newNode;\n\t\t} else {\n\t\t\tnewNode.setNext(head);\n\t\t\tthis.head = newNode;\n\t\t}\n\t\tlistSize++;\n\t}", "public void add (Card newCard)\n {\n firstLink = new Link(newCard, firstLink);\n }", "public void addFirst(Comparable o){\n\t\t head=new ListElement(o,head);\n\t }", "public void addFirst(Item item){\n this.doublyLinkedList.addFirst(item);\n }", "public void addAtStart(int item) {\n\t\tCLL_LinkNode new_node = new CLL_LinkNode(item);\n\t\tif (this.length == 0) {\n\t\t\tthis.headNode = new_node;\n\t\t\tthis.headNode.setNext(this.headNode);\n\t\t} else {\n\t\t\tCLL_LinkNode temp_node = this.headNode;\n\t\t\twhile (temp_node.getNext() != this.headNode)\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\ttemp_node.setNext(new_node);\n\t\t\tnew_node.setNext(headNode);\n\t\t\tthis.headNode = new_node;\n\t\t}\n\t\tthis.length++;\n\t}", "public void AddLink() {\n snake.add(tail + 1, new Pair(snake.get(tail).GetFirst(), snake.get(tail).GetSecond())); //Set the new link to the current tail link\n tail++;\n new_link = true;\n }", "public void addFirst(Object element)\n {\n Node newNode = new Node();\n newNode.data = element;\n newNode.next = first;\n first = newNode; \n \n }", "public void insert(Item o)\t{\n\t\tDLNode temp = new DLNode(head, o, head.getNext());\n\t\thead.getNext().setPrev(temp);\n\t\thead.setNext(temp);\n\t\tsize++;\n\t}", "public void insertAtFront(T insertItem) {\n\t\tNode<T> node = new Node<T>(insertItem);\n\t\t\n\t\tif (isEmpty()) // firstNode and lastNode refer to same object\n\t\t\tfirstNode = lastNode = node;\n\t\telse { // firstNode refers to new node\n\t\t\tnode.nextNode = firstNode;\n\t\t\tfirstNode = node;\n\t\t\t// you can replace the two previous lines with this line: firstNode\n\t\t\t// = new ListNode( insertItem, firstNode );\n\t\t}\n\t\tsize++;\n\t}", "public boolean ListInsert(int i,T e){\n int j,k,l;\n // k is the index of the last element\n k = MAXSIZE-1;\n if(i<0||i>ListLength())\n return false;\n // Get index of free element\n j = Malloc_SSL();\n // If malloc success\n if(j!=0)\n {\n StaticLinkList[j].data = e;\n // Find the element,who is in front of the ith element\n for (l = 0; l < i; l++)\n k = StaticLinkList[k].cur;\n // s->next = p->next\n StaticLinkList[j].cur = StaticLinkList[k].cur;\n // p->next = s\n StaticLinkList[k].cur = j;\n return true;\n }\n return false;\n }", "public void insertFirst( T data )\n {\n //create a new linkedListNode\n LinkedListNode<T> newNode = new LinkedListNode<T>();\n //assign that node some data\n newNode.setData(data);\n //point new node where current pointer is\n newNode.setNext(head);\n //set head pointer to this new node\n this.head = newNode;\n \n }", "public void insertFirst( T data )\n\t{\n\t\t//make a new node to insert it\n\t\tLinkedListNode<T> newNode = new LinkedListNode<T>();\n\t\t//add data to the node\n\t\tnewNode.setData(data);\n\t\t//link up the new node by\n\t\t//have the new node point to the old current node\n\t\tnewNode.setNext(head);\n\t\t//set the new node as the head\n\t\thead = newNode;\t\n\t\t//increment the size of the list\n\t\tlistSize++;\n\t}", "private void linkFirst(final T element) {\r\n\t\tfinal int f = first;\r\n\t\tfinal int newNode = setFirstFree(element);\r\n\r\n\t\tsetNextPointer(newNode, f);\r\n\t\tsetPrevPointer(newNode, -1); // undefined\r\n\t\tfirst = newNode;\r\n\r\n\t\tif (f == -1) {\r\n\t\t\tlast = newNode;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(f, newNode);\r\n\t\t}\r\n\t\tsize++;\r\n\t\tmodCount++;\r\n\t}", "public void addFirst(Item item) {\n Node newNode = new Node();\n newNode.data = item;\n // if the DList was already empty:\n if(isEmpty()) {\n // set the next pointer of newNode to last\n newNode.next=last;\n last.prev = newNode;\n newNode.prev=first;\n first.next = newNode;\n }\n // no need to touch the last sentinel node, unless the list was already empty:\n else {\n // copy the old actual node that frist sentinel was point to\n Node oldFirst = first.next;\n first.next = newNode;\n newNode.next = oldFirst;\n newNode.prev=first;\n oldFirst.prev = newNode;\n }\n // update size\n size++;\n }", "public void insertAtStart(HashLinkList objLinkList,int data){\r\n\t\tNode node =new Node();\r\n\t\tnode.setData(String.valueOf(data));\r\n\t\tobjLinkList.setSize(objLinkList.getSize()+1);\r\n\t\tif(objLinkList.getStart()==null){\r\n\t\t\tobjLinkList.setStart(node);\r\n\t\t\tobjLinkList.setEnd(objLinkList.getStart());\r\n\t\t} else {\r\n\t\t\tnode.setNext(objLinkList.getStart());\r\n\t\t\tobjLinkList.setStart(node);\r\n\t\t}\r\n\t}", "public void addFirst(E item){\r\n\r\n //checking the precondition\r\n\tif(item == null){\r\n\t\tthrow new IllegalArgumentException(\" item cannot equal null \");\r\n\t}\r\n\t\r\n\t//creating a new front of the list\r\n\tDoubleListNode<E> firstNode = new DoubleListNode<E>(end.getPrev(), item, null);\r\n\t\r\n\t//setting the front of the list to the head\r\n\tfirstNode.setNext(head);\r\n\t\r\n\t//setting the head to new first node\r\n\thead = firstNode;\r\n\t\r\n\t//setting the headData\r\n\theadData = head.getData();\r\n\t\r\n\r\n\r\n }", "public void insertFirst(int data) { // insert at front of list\n\t\tNode newNode = new Node(data); // creation of new node.\n\t\tif (first == null) // means LinkedList is empty.\n\t\t\tlast = newNode; // newNode <--- last\n\t\telse\n\t\t\tfirst.previous = newNode; // newNode <-- old first\n\t\tnewNode.next = first; // newNode --> old first\n\t\tfirst = newNode; // first --> newNode\n\t}", "private void insertCreator(Item item) {\n head = new Node(item, null, null); // creates node\n head.next = head;\n head.before = head; // sets itself as both next and before in the list\n }", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public static Linkedlist insertAtFirst(Linkedlist list,int d)\r\n\t {\r\n\t\t Node newNode = new Node(d);\r\n\t\t newNode.data=d;\r\n\t\t if(head==null)\r\n\t\t {\r\n\t\t\t list.head=newNode;\r\n\t\t\t return list;\r\n\t\t }\r\n\t\t \r\n\t Node temp = list.head;\r\n\t head = newNode;\r\n\t head.next = temp;\r\n\t \t \r\n\t\t return list;\r\n\t }", "public void insertFirst(T data ) {\n\n\t\tNode<T> newNode = new Node<T>(data);\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}", "public void addFirst(Object item){\n MovieNode first = new MovieNode(item);\t//Step 1: Create the MovieNode\n first.next = head.next;\t\t\t//Step 2: Copy the next of head to the next of MovieNode\n head.next = first;\t\t\t\t//Step 3: Update the head next value to point to the new MovieNode\n size++;\t\t\t\t\t\t\t//Step 4: Update the number of nodes in the list\n }", "public void insert(long key) {\n\t\tDELink newLink = new DELink(key);\n\t\tDELink previous = first;\n\t\tDELink current = first;\n\n\t\tif (first == null) {\n\t\t\tnewLink.next = first;\n\t\t\tfirst = newLink;\n\t\t} else {\n\t\t\twhile (newLink.next == null) {\n\t\t\t\tif (current.getLData() <= key) {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tprevious.next = current;\n\t\t\t\t} else {\n\t\t\t\t\tif (current == first) {\n\t\t\t\t\t\tnewLink.next = current;\n\t\t\t\t\t\tfirst = newLink;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.next = newLink;\n\t\t\t\t\t\tnewLink.next = current;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Item must not be null.\");\n }\n\n Node<Item> oldFirst = first;\n first = new Node<>();\n first.item = item;\n first.next = oldFirst;\n if (oldFirst == null) {\n last = first;\n } else {\n oldFirst.previous = first;\n }\n size++;\n assert check();\n }", "public void addfirst(Item item)\r\n {\r\n Node first = pre.next;\r\n Node x = new Node();\r\n x.item = item;\r\n x.prev = pre;\r\n x.next = first;\r\n pre.next = x;\r\n first.prev = x;\r\n n++;\r\n }", "public void addFirst(Item item) {\n Node oldFirst = first;\n first = new Node(null, item, oldFirst);\n if (oldFirst == null)\n last = first;\n else\n oldFirst.prev = first;\n size++;\n }", "public void addlink(TparselinksEntity newlink);", "public void addFirst(Object value)\n {\n if(last == null && first == null)\n {\n ListNode temp = new ListNode(value, null);\n last = temp;\n first = temp;\n }\n else\n {\n first = new ListNode(value, first);\n }\n \n }", "public void insertAtBeginning(int data) {\r\n if(head==null) {\r\n head = new ListNode(data);\r\n return;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n new_node.next=head;\r\n head=new_node;\r\n }", "public void insertFirst(Student student) {\n // crate a Node\n Node node = new Node();\n node.setStudent(student);\n node.setLink(head);\n\n head = node;\n System.out.println(\"Insert First the Property successfully!!\");\n }", "@Override\n\tpublic Position<E> addFirst(E e) {\n\t\treturn addBetween(head, head.next, e);\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Element cannot be null.\");\n }\n Node node = new Node(item);\n node.next = head.next;\n node.prev = head;\n head.next.prev = node;\n head.next = node;\n size++;\n }", "public void insert(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }", "private void linkFirst(E e) {\r\n \tfinal Node<E> f= first;\r\n \tfinal Node<E> newNode = new Node<>(null, e, f);\r\n \tfirst = newNode;\r\n \tif (f == null)\r\n \t\tlast = newNode;\r\n \telse\r\n \t\tf.prev = newNode;\r\n \tsize++;\r\n \tmodCount++;\r\n }", "public void insertAtHead(singlyListNode n){\n if (this.head == null){\n this.head = n;\n this.tail = this.head;\n }else{\n n.setNextNode(this.head);\n this.head = n;\n }\n this.listSize ++; //increment list capacity\n }", "public void addFirst(Item item){\n\t\tif(item == null){\n\t\t\tthrow new NullPointerException(\"Cannot insert a null item.\");\n\t\t}else{\n\t\t\t//Save old first node\n\t\t\tNode<Item> oldFirst = first;\n\t\t\t//assign first node to a new node\n\t\t\tfirst = new Node<Item>();\n\t\t\tfirst.item = item;\n\t\t\tfirst.prev = null;\n\t\t\tfirst.next = oldFirst;\n\t\t\t//link the old first to new first\n\t\t\t//if the first item to add\n\t\t\tif(oldFirst == null){\n\t\t\t\tlast = first;\n\t\t\t}else{\n\t\t\t\toldFirst.prev = first;\n\t\t\t}\n\t\t\t//increase size by 1\n\t\t\tn++;\n\t\t}\n\t}", "public void insertAtFrontOfList(T item){\n //if (contains(item) == false){\n MyDoubleNode<T> temp = new MyDoubleNode();\n if (isEmpty()){\n temp.data = item;\n head.next = temp;\n temp.prev = head;\n tail.prev = temp;\n temp.next = tail;\n }\n else {\n temp.data = item;\n temp.next = head.next;\n temp.prev = head;\n head.next = temp;\n }\n //}\n }", "public PlayerNode insertAthead(Player aPlayer, PlayerNode head)\n\t{\n\t\tPlayerNode newptr = new PlayerNode(null,aPlayer); //newptr to be used for the new node to be added!\n\t\t\n\t\tif(head.getLink() == null)\n\t\t{\n\t\t\thead.setLink(newptr); //sets newptr to link to head\n\t\t\tnewptr.setLink(head);\n\t\t\tnewptr.setaPlayer(aPlayer);\t\t\t\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tnewptr.setLink(head.getLink());\n\t\t\thead.setLink(newptr);\n\t\t\tnewptr.setaPlayer(aPlayer);\n\t\t}\t\t\t\n\t\treturn head; //if head can change you want to return it\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node node = new Node();\n node.item = item;\n node.next = first;\n if (first == null) {\n first = node;\n last = first;\n }\n else {\n first.pre = node;\n first = node;\n }\n len++;\n }", "public void insert(LinkedList target, LinkedList list, int start) {\n\t\t\n\t}", "public void addFirst(Object e) {\n if(head == null) {\n tail = head = new Node(e, null, null);\n return;\n }\n\n Node n = new Node(e, null, head);\n head.setPrevious(n);\n head = n;\n }", "private void insertFirst(T data){\n Node<T> node = new Node<T>(data);\n this.begin = node;\n this.end = node;\n }", "public void addFirst(Item item) throws NullPointerException {\n checkItemNotNull(item);\n\n Node oldfirst = first;\n first = new Node(item);\n\n if (isEmpty()) {\n last = first;\n } else {\n oldfirst.prev = first;\n first.next = oldfirst;\n }\n size++;\n }", "public void insert(Object element)\n {\n if(head==null){\n head=tail=new SLListNode(element,head);\n return;\n }\n head=new SLListNode(element,head);\n }", "@Override\n public void addFirst(E element) {\n Node<E> newNodeList = new Node<>(element, head);\n\n head = newNodeList;\n cursor = newNodeList;\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) throw new NullPointerException(\"Item is null\");\n if (isEmpty()) {\n first = new Node<Item>(item);\n last = first;\n } else {\n Node<Item> newFirst = new Node<Item>(item);\n newFirst.next = first;\n first.prev = newFirst;\n first = newFirst;\n }\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Can not call addFirst() with a null argument\");\n }\n Node<Item> oldFirst = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFirst;\n if (isEmpty()) {\n last = first;\n }\n else {\n // first.prev = oldFirst;\n oldFirst.prev = first;\n }\n n++;\n }", "public void insert(T aData) {\r\n\t\tListNode newNode = new ListNode(aData, null);\r\n\t\tif (head == null) {\r\n\t\t\thead = curr = newNode;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tListNode temp = head;\r\n\t\t// Equivalent of the for loop for an array\r\n\t\twhile (temp.link != null) {\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t\ttemp.link = newNode;\r\n\t}", "public void addFirst(E e) {\n this.head = new Node<>(e, head);\t// create and link a new node\r\n if (this.size == 0)\r\n this.tail = this.head;\r\n this.size ++;\r\n }", "public void addFirst(T item) {\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, _front, null);\n\t _front.setNext(temp);\n\t _front = temp;\n\t}\n\t_size++;\n }", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "public void insert(E data, int index) {\r\n\t\tcheckIndex(index);\r\n\t\t\r\n\t\t// If add the index is the tail of the LinkList, call add(data)\r\n\t\tif(index == size) {\r\n\t\t\tadd(data);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\tNode<E> newNode = new Node<E>(data, null);\r\n\t\t\r\n\t\t// Get the (index-1)th node\r\n\t\tNode<E> beforeNode = findNode(index);\r\n\t\tnewNode.link = beforeNode.link;\r\n\t\tbeforeNode.link = newNode;\r\n\t\tsize++;\r\n\t\t}\r\n\t}", "public void insertFirstNode (LinkedListNode<T> newNode ) {\n\t\t//set new node to point to the head\n\t\tnewNode.setNext(head);\n\t\t//set head equal to the new node\n\t\thead = newNode;\n\t}", "public void addFirst(E element){\n Node<E> newNode = new Node<E>(element);\n newNode.setNext(head.getNext());\n head.setNext(newNode);\n newNode.getNext().setPrevious(newNode);\n newNode.setPrevious(head); \n size++;\n }", "public void addFirst(E item) {\n Node<E> n = new Node<>(item, head);\n size++;\n if(head == null) {\n // The list was empty\n head = tail = n;\n } else {\n head = n;\n }\n }", "public void addFirst(Item item) {\n\t\tif (item == null) throw new NullPointerException();\n\t\t\n\t\tcount++;\n\t\t\n\t\tNode firstNode = new Node();\n\t\tfirstNode.item = item;\n\t\tif (count > 1) {\n\t\t\tfirstNode.next = first;\n\t\t\tfirst.previous = firstNode;\n\t\t} else {\n\t\t\tlast = firstNode;\n\t\t}\n\t\tfirst = firstNode;\n\t}", "public void addFirst(Item item) {\n if (item == null) throw new IllegalArgumentException(\"argument is null\");\n if (!isEmpty()) {\n Node a = new Node();\n a.item = item;\n a.prev = null;\n a.next = first;\n first.prev = a;\n first = a;\n }\n else {\n Node a = new Node();\n a.item = item;\n a.next = null;\n a.prev = null;\n first = a;\n last = a;\n }\n size++;\n }", "public void insertStart(Item item) {\n if (size == 0) insertCreator(item); // if circle is empty\n else { // if these's at least one node already\n Node temp = head;\n head = new Node(item, temp, temp.before); // creates new node\n temp.before.next = head;\n temp.before = head;\n }\n size++;\n }", "public void insertFirst( T data ) {\n\t\t//make a new node \n\t\tLinkedListNode<T> newNode = new LinkedListNode<T>();\n\t\t///add data to this node\n\t\tnewNode.setData(data);\n\t\t//if the head isn't null\n\t\tif(head != null){\n\t\t\t//insert the new node at the head\n\t\t\tinsertFirstNode(newNode);\n\t\t}\n\t\t//otherwise\n\t\telse{\n\t\t\t//the head is the new node\n\t\t\thead = newNode;\n\t\t}\n\t}", "public void addFirst(Item item){\r\n\t\t if (item == null) throw new NullPointerException();\r\n\t\t if (n == list.length){resize(2*list.length);}\r\n\t\t if(isEmpty()){prior=0;first=0;last=0;latter=1;}\r\n\t\t list[prior--]=item;\r\n\t\t first = prior+1;\r\n\t\t if(prior==-1){prior=list.length-1;}\r\n\t\t n++;}", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n\n this.first = new Node(item, this.first, null);\n\n if (this.size == 0) {\n this.last = this.first;\n } else {\n this.first.next.prev = this.first;\n }\n\n this.size++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Item Null\");\n } else {\n\n if (isEmpty()) {\n first = new Node<Item>();\n first.item = item;\n last = first;\n } else {\n Node<Item> oldFrist = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFrist;\n oldFrist.prev = first;\n }\n N++;\n }\n }", "public void insertAtBack(L insertItem){\n\t\tListNode node = new ListNode(insertItem);\n\t\tif(isEmpty()) //firstNode and lastNode refer to same Object\n\t\tfirstNode = lastNode = node;\n\t\telse{ //lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t//you can replace the two previous lines with this line: lastNode = lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t}", "public void addFirst(Item item) {\n if (item == null)\n throw new IllegalArgumentException();\n\n if (this.first == null) {\n this.first = new Node();\n this.first.item = item;\n this.last = this.first;\n } else {\n Node newfirst = new Node();\n newfirst.item = item;\n newfirst.next = this.first;\n this.first.prev = newfirst;\n this.first = newfirst;\n }\n this.n++;\n }", "public void addFirst(Object data) {\n Node newNode = new Node(data);\n newNode.next = head;\n head = newNode;\n size ++;\n if (head.next == null) {\n tail = head;\n }\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node<Item> node = new Node<Item>(item);\n if (head == null) {\n head = node;\n tail = head;\n } else {\n head.prev = node;\n node.next = head;\n head = node;\n }\n\n size++;\n }", "public static Node insertFirst(Node head, Node n) {\n if (head == null || n == null) return n;\n n.next = head;\n return n;\n }", "public void addFirst(MemoryBlock block) {\n\t\tNode clone = tail.next; \n\t\tNode newNode = new Node(block);\n\t\tnewNode.next = clone;\n\t\tnewNode.previous = tail;\n\t\ttail.next = newNode;\n\t\tclone.previous = newNode;\n\t\tsize++;\n\t}", "public void insertAtHead(String s)\n {\n Node temp = new Node(s);\n boolean isDuplicate = false;\n \n if(head == null)\n {\n head = temp;\n temp.next = head;\n }\n else\n {\n Node current = head;\n \n while(current.next != head && isDuplicate == false)\n {\n if(current.data.equals(s))\n {\n isDuplicate = true;\n }\n current = current.next;\n }\n \n if(isDuplicate == false)\n {\n temp.next = head;\n current.next = temp;\n head = temp;\n }\n }\n }", "public void insert(int info) {\n\t\tnode one = new node(info);\n\t\tif(head != null) {\n\t\t\tone.next = head;\n\t\t} \n\t\thead = one;\n\n\t\t//OR\n\t\t//insertAt(info, 0);\n\t}", "static ListNode insertAtBeginning(ListNode head, int data) {\n\n ListNode newNode = new ListNode(data);\n\n if (head == null) {\n return newNode;\n }\n\n newNode.next = head;\n head = newNode;\n\n return head;\n }", "public void addFirst(Object item) throws ListException {\r\n\r\n\t\tDoublyNode newNode = new DoublyNode(item);\r\n\t\t//This will add to the first slot if the list is not empty\r\n\t\tif(!isEmpty()){\r\n\t\t\t//Set a nextNode pointer to keep track of the node after the new node\r\n\t\t\tDoublyNode nextNode;\r\n\t\t\tnextNode = head.getNext();\r\n\r\n\t\t\tnextNode.setPrev(newNode);//Set the next nodes previous pointer\r\n\t\t\tnewNode.setNext(nextNode);//Set the new nodes next pointer\r\n\t\t\tnewNode.setPrev(head);//Set the new nodes previous pointer\r\n\t\t\thead.setNext(newNode);//Set the heads next pointer\r\n\t\t}\r\n\t\t//This will add to the first slot if the list is empty\r\n\t\telse{\r\n\t\t\thead.setNext(newNode);//Set the head next pointer to the new node\r\n\t\t\thead.setPrev(newNode);//Set the head prev pointer to the new node\r\n\t\t\tnewNode.setNext(head);//Set the new node next pointer to the head\r\n\t\t\tnewNode.setPrev(head);//Set the new node prev pointer to the head\r\n\t\t}\r\n\t\tnumItems++;//Increment number of items\r\n\t}", "public void insert(String name){\n ArtistNode node = new ArtistNode(name);\n \n //if head is null then we know our list is empty and we set the newly created node as our first node\n if(head==null){\n head = node;\n }\n \n //if the list is not empty and our first node has a value then we enter the else statement\n else{\n \n //we create a temporary node and set it equal to the firt node\n ArtistNode traverseNode = head;\n \n //we now traverse the list by entering a while loop that keeps iterating if the next node is not null\n while(traverseNode.next!=null){\n \n //we set our temp node to equal the next node only stopping when temp node gets a value of null. Once we get null, we know that we are at the last node\n //in the linked list and can exit the while loop.\n traverseNode = traverseNode.next;\n }\n \n //We have exited the while loop because tempNode.next returned null. We want our information to be stored in that location so we say the node that we first created\n //and its information is now going to be stored at the location. Traverse node hit the end of the list and said hey I know where the null is, im going to now point to the\n //the new node instead and the new node can then point to null because it wont have a next value\n traverseNode.next=node;\n \n }\n \n \n }", "private void insert(Node<E> x) {\n\t\tlast = last.next = x;\n\t}", "public void addFirst(Item item) {\n\t\tif (item == null) {\n\t\t\tthrow new IllegalArgumentException(\"Cannot add null item\");\n\t\t}\n\n\t\tNode node = new Node(item);\n\t\tif (first == null) {\n\t\t\tfirst = last = node;\n\t\t} else {\n\t\t\tnode.next = first;\n\t\t\tfirst.previous = node;\n\t\t\tfirst = node;\n\t\t}\n\t\tsize++;\n\n\t}", "public void addLink(E data){\n\t\t\n\t\tNode temp = new Node(data);\n\t\tNode current = head;\t\t//starting at head node and moving to end of list\t\t\t\t\n\t\t\n\t\twhile(current.getNext() != null){\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\tcurrent.setNext(temp);\n\t\tsize++; \t\t\t\t\t// increment the number of element\n\t}", "public void addFirst(Item x);", "@Override\r\n public void onInserted(ParserItemLink link) {\r\n tableAdd(link);\r\n selectedLink = link;\r\n tableSelect(link);\r\n }", "public void insertFirst( T data ){\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData( data );\n\t\t//if head = empty\n\t\tif( head == null ){\n\t\t\thead = newNode;\n\t\t\ttail = newNode;\n\t\t\tnewNode.setNext( null );\n\t\t\tnewNode.setPrev( null );\n\t\t}\n\t\telse{\n\t\t\tnewNode.setNext( head );\n\t\t\thead.setPrev( newNode );\n\t\t\thead = newNode;\n\t\t}\n\t\tsize++;\n\t}", "public void addFirst(E e) { // adds element e to the front of the list\n // TODO\n if (size == 0) {\n tail = new Node<>(e, null);\n tail.setNext(tail);\n } else {\n Node<E> newest = new Node<>(e, tail.getNext());\n tail.setNext(newest);\n }\n size++;\n }", "public void insertAtTrail(singlyListNode n){\n if (this.head == null){\n this.head = n;\n this.tail = this.head;\n }else{\n this.tail.setNextNode(n);\n this.tail = n;\n }\n this.listSize ++;\n }", "public void insertTest(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }", "public void addFirst(E e) {\n\r\n Node newNode = new Node(e,head);\r\n head = newNode;\r\n\r\n if(head.getNext() == null){\r\n tail = head;\r\n }\r\n\r\n }", "public void addFirst(Object o) {\r\n addBefore(o, header.next);\r\n }", "private void InsertAt(IntRepList.OpNode node, IntRepList.OpNode current) {\n current.prev.next = node;\n node.prev = current.prev;\n node.next = current;\n }", "public void insert(T insertItem){\n if(isEmpty())\n firstNode = lastNode = new SortedListNode<>(insertItem);\n else\n lastNode = lastNode.nextNode = new SortedListNode<>(insertItem);\n\n this.sort();\n }", "public void addFront(E d) {\n\t\t// make new node to contain d\n\t\tListNode<E> node = new ListNode<E>(d);\n\t\tif (this.head == null) {\n\t\t\t// the list is empty so make the head point at the node\n\t\t\tthis.head = node;\n\t\t\tthis.last = node;\n\t\t} else {\n\t\t\t// the list it not empty, so the old head's next points at the node\n\t\t\t// the head points at the node\n\t\t\tnode.next = this.head;\n\t\t\tthis.head = node;\n\t\t}\n\t\tthis.size++;\n\t}", "public void addFrontNode(T a) {\r\n head = new ListNode(a, head);\r\n }", "public void addAtStart(Item item) { \t\n \tif(head.item == null) {\n \t\thead.item = item;\n\t \t\tif(isEmpty()) {\n\t \t\thead.next = tail;\n\t \t\ttail.next = head;\n\t \t\t} \t\t\n \t} else {\n \t\tNode oldHead;\n \t\toldHead = head;\n \t\thead = new Node();\n \t\thead.item = item;\n \t\thead.next = oldHead;\n \t\ttail.next = head;\n \t}\n \tsize++;\n }", "public void prepend(Item item) {\n Node newNode = new Node();\n newNode.item = item;\n newNode.next = head.next;\n head.next = newNode;\n size++;\n }", "public void internalInsert(T insertItem){\n if(isEmpty())\n firstNode = lastNode = new SortedListNode<>(insertItem);\n else\n lastNode = lastNode.nextNode = new SortedListNode<>(insertItem);\n\n\n }", "public void insert(int value){\n linkedList.insertLast(value);\n }", "@Override\n public void add(T newItem) {\n LinkedElement<T> tmpElement = new LinkedElement<>(newItem);\n\n if (firstElement == null) {\n firstElement = tmpElement;\n size = 1;\n } else {\n LinkedElement<T> currentElement = firstElement;\n while (currentElement.next != null) {\n currentElement = currentElement.next;\n }\n // currentElement is the last element in the list, now. Meaning that currentElement.next is null.\n currentElement.next = tmpElement; // These two are pointing at each other now.\n tmpElement.prev = currentElement;\n size++;\n }\n }", "public void addFirst(Item item){\n if (item == null)\n throw new NullPointerException();\n\n DoublyLinkedListNode<Item> node = new DoublyLinkedListNode<Item>(item);\n\n if (this.count == 0){\n this.head = this.tail = node;\n this.count++;\n return;\n }\n\n DoublyLinkedListNode tmp = head;\n head = node;\n head.next = tmp;\n tmp.previous = head;\n\n this.count++;\n }" ]
[ "0.7016834", "0.6834393", "0.6833383", "0.67790246", "0.67317873", "0.6705471", "0.6667385", "0.6599536", "0.65090007", "0.6507372", "0.6473829", "0.6473732", "0.6469118", "0.6460718", "0.64589417", "0.64191353", "0.64113194", "0.6387052", "0.6383416", "0.6369727", "0.6348013", "0.63211673", "0.6305231", "0.6302591", "0.62876683", "0.62786436", "0.62602293", "0.625908", "0.624009", "0.62108016", "0.61989665", "0.619777", "0.6197092", "0.6194575", "0.6194457", "0.61922455", "0.6176286", "0.6170517", "0.6167678", "0.61618274", "0.61528003", "0.61474496", "0.61431783", "0.6143054", "0.6142518", "0.6110394", "0.6109878", "0.61037403", "0.60989326", "0.6096348", "0.6095557", "0.6092803", "0.6089795", "0.6083648", "0.6080927", "0.60775286", "0.6077224", "0.6064972", "0.60625094", "0.60598093", "0.60586196", "0.6057522", "0.60571754", "0.60418385", "0.6035529", "0.6027932", "0.6020835", "0.6017572", "0.60172224", "0.6015791", "0.60128963", "0.6008526", "0.60053056", "0.6000572", "0.5999299", "0.5994811", "0.59933853", "0.5993126", "0.5984655", "0.5981724", "0.59722537", "0.5964319", "0.5947979", "0.5947763", "0.5947167", "0.59372497", "0.59370327", "0.5931526", "0.59312785", "0.59291786", "0.59274", "0.5920092", "0.591959", "0.59183514", "0.59177697", "0.5916503", "0.59127164", "0.5906418", "0.5903606", "0.58986783" ]
0.6796557
3
Inserts a new Link at the first of the list
public void append(String bookName) { Node2 link = new Node2(bookName); link.prevLink = last; link.nextLink = null; last.nextLink = link; last = link; //System.out.println("No"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean insertLink(Link link);", "public Link add(Link link);", "public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}", "public void insertatFirst(String bookName) {\n \tNode2 link = new Node2(bookName);\n \t if(size() == 0) {\n \t //make it the last link\n \t \t//System.out.println(\"I got there once\");\n \t last = link;\n \t }\n\t link.nextLink = first;\n\t link.prevLink = null;\n\t first = link;\n\t \n\t \n }", "@Override\n public void insertFirst(E e) {\n if (listHead == null) {\n listHead = new Node(e);\n listTail = listHead;\n }\n\n // In the general case, we simply add a new node at the start\n // of the list via the head pointer.\n else {\n listHead = new Node(e, listHead);\n }\n }", "public void addFirst(T item) {\n\t\tNode nn = new Node();\n\t\tnn.data = item;\n\t\tnn.next = null;\n\n\t\t// linking\n\t\tnn.next = head;\n\t\thead = nn;\n\n\t}", "private void addFirst (E item)\n {\n Node<E> temp = new Node<E>(item); // create a new node\n // and link to the first node\n head = temp;\n size++;\n }", "@Override\n\tpublic void insertAtFirst(T item) {\n\t\tNode<T> newNode = new Node<>(item);\n\t\tif (this.head == null) {\n\t\t\tthis.head = newNode;\n\t\t} else {\n\t\t\tnewNode.setNext(head);\n\t\t\tthis.head = newNode;\n\t\t}\n\t\tlistSize++;\n\t}", "public void add (Card newCard)\n {\n firstLink = new Link(newCard, firstLink);\n }", "public void addFirst(Comparable o){\n\t\t head=new ListElement(o,head);\n\t }", "public void addFirst(Item item){\n this.doublyLinkedList.addFirst(item);\n }", "public void addAtStart(int item) {\n\t\tCLL_LinkNode new_node = new CLL_LinkNode(item);\n\t\tif (this.length == 0) {\n\t\t\tthis.headNode = new_node;\n\t\t\tthis.headNode.setNext(this.headNode);\n\t\t} else {\n\t\t\tCLL_LinkNode temp_node = this.headNode;\n\t\t\twhile (temp_node.getNext() != this.headNode)\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\ttemp_node.setNext(new_node);\n\t\t\tnew_node.setNext(headNode);\n\t\t\tthis.headNode = new_node;\n\t\t}\n\t\tthis.length++;\n\t}", "public void AddLink() {\n snake.add(tail + 1, new Pair(snake.get(tail).GetFirst(), snake.get(tail).GetSecond())); //Set the new link to the current tail link\n tail++;\n new_link = true;\n }", "public void addFirst(Object element)\n {\n Node newNode = new Node();\n newNode.data = element;\n newNode.next = first;\n first = newNode; \n \n }", "public void insert(Item o)\t{\n\t\tDLNode temp = new DLNode(head, o, head.getNext());\n\t\thead.getNext().setPrev(temp);\n\t\thead.setNext(temp);\n\t\tsize++;\n\t}", "public void insertAtFront(T insertItem) {\n\t\tNode<T> node = new Node<T>(insertItem);\n\t\t\n\t\tif (isEmpty()) // firstNode and lastNode refer to same object\n\t\t\tfirstNode = lastNode = node;\n\t\telse { // firstNode refers to new node\n\t\t\tnode.nextNode = firstNode;\n\t\t\tfirstNode = node;\n\t\t\t// you can replace the two previous lines with this line: firstNode\n\t\t\t// = new ListNode( insertItem, firstNode );\n\t\t}\n\t\tsize++;\n\t}", "public boolean ListInsert(int i,T e){\n int j,k,l;\n // k is the index of the last element\n k = MAXSIZE-1;\n if(i<0||i>ListLength())\n return false;\n // Get index of free element\n j = Malloc_SSL();\n // If malloc success\n if(j!=0)\n {\n StaticLinkList[j].data = e;\n // Find the element,who is in front of the ith element\n for (l = 0; l < i; l++)\n k = StaticLinkList[k].cur;\n // s->next = p->next\n StaticLinkList[j].cur = StaticLinkList[k].cur;\n // p->next = s\n StaticLinkList[k].cur = j;\n return true;\n }\n return false;\n }", "public void insertFirst( T data )\n {\n //create a new linkedListNode\n LinkedListNode<T> newNode = new LinkedListNode<T>();\n //assign that node some data\n newNode.setData(data);\n //point new node where current pointer is\n newNode.setNext(head);\n //set head pointer to this new node\n this.head = newNode;\n \n }", "public void insertFirst( T data )\n\t{\n\t\t//make a new node to insert it\n\t\tLinkedListNode<T> newNode = new LinkedListNode<T>();\n\t\t//add data to the node\n\t\tnewNode.setData(data);\n\t\t//link up the new node by\n\t\t//have the new node point to the old current node\n\t\tnewNode.setNext(head);\n\t\t//set the new node as the head\n\t\thead = newNode;\t\n\t\t//increment the size of the list\n\t\tlistSize++;\n\t}", "private void linkFirst(final T element) {\r\n\t\tfinal int f = first;\r\n\t\tfinal int newNode = setFirstFree(element);\r\n\r\n\t\tsetNextPointer(newNode, f);\r\n\t\tsetPrevPointer(newNode, -1); // undefined\r\n\t\tfirst = newNode;\r\n\r\n\t\tif (f == -1) {\r\n\t\t\tlast = newNode;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(f, newNode);\r\n\t\t}\r\n\t\tsize++;\r\n\t\tmodCount++;\r\n\t}", "public void addFirst(Item item) {\n Node newNode = new Node();\n newNode.data = item;\n // if the DList was already empty:\n if(isEmpty()) {\n // set the next pointer of newNode to last\n newNode.next=last;\n last.prev = newNode;\n newNode.prev=first;\n first.next = newNode;\n }\n // no need to touch the last sentinel node, unless the list was already empty:\n else {\n // copy the old actual node that frist sentinel was point to\n Node oldFirst = first.next;\n first.next = newNode;\n newNode.next = oldFirst;\n newNode.prev=first;\n oldFirst.prev = newNode;\n }\n // update size\n size++;\n }", "public void insertAtStart(HashLinkList objLinkList,int data){\r\n\t\tNode node =new Node();\r\n\t\tnode.setData(String.valueOf(data));\r\n\t\tobjLinkList.setSize(objLinkList.getSize()+1);\r\n\t\tif(objLinkList.getStart()==null){\r\n\t\t\tobjLinkList.setStart(node);\r\n\t\t\tobjLinkList.setEnd(objLinkList.getStart());\r\n\t\t} else {\r\n\t\t\tnode.setNext(objLinkList.getStart());\r\n\t\t\tobjLinkList.setStart(node);\r\n\t\t}\r\n\t}", "public void addFirst(E item){\r\n\r\n //checking the precondition\r\n\tif(item == null){\r\n\t\tthrow new IllegalArgumentException(\" item cannot equal null \");\r\n\t}\r\n\t\r\n\t//creating a new front of the list\r\n\tDoubleListNode<E> firstNode = new DoubleListNode<E>(end.getPrev(), item, null);\r\n\t\r\n\t//setting the front of the list to the head\r\n\tfirstNode.setNext(head);\r\n\t\r\n\t//setting the head to new first node\r\n\thead = firstNode;\r\n\t\r\n\t//setting the headData\r\n\theadData = head.getData();\r\n\t\r\n\r\n\r\n }", "public void insertFirst(int data) { // insert at front of list\n\t\tNode newNode = new Node(data); // creation of new node.\n\t\tif (first == null) // means LinkedList is empty.\n\t\t\tlast = newNode; // newNode <--- last\n\t\telse\n\t\t\tfirst.previous = newNode; // newNode <-- old first\n\t\tnewNode.next = first; // newNode --> old first\n\t\tfirst = newNode; // first --> newNode\n\t}", "private void insertCreator(Item item) {\n head = new Node(item, null, null); // creates node\n head.next = head;\n head.before = head; // sets itself as both next and before in the list\n }", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public static Linkedlist insertAtFirst(Linkedlist list,int d)\r\n\t {\r\n\t\t Node newNode = new Node(d);\r\n\t\t newNode.data=d;\r\n\t\t if(head==null)\r\n\t\t {\r\n\t\t\t list.head=newNode;\r\n\t\t\t return list;\r\n\t\t }\r\n\t\t \r\n\t Node temp = list.head;\r\n\t head = newNode;\r\n\t head.next = temp;\r\n\t \t \r\n\t\t return list;\r\n\t }", "public void addFirst(Object item){\n MovieNode first = new MovieNode(item);\t//Step 1: Create the MovieNode\n first.next = head.next;\t\t\t//Step 2: Copy the next of head to the next of MovieNode\n head.next = first;\t\t\t\t//Step 3: Update the head next value to point to the new MovieNode\n size++;\t\t\t\t\t\t\t//Step 4: Update the number of nodes in the list\n }", "public void insertFirst(T data ) {\n\n\t\tNode<T> newNode = new Node<T>(data);\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}", "public void insert(long key) {\n\t\tDELink newLink = new DELink(key);\n\t\tDELink previous = first;\n\t\tDELink current = first;\n\n\t\tif (first == null) {\n\t\t\tnewLink.next = first;\n\t\t\tfirst = newLink;\n\t\t} else {\n\t\t\twhile (newLink.next == null) {\n\t\t\t\tif (current.getLData() <= key) {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tprevious.next = current;\n\t\t\t\t} else {\n\t\t\t\t\tif (current == first) {\n\t\t\t\t\t\tnewLink.next = current;\n\t\t\t\t\t\tfirst = newLink;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprevious.next = newLink;\n\t\t\t\t\t\tnewLink.next = current;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Item must not be null.\");\n }\n\n Node<Item> oldFirst = first;\n first = new Node<>();\n first.item = item;\n first.next = oldFirst;\n if (oldFirst == null) {\n last = first;\n } else {\n oldFirst.previous = first;\n }\n size++;\n assert check();\n }", "public void addfirst(Item item)\r\n {\r\n Node first = pre.next;\r\n Node x = new Node();\r\n x.item = item;\r\n x.prev = pre;\r\n x.next = first;\r\n pre.next = x;\r\n first.prev = x;\r\n n++;\r\n }", "public void addFirst(Item item) {\n Node oldFirst = first;\n first = new Node(null, item, oldFirst);\n if (oldFirst == null)\n last = first;\n else\n oldFirst.prev = first;\n size++;\n }", "public void addlink(TparselinksEntity newlink);", "public void addFirst(Object value)\n {\n if(last == null && first == null)\n {\n ListNode temp = new ListNode(value, null);\n last = temp;\n first = temp;\n }\n else\n {\n first = new ListNode(value, first);\n }\n \n }", "public void insertAtBeginning(int data) {\r\n if(head==null) {\r\n head = new ListNode(data);\r\n return;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n new_node.next=head;\r\n head=new_node;\r\n }", "public void insertFirst(Student student) {\n // crate a Node\n Node node = new Node();\n node.setStudent(student);\n node.setLink(head);\n\n head = node;\n System.out.println(\"Insert First the Property successfully!!\");\n }", "@Override\n\tpublic Position<E> addFirst(E e) {\n\t\treturn addBetween(head, head.next, e);\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Element cannot be null.\");\n }\n Node node = new Node(item);\n node.next = head.next;\n node.prev = head;\n head.next.prev = node;\n head.next = node;\n size++;\n }", "public void insert(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }", "private void linkFirst(E e) {\r\n \tfinal Node<E> f= first;\r\n \tfinal Node<E> newNode = new Node<>(null, e, f);\r\n \tfirst = newNode;\r\n \tif (f == null)\r\n \t\tlast = newNode;\r\n \telse\r\n \t\tf.prev = newNode;\r\n \tsize++;\r\n \tmodCount++;\r\n }", "public void insertAtHead(singlyListNode n){\n if (this.head == null){\n this.head = n;\n this.tail = this.head;\n }else{\n n.setNextNode(this.head);\n this.head = n;\n }\n this.listSize ++; //increment list capacity\n }", "public void addFirst(Item item){\n\t\tif(item == null){\n\t\t\tthrow new NullPointerException(\"Cannot insert a null item.\");\n\t\t}else{\n\t\t\t//Save old first node\n\t\t\tNode<Item> oldFirst = first;\n\t\t\t//assign first node to a new node\n\t\t\tfirst = new Node<Item>();\n\t\t\tfirst.item = item;\n\t\t\tfirst.prev = null;\n\t\t\tfirst.next = oldFirst;\n\t\t\t//link the old first to new first\n\t\t\t//if the first item to add\n\t\t\tif(oldFirst == null){\n\t\t\t\tlast = first;\n\t\t\t}else{\n\t\t\t\toldFirst.prev = first;\n\t\t\t}\n\t\t\t//increase size by 1\n\t\t\tn++;\n\t\t}\n\t}", "public void insertAtFrontOfList(T item){\n //if (contains(item) == false){\n MyDoubleNode<T> temp = new MyDoubleNode();\n if (isEmpty()){\n temp.data = item;\n head.next = temp;\n temp.prev = head;\n tail.prev = temp;\n temp.next = tail;\n }\n else {\n temp.data = item;\n temp.next = head.next;\n temp.prev = head;\n head.next = temp;\n }\n //}\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node node = new Node();\n node.item = item;\n node.next = first;\n if (first == null) {\n first = node;\n last = first;\n }\n else {\n first.pre = node;\n first = node;\n }\n len++;\n }", "public PlayerNode insertAthead(Player aPlayer, PlayerNode head)\n\t{\n\t\tPlayerNode newptr = new PlayerNode(null,aPlayer); //newptr to be used for the new node to be added!\n\t\t\n\t\tif(head.getLink() == null)\n\t\t{\n\t\t\thead.setLink(newptr); //sets newptr to link to head\n\t\t\tnewptr.setLink(head);\n\t\t\tnewptr.setaPlayer(aPlayer);\t\t\t\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tnewptr.setLink(head.getLink());\n\t\t\thead.setLink(newptr);\n\t\t\tnewptr.setaPlayer(aPlayer);\n\t\t}\t\t\t\n\t\treturn head; //if head can change you want to return it\n\t}", "public void addFirst(Object e) {\n if(head == null) {\n tail = head = new Node(e, null, null);\n return;\n }\n\n Node n = new Node(e, null, head);\n head.setPrevious(n);\n head = n;\n }", "public void insert(LinkedList target, LinkedList list, int start) {\n\t\t\n\t}", "private void insertFirst(T data){\n Node<T> node = new Node<T>(data);\n this.begin = node;\n this.end = node;\n }", "public void addFirst(Item item) throws NullPointerException {\n checkItemNotNull(item);\n\n Node oldfirst = first;\n first = new Node(item);\n\n if (isEmpty()) {\n last = first;\n } else {\n oldfirst.prev = first;\n first.next = oldfirst;\n }\n size++;\n }", "public void insert(Object element)\n {\n if(head==null){\n head=tail=new SLListNode(element,head);\n return;\n }\n head=new SLListNode(element,head);\n }", "@Override\n public void addFirst(E element) {\n Node<E> newNodeList = new Node<>(element, head);\n\n head = newNodeList;\n cursor = newNodeList;\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) throw new NullPointerException(\"Item is null\");\n if (isEmpty()) {\n first = new Node<Item>(item);\n last = first;\n } else {\n Node<Item> newFirst = new Node<Item>(item);\n newFirst.next = first;\n first.prev = newFirst;\n first = newFirst;\n }\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Can not call addFirst() with a null argument\");\n }\n Node<Item> oldFirst = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFirst;\n if (isEmpty()) {\n last = first;\n }\n else {\n // first.prev = oldFirst;\n oldFirst.prev = first;\n }\n n++;\n }", "public void insert(T aData) {\r\n\t\tListNode newNode = new ListNode(aData, null);\r\n\t\tif (head == null) {\r\n\t\t\thead = curr = newNode;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tListNode temp = head;\r\n\t\t// Equivalent of the for loop for an array\r\n\t\twhile (temp.link != null) {\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t\ttemp.link = newNode;\r\n\t}", "public void addFirst(E e) {\n this.head = new Node<>(e, head);\t// create and link a new node\r\n if (this.size == 0)\r\n this.tail = this.head;\r\n this.size ++;\r\n }", "public void addFirst(T item) {\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, _front, null);\n\t _front.setNext(temp);\n\t _front = temp;\n\t}\n\t_size++;\n }", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "public void insert(E data, int index) {\r\n\t\tcheckIndex(index);\r\n\t\t\r\n\t\t// If add the index is the tail of the LinkList, call add(data)\r\n\t\tif(index == size) {\r\n\t\t\tadd(data);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\tNode<E> newNode = new Node<E>(data, null);\r\n\t\t\r\n\t\t// Get the (index-1)th node\r\n\t\tNode<E> beforeNode = findNode(index);\r\n\t\tnewNode.link = beforeNode.link;\r\n\t\tbeforeNode.link = newNode;\r\n\t\tsize++;\r\n\t\t}\r\n\t}", "public void insertFirstNode (LinkedListNode<T> newNode ) {\n\t\t//set new node to point to the head\n\t\tnewNode.setNext(head);\n\t\t//set head equal to the new node\n\t\thead = newNode;\n\t}", "public void addFirst(E element){\n Node<E> newNode = new Node<E>(element);\n newNode.setNext(head.getNext());\n head.setNext(newNode);\n newNode.getNext().setPrevious(newNode);\n newNode.setPrevious(head); \n size++;\n }", "public void addFirst(E item) {\n Node<E> n = new Node<>(item, head);\n size++;\n if(head == null) {\n // The list was empty\n head = tail = n;\n } else {\n head = n;\n }\n }", "public void addFirst(Item item) {\n\t\tif (item == null) throw new NullPointerException();\n\t\t\n\t\tcount++;\n\t\t\n\t\tNode firstNode = new Node();\n\t\tfirstNode.item = item;\n\t\tif (count > 1) {\n\t\t\tfirstNode.next = first;\n\t\t\tfirst.previous = firstNode;\n\t\t} else {\n\t\t\tlast = firstNode;\n\t\t}\n\t\tfirst = firstNode;\n\t}", "public void addFirst(Item item) {\n if (item == null) throw new IllegalArgumentException(\"argument is null\");\n if (!isEmpty()) {\n Node a = new Node();\n a.item = item;\n a.prev = null;\n a.next = first;\n first.prev = a;\n first = a;\n }\n else {\n Node a = new Node();\n a.item = item;\n a.next = null;\n a.prev = null;\n first = a;\n last = a;\n }\n size++;\n }", "public void insertStart(Item item) {\n if (size == 0) insertCreator(item); // if circle is empty\n else { // if these's at least one node already\n Node temp = head;\n head = new Node(item, temp, temp.before); // creates new node\n temp.before.next = head;\n temp.before = head;\n }\n size++;\n }", "public void insertFirst( T data ) {\n\t\t//make a new node \n\t\tLinkedListNode<T> newNode = new LinkedListNode<T>();\n\t\t///add data to this node\n\t\tnewNode.setData(data);\n\t\t//if the head isn't null\n\t\tif(head != null){\n\t\t\t//insert the new node at the head\n\t\t\tinsertFirstNode(newNode);\n\t\t}\n\t\t//otherwise\n\t\telse{\n\t\t\t//the head is the new node\n\t\t\thead = newNode;\n\t\t}\n\t}", "public void addFirst(Item item){\r\n\t\t if (item == null) throw new NullPointerException();\r\n\t\t if (n == list.length){resize(2*list.length);}\r\n\t\t if(isEmpty()){prior=0;first=0;last=0;latter=1;}\r\n\t\t list[prior--]=item;\r\n\t\t first = prior+1;\r\n\t\t if(prior==-1){prior=list.length-1;}\r\n\t\t n++;}", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n\n this.first = new Node(item, this.first, null);\n\n if (this.size == 0) {\n this.last = this.first;\n } else {\n this.first.next.prev = this.first;\n }\n\n this.size++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Item Null\");\n } else {\n\n if (isEmpty()) {\n first = new Node<Item>();\n first.item = item;\n last = first;\n } else {\n Node<Item> oldFrist = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFrist;\n oldFrist.prev = first;\n }\n N++;\n }\n }", "public void insertAtBack(L insertItem){\n\t\tListNode node = new ListNode(insertItem);\n\t\tif(isEmpty()) //firstNode and lastNode refer to same Object\n\t\tfirstNode = lastNode = node;\n\t\telse{ //lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t//you can replace the two previous lines with this line: lastNode = lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t}", "public void addFirst(Item item) {\n if (item == null)\n throw new IllegalArgumentException();\n\n if (this.first == null) {\n this.first = new Node();\n this.first.item = item;\n this.last = this.first;\n } else {\n Node newfirst = new Node();\n newfirst.item = item;\n newfirst.next = this.first;\n this.first.prev = newfirst;\n this.first = newfirst;\n }\n this.n++;\n }", "public void addFirst(Object data) {\n Node newNode = new Node(data);\n newNode.next = head;\n head = newNode;\n size ++;\n if (head.next == null) {\n tail = head;\n }\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node<Item> node = new Node<Item>(item);\n if (head == null) {\n head = node;\n tail = head;\n } else {\n head.prev = node;\n node.next = head;\n head = node;\n }\n\n size++;\n }", "public static Node insertFirst(Node head, Node n) {\n if (head == null || n == null) return n;\n n.next = head;\n return n;\n }", "public void addFirst(MemoryBlock block) {\n\t\tNode clone = tail.next; \n\t\tNode newNode = new Node(block);\n\t\tnewNode.next = clone;\n\t\tnewNode.previous = tail;\n\t\ttail.next = newNode;\n\t\tclone.previous = newNode;\n\t\tsize++;\n\t}", "public void insertAtHead(String s)\n {\n Node temp = new Node(s);\n boolean isDuplicate = false;\n \n if(head == null)\n {\n head = temp;\n temp.next = head;\n }\n else\n {\n Node current = head;\n \n while(current.next != head && isDuplicate == false)\n {\n if(current.data.equals(s))\n {\n isDuplicate = true;\n }\n current = current.next;\n }\n \n if(isDuplicate == false)\n {\n temp.next = head;\n current.next = temp;\n head = temp;\n }\n }\n }", "public void addFirst(Object item) throws ListException {\r\n\r\n\t\tDoublyNode newNode = new DoublyNode(item);\r\n\t\t//This will add to the first slot if the list is not empty\r\n\t\tif(!isEmpty()){\r\n\t\t\t//Set a nextNode pointer to keep track of the node after the new node\r\n\t\t\tDoublyNode nextNode;\r\n\t\t\tnextNode = head.getNext();\r\n\r\n\t\t\tnextNode.setPrev(newNode);//Set the next nodes previous pointer\r\n\t\t\tnewNode.setNext(nextNode);//Set the new nodes next pointer\r\n\t\t\tnewNode.setPrev(head);//Set the new nodes previous pointer\r\n\t\t\thead.setNext(newNode);//Set the heads next pointer\r\n\t\t}\r\n\t\t//This will add to the first slot if the list is empty\r\n\t\telse{\r\n\t\t\thead.setNext(newNode);//Set the head next pointer to the new node\r\n\t\t\thead.setPrev(newNode);//Set the head prev pointer to the new node\r\n\t\t\tnewNode.setNext(head);//Set the new node next pointer to the head\r\n\t\t\tnewNode.setPrev(head);//Set the new node prev pointer to the head\r\n\t\t}\r\n\t\tnumItems++;//Increment number of items\r\n\t}", "static ListNode insertAtBeginning(ListNode head, int data) {\n\n ListNode newNode = new ListNode(data);\n\n if (head == null) {\n return newNode;\n }\n\n newNode.next = head;\n head = newNode;\n\n return head;\n }", "public void insert(int info) {\n\t\tnode one = new node(info);\n\t\tif(head != null) {\n\t\t\tone.next = head;\n\t\t} \n\t\thead = one;\n\n\t\t//OR\n\t\t//insertAt(info, 0);\n\t}", "public void insert(String name){\n ArtistNode node = new ArtistNode(name);\n \n //if head is null then we know our list is empty and we set the newly created node as our first node\n if(head==null){\n head = node;\n }\n \n //if the list is not empty and our first node has a value then we enter the else statement\n else{\n \n //we create a temporary node and set it equal to the firt node\n ArtistNode traverseNode = head;\n \n //we now traverse the list by entering a while loop that keeps iterating if the next node is not null\n while(traverseNode.next!=null){\n \n //we set our temp node to equal the next node only stopping when temp node gets a value of null. Once we get null, we know that we are at the last node\n //in the linked list and can exit the while loop.\n traverseNode = traverseNode.next;\n }\n \n //We have exited the while loop because tempNode.next returned null. We want our information to be stored in that location so we say the node that we first created\n //and its information is now going to be stored at the location. Traverse node hit the end of the list and said hey I know where the null is, im going to now point to the\n //the new node instead and the new node can then point to null because it wont have a next value\n traverseNode.next=node;\n \n }\n \n \n }", "private void insert(Node<E> x) {\n\t\tlast = last.next = x;\n\t}", "public void addFirst(Item item) {\n\t\tif (item == null) {\n\t\t\tthrow new IllegalArgumentException(\"Cannot add null item\");\n\t\t}\n\n\t\tNode node = new Node(item);\n\t\tif (first == null) {\n\t\t\tfirst = last = node;\n\t\t} else {\n\t\t\tnode.next = first;\n\t\t\tfirst.previous = node;\n\t\t\tfirst = node;\n\t\t}\n\t\tsize++;\n\n\t}", "public void addLink(E data){\n\t\t\n\t\tNode temp = new Node(data);\n\t\tNode current = head;\t\t//starting at head node and moving to end of list\t\t\t\t\n\t\t\n\t\twhile(current.getNext() != null){\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\tcurrent.setNext(temp);\n\t\tsize++; \t\t\t\t\t// increment the number of element\n\t}", "public void addFirst(Item x);", "public void insertFirst( T data ){\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData( data );\n\t\t//if head = empty\n\t\tif( head == null ){\n\t\t\thead = newNode;\n\t\t\ttail = newNode;\n\t\t\tnewNode.setNext( null );\n\t\t\tnewNode.setPrev( null );\n\t\t}\n\t\telse{\n\t\t\tnewNode.setNext( head );\n\t\t\thead.setPrev( newNode );\n\t\t\thead = newNode;\n\t\t}\n\t\tsize++;\n\t}", "@Override\r\n public void onInserted(ParserItemLink link) {\r\n tableAdd(link);\r\n selectedLink = link;\r\n tableSelect(link);\r\n }", "public void addFirst(E e) { // adds element e to the front of the list\n // TODO\n if (size == 0) {\n tail = new Node<>(e, null);\n tail.setNext(tail);\n } else {\n Node<E> newest = new Node<>(e, tail.getNext());\n tail.setNext(newest);\n }\n size++;\n }", "public void insertAtTrail(singlyListNode n){\n if (this.head == null){\n this.head = n;\n this.tail = this.head;\n }else{\n this.tail.setNextNode(n);\n this.tail = n;\n }\n this.listSize ++;\n }", "public void addFirst(E e) {\n\r\n Node newNode = new Node(e,head);\r\n head = newNode;\r\n\r\n if(head.getNext() == null){\r\n tail = head;\r\n }\r\n\r\n }", "public void insertTest(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }", "public void addFirst(Object o) {\r\n addBefore(o, header.next);\r\n }", "private void InsertAt(IntRepList.OpNode node, IntRepList.OpNode current) {\n current.prev.next = node;\n node.prev = current.prev;\n node.next = current;\n }", "public void addFront(E d) {\n\t\t// make new node to contain d\n\t\tListNode<E> node = new ListNode<E>(d);\n\t\tif (this.head == null) {\n\t\t\t// the list is empty so make the head point at the node\n\t\t\tthis.head = node;\n\t\t\tthis.last = node;\n\t\t} else {\n\t\t\t// the list it not empty, so the old head's next points at the node\n\t\t\t// the head points at the node\n\t\t\tnode.next = this.head;\n\t\t\tthis.head = node;\n\t\t}\n\t\tthis.size++;\n\t}", "public void insert(T insertItem){\n if(isEmpty())\n firstNode = lastNode = new SortedListNode<>(insertItem);\n else\n lastNode = lastNode.nextNode = new SortedListNode<>(insertItem);\n\n this.sort();\n }", "public void addAtStart(Item item) { \t\n \tif(head.item == null) {\n \t\thead.item = item;\n\t \t\tif(isEmpty()) {\n\t \t\thead.next = tail;\n\t \t\ttail.next = head;\n\t \t\t} \t\t\n \t} else {\n \t\tNode oldHead;\n \t\toldHead = head;\n \t\thead = new Node();\n \t\thead.item = item;\n \t\thead.next = oldHead;\n \t\ttail.next = head;\n \t}\n \tsize++;\n }", "public void addFrontNode(T a) {\r\n head = new ListNode(a, head);\r\n }", "public void prepend(Item item) {\n Node newNode = new Node();\n newNode.item = item;\n newNode.next = head.next;\n head.next = newNode;\n size++;\n }", "public void internalInsert(T insertItem){\n if(isEmpty())\n firstNode = lastNode = new SortedListNode<>(insertItem);\n else\n lastNode = lastNode.nextNode = new SortedListNode<>(insertItem);\n\n\n }", "@Override\n public void add(T newItem) {\n LinkedElement<T> tmpElement = new LinkedElement<>(newItem);\n\n if (firstElement == null) {\n firstElement = tmpElement;\n size = 1;\n } else {\n LinkedElement<T> currentElement = firstElement;\n while (currentElement.next != null) {\n currentElement = currentElement.next;\n }\n // currentElement is the last element in the list, now. Meaning that currentElement.next is null.\n currentElement.next = tmpElement; // These two are pointing at each other now.\n tmpElement.prev = currentElement;\n size++;\n }\n }", "public void insert(int value){\n linkedList.insertLast(value);\n }", "public void addFirst(Item item){\n if (item == null)\n throw new NullPointerException();\n\n DoublyLinkedListNode<Item> node = new DoublyLinkedListNode<Item>(item);\n\n if (this.count == 0){\n this.head = this.tail = node;\n this.count++;\n return;\n }\n\n DoublyLinkedListNode tmp = head;\n head = node;\n head.next = tmp;\n tmp.previous = head;\n\n this.count++;\n }" ]
[ "0.7014148", "0.68339044", "0.6831776", "0.67960405", "0.6778779", "0.6731958", "0.6705564", "0.6667093", "0.6600285", "0.6509104", "0.65080357", "0.6474644", "0.64735883", "0.64689755", "0.6459685", "0.6457226", "0.64194375", "0.6410499", "0.6386999", "0.6383718", "0.6370612", "0.6346923", "0.632227", "0.63048035", "0.6302887", "0.6288225", "0.62781596", "0.6259435", "0.625913", "0.62391466", "0.621116", "0.6199288", "0.61978024", "0.6196773", "0.61946344", "0.6194527", "0.6190318", "0.6176472", "0.61712337", "0.6165221", "0.6162027", "0.6152668", "0.6147285", "0.61435467", "0.61427397", "0.6141798", "0.6109761", "0.6109144", "0.6101847", "0.60991997", "0.6095774", "0.6095427", "0.6093173", "0.6090209", "0.6082796", "0.6081459", "0.6077821", "0.6076419", "0.60653466", "0.60609907", "0.6060024", "0.60597134", "0.605814", "0.6057495", "0.60406345", "0.60347235", "0.6029042", "0.60211617", "0.60179985", "0.6016442", "0.60160965", "0.6013934", "0.60092527", "0.60039157", "0.60004944", "0.59991854", "0.5994895", "0.5993094", "0.5992834", "0.5984761", "0.5980688", "0.5972599", "0.5966249", "0.5948345", "0.5946758", "0.5944626", "0.5938112", "0.59374374", "0.5931561", "0.5929374", "0.5928404", "0.59268343", "0.5920026", "0.5919226", "0.59186184", "0.5917545", "0.5916538", "0.591161", "0.5906002", "0.5905627", "0.59001786" ]
0.0
-1
return the position of obj
public int find(String bookName) { Node2 currentLink = first; int pos=1; while(currentLink.printLink() != bookName && currentLink.nextLink != null){ currentLink = currentLink.nextLink; pos++; } if(currentLink.printLink() != bookName) return -1; else return pos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getPosition();", "public int getPos();", "public int getPos();", "public Integer getPosition();", "public int getPosition(){\n return -1;\n }", "public int getPosition();", "public int position() {\n return pos;\n }", "public int getPos()\n {\n return pos;\n }", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "public int getPos()\n {\n return pos;\n }", "public int indexOfObject(Object obj);", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "public int getPosition()\r\n {\r\n return position;\r\n }", "public int getRowIndex(T obj) {\r\n\t\tlogger.trace(\"Enter getRowIndex\");\r\n\t\tlogger.trace(\"Exit getRowIndex\");\r\n\t\treturn data.indexOf(obj);\r\n\t}", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "public Integer getPosition()\n {\n return position;\n }", "public int PositionGet();", "public int getPosition() {\r\n return position;\r\n }", "public long getPosition();", "public int getLocation(@NonNull T object) {\n return data.indexOf(object);\n }", "public long position() {\n return _pos;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public final int getPos() { return i; }", "public abstract int indexFor(Object obj);", "public Integer getPosition() {\n return this.position;\n }", "public Integer getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public int indexOf(Object obj)\r\n {\r\n int index = 0;\r\n for (E element : this)\r\n {\r\n if (Utilities.nullSafeEquals(element, obj))\r\n {\r\n return index;\r\n }\r\n ++index;\r\n }\r\n return BAD_POSITION;\r\n }", "@Override\n\t/**\n\t * returns the position of the class\n\t * \n\t * @return position\n\t */\n\tpublic int getPosition() {\n\t\treturn position;\n\t}", "public int getPosition() {\n return position;\n }", "public final int getPosition() {\n return position;\n }", "int getPosition();", "private int findIndexOfGivenObject(Object o) {\n\n for(int i = 0; i < size(); i++) {\n if(content[i].equals(o)) {\n return i;\n }\n }\n\n return -1;\n }", "public int lastIndexOfObject(Object obj);", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public int getPosition(AudioFile item) {\n return mObjects.indexOf(item);\n }", "public final native CoOrdinates getPosition() /*-{\r\n\t\treturn this.position;\r\n\t}-*/;", "public int getPosition() {\n\treturn (_current);\n }", "RealLocalizable getPosition();", "public String getPosition(){\r\n\t\treturn position;\r\n\t}", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "public int getPosition()\n {\n return getInt(\"Position\");\n }", "@Override\n public int getPosition() {\n return position;\n }", "public int getPosition(){\n\t\treturn this.cell;\n\t}", "@Override\n\tpublic Position getPosition() {\n\t\treturn this.posn;\n\t}", "public IntegerTulep getPosition() {\n return position;\n }", "public int getPosition()\n {\n return m_sequence;\n }", "int getPosition(Object elementID) throws Exception;", "public int compareTo(Object obj) throws ClassCastException {\n return this.startPos - ((SqlField) obj).startPos;\n }", "public int getPosition(E item) {\n\t\treturn data.indexOf(item);\n\t}", "public int getPositionIndex()\n {\n return positionIndex;\n }", "public int getX() { return position.x; }", "public int indexOf(GeometricalObject object);", "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "public int[] get_position()\r\n\t{\r\n\t\treturn this.position;\r\n\t}", "public String getPos() {\n return this.pos;\n }", "public Coordinate getPosition();", "@Override\n\tpublic int findItemPosition(Object arg0) {\n\t\treturn 0;\n\t}", "public int getPosition(int index);", "public int indexOf(Object o);", "public Location getOffset() {\n\t\treturn pos;\n\t}", "public int indexOf(Object o) {\n\t\treturn getFirstOccurrence(o).index;\n\t}", "public int getX(){\n return this.position[0];\n }", "public Point getPosition()\n\t{\n\t\treturn pos;\n\t}", "int indexOf(GeometricalObject object);", "public String getPos(){\r\n\t\t return pos;\r\n\t }", "public Point getPosition(){\n\t\treturn position;\n\t}", "public int indexOf(Object o) {\n\t\tfor(int i = 0; i < size; i++) {\r\n\t\t\tif(getNode(i).getData().equals(o))\r\n\t\t\t\treturn i;\r\n\t\t} return -1;\r\n\t}", "public Integer getOffset();", "public abstract String getPos();", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public String getPosition() {\n return position;\n }", "public int getPosition() {\n return models.indexOf(activeModel);\n }", "public Position getPosition()\n\t{\n\t\treturn position;\n\t}", "int getOffset();", "int getOffset();", "int getOffset();", "@Override\n\tpublic int findIdPosition(Object arg0) {\n\t\treturn 0;\n\t}", "public Object getObjectAtLocation(Point p);", "public int indexOf(O o)\r\n {\r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n if (vi.getObject().equals(o)) return i;\r\n vi = vi.getNext();\r\n }\r\n return -1;\r\n }", "Position getPosition();", "Position getPosition();", "private int getPos(Label l) {\n\t\tRectangle2D pRect = l.getRect();\n\t\t//System.out.println(pRect);\n\t\tint index = -1;\n\t\tdouble verticalMidpoint = bounds.getX() + (bounds.getWidth() / 2.0d);\n\t\tdouble horizontalMidpoint = bounds.getY() + (bounds.getHeight() / 2.0d);\n\t \n\t\t//drawPoint(new Vector2f((double)verticalMidpoint,(double)horizontalMidpoint), 0.05f, Color.WHITE);\n\t\t\n\t\t// Object can completely fit within the top quadrants\n\t\tboolean topQuadrant = (\n\t\t\t\tpRect.getY() < \n\t\t\t\thorizontalMidpoint && \n\t\t\t\tpRect.getY() + \n\t\t\t\tpRect.getHeight() < \n\t\t\t\thorizontalMidpoint);\n\t\t// Object can completely fit within the bottom quadrants\n\t\tboolean bottomQuadrant = (pRect.getY() > horizontalMidpoint);\n\t\t\n\t\t//System.out.println(topQuadrant);\n\t\t\n\t\t// Object can completely fit within the left quadrants\n\t\tif (pRect.getX() < verticalMidpoint && pRect.getX() + pRect.getWidth() < verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 1;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 2;\n\t\t\t}\n\t\t}\n\t\t// Object can completely fit within the right quadrants\n\t\telse if (pRect.getX() > verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 0;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 3;\n\t\t\t}\n\t\t}\n\t \n\t\treturn index;\n\t}", "Integer getBPos();", "public Position getPosition();", "public Position getPosition();", "public Position getPosition();", "public int getBlockIndex() {\n return mCursorPosition;\n }", "public final Point getPosition()\n\t{\n\t\treturn pos;\n\t}", "public Position getPosition(){\n return this.position;\n }", "public Coordinate getPosition() {\n return cPosition;\n }", "public long getOffset() {\n return cGetOffset(this.cObject);\n }", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }", "public int getX(){ return xPosition; }" ]
[ "0.7757267", "0.7547152", "0.7547152", "0.7522977", "0.739972", "0.7351324", "0.7290403", "0.7278607", "0.7272492", "0.7235321", "0.7200629", "0.7190026", "0.71790385", "0.71347374", "0.71264476", "0.71166384", "0.7084573", "0.70726305", "0.7067312", "0.706376", "0.705011", "0.70477074", "0.70452255", "0.7040793", "0.70213395", "0.7006969", "0.69951177", "0.69951177", "0.69951177", "0.6981512", "0.69681156", "0.6967618", "0.69553167", "0.6911491", "0.6883653", "0.6877894", "0.684057", "0.68283474", "0.6816034", "0.6740875", "0.6714935", "0.6697012", "0.6696557", "0.6694802", "0.669241", "0.66733325", "0.6668434", "0.6650779", "0.6647216", "0.663216", "0.6615519", "0.6608775", "0.65887743", "0.6569977", "0.6563329", "0.65474373", "0.65460837", "0.65312415", "0.65244967", "0.6523409", "0.6520944", "0.65206856", "0.6519327", "0.6514763", "0.6501363", "0.64981765", "0.6492036", "0.6471674", "0.64467394", "0.64428073", "0.6442353", "0.64370126", "0.6433737", "0.6417065", "0.6417065", "0.6417065", "0.6417065", "0.6417065", "0.6412686", "0.6394112", "0.63904375", "0.63904375", "0.63904375", "0.63876253", "0.6379149", "0.6368454", "0.63674843", "0.63674843", "0.6345682", "0.6344204", "0.63440174", "0.63440174", "0.63440174", "0.63307786", "0.6324338", "0.62920415", "0.62919325", "0.62913245", "0.6279049", "0.62759393", "0.62743366" ]
0.0
-1
Deletes the link at the first of the list
public Node2 delete() { Node2 temp = first; first = first.nextLink; first.nextLink.prevLink = null; return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteFirst() {\r\n\t\tif(isEmpty()) return;\r\n\t\thead = head.next;\r\n\t}", "private void deleteFirstNode() {\n if (head == null) {\n return;\n }\n ListNode current = head;\n current = current.next;\n head.next = null;\n head = current;\n }", "public void deleteFirst() {\r\n\t\t// Can't delete from an empty list\r\n\t\tif (isEmpty()) {\r\n\t\t\tSystem.out.println(\"Error in List.deleteFirst() \"\r\n\t\t\t\t\t+ \"Attempted delete from Empty List \");\r\n\t\t}\r\n\r\n\t\t// Special case: list has only one element\r\n\t\telse if (length == 1) {\r\n\t\t\tfirstNode = null;\r\n\t\t\tlastNode = null;\r\n\t\t\tlength = 0;\r\n\t\t}\r\n\t\t// All other lists: Only first pointer changes. Last doesn't\r\n\t\telse {\r\n\t\t\tfirstNode = firstNode.getNextNode();\r\n\t\t\tlength--;\r\n\t\t}\r\n\t}", "public void deleteWholeList()\n {\n head = null;\n }", "public void deleteFirstNode(){\n if(head==null){\n System.out.println(\"There is nothing to DELETE! Empty List!\");\n }if(head.next==null){\n head = null;\n }else{\n head = head.next;\n }\n }", "public void deleteFirst() {\n\t\t\n\t\tif (head !=null) {\n\t\t\t// we have 1 or more node in LL\n\t\t\t\n\t\t\t// check if we have only 1 node\n\t\t\tif(this.head.next == null) {\n\t\t\t\t// yes we have onlu 1 node in LL\n\t\t\t\t//delete that node and make head = null\n\t\t\t\tNode temp = this.head;\n\t\t\t\tthis.head = null;\n\t\t\t\t\n\t\t\t\t// java dont have delete.... so just make object ref as null\n\t\t\t\t// GC will delete this object ASAP\n\t\t\t\ttemp.next = null;\n\t\t\t\ttemp = null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// we have more than 1 node\n\t\t\t\tNode temp = this.head;\n\t\t\t\tthis.head =temp.next;\n\t\t\t\t\n\t\t\t\ttemp.next= null;\n\t\t\t\ttemp=null;\n\t\t\t}\n\t\t}\n\t}", "void deleteFromFirst(){\r\n\t\tif (start==null){\r\n\t\t\tSystem.out.print(\"LL is empty\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tnode temp=start;\r\n\t\t\tstart=start.next;\r\n\t\t\tSystem.out.print(temp.data+\" is going to be deleted\");\r\n\t\t\ttemp=null;\r\n\t\t}\r\n\t}", "public void deleteFirst(){\n\t\tDLLNode<T> newNode = head;\n\t\t//if the list is empty\n\t\tif ( size == 0 ){\n\t\t\t//set both the head and tail to null\n\t\t\thead = null;\n\t\t\ttail = null;\n\t\t\t//size decreases by 1\n\t\t\tsize--;\n\t\t}\n\t\telse{\n\t\t\t//assign head to the following node\n\t\t\thead = head.getNext();\n\t\t\t//set the previous node (ex-head) to null\n\t\t\thead.setPrev( null );\n\t\t\t//size decreases by 1\n\t\t\tsize--;\n\t\t}\n\t}", "@Override\n public void deleteFirst()\n throws SequenceException {\n if (listHead == null) {\n throw new SequenceException(\"Sequence Underflow\");\n }\n\n // There is a special case when there is just one item in the\n // sequence. Both pointers then need to be reset to null.\n if (listHead.next == null) {\n listHead = null;\n listTail = null;\n }\n\n // In the general case, we just unlink the first node of the\n // list.\n else {\n listHead = listHead.next;\n }\n }", "public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}", "public void removeFirst() {\n\t\t\thead = head.next;\n\t\t}", "@Override\n\tpublic int delLink(Link link) {\n\t\treturn 0;\n\t}", "public void removeFirst(){\r\n\t\tNode removedHead = head;\r\n\t\thead = head.next;\r\n\t\tremovedHead = null;\r\n\t}", "@Override\n public void deleteFirst() {\n if (this.isEmpty()){\n throw new IllegalStateException(\"List is empty\");\n }\n for (int j = 0; j < size - 1; j++){\n data[j] = data[j + 1];\n }\n data[size - 1] = null;\n size--;\n }", "public void removeFirst() throws ListException {\r\n\t\t//This will check if the user is trying to remove from an empty list\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new ListException(\"Remove from empty list exception\");\r\n\t\t}\r\n\t\t//Set the nextNode pointer past the first element in the list\r\n\t\tDoublyNode nextNode;\r\n\t\tnextNode = head.getNext().getNext();\r\n\r\n\t\tnextNode.setPrev(head);//Set the next nodes previous pointer\r\n\t\thead.setNext(nextNode);//Set the heads next pointer\r\n\t\tnumItems--;//Decrement number of items\r\n\t}", "public Item removeFirst(){\n return this.doublyLinkedList.removeFirst();\n }", "public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}", "public void deleteAtStart() {\n head = head.next;\n size--;\n }", "public boolean deleteFirst() \n {\n \t\n \t\n \tDLLNode delete = head.next;\n \tdelete.prev = null;\n \thead= delete;\n \t\n \treturn true;\n }", "private static Node deleteFirst(Node head) {\n if (head == null) {\n return null;\n }\n Node current = head;\n\n // only one element\n if (current.next == head) {\n head.next = null; // or head = null is fine for GC\n return null;\n }\n\n while(current.next != head) {\n current = current.next;\n }\n // removing head from list\n current.next = head.next;\n // prevent memory leak\n head.next = null;\n head = current.next;\n return head;\n }", "void deleteFront()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call deleteFront() on empty List\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tcursor = null;\n\t\t\tindex = -1; //added because i was failing the test scripts because i wasn't managing the indicies\n\t\t}\n \n\t\tfront = front.next; //front element becomes the next element in the list\n\t\tlength--;\n index --; //added because i was failing the test scripts because i wasn't managing the indicies\n\t\t\n\t}", "private E unlinkFirst(Node<E> f) {\r\n // assert f == first && f != null;\r\n final E element = f.item;\r\n final Node<E> next = f.next;\r\n f.item = null;\r\n f.next = null; // help GC\r\n first = next;\r\n if (next == null)\r\n last = null;\r\n else\r\n next.prev = null;\r\n size--;\r\n modCount++;\r\n return element;\r\n }", "boolean removeLink(Link link);", "public void deleteNext() {\n if(getNext() != null){\n setNext( getNext().getNext());\n }\n }", "public Node deleteFirst() {\n\n\t\tif (first == null) { // means LinkedList in empty, throw exception.\n\t\t\tthrow new LinkedListEmptyException(\n\t\t\t\t\t\"LinkedList doesn't contain any Nodes.\");\n\t\t}\n\n\t\tNode tempNode = first;\n\t\tif (first.next == null) // if only one item\n\t\t\tlast = null; // null <-- last\n\t\telse\n\t\t\tfirst.next.previous = null; // null <-- old next\n\t\tfirst = first.next; // first --> old next\n\t\treturn tempNode;\n\t}", "public Item deleteAtStart() { \t\n \tItem returnItem = head.item;\n \thead = head.next;\n \ttail.next = head;\n \tsize--;\n \treturn returnItem;\n }", "public void deleteAt (int index){\n if (index == 0) {\n head = head.next;\n }\n else\n {\n Node n = head;\n Node n1= null;\n for(int i=0;i<index-1;i++){\n n=n.next;\n }\n n1=n.next;\n n.next=n1.next;\n System.out.println(\"n1\"+ n1.data);\n n1=null;\n }\n\n}", "public void removeFirst() throws Exception {\r\n\tif (isEmpty()) throw new Exception(\"Thing is empty\");\r\n\theader = (DLLNode<T>) header.getLink();\r\n\theader.setBack(null);\r\n}", "void removeNodeFirst(ANode<T> a) {\n this.next.removeNode(a);\n }", "public void removeFirstNode()\n {\n if(head != null) {\n head = head.next;\n size = size - size;\n }\n }", "void delete()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tdeleteFront(); //deletes the front if the cursor is at the front\n\n\t\t}\n\t\telse if(cursor == back)\n\t\t{\n\t\t\tdeleteBack(); //deletes the back if the cursor is at the back\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcursor.prev.next=cursor.next; \n\t\t\tcursor.next.prev=cursor.prev;\n\t\t\tcursor = null; \n\t\t\tindex = -1;\n\t\t\tlength--;\n\t\t}\n\t\t\n\t}", "public int deleteFromHead() {\n int el = head.info;\r\n if (head == tail) // if only one node on the list;\r\n head = tail = null;\r\n else head = head.next;\r\n return el;\r\n }", "public void deleteList() {\n this.head = deleteListWrap(this.head);\n }", "public boolean ListDelete(int i) {\n int j, k;\n if (i<0 || i>ListLength() - 1)\n return false;\n k = MAXSIZE - 1;\n // Find the element,who is in front of the ith element\n for(j=0;j<i;j++)\n k = StaticLinkList[k].cur;\n // q = p->next\n j = StaticLinkList[k].cur;\n // p->next = q->next\n StaticLinkList[k].cur = StaticLinkList[j].cur;\n Free_SSL(j);\n return true;\n }", "public Item removeFirst() {\n //check if the DList is empty or not:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perform removeFirst() bacause the DList instance is empty!\");\n Node oldFirst = first.next;\n Item item = oldFirst.data; \n\n // pointer re-wiring:\n Node newFirst = oldFirst.next; \n first.next = newFirst;\n newFirst.prev = first;\n oldFirst.next = null;\n oldFirst.prev = null;\n\n // check if last pointer has to be updated or not (paying the peiper):\n if(isEmpty()) {\n last.prev = first; // update the last sentinel node to point to the first sentinel node\n }\n\n // update the size: \n size--;\n\n return item;\n }", "public DoublyLinkedListHeader deleteObj(DoublyLinkedListHeader list) {\r\n\t\tSystem.out.println(\"Enter an index!\");\r\n\t\tint index = scanInt();\r\n\t\tDNode temp= list.delete(index);\r\n\t\tif(temp == null) {\r\n\t\t\tSystem.out.println(\"Invalid Index! The list is not modified\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"The list has been modified!\");\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }", "public void deletelink(Integer linkId);", "public void delete(T aData) {\r\n\t\tListNode temp = head;\r\n\t\twhile (temp != null) {\r\n\t\t\tif (temp.link.data.equals(aData)) {\r\n\t\t\t\ttemp.link = temp.link.link;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t}", "private static void method_2(){\r\n\t\tLinkedList link = new LinkedList();\r\n\t\tlink.add(\"abc1\");\r\n\t\tlink.add(\"abc2\");\r\n\t\tlink.add(\"abc3\");\r\n\t\tlink.addFirst(\"QQ\");\r\n\t\tlink.add(\"WWW\");\r\n\t\tlink.addLast(\"RRR\");\r\n\t\tSystem.out.println(link);// qq 1 2 3 www rrr\r\n\t\tSystem.out.println(link.removeFirst());//1 2 3 www rrr\r\n\t\tSystem.out.println(link.removeLast());//1 2 3 www\r\n\t\tSystem.out.println(link);\r\n\t}", "public Object removeFirst(){\n //Check if there is data to be removed, if not return null\n if(size == 0){\t//size 0 indicates no data in the linkedlist\n return null;\n }\n MovieNode removed = head.next;\n head.next = head.next.next;\n size--;\n return removed.data;\n }", "private T unlinkFirst(final int idx) {\r\n\t\tfinal T element = serializer.getRandomAccess(idx);\r\n\t\tfinal int next = getNextPointer(idx);\r\n\t\tfirst = next;\r\n\t\tif (next == -1) {\r\n\t\t\tlast = -1;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(next, -1);\r\n\t\t}\r\n\t\tdeleteElement(idx);\r\n\t\tsize--;\r\n\t\tmodCount++;\r\n\t\treturn element;\r\n\t}", "public T deleteFromHead() {\n if (isEmpty()) \n return null;\n T el = head.info;\n if (head == tail) // if only one node on the list;\n head = tail = null;\n else head = head.next;\n return el;\n }", "private void delete(Node next) {\n\t\t\n\t}", "public void deleteAtIndex(int index) {\n if (index < 0 || index >= size) return;\n if (index == 0) {\n deleteHead();\n } else {\n ListNode curr = head;\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n }\n curr.next = curr.next.next;\n size--;\n }\n }", "public Object removeFirst() {\r\n Object first = header.next.element;\r\n remove(header.next);\r\n return first;\r\n }", "@Override\n public void deleteAtBeginning() {\n Node<T> temp = start;\n start = start.next;\n temp.next = null;\n }", "public void deleteCurrent(){\r\n if(curr != null && prev != null){\r\n prev.link = curr.link;\r\n curr = curr.link;\r\n }\r\n else if(curr != null){\r\n head = head.link;\r\n curr = head;\r\n }\r\n\r\n }", "private void linkRemoved(Link link) {\n\n\t}", "public void deleteAt(int index) {\n\t\t\t\n\t\tif(index == 0) {\n\t\t\t\t\n\t\t\thead = head.next;\n\t\t}else {\n\t\t\t\t\n\t\t\tBookingNode n = head;\n\t\t\tBookingNode n1 = null;\n\t\t\tfor(int i = 0; i < index-1; i++) {\n\t\t\t\t\t\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tn1 = n.next;\n\t\t\tn.next = n1.next;\n\t\t\t//System.out.println(\"n1 \" + n1.data);\n\t\t\tn1 = null;\n\t\t\t}\n\t\t}", "public void deleteAtIndex(int index) {\n if(index >= size || index < 0)\n return;\n ListNode p=head,follow=head;\n int count=0;\n if(head!=null){\n if(head.next==null && index==0) {\n head = null;\n tail=null;\n size--;\n }\n else{\n while (p.next!=null && count!=index){\n count++;\n follow=p;\n p=p.next;\n }\n if(index==0){\n head=head.next;\n size--;\n }\n else if(p==tail && count==index){\n follow.next=null;\n tail=follow;\n size--;\n }\n else if(index==count){\n follow.next=p.next;\n size--;\n }\n }\n }\n }", "public void removeFirst() \r\n\t{\r\n\t\tint position = 1;\r\n\t\tif ( this.isEmpty() || position > numItems || position < 1 )\r\n\t\t{\r\n\t\t\tSystem.out.print(\"This delete can not be performed \"+ \"an element at position \" + position + \" does not exist \" );\r\n\t\t}\r\n\t\tfor (int i=position-1; i< numItems-1; i++)\r\n\t\t\tthis.bookArray[i] = this.bookArray[i+1];\r\n\t\t\tthis.bookArray[numItems-1] = null;\r\n\t\t\tnumItems--;\r\n\t\t\tSystem.out.println(\"DELETED first book from the Array \\n\");\r\n\t\t\r\n\t\t\treturn ;\r\n\t}", "public void deleteAt(int index) {\n if (index == 0) {\n head = head.next;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = currentNode.next;\n currentNode = null;\n }\n size--;\n }", "public void remove(int index) {\n\n if(null==head) {\n print(\"can not remove, link is empty\");\n return;\n }\n\n if(size()<index || index < 1) {\n print(\"can not remove, index is greater than link size or index is less than 1, index:\" + index);\n return;\n }\n\n if(index==1) {\n head = head.next;\n System.out.println(\"head is removed\");\n return;\n }\n\n int i=1;\n Node tmp = head;\n while(null!=tmp.next) {\n i++;\n Node current = tmp;\n tmp=tmp.next;\n if(i==index) {\n current.next = tmp.next;\n print(\"removed node, data:\"+tmp.data);\n tmp=null;//free memory;\n return;\n }\n }\n }", "public void deleteFromIndex(int index) {\n int counter = 0;\n if (index < 0 || index > (this.size() - 1)) {\n throw new NoSuchElementException(\"No such element.\");\n }\n //trivial, use deleteFromStart() method\n if (index == 0) {\n deleteFromStart();\n }\n //if head==null, list is empty so no elements to delete\n else if (head == null) {\n System.out.println(\"List is empty, nothing to delete.\");\n }\n //Actual case\n else {\n Iterator2 i = new Iterator2();\n while (counter < (index)) {\n counter++;\n i.next();\n }\n //Sets link from \"previous\" element to the one following the index\n //Remove references from deleted object\n //Garbage collector takes it away\n i.previous.next = i.position.next;\n i.position = i.position.next;\n }\n //Decrement size of list\n size--;\n\n }", "Object unlink(Node x) {\n final Object element = x.item;\n final Node next = x.next;\n final Node prev = x.pre;\n\n //当前节点为first节点\n if (prev == null) {\n //删除这个节点时,要将next节点赋值为first节点\n first = next;\n } else {\n prev.next = next;\n x.pre = null;\n }\n\n //最后一个节点\n if (next == null) {\n last = prev;\n } else {\n next.pre = prev;\n x.next = null;\n }\n\n x.item = null;\n size--;\n return element;\n }", "public void deleteAtIndex(int index) {\n if (index >= this.size || index < 0) {\n return;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n pred.next = pred.next.next;\n this.size--;\n }", "private void deleteLastNode() {\n if (head == null) {\n return;\n }\n ListNode current = head;\n while (current.next.next != null) {\n current = current.next;\n }\n current.next = null;\n }", "public Object delete()\n {\n\t Generics opaqueObject = null;\n\t \t \n\t if (firstObject != null) {\n\t\t opaqueObject = AL.get(0);\n\t\t //firstObject = firstObject.getNext();\n\t\t firstObject = AL.get(1);\n\t\t if (firstObject == null)\n\t\t\t lastObject = firstObject;\n\t\t else\n\t\t\t AL.set(AL.indexOf(lastObject),null);\n\t\t\t //headNode.setPrevNode(null);\n\t }\n\t \t\t\n\t return opaqueObject;\n }", "int deleteElement(int list, int node) {\n\t\tint prev = getPrev(node);\n\t\tint next = getNext(node);\n\t\tif (prev != nullNode())\n\t\t\tsetNext_(prev, next);\n\t\telse\n\t\t\tm_lists.setField(list, 0, next);// change head\n\t\tif (next != nullNode())\n\t\t\tsetPrev_(next, prev);\n\t\telse\n\t\t\tm_lists.setField(list, 1, prev);// change tail\n\n\t\tfreeNode_(node);\n\t\tsetListSize_(list, getListSize(list) - 1);\n\t\treturn next;\n\t}", "Node removeFirst() {\n\t\tNode tmp = head;\n\t\thead = head.next;\n\t\treturn tmp;\n\t}", "@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}", "public Item removeFirst() {\n\t\tif (count == 0) throw new NoSuchElementException();\n\t\tcount--;\n\t\tItem target = first.item;\n\t\tNode nextNode = first.next;\n\t\tfirst = null;\n\t\tif (count > 0) {\n\t\t\tfirst = nextNode;\n\t\t} \n\t\treturn target;\n\t}", "private void removeLinks(int index) {\n ensureLinksIsMutable();\n links_.remove(index);\n }", "public RNode deleteFirstOccurrence(int item) {\n\tif (item == datum() ) return next;\n\telse {\n\t if (next != null) next = next.deleteFirstOccurrence(item);\n\t return this;\n\t}\n }", "Object removeFirst();", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "public void deleteAtIndex(int index) {\n if (index < 0 || index >= size) throw new IllegalArgumentException(\"Add filed, index is illegal\");\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n Node retNode = prev.next;\n prev.next = retNode.next;\n retNode.next = null; //loitering object != memory leak\n size--;\n }", "public Item removeFirst() {\n if (size == 0) {\n return null;\n } else if (size == 1) {\n StuffNode i = sentinel.next;\n sentinel.next = sentinel;\n sentinel.prev = sentinel;\n size -= 1;\n return i.item;\n } else {\n StuffNode i = sentinel.next;\n sentinel.next = i.next;\n i.next.prev = sentinel;\n size -= 1;\n return i.item;\n }\n }", "public void deleteAtIndex(int index)\n\t{\n\t\tif(index==0)\n\t\t{\n\t\t\thead = head.next;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode temp =head;\n\t\t\tNode n1 =null;\n\t\t\t\n\t\t\tfor(int i=0; i < index-1 ;i++)\n\t\t\t{\n\t\t\t\ttemp = temp.next; //temp--->temp.next\n\t\t\t}\n\t\t\t\n\t\t\tn1 = temp.next;\t\t\t\t\t//n1------>temp.next\n\t\t\ttemp.next =n1.next; //temp.next------->n1.next\n\t\t\tSystem.out.println(\"n1\"+ n1.data);\n\t\t\t\n\t\t}\n\t}", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n Object element = first.data;\n first = first.next;\n return element ;\n }", "public void deleteAtIndex(int index) {\n\n if(index==0 && len==1) {\n head =null;\n tail =null;\n len--;\n }\n\n\n if(index>-1 && index<len) {\n\n //删除头结点\n if(index ==0) {\n head = head.next;\n }\n\n SingleNode pre =head;\n for(int i=0; i<index-1; i++) {\n pre = pre.next;\n }\n pre.next = pre.next.next;\n //删除尾节点,需要将尾指针指向尾节点前一个节点。需要放在len--上面,因为会改变len的值\n if(index == len-1) {\n tail = pre;\n }\n len--;\n }\n }", "public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }", "public final void removeFirst() {\n this.size--;\n setFirst((Node) ((Node) get()).get());\n }", "public void deleteCurrent() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tif (curr == head) {\r\n\t\t\thead = head.link; // curr = curr.link\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tprev.link = curr.link; // Points over top of current\r\n\t\tcurr = curr.link;\r\n\r\n\t}", "private void deleteFromTail() {\n if (size == 0)\n return;\n else {\n tail = tail.pre;\n tail.next = null;\n size--;\n }\n }", "void deleteNode(int target){\n //reference to iterate list starting at beginning of list\n Node iter_front = this.head.next;\n Node iter = this.head;\n\n //check for if the first node has the target\n if(iter.data == target)\n {\n this.head = null;\n return;\n }\n\n while(iter_front != null)\n {\n //check if we found the correct node\n if(iter_front.data == target)\n {\n //get reference to node in front\n Node next = iter_front.next;\n //set node behind it to the next node after target node\n iter.next = next;\n System.out.print(\"Deleted LinkedList.Node:\"+target+\"\\n\");\n return;\n }\n\n //iterate\n iter_front = iter_front.next;\n iter = iter.next;\n\n }\n\n System.out.print(\"Target LinkedList.Node Not Found!\");\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }", "public List Delete(Element e){\n\tList my_head ;\n\tboolean ret_val ;\n\tboolean aux05;\n\tList aux01 ;\n\tList prev ;\n\tboolean var_end ;\n\tElement var_elem ;\n\tint aux04 ;\n\tint nt ;\n\n\n\tmy_head = this ;\n\tret_val = false ;\n\taux04 = 0 - 1 ;\n\taux01 = this ;\n\tprev = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile ((!var_end) && (!ret_val)){\n\t if (e.Equal(var_elem)){\n\t\tret_val = true ;\n\t\tif (aux04 < 0) { \n\t\t // delete first element\n\t\t my_head = aux01.GetNext() ;\n\t\t} \n\t\telse{ // delete a non first element\n\t\t System.out.println(0-555);\n\t\t aux05 = prev.SetNext(aux01.GetNext());\n\t\t System.out.println(0-555);\n\t\t \n\t\t}\n\t } else nt = 0 ;\n\t if (!ret_val){\n\t\tprev = aux01 ;\n\t\taux01 = aux01.GetNext() ;\n\t\tvar_end = aux01.GetEnd();\n\t\tvar_elem = aux01.GetElem();\n\t\taux04 = 1 ; \n\t } else nt = 0 ;\n\t}\n\treturn my_head ;\n }" ]
[ "0.7531643", "0.73992974", "0.7311138", "0.7307907", "0.726568", "0.72179717", "0.72015256", "0.7174518", "0.7074039", "0.7058906", "0.70344925", "0.6993819", "0.6971636", "0.69261146", "0.6887551", "0.68593174", "0.679275", "0.67888457", "0.6782668", "0.6753214", "0.6743108", "0.6712038", "0.66792226", "0.6677477", "0.66491437", "0.66382444", "0.6634209", "0.66137785", "0.65467066", "0.6535817", "0.6533778", "0.65336174", "0.65243644", "0.65131366", "0.65127444", "0.6501525", "0.6467127", "0.6460076", "0.6454391", "0.6441382", "0.6435163", "0.6400101", "0.63966924", "0.6396219", "0.6387233", "0.6377664", "0.6372786", "0.6371688", "0.6371548", "0.6369895", "0.63618565", "0.6359149", "0.63551474", "0.6325513", "0.6323953", "0.6314127", "0.63130665", "0.6308161", "0.6304638", "0.6294037", "0.62792665", "0.6272904", "0.62724096", "0.6271182", "0.6260696", "0.6251815", "0.6247647", "0.62468857", "0.6242412", "0.6237579", "0.6233698", "0.61972946", "0.61863244", "0.61829126", "0.61802495", "0.61735547", "0.616861", "0.61552966", "0.61552966", "0.61552966", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223", "0.6155223" ]
0.67539823
19
Deletes the link from position
public void remove(int pos) { Node2 currentLink = first; Node2 tempPrevLink = null; int temp=1; while(temp++ != pos) { tempPrevLink = currentLink; currentLink = currentLink.nextLink; } currentLink.nextLink.prevLink = tempPrevLink; tempPrevLink.nextLink = currentLink.nextLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int delLink(Link link) {\n\t\treturn 0;\n\t}", "public void deleteAtPos(int pos)\n\n { \n\n if (pos == 1) \n\n {\n\n if (size == 1)\n\n {\n\n start = null;\n\n end = null;\n\n size = 0;\n\n return; \n\n }\n\n start = start.getLinkNext();\n\n start.setLinkPrev(null);\n\n size--; \n\n return ;\n\n }\n\n if (pos == size)\n\n {\n\n end = end.getLinkPrev();\n\n end.setLinkNext(null);\n\n size-- ;\n\n }\n\n Node ptr = start.getLinkNext();\n\n for (int i = 2; i <= size; i++)\n\n {\n\n if (i == pos)\n\n {\n\n Node p = ptr.getLinkPrev();\n\n Node n = ptr.getLinkNext();\n\n \n\n p.setLinkNext(n);\n\n n.setLinkPrev(p);\n\n size-- ;\n\n return;\n\n }\n\n ptr = ptr.getLinkNext();\n\n } \n\n }", "public void deletelink(Integer linkId);", "boolean removeLink(Link link);", "private void linkRemoved(Link link) {\n\n\t}", "public void delete(int position) {\r\n dataTag.remove(position);\r\n data.remove(position);\r\n }", "public void delete(int position) {\n\t\t// pre: position to be in the range\n\t\t// post: list[position] should be deleted; 'list[position+1]'+1 to be\n\t\t// present in the 'position'th place\n\t\tif (position >= this.length)\n\t\t\tthis.delete();\n\t\telse {\n\t\t\tCLL_LinkNode temp_node = this.headNode;\n\t\t\tif (position <= 1) {\n\t\t\t\tfor (int i = 1; i < this.length; i++)\n\t\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t\ttemp_node.setNext(this.headNode.getNext());\n\t\t\t\tthis.headNode.setNext(null);\n\t\t\t\tthis.headNode = temp_node.getNext();\n\t\t\t} else {\n\t\t\t\tfor (int i = 1; i < position - 1; i++)\n\t\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t\tCLL_LinkNode del_node = temp_node.getNext();\n\t\t\t\ttemp_node.setNext(del_node.getNext());\n\t\t\t\tdel_node.setNext(null);\n\t\t\t}\n\t\t\tthis.length--;\n\t\t}\n\t}", "public void deleteLink(IHyperLink link)\n throws OculusException;", "public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}", "boolean delete(String linkId);", "private void removeContentAfterIndexLink()\r\n \t{\r\n \t\tdeleteNodes(XPath.AFTER_INDEX_LINK.query);\r\n \t}", "public void deleteFromPos(int position){\n if (position == 0){\n //delete at head\n this.head = this.head.getNextNode();\n this.listSize --;\n return;\n }else if(position == this.listSize - 1){\n singlyListNode ptr = this.head;\n singlyListNode previous = this.head;\n while(ptr != this.tail){\n previous = ptr;\n ptr = ptr.getNextNode();\n }\n this.tail = previous;\n this.tail.setNextNode(null); //delink original tail\n this.listSize --;\n return;\n }\n singlyListNode ptr = this.head;\n int previous = position - 1;\n for (int i = 1; i < this.listSize; i ++){\n if (i == previous){\n //when ptr reaches previous-the NEXT node is to be removed from the list\n singlyListNode temp = ptr.getNextNode();\n temp = temp.getNextNode();\n ptr.setNextNode(temp);\n break;\n }\n ptr = ptr.getNextNode();\n }\n this.listSize --;\n }", "public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "int deleteByPrimaryKey(Integer linkid);", "public int deleteAtPosition(int position) {\r\n if(position < 0 || position ==0) {\r\n ListNode temp = head;\r\n head=null;\r\n return temp.data;\r\n }\r\n ListNode prev = head;\r\n ListNode curr = head.next;\r\n for(int i=1; i<position-1;i++) {\r\n prev=curr;\r\n curr=curr.next;\r\n }\r\n prev.next=curr.next;\r\n ListNode temp = curr;\r\n curr = null;\r\n return temp.data;\r\n\r\n }", "private void deleteItem(int position){\n deleteItem(dataset.get(position),position);\n }", "public void deleteRow(int position) {\n if (position < mExtraOffset || position >= getCount()) {\n return;\n }\n mCursor.moveToPosition(position- mExtraOffset);\n String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);\n String title = mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);\n Bookmarks.removeFromBookmarks(null, mContentResolver, url, title);\n refreshList();\n }", "public RNode deleteAt(int position) {\n if (position >= 0 && position < length() ) {\n\t if (position == 0) return next;\n\t else {\n\t\tnext = next.deleteAt(position - 1);\n\t\treturn this;\n\t }\n }\n\telse throw new RuntimeException(\"precondition violated\");\n }", "public void deletePolynom(int position) {\n collection.remove(position);\n }", "public synchronized void delete(long entry) throws IOException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n \n // Remove the entry by writing a '\\n' to the first byte\n idx.seek(startOfEntry);\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerSlot - 2]);\n \n // Update the file header\n entries--;\n idx.seek(IDX_HEADER_ENTRIES);\n idx.writeLong(entries);\n \n logger.debug(\"Removed uri at address '{}' from index\", entry);\n }", "public void supprimerPCPosition(int position) {\n if (position == 1) // if deleted computer is at the start\n {\n if (taille == 1) {\n start = null;\n end = null;\n taille = 0;\n return;\n }\n start = start.getLinkNext();\n start.setLinkPrev(end);\n end.setLinkNext(start);\n taille--;\n return;\n }\n if (position == taille) // If deleted computer is at the end\n {\n end = end.getLinkPrevious();\n end.setLinkNext(start);\n start.setLinkPrev(end);\n taille--;\n }\n\n Computer Computer = start.getLinkNext();\n for (int i = 2; i <= taille; i++) {\n if (i == position) {\n Computer p = Computer.getLinkPrevious();\n Computer n = Computer.getLinkNext();\n\n p.setLinkNext(n);\n n.setLinkPrev(p);\n taille--;\n return;\n }\n Computer = Computer.getLinkNext();\n }\n }", "public boolean deleteAt( int pos ) \n {\n \tint x = 0;\n \tDLLIterator cycle = new DLLIterator();\n \tDLLNode insert = cycle.currentNode;\n \t\n \twhile(x != pos){\n \t\t x++;\n \t\t insert = cycle.nextNode();\n \t\t \n \t }\n \t\n \tDLLNode next = insert.next;\n \tDLLNode prev = insert.prev;\n \t\n \tnext.prev = prev;\n \tprev.next = next;\n return true;\n }", "@Override\n\tpublic void deleteAttributeAt(final int position) {\n\n\t}", "public void deleteAtPos(int pos)\n { \n if (pos == 1)\n {\n if (size == 1)\n {\n start = null;\n end = null;\n size = 0;\n return;\n }\n start = start.getListNext();\n start.setListPrev(null);\n size--;\n return ;\n }\n if (pos == size)\n {\n end = end.getListPrev();\n end.setListNext(null);\n size-- ;\n }\n List ptr = start.getListNext();\n for (int i = 2; i <= size; i++)\n {\n if (i == pos)\n {\n List p = ptr.getListPrev();\n List n = ptr.getListNext();\n p.setListNext(n);\n n.setListPrev(p);\n size-- ;\n return;\n }\n ptr = ptr.getListNext();\n } \n }", "public void deleteIndex(int pos)\n{\n Node last=head;\nNode temp=null;\nif(pos==0)\n{head=last.next;\n last.next=null;\n}\nelse\n{ int count=1;\n while(count<pos)\n{\n last=last.next;\ncount++;\n}\ntemp=last.next;\nlast.next=temp.next;\ntemp.next=null;\n}\n}", "public void DelTrack(int position);", "@Override\n public void deleteItem(int position) {\n originalData.remove(currentData.get(position));\n //Removed of the current data using the current position gotten from the click listener\n currentData.remove(position);\n\n //Notify changes to adapter through presenter\n }", "public void removeAnchor(int point) throws Exception {\n\t\tif (this.getAnchor(point).getHolder() == null) {\n\t\t\tthis.anchors[point] = null;\n\t\t}\n\t\telse\n\t\t\tthis.getAnchor(point).setHolder(null);\n\t}", "@Override\n\tpublic void deleteLinkmanById(long id) {\n\t\tmapper.deleteByPrimaryKey(id);\n\t}", "public void deleteSelectedPosition() {\n if (selectedPosition != -1) {\n list.remove(selectedPosition);\n selectedPosition = -1;//after removing selectedPosition set it back to -1\n notifyDataSetChanged();\n }\n }", "@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}", "public void deleteLink(String spid, Link link) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tMap<String, String> params = new HashMap();\n\t\t\n\t\tparams.put(\"user\", APIConfiguration.getEvdbUser());\n\t\tparams.put(\"password\", APIConfiguration.getEvdbPassword());\n\t\t\n\t\t//modify needs this to be set\n\t\tparams.put(\"link_id\", String.valueOf(link.getId()));\n\t\tparams.put(\"id\", spid);\n\t\t\n\t\tInputStream is = serverCommunication.invokeMethod(PERFORMERS_LINKS_DELETE, params);\n\t\t\n\t\tunmarshallRequest(GenericResponse.class, is);\n\n\t}", "public void deletePage(int position)\n {\n arrayIndexes.remove(position);\n // Notify the adapter that the data set is changed\n notifyDataSetChanged();\n }", "void delete()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tdeleteFront(); //deletes the front if the cursor is at the front\n\n\t\t}\n\t\telse if(cursor == back)\n\t\t{\n\t\t\tdeleteBack(); //deletes the back if the cursor is at the back\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcursor.prev.next=cursor.next; \n\t\t\tcursor.next.prev=cursor.prev;\n\t\t\tcursor = null; \n\t\t\tindex = -1;\n\t\t\tlength--;\n\t\t}\n\t\t\n\t}", "public static com.agbar.intranet.quienesquien.model.Link deleteLink(\n\t\tcom.agbar.intranet.quienesquien.model.Link link)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().deleteLink(link);\n\t}", "Node Delete(Node head, int position) {\r\n \r\n if(head == null){\r\n return head;\r\n }\r\n \r\n if(position == 0){\r\n return head.next;\r\n } \r\n Node prev = head;\r\n int count = 0;\r\n while(count < position -1){\r\n prev = prev.next;\r\n count ++;\r\n }\r\n prev.next = prev.next.next;\r\n return head;\r\n\r\n}", "private void delete(Node next) {\n\t\t\n\t}", "private void removeLinks(int index) {\n ensureLinksIsMutable();\n links_.remove(index);\n }", "@Override\n public void delete(int position) {\n Upload selectItem=uploadList.get(position);\n\n //get for selected item key\n final String key=selectItem.getKey();\n\n StorageReference storageReference=firebaseStorage.getReferenceFromUrl(selectItem.getImageUri());\n storageReference.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n databaseReference.child(key).removeValue();\n }\n });\n }", "public void delete(T aData) {\r\n\t\tListNode temp = head;\r\n\t\twhile (temp != null) {\r\n\t\t\tif (temp.link.data.equals(aData)) {\r\n\t\t\t\ttemp.link = temp.link.link;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t}", "public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }", "@Override\n public void deleteAtAnyPosition(int index) {\n if(index < 0)\n throw new IndexOutOfBoundsException();\n else if(index == 0)\n deleteAtBeginning();\n else\n {\n Node<T> previous = start;\n for(int i =0 ;i<index-1;i++)\n previous = previous.next;\n previous.next = previous.next.next;\n }\n }", "public void removeNodeAfterThis() {\r\n\t\tif ( link != null ) {\r\n\t\t\tlink = link.link;\r\n\t\t} // end precondition\r\n\t}", "public void deleteAt(int index) {\n if (index == 0) {\n head = head.next;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = currentNode.next;\n currentNode = null;\n }\n size--;\n }", "@Transactional\n public void remove(ExtensionLinkEntity link) {\n EntityManager entityManager = entityManagerProvider.get();\n link = findById(link.getLinkId());\n if (null != link) {\n entityManager.remove(link);\n }\n }", "@Override\r\n\tpublic void delete(FollowUp followup) {\n\t\t\r\n\t}", "void unsetAnchorOffset();", "public void removedatFeed(int pos) {\n\n //on positive click we delete the feed from selected position\n\n //we're gonna delete them from the db\n //how?\n\n //using a cursor we select items from the two tables\n Cursor cursor = mydb.rawQuery(\"SELECT * FROM feedslist;\", null);\n Cursor cursor2 = mydb.rawQuery(\"SELECT * FROM subtitleslist;\", null);\n\n //set these values dynamically to avoid \"column index out of range\" errors\n\n String url = \"\";\n String name = \"\";\n\n //set url\n if (cursor != null && cursor.moveToFirst()) {\n\n while (!cursor.isAfterLast()) {\n\n //get items at selected position\n url = mUrls.get(pos);\n cursor.moveToNext();\n }\n cursor.close();\n }\n\n //set feed name\n if (cursor2 != null && cursor2.moveToFirst()) {\n\n while (!cursor2.isAfterLast()) {\n\n //we get items at selected position\n name = mFeeds.get(pos);\n cursor2.moveToNext();\n }\n cursor2.close();\n }\n\n //set the names of the two tables\n String table1 = \"feedslist\";\n String table2 = \"subtitleslist\";\n\n //set where clause\n String whereClause_url = \"url\" + \"=?\";\n String whereClause_feed = \"name\" + \"=?\";\n\n //set the where arguments\n String[] whereArgs_url = new String[]{String.valueOf(url)};\n String[] whereArgs_name = new String[]{String.valueOf(name)};\n\n //delete 'em all\n mydb.delete(table1, whereClause_url, whereArgs_url);\n mydb.delete(table2, whereClause_feed, whereArgs_name);\n\n //remove items from the dynamic ListView\n\n //for url\n mUrls.remove(pos);\n\n //for feed name\n mFeeds.remove(pos);\n\n //and update the dynamic list\n //don't move this method above the db deletion method or you'll get javalangindexoutofboundsexception-invalid-index error\n adapter_dynamic.notifyDataSetChanged();\n adapter_dynamic.notifyDataSetInvalidated();\n listfeed.setAdapter(adapter_dynamic);\n }", "public void onUnlink()\n {\n getTextArea().setFocus(true);\n// clientJupiter.generate(treeOperationFactory.createLink(clientJupiter.getSiteId(),\n// getTextArea().getDocument().getSelection().getRangeAt(0), linkConfig.getUrl()));\n Console.getInstance().log(\"RTP: onUnlink\");\n }", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "private void delete() {\n\n\t}", "public void deleteItem(int position) {\n Expense expense = expenses.get(position);\n expense.deleteInBackground();\n \n }", "public void deleteAt (int index){\n if (index == 0) {\n head = head.next;\n }\n else\n {\n Node n = head;\n Node n1= null;\n for(int i=0;i<index-1;i++){\n n=n.next;\n }\n n1=n.next;\n n.next=n1.next;\n System.out.println(\"n1\"+ n1.data);\n n1=null;\n }\n\n}", "public void remove(int index) {\n\n if(null==head) {\n print(\"can not remove, link is empty\");\n return;\n }\n\n if(size()<index || index < 1) {\n print(\"can not remove, index is greater than link size or index is less than 1, index:\" + index);\n return;\n }\n\n if(index==1) {\n head = head.next;\n System.out.println(\"head is removed\");\n return;\n }\n\n int i=1;\n Node tmp = head;\n while(null!=tmp.next) {\n i++;\n Node current = tmp;\n tmp=tmp.next;\n if(i==index) {\n current.next = tmp.next;\n print(\"removed node, data:\"+tmp.data);\n tmp=null;//free memory;\n return;\n }\n }\n }", "public void deleteAt(int index) {\n\t\t\t\n\t\tif(index == 0) {\n\t\t\t\t\n\t\t\thead = head.next;\n\t\t}else {\n\t\t\t\t\n\t\t\tBookingNode n = head;\n\t\t\tBookingNode n1 = null;\n\t\t\tfor(int i = 0; i < index-1; i++) {\n\t\t\t\t\t\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tn1 = n.next;\n\t\t\tn.next = n1.next;\n\t\t\t//System.out.println(\"n1 \" + n1.data);\n\t\t\tn1 = null;\n\t\t\t}\n\t\t}", "public static SinglyLinkedList deleteANodeAtI(SinglyLinkedList SLL, int pos){\n\t\tfor(int i=1;SLL.next!=null && i<pos;i++)\n\t\t\tSLL = SLL.next;\n\t\tif(SLL.next!=null)\n\t\t\tSLL.next = SLL.next.next;\n\t\treturn SLL;\n\t}", "int deleteImage(int pos);", "@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdelete();\n\t\t\t}", "void positionCleared();", "void clearLinks();", "void deleteContact(String id, int position);", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int deleteBannerPositionByExample(BannerPositionExample example) throws SQLException;", "void onItemDelete(int position);", "@Override\n\tpublic E remove(Position<E> p) throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\tE temp = reference.getElement();\n\t\t\n\t\treference.prev.next = reference.next;\n\t\treference.next.prev = reference.prev;\n\t\t\n\t\tsize--;\n\t\treturn temp;\n\t}", "@Override\n public void delete(int index)\n throws SequenceException {\n if (listHead == null) {\n throw new SequenceException(\"Sequence Underflow\");\n }\n\n // Check the index is positive.\n if (index < 0) {\n throw new SequenceException(\"Indexed Element out of Range\");\n }\n\n // There is a special case when there is just one item in the\n // sequence. Both pointers then need to be reset to null.\n if (listHead.next == null) {\n if (index == 0) {\n listHead = null;\n listTail = null;\n } else {\n throw new SequenceException(\"Indexed element is out of range.\");\n }\n }\n\n // There is also a special case when the first element has to\n // be removed.\n\n else if (index == 0) {\n deleteFirst();\n }\n\n // In the general case, we need to chain down the list to find\n // the node in the indexed position.\n else {\n Node nodePointer = listHead;\n int i = 1;\n while (i < index) {\n nodePointer = nodePointer.next;\n i += 1;\n if (nodePointer.next == null) {\n throw new SequenceException(\"Indexed Element out of Range\");\n }\n\n }\n\n // Unlink the node and reset the tail pointer if that\n // node was the last one.\n if (nodePointer.next == listTail) {\n listTail = nodePointer;\n }\n nodePointer.next = nodePointer.next.next;\n }\n }", "public void supprimer() {\n origine.aretes_sortantes.supprimer(this);\n destination.aretes_entrantes.supprimer(this);\n origine.successeurs.supprimer(destination);\n destination.predecesseurs.supprimer(origine);\n position.supprimerElement();\n }", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void deleteNode(Node n){\n\t\tn.item = n.next.item;\n\t\tNode temp = n.next.next;\n\t\t//delete(n.next);\n\t\tn.next = temp;\n\t\t\n\t\t\n\t}", "private void supprimerPion(Position unePosition) {\n\t\tmesPions.remove(unePosition); \n }", "public Node2 delete() {\n \tNode2 temp = first;\n\t first = first.nextLink;\n\t first.nextLink.prevLink = null;\n\t return temp;\n }", "public void delete() {\n\n\t}", "public void descolaPosicao();", "@Override\r\n\tpublic void delete(int r_idx) throws Exception {\n\r\n\t}", "private void DeleteFile(final String picUrl,\n\t\t\tfinal LocalWallpaperAdapter adapter, final int position) {\n\t\tif (deleteDialog != null)\n\t\t\tdeleteDialog.dismiss();\n\t\tAlertDialog.Builder builder = new Builder(this);\n\t\tbuilder.setMessage(\"确定♂删除\"\n\t\t\t\t+ picUrl.substring(picUrl.lastIndexOf('/') + 1) + \"么\");\n\t\tbuilder.setPositiveButton(\"请务必温柔的删除\", new Dialog.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tFile file = new File(picUrl);\n\t\t\t\tif (file.exists())\n\t\t\t\t\tfile.delete();\n\t\t\t\tToast.makeText(WallpaperManagerActivity.this, \"删。。删掉了,狗修金sama\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tadapter.getDataList().remove(position);\n\t\t\t\tadapter.notifyDataSetChanged();\n\n\t\t\t}\n\t\t});\n\t\tbuilder.setNegativeButton(\"谁说过要删掉你啊杂种\", null);\n\t\tdeleteDialog = builder.create();\n\t\tdeleteDialog.setCancelable(true);\n\t\tdeleteDialog.show();\n\t}", "public void delete(int position) {\n\t\tif (position >= 0 && position < size) {\n\t\t\t// first resize the storage array\n\t\t\tE[] newData = (E[]) new Object[size - 1];\n\t\t\t// copy the data prior to the delition\n\t\t\tfor (int i = 0; i < position; i++)\n\t\t\t\tnewData[i] = data[i];\n\t\t\t// move the data after the deletion\n\t\t\tfor (int i = position + 1; i < size; i++)\n\t\t\t\tnewData[i - 1] = data[i];\n\t\t\t// replace the storage with the new array\n\t\t\tdata = newData;\n\t\t\tsize = size - 1;\n\t\t}\n\t}", "public boolean removeLink(int index){\n\t\t\t\t\n\t\tif (index < 1 || index > sizeOfLinkedList())\t\t// if index is out of range, exit\n\t\t\treturn false;\n\t\t\n\t\tNode current = head;\n\t\t\n\t\tfor (int i = 1; i < index; i++){\t\t\t\t\t// linked list index starts at 1, not 0\n\t\t\tif (current.getNext() == null)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\tcurrent.setNext(current.getNext().getNext());\n\t\tsize--;\n\t\treturn true;\n\t}", "@Override\n public void onWhatEverClick(int position) {\n Upload selectedItem = patientsList.get(position);\n String userId = selectedItem.getKey();\n\n StorageReference imageRef = mStorage.getReferenceFromUrl(selectedItem.getImageUrl());\n imageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n\n databaseReference.child(userId).removeValue();\n Toast.makeText(PatientsListActivity.this, \"Patient deleted\", Toast.LENGTH_SHORT).show();\n\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(PatientsListActivity.this, \"Error: \"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void deleteCurrent() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tif (curr == head) {\r\n\t\t\thead = head.link; // curr = curr.link\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tprev.link = curr.link; // Points over top of current\r\n\t\tcurr = curr.link;\r\n\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n mAdapter.notifyItemRemoved(position); //item removed from recylcerview\n mAdapter.removeItem(position);\n dataList.remove(position); //then remove item\n mAdapter.notifyDataSetChanged();\n deleteEntry(dataList.get(position).getDocId());\n }", "public void delete_ith_element (int pos) {\n \t \n \t //check if the pos is less than maximum possible value\n \t if (pos > len) {\n \t\t \n \t\t //throw exception for index of bounds\n \t\t throw new IndexOutOfBoundsException(\"your index has reached bounds\");\n \t }\n \t \n \t //now must run loop\n \t else {\n \t\t \n \t //if pos is 0 then just change head\n \t if (pos == 0) {\n \t\t \n \t\t //just change pointer of head next element\n \t\t head = head.show_next();\n \t\t \n \t\t \n \t\t //change prev to null\n \t\t head.change_prev(null);\n \t\t }\n \t \n \t //if pos = len - 1 then just change tail\n \t //if we want to delete last \n \t else if (pos == len -1) {\n\t\t\t \n\t\t\t //just change the last node \n\t\t\t tail = tail.show_prev();\n\t\t\t \n\t\t\t //change next of tail to null\n\t\t\t tail.change_next(null);\n\t\t }\n \n \t //else run for loop to reach node\n \t else {\n \t\t \n \t\t //define the current node as head\n \t\t node<Type> current_node = new node<>();\n \t\t \n \t\t //place current node to head\n \t\t current_node = head;\n \t\t \n \t\t //now run the for loop\n \t\t for(int i = 1 ; i <= pos; i++ ) {\n \t\t\t \n \t\t\t //just update current node\n \t\t\t current_node = current_node.show_next();\n \t\t }\n \t\t //now just delete the node\n //now just set current_node's next element to next next element of current\n \t\t System.out.println(\"we are here\");\n \t\t\n \t\t current_node.show_next().change_prev(current_node.show_prev());\n \t\t \n \t\t //now also change next node of before node\n \t\t current_node.show_prev().change_next(current_node.show_next());\n \t\t \n \t \t}\n \t //decrese length by one\n\t\t len--;\n \t }\n }", "private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}", "@Override\n public void delete()\n {\n }", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "public void removeByPosition(int position) {\n\t\t// fix position\n\t\tif (position < 0) {\n\t\t\tposition = 0;\n\t\t}\n\n\t\tif (position >= length) {\n\t\t\tposition = length - 1;\n\t\t}\n\n\t\t// if nothing in the list, do nothing\n\t\tif (head == null)\n\t\t\treturn;\n\n\t\t// if removing the head element...\n\t\tif (position == 0) {\n\t\t\thead = head.getNext();\n\t\t}\n\t\t// else advance to the correct position and remove\n\t\telse {\n\t\t\tListNode temp = head;\n\t\t\tfor (int i = 1; i < position; i += 1) {\n\t\t\t\ttemp = temp.getNext();// previous\n\t\t\t}\n\t\t\ttemp.setNext(temp.getNext().getNext());\n\t\t}\n\t\t// reduce the length of the list\n\t\tlength -= 1;\n\t}", "public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }", "public void deleteFromIndex(int index) {\n int counter = 0;\n if (index < 0 || index > (this.size() - 1)) {\n throw new NoSuchElementException(\"No such element.\");\n }\n //trivial, use deleteFromStart() method\n if (index == 0) {\n deleteFromStart();\n }\n //if head==null, list is empty so no elements to delete\n else if (head == null) {\n System.out.println(\"List is empty, nothing to delete.\");\n }\n //Actual case\n else {\n Iterator2 i = new Iterator2();\n while (counter < (index)) {\n counter++;\n i.next();\n }\n //Sets link from \"previous\" element to the one following the index\n //Remove references from deleted object\n //Garbage collector takes it away\n i.previous.next = i.position.next;\n i.position = i.position.next;\n }\n //Decrement size of list\n size--;\n\n }", "public boolean removeLink(L link) {\n if(links.remove(link)){\n //Se link existe, retira o seu parentesco\n if(link != null)\n link.setParent(null);\n\n notifyRemoved(NCLElementSets.LINKS, link);\n return true;\n }\n return false;\n }", "public void remove(){\n if(!isAfterNext)//flag false so next has not been called\n {\n throw new IllegalStateException();\n \n }\n if(position == first){\n removeFirst();//calls LL method because we re an inner class\n \n }\n else{\n previous.next = position.next;// move ref of previou to node after me \n }\n position = previous; \n isAfterNext= false;\n //first call to remove the current position reverts to the predecessor \n //of remove element thus predecessor is no longer known \n }" ]
[ "0.75399125", "0.7189393", "0.7069619", "0.70640707", "0.6919428", "0.6789999", "0.6748285", "0.6686623", "0.66543967", "0.65909714", "0.6567793", "0.6516091", "0.6499184", "0.6453175", "0.6453175", "0.6453175", "0.64526427", "0.64481634", "0.6394022", "0.63402164", "0.631318", "0.6264033", "0.6251188", "0.62476414", "0.6243792", "0.62260467", "0.62173533", "0.6206182", "0.62010807", "0.61891043", "0.61795896", "0.61453485", "0.61156136", "0.60824716", "0.6072065", "0.6070595", "0.60486287", "0.6007866", "0.5999258", "0.5994813", "0.5976128", "0.5957656", "0.59310544", "0.59245926", "0.59201497", "0.5917312", "0.59115744", "0.59007126", "0.5899904", "0.58930486", "0.588295", "0.5874069", "0.58583474", "0.5845508", "0.5818732", "0.58111703", "0.5809195", "0.5808409", "0.5791449", "0.5789653", "0.57888746", "0.57837534", "0.5779016", "0.5778938", "0.57652336", "0.5764409", "0.57583576", "0.5751822", "0.57391536", "0.5733073", "0.57295364", "0.5722626", "0.57216823", "0.57216823", "0.57216823", "0.57216823", "0.57216823", "0.57216823", "0.5719595", "0.57010496", "0.5697268", "0.5690802", "0.5689278", "0.56866014", "0.5685184", "0.5684795", "0.5683499", "0.568261", "0.56750363", "0.56732124", "0.5668676", "0.56637377", "0.5648793", "0.56477815", "0.564388", "0.5643439", "0.56367815", "0.5636542", "0.56357455", "0.5631657" ]
0.63505775
19
Create the unmarshaller using the binding factory for the "target class". This method can only be used with target classes that are mapped in only one binding. Note that there is no restriction on the "payload class" being the same as the target class. The only restriction is that the binding factory for the target class must include a binding for the payload class.
public UnmarshallingPayloadReader(Class clazz) throws WsBindingException { IBindingFactory factory; try { factory = BindingDirectory.getFactory(clazz); } catch (JiBXException e) { throw new WsBindingException("Error accessing binding.", e); } m_unmarshallCtx = createUnmarshallingContext(factory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object createBeanMatchingType(MappingContext mappingContext) {\n // clazz is never null given the only path that leads to this method already performs that check\n final Class<?> clazz = mappingContext.getTypeInformation().getSafeToWriteClass();\n try {\n return clazz.getDeclaredConstructor().newInstance();\n } catch (ReflectiveOperationException e) {\n throw new ConfigMeMapperException(mappingContext, \"Could not create object of type '\"\n + clazz.getName() + \"'. It is required to have a default constructor\", e);\n }\n }", "private static Object unmarshal(Class<?> klass, InputSource is) {\r\n\t\ttry {\r\n\t\t\tUnmarshaller unmarshaller = createUnmarshaller(klass);\r\n\t\t\tObject o = unmarshaller.unmarshal(is);\r\n\t\t\treturn o;\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t//\r\n\t\t}\r\n\t\treturn is;\r\n\t}", "public TargetClass() {\n super();\n }", "public UnmarshallingPayloadReader(IBindingFactory factory) throws WsBindingException {\n m_unmarshallCtx = createUnmarshallingContext(factory);\n }", "@Nonnull \r\n\tpublic static <T> T create(\r\n\t\t\t@Nonnull Class<T> listener, \r\n\t\t\t@Nonnull final Observer<? super Dynamic> bindTo) {\r\n\t\tfinal InvocationHandler handler = new InvocationHandler() {\r\n\t\t\t@Override\r\n\t\t\tpublic Object invoke(Object proxy, Method method, Object[] args)\r\n\t\t\t\t\tthrows Throwable {\r\n\t\t\t\tbindTo.next(new Dynamic(method.getName(), args));\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\treturn listener.cast(Proxy.newProxyInstance(listener.getClassLoader(), new Class<?>[] { listener }, handler));\r\n\t}", "protected ForContainerCreation(Class<?> target) {\n this.target = target;\n }", "public ScopedBindingBuilder to(Class<? extends T> clazz);", "@SuppressWarnings(\"unchecked\")\n public static <T> T create(Class<?> klass, MethodInterceptor handler)\n throws InstantiationException {\n // Don't ask me how this work...\n final Enhancer enhancer = new Enhancer();\n enhancer.setSuperclass(klass);\n enhancer.setInterceptDuringConstruction(true);\n enhancer.setCallbackType(handler.getClass());\n final Class<?> proxyClass = enhancer.createClass();\n final Factory proxy =\n (Factory) ClassInstantiatorFactory.getInstantiator().newInstance(proxyClass);\n proxy.setCallbacks(new Callback[] { handler });\n return (T) proxy;\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "static public ContentHandleFactory newFactory(Class<?>... pojoClasses)\n throws JAXBException {\n if (pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(pojoClasses);\n }", "public final SourcedFixtureBuilder<T> with(final Unmarshaller handler) {\n\t\t\tthis.fixtureSource.installTypeHandler(handler);\n\t\t\treturn this;\n\t\t}", "public com.vodafone.global.er.decoupling.binding.request.PayloadType createPayloadType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PayloadTypeImpl();\n }", "public ConstructedObjectInput(AppContext c,Class<T> target){\n \tthis(c,target,c.getClassMap(target));\n }", "private MultibinderFactory() { }", "@Override\n\tprotected Payment createTarget() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic Converter() {\n\t\tClass<?>[] generics = ClassUtil.getGenericArguments(Converter.class, getClass());\n\t\t\n\t\ttargetClass = (Class<T>) generics[0];\n\t\tformatType = (Class<F>) generics[1];\n\t}", "@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(LargeMessage.class, this::handle)\n\t\t\t\t.match(byte[].class, this::handle)\n\t\t\t\t.match(BytesMessage.class, this::handle)\n\t\t\t\t.matchAny(object -> this.log().info(\"Received unknown message: \\\"{}\\\"\", object.toString()))\n\t\t\t\t.build();\n\t}", "static <T> Object_To_Target<T> create(final Class<T> clazz, final T nullValue, final T falseValue, final boolean collFirst){\r\n\t\treturn new Object_To_Target<T>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Class<T> getClazzT() {\r\n\t\t\t\treturn clazz;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic T getNullValue() {\r\n\t\t\t\treturn nullValue;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic T getFalseValue() {\r\n\t\t\t\treturn falseValue;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean getCollFirstFlag() {\r\n\t\t\t\treturn collFirst;\r\n\t\t\t}};\r\n\t}", "public Object getTarget() throws InvalidBinderUsageException {\n\t\treturn this.lastBeanWrapper;\n\t}", "public TxtRecordFactory(String targetName, Map<String, String> typeMap) {\n\t\tthis.targetName = targetName;\n\t\tthis.typeMap = typeMap;\n\t\ttargetDictionary = new Dictionary();\n\t}", "Class<?> getTargetClass();", "private <T> T createObject(ResultSet resultSet, Class<T> destinationClass, Map<String, Field> fields) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n logger.trace(\"Constructing new {} instance\", destinationClass);\n final T dto = destinationClass.getConstructor().newInstance();\n\n for (Map.Entry<String, Field> entry : fields.entrySet()) {\n final String key = entry.getKey();\n final Field field = entry.getValue();\n\n try {\n logger.trace(\"Retrieving '{}' from the ResultSet\", key);\n final Object value = resultSet.getObject(key);\n logger.debug(\"Retrieval of '{}' has resulted to: {}\", key, value);\n\n logger.trace(\"Setting the value '{}' to the field: {}\", value, field.getName());\n field.set(dto, tryConvertValue(field, value));\n logger.trace(\"Value set successfully.\");\n } catch (SQLException ex) {\n final boolean fieldWarningsNotSuppressed = !(hasClassLevelWarningSuppression || field.isAnnotationPresent(SuppressWarnings.class));\n\n if (fieldWarningsNotSuppressed) {\n logger.warn(ex.getMessage());\n }\n }\n }\n\n return dto;\n }", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n .match(StartMessage.class, this::handle)\n .match(BatchMessage.class, this::handle)\n .match(Terminated.class, this::handle)\n .match(RegistrationMessage.class, this::handle)\n .match(Availability.class, this::handle)\n .match(Result.class, this::handle)\n .matchAny(object -> this.log().info(\"Received unknown message: \\\"{}\\\"\", object.toString()))\n .build();\n }", "YobBuilderOrBuiltObject(String qualifiedClassName,\n ClassLoader registeredAppClassLoader) {\n try {\n yangDefaultClass =\n registeredAppClassLoader.loadClass(qualifiedClassName);\n yangBuilderClass = yangDefaultClass.getDeclaredClasses()[0];\n setBuilderObject(yangBuilderClass.newInstance());\n } catch (ClassNotFoundException e) {\n log.error(L_FAIL_TO_LOAD_CLASS, qualifiedClassName);\n throw new YobException(E_FAIL_TO_LOAD_CLASS + qualifiedClassName);\n } catch (InstantiationException | IllegalAccessException e) {\n log.error(L_FAIL_TO_CREATE_OBJ, qualifiedClassName);\n throw new YobException(E_FAIL_TO_CREATE_OBJ + qualifiedClassName);\n } catch (NullPointerException e) {\n log.error(L_REFLECTION_FAIL_TO_CREATE_OBJ, qualifiedClassName);\n throw new YobException(E_REFLECTION_FAIL_TO_CREATE_OBJ +\n qualifiedClassName);\n }\n }", "static public ContentHandleFactory newFactory(JAXBContext context, Class<?>... pojoClasses) {\n if (context == null || pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(context, pojoClasses);\n }", "public MappableBuilder( final MappableBuilderFactory factory )\r\n {\r\n this.toStringNullValue = factory.getStringNullValue();\r\n this.messageFormatIteratorEntry = new MessageFormat(factory.getMessageFormatIteratorEntry());\r\n this.messageFormatIterableEntry = new MessageFormat(factory.getMessageFormatIterableEntry());\r\n this.messageFormatEnumerationEntry = new MessageFormat(factory.getMessageFormatEnumerationEntry());\r\n this.messageFormatArrayEntry = new MessageFormat(factory.getMessageFormatArrayEntry());\r\n this.messageFormatMethodName = new MessageFormat(factory.getMessageFormatMethodName());\r\n this.methodesNamePattern = factory.getMethodesNamePattern();\r\n this.returnTypeClasses = factory.getClasses();\r\n this.mappableItemSet = factory.getMappableItemSet();\r\n }", "private static Class<?> targetClassOf(SdkPojo builder) {\n return checkArgumentNotNull(\n builder.getClass().getDeclaringClass(),\n \"Expected nested builder class, but got %s\",\n builder.getClass());\n }", "public <A> void createUnidirectional(DeployBeanDescriptor<?> targetDesc, Class<A> targetType, BeanTable beanTable, DeployTableJoin oneToManyJoin) {\n\n // create the 'shadow' unidirectional property\n // which is put on the target descriptor\n DeployBeanPropertyAssocOne<A> unidirectional = new DeployBeanPropertyAssocOne<>(targetDesc, targetType);\n unidirectional.setUndirectionalShadow();\n unidirectional.setNullable(false);\n unidirectional.setDbRead(true);\n unidirectional.setDbInsertable(true);\n unidirectional.setDbUpdateable(false);\n unidirectional.setBeanTable(beanTable);\n unidirectional.setName(beanTable.getBaseTable());\n unidirectional.setJoinType(true);\n unidirectional.setJoinColumns(oneToManyJoin.columns(), true);\n\n targetDesc.setUnidirectional(unidirectional);\n }", "public Unmarshaller getUnmarshaller(boolean reuse)\n throws JAXBException {\n if (!reuse || unmarshaller == null) {\n unmarshaller = context.createUnmarshaller();\n }\n return unmarshaller;\n }", "public <T extends RBean> T createRBean(Class<T> rbeanClass, Object object) {\n if (object == null) {\n throw new IllegalArgumentException(\"Object must not be null\");\n }\n RBeanInfo rbeanInfo = getRBeanInfo(rbeanClass);\n if (!rbeanInfo.getTargetClass().isInstance(object)) {\n throw new IllegalArgumentException(\n object.getClass().getName()\n + \" is incompatble with \"\n + rbeanClass.getName()\n + \"'s target class \"\n + rbeanInfo.getTargetClass().getName());\n }\n return rbeanClass.cast(createRBean(rbeanInfo, object));\n }", "protected MXBeanMappingFactory() {}", "@ImplementedBy(DefaultSyntheticTargetFactory.class)\npublic interface SyntheticTargetFactory {\n /**\n * Builds the synthetic target with the given name for the given project.\n *\n * @param name The name of the target.\n * @param project The project.\n */\n void build(String name, Project project);\n}", "@Override\n\t\tpublic byte[] handleUnmappedClass(byte[] inBytes, TinyRemapper remapper) {\n\t\t\tClassNode classNode = readClassFromBytes(inBytes);\n\t\t\tif(isMixin(classNode)){\n\t\t\t\tString target = getMixinTarget(classNode);\n\t\t\t\tSystem.out.println(\"Remapping mixin (\" + classNode.name + \") targeting: \" + target);\n\t\t\t\tfor(MethodNode methodNode : classNode.methods){\n\t\t\t\t\tif(needsTargetMap(methodNode.visibleAnnotations)){\n\t\t\t\t\t\tmethodNode.visibleAnnotations.add(createTargetMap(methodNode, target, remapper));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(FieldNode fieldNode : classNode.fields){\n\t\t\t\t\tif(needsTargetMap(fieldNode.visibleAnnotations)){\n\t\t\t\t\t\t//fieldNode.visibleAnnotations.add(createTargetMap(fieldNode));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn writeClassToBytes(classNode);\n\t\t\t}\n\t\t\treturn inBytes;\n\t\t}", "public Usdl_rupStub(org.apache.axis2.context.ConfigurationContext configurationContext,\r\n java.lang.String targetEndpoint)\r\n throws org.apache.axis2.AxisFault {\r\n this(configurationContext, targetEndpoint, false);\r\n }", "TAbstractType getTarget();", "@Override\n\tprotected Transaction createTarget() {\n\t\treturn null;\n\t}", "protected MetadataClass getTargetClass() {\r\n return m_targetClass;\r\n }", "SchemaBuilder withFactory(String factoryClassName);", "static Permission instantiatePermission(Class<?> targetType,\n String targetName, String targetActions)\n throws InstantiationException, IllegalAccessException, \n IllegalArgumentException, InvocationTargetException \n {\n\n // let's guess the best order for trying constructors\n Class[][] argTypes;\n Object[][] args;\n if (targetActions != null) {\n argTypes = new Class[][] { TWO_ARGS, ONE_ARGS, NO_ARGS };\n args = new Object[][] { { targetName, targetActions },\n { targetName }, {} };\n } else if (targetName != null) {\n argTypes = new Class[][] { ONE_ARGS, TWO_ARGS, NO_ARGS };\n args = new Object[][] { { targetName },\n { targetName, /*targetActions*/ null }, {} };\n } else {\n argTypes = new Class[][] { NO_ARGS, ONE_ARGS, TWO_ARGS };\n args = new Object[][] { {}, { /*targetName*/ null },\n { /*targetName*/ null, /*targetActions*/ null } };\n }\n\n // finally try to instantiate actual permission\n for (int i = 0; i < argTypes.length; i++) {\n try {\n Constructor<?> ctor = targetType.getConstructor(argTypes[i]);\n return (Permission)ctor.newInstance(args[i]);\n }\n catch (NoSuchMethodException ignore) {}\n }\n throw new IllegalArgumentException(\n Messages.getString(\"security.150\", targetType));//$NON-NLS-1$\n }", "public LibraryRef getTarget() {\n return new LibraryRef((JsonObject) json.get(\"target\"));\n }", "public Class<T> getTargetClass() {\n\t\treturn targetClass;\n\t}", "public org.objenesis.instantiator.ObjectInstantiator newInstantiatorOf(final java.lang.Class r4) {\n /*\n r3 = this;\n boolean r0 = com.esotericsoftware.kryo.util.Util.IS_ANDROID\n r1 = 1\n if (r0 != 0) goto L_0x002a\n java.lang.Class r0 = r4.getEnclosingClass()\n if (r0 == 0) goto L_0x001d\n boolean r0 = r4.isMemberClass()\n if (r0 == 0) goto L_0x001d\n int r0 = r4.getModifiers()\n boolean r0 = java.lang.reflect.Modifier.isStatic(r0)\n if (r0 != 0) goto L_0x001d\n r0 = 1\n goto L_0x001e\n L_0x001d:\n r0 = 0\n L_0x001e:\n if (r0 != 0) goto L_0x002a\n com.esotericsoftware.reflectasm.ConstructorAccess r0 = com.esotericsoftware.reflectasm.ConstructorAccess.get(r4) // Catch:{ Exception -> 0x002a }\n com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$1 r2 = new com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$1 // Catch:{ Exception -> 0x002a }\n r2.<init>(r0, r4) // Catch:{ Exception -> 0x002a }\n return r2\n L_0x002a:\n r0 = 0\n r2 = r0\n java.lang.Class[] r2 = (java.lang.Class[]) r2 // Catch:{ Exception -> 0x0033 }\n java.lang.reflect.Constructor r0 = r4.getConstructor(r2) // Catch:{ Exception -> 0x0033 }\n goto L_0x003c\n L_0x0033:\n java.lang.Class[] r0 = (java.lang.Class[]) r0 // Catch:{ Exception -> 0x0042 }\n java.lang.reflect.Constructor r0 = r4.getDeclaredConstructor(r0) // Catch:{ Exception -> 0x0042 }\n r0.setAccessible(r1) // Catch:{ Exception -> 0x0042 }\n L_0x003c:\n com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$2 r1 = new com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy$2 // Catch:{ Exception -> 0x0042 }\n r1.<init>(r0, r4) // Catch:{ Exception -> 0x0042 }\n return r1\n L_0x0042:\n org.objenesis.strategy.InstantiatorStrategy r0 = r3.fallbackStrategy\n if (r0 != 0) goto L_0x00c1\n boolean r0 = r4.isMemberClass()\n if (r0 == 0) goto L_0x0073\n int r0 = r4.getModifiers()\n boolean r0 = java.lang.reflect.Modifier.isStatic(r0)\n if (r0 == 0) goto L_0x0058\n goto L_0x0073\n L_0x0058:\n com.esotericsoftware.kryo.KryoException r0 = new com.esotericsoftware.kryo.KryoException\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"Class cannot be created (non-static member class): \"\n r1.append(r2)\n java.lang.String r4 = com.esotericsoftware.kryo.util.Util.className(r4)\n r1.append(r4)\n java.lang.String r4 = r1.toString()\n r0.<init>(r4)\n throw r0\n L_0x0073:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"Class cannot be created (missing no-arg constructor): \"\n r1.append(r2)\n java.lang.String r2 = com.esotericsoftware.kryo.util.Util.className(r4)\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n r0.<init>(r1)\n java.lang.String r4 = r4.getSimpleName()\n java.lang.String r1 = \"\"\n boolean r4 = r4.equals(r1)\n if (r4 == 0) goto L_0x00b7\n java.lang.String r4 = \"\\n\\tThis is an anonymous class, which is not serializable by default in Kryo. Possible solutions: \"\n r0.append(r4)\n java.lang.String r4 = \"1. Remove uses of anonymous classes, including double brace initialization, from the containing \"\n r0.append(r4)\n java.lang.String r4 = \"class. This is the safest solution, as anonymous classes don't have predictable names for serialization.\"\n r0.append(r4)\n java.lang.String r4 = \"\\n\\t2. Register a FieldSerializer for the containing class and call \"\n r0.append(r4)\n java.lang.String r4 = \"FieldSerializer#setIgnoreSyntheticFields(false) on it. This is not safe but may be sufficient temporarily. \"\n r0.append(r4)\n java.lang.String r4 = \"Use at your own risk.\"\n r0.append(r4)\n L_0x00b7:\n com.esotericsoftware.kryo.KryoException r4 = new com.esotericsoftware.kryo.KryoException\n java.lang.String r0 = r0.toString()\n r4.<init>(r0)\n throw r4\n L_0x00c1:\n org.objenesis.instantiator.ObjectInstantiator r4 = r0.newInstantiatorOf(r4)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.esotericsoftware.kryo.Kryo.DefaultInstantiatorStrategy.newInstantiatorOf(java.lang.Class):org.objenesis.instantiator.ObjectInstantiator\");\n }", "public void setUnMarshaller(UnMarshaller unmarshaller)\n {\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public <ENTITY extends IDomainResource> ENTITY parse(final String jsonString, final Class<ENTITY> targetClass)\n throws WebApplicationException\n {\n ENTITY entity = parseWithoutValidation(jsonString, targetClass);\n validate(entity);\n\n return entity;\n }", "public static EtudiantFactory unchecked_narrow(org.omg.CORBA.Object obj)\n {\n if (obj == null)\n return null;\n if (obj instanceof EtudiantFactory)\n return (EtudiantFactory)obj;\n\n _EtudiantFactoryStub stub = new _EtudiantFactoryStub();\n stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());\n return stub;\n\n }", "public void setTargetType(Class<?> targetType)\n/* */ {\n/* 257 */ this.targetType = (targetType != null ? ResolvableType.forClass(targetType) : null);\n/* */ }", "public abstract TreeUnmarshaller createUnmarshallingContext(Object obj, HierarchicalStreamReader hierarchicalStreamReader, ConverterLookup converterLookup, Mapper mapper);", "public ReplicateObjectMessageFactory() {\n super(null);\n }", "@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(RequestTrackDevice.class, this::onTrackDevice)\n\t\t\t\t.match(Terminated.class, this::onTerminate)\n\t\t\t\t.match(RequestDeviceList.class, this::onDeviceList)\n\t\t\t\t.match(RequestAllTemperatures.class, this::onAllTemperatures)\n\t\t\t\t.build();\n\t}", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n\n .match(WhoToGreet.class, wtg -> {\n // -> uses the internal state of wtg and modify this internal state (this.greeting)\n this.greeting = \"Who to greet? -> \" + wtg.who;\n\n }).match(Greet.class, x -> {\n // -> send a message to another actor (thread)\n printerActor.tell(new Printer.Greeting(greeting), getSelf());\n\n }).build();\n }", "void generateWireTarget(JavaTargetDefinition definition, LogicalService service) throws GenerationException;", "public void convertClassNamesToClasses(ClassLoader classLoader){\n if (factoryClassName == null){\n return;\n }\n Class factoryClass = null;\n try{\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n factoryClass = (Class)AccessController.doPrivileged(new PrivilegedClassForName(factoryClassName, true, classLoader));\n } catch (PrivilegedActionException exception) {\n throw ValidationException.classNotFoundWhileConvertingClassNames(factoryClassName, exception.getException());\n }\n } else {\n factoryClass = oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getClassForName(factoryClassName, true, classLoader);\n }\n } catch (ClassNotFoundException exc){\n throw ValidationException.classNotFoundWhileConvertingClassNames(factoryClassName, exc);\n }\n setFactoryClass(factoryClass);\n }", "protected Builder(final Function<B, S> targetConstructor) {\n super(targetConstructor);\n }", "protected Builder(final Function<B, S> targetConstructor) {\n super(targetConstructor);\n }", "<T extends Binding> PhysicalWireDefinition generateBoundService(LogicalBinding<T> binding, URI callbackUri) throws Fabric3Exception;", "Class<?> getFactoryClass();", "GeneratedInterface generate(Class interfaze, String targetNamespace, String wsdlLocation, String serviceName, String portName) throws Fabric3Exception;", "private JSONMessageFactory(){}", "public Converter createConverter(Class<?> source, Class<?> target,\n\t\t\tHints hints) {\n\t if(DB2_BLOB == null)\n\t return null;\n\t \n\t\t// can only convert towards byte[]\n\t\tif (!(byte[].class.equals(target)))\n\t\t\treturn null;\n\n\t\t// can only deal with db2 specific blob classes\n\t\tif (!DB2_BLOB.isAssignableFrom(source))\n\t\t\treturn null;\n\t\t\n\t\t// converter is thread safe, so cache and return just one\n\t\treturn converter;\n\t}", "public static SerializerFactory createFactory(Class factory, \n Class javaType, \n QName xmlType) {\n if (factory == null) {\n return null;\n }\n\n try {\n if (factory == BeanSerializerFactory.class) {\n return new BeanSerializerFactory(javaType, xmlType);\n } else if (factory == SimpleSerializerFactory.class) {\n return new SimpleSerializerFactory(javaType, xmlType);\n } else if (factory == EnumSerializerFactory.class) {\n return new EnumSerializerFactory(javaType, xmlType);\n } else if (factory == ElementSerializerFactory.class) {\n return new ElementSerializerFactory();\n } else if (factory == SimpleListSerializerFactory.class) {\n return new SimpleListSerializerFactory(javaType, xmlType);\n }\n } catch (Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n return null;\n }\n\n SerializerFactory sf = null;\n try {\n Method method = \n factory.getMethod(\"create\", CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n method.invoke(null, \n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n\n if (sf == null) {\n try {\n Constructor constructor = \n factory.getConstructor(CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n constructor.newInstance(\n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InstantiationException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n }\n \n if (sf == null) {\n try {\n sf = (SerializerFactory) factory.newInstance();\n } catch (InstantiationException e) {\n } catch (IllegalAccessException e) {}\n }\n return sf;\n }", "protected POJODefinition _resolveBeanDef(Class<?> raw) {\n try {\n if (_readerModifier != null) {\n POJODefinition def = _readerModifier.pojoDefinitionForDeserialization(_readContext, raw);\n if (def != null) {\n return def;\n }\n }\n return BeanPropertyIntrospector.instance().pojoDefinitionForDeserialization(_readContext, raw);\n } catch (Exception e) {\n throw new IllegalArgumentException(String.format\n (\"Failed to introspect ClassDefinition for type '%s': %s\",\n raw.getName(), e.getMessage()), e);\n }\n }", "ClassInstanceCreationExpression getClass_();", "public static MappableBuilder createMappableBuilder()\r\n {\r\n\r\n return new MappableBuilder( createMappableBuilderFactory() );\r\n }", "private void initializePathBindingClass() {\n\t\t// class name\n\t\tthis.pathBindingClass = new GClass(this.name.getBindingPathClassDeclaration());\n\t\t// parent class; may be provided by configuration\n\t\tthis.pathBindingClass.baseClassName(this.name.getBindingPathClassSuperClass());\n\t\t// TODO: try to generate code without warning\n\t\tthis.pathBindingClass.addAnnotation(\"@SuppressWarnings(\\\"all\\\")\");\n\t\t// add a protected no-args constructor\n\t\tthis.pathBindingClass.getConstructor().setProtected();\n\t\t// add a complete constructor\n\t\t// - String name\n\t\t// - Class<?> type\n\t\t// - BindingRoot<P, R> parentBinding,\n\t\t// - Getter<P, T> getter\n\t\t// - Setter<P, T> setter\n\t\t// call parent constructor with same args\n\n\t\tfinal String rootTypeArgument = name.getRootTypeArgument();\n\t\tfinal String parentTypeArgument = name.getParentTypeArgument();\n\n\t\tthis.pathBindingClass.getConstructor(\n\t\t\tnew Argument(String.class.getName(), \"name\"),\n\t\t\tnew Argument(String.format(\"%1$s<?>\", Class.class.getName()), \"type\"),\n\t\t\tnew Argument(\n\t\t\t\tString.format(\"%1$s<%2$s, %3$s>\", BindingRoot.class.getName(), rootTypeArgument, parentTypeArgument),\n\t\t\t\t\"parentBinding\"),\n\t\t\tnew Argument(\n\t\t\t\tString.format(\"%1$s<%3$s, %2$s>\", Getter.class.getName(), this.name.get().toString(), parentTypeArgument),\n\t\t\t\t\"getter\"),\n\t\t\tnew Argument(\n\t\t\t\tString.format(\"%1$s<%3$s, %2$s>\", Setter.class.getName(), this.name.get().toString(), parentTypeArgument),\n\t\t\t\t\"setter\"))\n\t\t\t.setBody(\"super(name, type, parentBinding, getter, setter);\\n\");\n\t\t// another constructor without type argument\n\t\tthis.pathBindingClass.getConstructor(\n\t\t\tnew Argument(String.class.getName(), \"name\"),\n\t\t\tnew Argument(\n\t\t\t\tString.format(\"%1$s<%2$s, %3$s>\", BindingRoot.class.getName(), rootTypeArgument, parentTypeArgument),\n\t\t\t\t\"parentBinding\"),\n\t\t\tnew Argument(\n\t\t\t\tString.format(\"%1$s<%3$s, %2$s>\", Getter.class.getName(), this.name.get().toString(), parentTypeArgument),\n\t\t\t\t\"getter\"),\n\t\t\tnew Argument(\n\t\t\t\tString.format(\"%1$s<%3$s, %2$s>\", Setter.class.getName(), this.name.get().toString(), parentTypeArgument),\n\t\t\t\t\"setter\"))\n\t\t.setBody(\"super(name, parentBinding, getter, setter);\\n\");\n\t\t// same only with type\n\t\tthis.pathBindingClass.getConstructor(\n\t\t\t\tnew Argument(String.format(\"%1$s<?>\", Class.class.getName()), \"type\"))\n\t\t\t.setBody(\"super(type);\\n\");\n\t}", "public Target(Registry registry) {\r\n\t\tthis.registry = registry;\r\n\t\tthis.id = registry.getId();\r\n\t}", "public SerialMarshallerFactory() {\n if (getSecurityManager() == null) {\n registry = SerializableClassRegistry.getInstance();\n } else {\n registry = doPrivileged(new PrivilegedAction<SerializableClassRegistry>() {\n public SerializableClassRegistry run() {\n return SerializableClassRegistry.getInstance();\n }\n });\n }\n }", "public final void mT__56() throws RecognitionException {\r\n try {\r\n int _type = T__56;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:57:7: ( '\\\\'targetClass\\\\'' )\r\n // InternalSpringConfigDsl.g:57:9: '\\\\'targetClass\\\\''\r\n {\r\n match(\"'targetClass'\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public static CustomClassBuilder getInstance(Configuration configuration, ClassDoc classDoc,\n\t\t\tClassWriter writer, TargetContractMap targetContractMap) throws Exception {\n\t\tCustomClassBuilder builder = new CustomClassBuilder(configuration);\n\t\tbuilder.configuration = configuration;\n\t\tbuilder.classDoc = classDoc;\n\t\tbuilder.writer = writer;\n\t\tbuilder.targetContractMap = targetContractMap;\n\t\tif (classDoc.isInterface()) {\n\t\t\tbuilder.isInterface = true;\n\t\t} else if (classDoc.isEnum()) {\n\t\t\tbuilder.isEnum = true;\n\t\t\tUtil.setEnumDocumentation(configuration, classDoc);\n\t\t}\n\t\tif (containingPackagesSeen == null) {\n\t\t\tcontainingPackagesSeen = new HashSet<String>();\n\t\t}\n\t\treturn builder;\n\t}", "public String getBindingClass()\n {\n return bindingClass;\n }", "public final FixtureBuilder<T> of(final Class<?>... classes) {\n\t\t\treturn new FixtureBuilder<T>(fixtureObjectType.of(classes));\n\t\t}", "public <A> DeployBeanDescriptor<A> createDeployDescriptor(Class<A> targetType) {\n return new DeployBeanDescriptor<>(this, targetType, config);\n }", "private <T extends MwsObject> T newResponse(\n Class<T> cls) {\n InputStream is = null;\n try {\n is = this.getClass().getResourceAsStream(cls.getSimpleName()+\".xml\");\n MwsXmlReader reader = new MwsXmlReader(is);\n T obj = cls.newInstance();\n obj.readFragmentFrom(reader);\n ResponseHeaderMetadata rhmd = new ResponseHeaderMetadata(\n \"mockRequestId\", Arrays.asList(\"A\",\"B\",\"C\"), \"mockTimestamp\", 0d, 0d, new Date());\n cls.getMethod(\"setResponseHeaderMetadata\", rhmd.getClass()).invoke(obj, rhmd);\n return obj;\n } catch (Exception e) {\n throw MwsUtl.wrap(e);\n } finally {\n MwsUtl.close(is);\n }\n }", "protected DynamicClassLoader(Class<?> target) {\n super(target.getClassLoader());\n RESOLVER.accept(this, target);\n }", "public void setObjectFactory(Class javaBeanClass) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n factory = new BeanFactory(javaBeanClass);\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic static Object unmarshal(String sourceXml, Class[] sourceClass) throws JAXBException {\n\t\tif (StringUtils.isNotBlank(sourceXml)) {\n\t\t\tJAXBElement jaxbElement = JAXBContext.newInstance(sourceClass).createUnmarshaller().unmarshal(new StreamSource(new StringReader(sourceXml)), sourceClass[0]);\n\n\t\t\tif (jaxbElement != null && jaxbElement.getValue() != null) {\n\t\t\t\treturn jaxbElement.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected T createNewBean() throws InstantiationException {\n try {\n return beanClass.getConstructor().newInstance();\n } catch (final InstantiationException |\n IllegalAccessException |\n IllegalArgumentException |\n InvocationTargetException |\n NoSuchMethodException |\n SecurityException e) {\n // fold it all into one type of exception\n throw new InstantiationException(e.getMessage());\n }\n }", "Class<T> getTargetType();", "public static EntityWithFactoryMethodAndMixedMappingTypes instance(@MapsTo(\"factoryMethodInjected\") String factoryMethodInjected) {\n EntityWithFactoryMethodAndMixedMappingTypes instance = new EntityWithFactoryMethodAndMixedMappingTypes(factoryMethodInjected);\n instance.factoryMethodWasCalled = true;\n return instance;\n }", "<T extends Binding> PhysicalWireDefinition generateBoundReference(LogicalBinding<T> binding) throws Fabric3Exception;", "public WeakKeyFactory(Class<?> holder) {\n this(holder, true);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate IMonitoringRecordDeserializer createDeserializer(final String deserializerClassName, final Configuration configuration,\n\t\t\tfinal IProjectContext projectContext) {\n\t\tfinal Class<? extends IMonitoringRecordDeserializer> deserializerClass;\n\t\tIMonitoringRecordDeserializer localDeserializer = null;\n\n\t\ttry {\n\t\t\tdeserializerClass = (Class<? extends IMonitoringRecordDeserializer>) Class.forName(deserializerClassName);\n\t\t\tfinal Constructor<? extends IMonitoringRecordDeserializer> constructor = deserializerClass\n\t\t\t\t\t.getConstructor(Configuration.class, IProjectContext.class);\n\t\t\tlocalDeserializer = constructor.newInstance(configuration, projectContext);\n\t\t} catch (final ClassNotFoundException e) {\n\t\t\tLOGGER.error(\"The deserializer class '{}' was not found.\", deserializerClassName);\n\t\t} catch (final NoSuchMethodException e) {\n\t\t\tLOGGER.error(\"The deserializer class '{}' does not provide a suitable constructor.\", deserializerClassName);\n\t\t} catch (final InstantiationException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final IllegalAccessException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final IllegalArgumentException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final InvocationTargetException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t}\n\n\t\treturn localDeserializer;\n\t}", "public SaveObject createFromClass(SaveObjectKind kind, String className) throws IllegalAccessException, InstantiationException {\n Class<?> clazz = getClazzByAnnotation(className);\n if (clazz == null) {\n if (!missingTypes.contains(className)) {\n missingTypes.add(className);\n }\n LOGGER.log(Level.INFO, \"Unknown className \" + className);\n //TODO throw new NotImplementedException($\"Unknown className \" + className);\n throw new NotImplementedException();\n } else {\n switch (kind) {\n case Actor:\n return (SaveActor) clazz.newInstance();\n case Component:\n return (SaveComponent) clazz.newInstance();\n default:\n//TODO throw new NotImplementedException($\"Unknown SaveObject kind {kind}\");\n throw new NotImplementedException();\n }\n }\n }", "private GroupBinding createGroupBinding (Schema.Group g, Class<?> tgtType,\n Schema.Group origin)\n throws BlinkException\n {\n ArrayList<Field> bindingFields = new ArrayList<Field> ();\n GroupBinding b = new GroupBindingImpl (origin, tgtType, bindingFields);\n grpBndByName.put (origin.getName (), b);\n grpBndByClass.put (tgtType, b);\n\n long tid = b.getCompactTypeId ();\n if (grpBndByTid.containsKey (tid))\n {\n addAmbiguousTypeIdError (origin, tid);\n grpBndByTid.remove (tid);\n }\n else\n {\n if (! conflictByTid.containsKey (tid))\n grpBndByTid.put (tid, b);\n }\n\n HashMap<String, Method> allMethods = new HashMap<String, Method> ();\n getAllMethods (tgtType, allMethods);\n mapFields (g, allMethods, bindingFields);\n return b;\n }", "public Payload() {}", "public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}", "public TypeLiteral<T> getTargetType(){\n return targetType;\n }", "public static MethodInvocation createFromClass(Object targetObject, Class<?> clazz, String methodName,\n Class<?>[] classArgs, Object[] args) {\n Assert.notNull(clazz, \"Class required\");\n Assert.hasText(methodName, \"MethodName required\");\n\n Method method;\n\n try {\n method = clazz.getMethod(methodName, classArgs);\n }\n catch (NoSuchMethodException e) {\n return null;\n }\n\n return new SimpleMethodInvocation(targetObject, method, args);\n }", "public abstract ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation,\n QName serviceName, Class<? extends Service> serviceClass);", "public final Class<?> getTargetType(){\n return this.targetType;\n }", "public JSONBuilder(CaseFormat sourceCaseFormat, CaseFormat targetCaseFormat) {\n\t\tthis.sourceCaseFormat = sourceCaseFormat;\n\t\tthis.targetCaseFormat = targetCaseFormat;\n\t\taddStandardTransformers();\n\t}", "void createHandler(final String handlerClassName);", "@Override\n\tprotected <T> AnnotatedBindingBuilder<T> bind(Class<T> clazz) {\n\t\treturn super.bind(clazz);\n\t}", "public Object cast(Object aFromObject, Class<?> toClass) {\n\t\ttry {\n\t\t\tClass<?> targetClz = Class.forName(toClass.getName());\n\t\t\tObject result = targetClz.newInstance();\n\t\t\tBeanUtils.copyProperties(result, aFromObject);\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\tlogger.warn(\"error casting \" + aFromObject.getClass().getName() + \" : \" + e);\n\t\t\treturn null;\n\t\t}\n\t}", "public static <T> RuntimeSchema<T> createFrom(Class<T> typeClass, \r\n Map<String,String> declaredFields)\r\n {\r\n if(typeClass.isInterface() || Modifier.isAbstract(typeClass.getModifiers()))\r\n {\r\n throw new RuntimeException(\"The root object can neither be an abstract \" +\r\n \t\t\"class nor interface: \\\"\" + typeClass.getName());\r\n }\r\n \r\n ArrayList<Field<T>> fields = new ArrayList<Field<T>>(declaredFields.size());\r\n int i = 0;\r\n for(Map.Entry<String, String> entry : declaredFields.entrySet())\r\n {\r\n java.lang.reflect.Field f;\r\n try\r\n {\r\n f = typeClass.getDeclaredField(entry.getKey());\r\n }\r\n catch (Exception e)\r\n {\r\n throw new IllegalArgumentException(\"Exception on field: \" + entry.getKey(), e);\r\n }\r\n \r\n int mod = f.getModifiers();\r\n if(!Modifier.isStatic(mod) && !Modifier.isTransient(mod))\r\n {\r\n RuntimeFieldFactory<?> rff = RuntimeFieldFactory.getFieldFactory(f.getType());\r\n if(rff!=null)\r\n {\r\n Field<T> field = rff.create(i+1, entry.getValue(), f);\r\n if(field!=null)\r\n {\r\n i++;\r\n fields.add(field);\r\n }\r\n }\r\n }\r\n }\r\n if(fields.isEmpty())\r\n {\r\n throw new RuntimeException(\"Not able to map any fields from \" + \r\n typeClass + \". All fields are either transient/static. \" +\r\n \"Two dimensional array fields are excluded. \" +\r\n \"Collection/Map fields whose generic type is another \" +\r\n \"Collection/Map or another generic type, are excluded.\");\r\n }\r\n return new RuntimeSchema<T>(typeClass, fields, i);\r\n }", "private Builder(Class<T> clazz, Object... objects) {\n try {\n Stream<Constructor<?>> constructors = Stream.of(clazz.getDeclaredConstructors()).peek(constructor -> constructor.setAccessible(true));\n Optional<Constructor<?>> constructor;\n if (null == objects) {\n constructor = constructors.filter(cons -> cons.getParameterCount() == 0).findFirst();\n if (constructor.isPresent()) {\n instance = clazz.cast(constructor.get().newInstance());\n }\n } else {\n constructor = constructors.filter(cons -> cons.getParameterCount() == objects.length)\n .filter(cons -> {\n List<Class<?>> consClass = Arrays.asList(cons.getParameterTypes());\n List<Class<?>> paramsClass = Arrays.stream(objects).map(Object::getClass).collect(Collectors.toList());\n return consClass.stream()\n .allMatch(con -> paramsClass.stream()\n .anyMatch(param -> (con.isPrimitive() &&\n (Number.class.isAssignableFrom(param) ||\n Boolean.class.isAssignableFrom(param) ||\n Character.class.isAssignableFrom(param) ||\n Byte.class.isAssignableFrom(param))) ||\n param.equals(con) ||\n param.isAssignableFrom(con) ||\n con.isAssignableFrom(param)));\n })\n .findFirst();\n if (constructor.isPresent()) {\n instance = clazz.cast(constructor.get().newInstance(objects));\n }\n }\n } catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n }", "public static JavaType createForClass(Class<?> clazz) {\n return new JavaType(clazz);\n }", "public ParameterizedInstantiateFactory(Class<? extends T> classToInstantiate) {\r\n super();\r\n this.classToInstantiate = classToInstantiate;\r\n }", "public abstract Class<T> targetType();", "public Reflect(Class<? extends ReflectorFactory> defaultFactoryClass) {\n this.defaultFactoryClass = defaultFactoryClass;\n }" ]
[ "0.4859058", "0.48313183", "0.48031014", "0.47892678", "0.47192442", "0.47046238", "0.46706286", "0.4599081", "0.45973128", "0.45274138", "0.4483412", "0.44707048", "0.44389993", "0.44007862", "0.43510953", "0.43474978", "0.4340973", "0.4333319", "0.43319067", "0.43080676", "0.42824492", "0.42737922", "0.42705", "0.4264084", "0.42394564", "0.4231464", "0.42163336", "0.4200213", "0.417449", "0.41650036", "0.4149292", "0.414255", "0.41293845", "0.41084644", "0.41082886", "0.41002283", "0.40800035", "0.4075307", "0.40716568", "0.40682283", "0.40673476", "0.40558597", "0.40420595", "0.40361345", "0.40328225", "0.40256268", "0.40189227", "0.401213", "0.4009111", "0.39865765", "0.3969009", "0.3966724", "0.39624405", "0.39577866", "0.39577866", "0.39570543", "0.39526856", "0.39424467", "0.39293432", "0.39198488", "0.3912601", "0.391047", "0.39086488", "0.39031234", "0.39025417", "0.3899552", "0.3894062", "0.38782775", "0.3863369", "0.38623282", "0.38571438", "0.38569546", "0.38564503", "0.38548213", "0.38512185", "0.3850004", "0.38432866", "0.38375372", "0.38362178", "0.38348016", "0.3829011", "0.38279906", "0.38268483", "0.38235873", "0.38154158", "0.38132623", "0.3812097", "0.38120767", "0.3811467", "0.38080725", "0.38080218", "0.38074756", "0.3807376", "0.38070136", "0.3804678", "0.38027138", "0.38023832", "0.38007417", "0.3799922", "0.3799165" ]
0.5616056
0
Create the unmarshaller using the specified binding factory.
public UnmarshallingPayloadReader(IBindingFactory factory) throws WsBindingException { m_unmarshallCtx = createUnmarshallingContext(factory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Unmarshaller getUnmarshaller(boolean reuse)\n throws JAXBException {\n if (!reuse || unmarshaller == null) {\n unmarshaller = context.createUnmarshaller();\n }\n return unmarshaller;\n }", "public abstract DeserializerFactory withConfig(DeserializerFactoryConfig deserializerFactoryConfig);", "public void setUnMarshaller(UnMarshaller unmarshaller)\n {\n }", "private MultibinderFactory() { }", "public static SerializerFactory createFactory(Class factory, \n Class javaType, \n QName xmlType) {\n if (factory == null) {\n return null;\n }\n\n try {\n if (factory == BeanSerializerFactory.class) {\n return new BeanSerializerFactory(javaType, xmlType);\n } else if (factory == SimpleSerializerFactory.class) {\n return new SimpleSerializerFactory(javaType, xmlType);\n } else if (factory == EnumSerializerFactory.class) {\n return new EnumSerializerFactory(javaType, xmlType);\n } else if (factory == ElementSerializerFactory.class) {\n return new ElementSerializerFactory();\n } else if (factory == SimpleListSerializerFactory.class) {\n return new SimpleListSerializerFactory(javaType, xmlType);\n }\n } catch (Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n return null;\n }\n\n SerializerFactory sf = null;\n try {\n Method method = \n factory.getMethod(\"create\", CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n method.invoke(null, \n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n\n if (sf == null) {\n try {\n Constructor constructor = \n factory.getConstructor(CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n constructor.newInstance(\n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InstantiationException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n }\n \n if (sf == null) {\n try {\n sf = (SerializerFactory) factory.newInstance();\n } catch (InstantiationException e) {\n } catch (IllegalAccessException e) {}\n }\n return sf;\n }", "public MappableBuilder( final MappableBuilderFactory factory )\r\n {\r\n this.toStringNullValue = factory.getStringNullValue();\r\n this.messageFormatIteratorEntry = new MessageFormat(factory.getMessageFormatIteratorEntry());\r\n this.messageFormatIterableEntry = new MessageFormat(factory.getMessageFormatIterableEntry());\r\n this.messageFormatEnumerationEntry = new MessageFormat(factory.getMessageFormatEnumerationEntry());\r\n this.messageFormatArrayEntry = new MessageFormat(factory.getMessageFormatArrayEntry());\r\n this.messageFormatMethodName = new MessageFormat(factory.getMessageFormatMethodName());\r\n this.methodesNamePattern = factory.getMethodesNamePattern();\r\n this.returnTypeClasses = factory.getClasses();\r\n this.mappableItemSet = factory.getMappableItemSet();\r\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "SchemaBuilder withFactory(String factoryClassName);", "public static EtudiantFactory unchecked_narrow(org.omg.CORBA.Object obj)\n {\n if (obj == null)\n return null;\n if (obj instanceof EtudiantFactory)\n return (EtudiantFactory)obj;\n\n _EtudiantFactoryStub stub = new _EtudiantFactoryStub();\n stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());\n return stub;\n\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static XmlEntityObjectFactory getFactory() {\n\t\tif (factory == null) {\n\t\t\tfactory = new XmlEntityObjectFactory();\n\t\t\ttry {\n\t\t\t\tClass<IXmlEntityResolverLoader> loaderClass = (Class<IXmlEntityResolverLoader>) Class\n\t\t\t\t\t\t.forName(defaulEntityResolverLoaderClassName);\n\t\t\t\tIXmlEntityResolverLoader loader;\n\t\t\t\tloader = loaderClass.newInstance();\n\t\t\t\tloader.loadTo(factory);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new UnexpectedRuntimeException(ex);\n\t\t\t}\n\t\t}\n\t\treturn factory;\n\t}", "public interface VersionFactory extends Marshaller<Version> {\n /**\n * Creates a new version object for the provided node ID.\n */\n Version create(Identity nodeId);\n}", "public static TypeAdapterFactory create() {\n return new AutoValueGson_MyTypeAdapterFactory();\n }", "Builder adapterFactory(TypeAdapterFactory factory);", "void setFactoryBean( FactoryBean factory );", "public static JsonAdapter.Factory create() {\n return nullSafe(new AutoValueMoshi_AutoValueFactory());\n }", "public static Factory factory() {\n return ext_h::new;\n }", "Factory<? extends T> buildPersonFactory(String type);", "public static gestionVoeu.EtudiantFactory read(org.omg.CORBA.portable.InputStream istream)\n {\n return(gestionVoeu.EtudiantFactory)istream.read_Object(gestionVoeu._EtudiantFactoryStub.class);\n }", "@Bind(id = \"behaviorF\", specification = Factory.class, optional = true, proxy = false, aggregate = true, filter = \"(\" + FunctionalExtensionReference.FUNCTIONAL_EXTENSION_FACTORY_TYPE_PROPERTY + \"=\" + FunctionalExtensionReference.FUNCTIONAL_EXTENSION_FACTORY_TYPE_PROPERTY_VALUE + \")\")\n public synchronized void bindBehaviorFactory(Factory behaviorFactory, Map prop) {\n for (Map.Entry<String, RequiredFunctionalExtension> entry : myRequiredBehaviorById.entrySet()) {\n String impl = (String) prop.get(FunctionalExtensionReference.IMPLEMEMENTATION_ATTRIBUTE_NAME.toString());\n List<String> listOfSpec = getListOfFactoryProvideSpec(prop);\n\n if (entry.getValue().tryToAddFactory(behaviorFactory, listOfSpec, impl)) {\n entry.getValue().addManager();\n if (getInstanceManager().getState() == ComponentInstance.VALID) {\n entry.getValue().tryStartExtension();\n }\n }\n }\n }", "@Bean\n public IBundleFactory getBundleFactory() {\n IInternationalizationService internationalizationService = Locator.findMBean(IInternationalizationService.class,\n IInternationalizationService.MBEAN_NAME);\n return internationalizationService.getBundleFactory(this.getClass().getClassLoader(), this.applicationContext);\n }", "@Bean\n public IBundleFactory getBundleFactory() {\n IInternationalizationService internationalizationService = Locator.findMBean(IInternationalizationService.class,\n IInternationalizationService.MBEAN_NAME);\n return internationalizationService.getBundleFactory(this.getClass().getClassLoader(), this.applicationContext);\n }", "public StyxSerializer(ObjectFactory factory) {\n this.factory = factory;\n }", "public static borFactory init() {\n\t\ttry {\n\t\t\tborFactory theborFactory = (borFactory)EPackage.Registry.INSTANCE.getEFactory(borPackage.eNS_URI);\n\t\t\tif (theborFactory != null) {\n\t\t\t\treturn theborFactory;\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 borFactoryImpl();\n\t}", "public static EtudiantFactory narrow(org.omg.CORBA.Object obj)\n {\n if (obj == null)\n return null;\n if (obj instanceof EtudiantFactory)\n return (EtudiantFactory)obj;\n\n if (obj._is_a(id()))\n {\n _EtudiantFactoryStub stub = new _EtudiantFactoryStub();\n stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());\n return stub;\n }\n\n throw new org.omg.CORBA.BAD_PARAM();\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "private JSONMessageFactory(){}", "Builder injectionFactory(InjectionObjectFactory factory);", "private static Object unmarshal(Class<?> klass, InputSource is) {\r\n\t\ttry {\r\n\t\t\tUnmarshaller unmarshaller = createUnmarshaller(klass);\r\n\t\t\tObject o = unmarshaller.unmarshal(is);\r\n\t\t\treturn o;\r\n\t\t} catch (JAXBException e) {\r\n\t\t\t//\r\n\t\t}\r\n\t\treturn is;\r\n\t}", "public abstract TreeUnmarshaller createUnmarshallingContext(Object obj, HierarchicalStreamReader hierarchicalStreamReader, ConverterLookup converterLookup, Mapper mapper);", "public SerialMarshallerFactory() {\n if (getSecurityManager() == null) {\n registry = SerializableClassRegistry.getInstance();\n } else {\n registry = doPrivileged(new PrivilegedAction<SerializableClassRegistry>() {\n public SerializableClassRegistry run() {\n return SerializableClassRegistry.getInstance();\n }\n });\n }\n }", "private Marshaller initJaxbMarshaller() {\n\t\tMarshaller jaxbMarshaller = null;\n\t\ttry {\n\t\t\tjaxbMarshaller = jaxbContext.createMarshaller();\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_ENCODING, StandardCharsets.UTF_8.name());\n\t\t\tjaxbMarshaller.setProperty(ENCODING_HANDLER, new JaxbCharacterEscapeEncoder());\n\t\t} catch (JAXBException e) {\n\t\t\tthrow new ResultCodeException(CoreResultCode.XML_JAXB_INIT_ERROR, e);\n\t\t}\n\t\treturn jaxbMarshaller;\n\t}", "private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }", "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}", "@Bean\n public IBundleFactory getBundleFactory(IInternationalizationService internationalizationService) {\n return internationalizationService.getBundleFactory(this.getClass().getClassLoader());\n }", "protected static Object createFactory(Map<String, String> configuration,\n String initParameterName) {\n String factoryName = resolveFactoryName(configuration, initParameterName);\n return ClassUtil.instantiate(factoryName);\n }", "public GenJez(final ISLP<N, S, W, P> slp, final ICFGCreatorFactory<N, S, W, P, ICFG<N, S, W, P>, ISLP<N, S, W, P>> factory) {\n this(slp, null, null, false, factory);\n this.matching = false;\n }", "public Unmarshaller getUnmarshaller()\n throws JAXBException {\n return getUnmarshaller(true);\n }", "public static Factory factory() {\n return ext_xspf::new;\n }", "public static XMLInputFactory newXMLInputFactory() {\n final XMLInputFactory xif = XMLInputFactory.newInstance();\n xif.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, false);\n xif.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);\n xif.setProperty(XMLInputFactory.IS_VALIDATING, false);\n xif.setProperty(XMLInputFactory.SUPPORT_DTD, false);\n return xif;\n }", "private DeploymentFactory initFactory() {\n return new SunDeploymentFactory();\n }", "XUMLRTFactory getXUMLRTFactory();", "public UnmarshallingPayloadReader(Class clazz) throws WsBindingException {\n IBindingFactory factory;\n try {\n factory = BindingDirectory.getFactory(clazz);\n } catch (JiBXException e) {\n throw new WsBindingException(\"Error accessing binding.\", e);\n }\n\n m_unmarshallCtx = createUnmarshallingContext(factory);\n }", "public static SapFactory init() {\n try {\n SapFactory theSapFactory = (SapFactory)EPackage.Registry.INSTANCE.getEFactory(SapPackage.eNS_URI);\n if (theSapFactory != null) {\n return theSapFactory;\n }\n }\n catch (Exception exception) {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SapFactoryImpl();\n }", "public static Pack2Factory init() {\n\t\ttry {\n\t\t\tPack2Factory thePack2Factory = (Pack2Factory)EPackage.Registry.INSTANCE.getEFactory(Pack2Package.eNS_URI);\n\t\t\tif (thePack2Factory != null) {\n\t\t\t\treturn thePack2Factory;\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 Pack2FactoryImpl();\n\t}", "public XMLInputFactory newXMLInputFactory()\n {\n return XMLInputFactory.newFactory();\n }", "public static Factory factory() {\n return ext_accdt::new;\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}", "public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\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 BuiltinFactoryImpl();\n\t}", "default Factory<T> toFactory() {\n throw new UnsupportedOperationException();\n }", "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 }", "static public ContentHandleFactory newFactory(Class<?>... pojoClasses)\n throws JAXBException {\n if (pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(pojoClasses);\n }", "AndroidFactory getAndroidFactory();", "protected SNUnOp(SyntaxNode operand,\n OperatorUnFactory opFactory, SyntaxNodeConstructorUn snFactory,\n String name) {\n operand_ = operand;\n opFactory_ = opFactory;\n snFactory_ = snFactory;\n snName_ = name;\n }", "public static AndroidFactory init() {\n\t\ttry {\n\t\t\tAndroidFactory theAndroidFactory = (AndroidFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eyal.fr/android\"); \n\t\t\tif (theAndroidFactory != null) {\n\t\t\t\treturn theAndroidFactory;\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 AndroidFactoryImpl();\n\t}", "static public ContentHandleFactory newFactory(JAXBContext context, Class<?>... pojoClasses) {\n if (context == null || pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(context, pojoClasses);\n }", "@Override\n IDeviceFactory getFactory();", "public DataExchangeFactory(TypeHandlerFactory typeHandlerFactory) {\r\n\t\tthis.typeHandlerFactory = typeHandlerFactory;\r\n\t\tdomDataExchange = new DomDataExchange(this);\r\n\t\tlistDataExchange = new ListDataExchange(this);\r\n\t\tmapDataExchange = new ComplexDataExchange(this);\r\n\t\tprimitiveDataExchange = new PrimitiveDataExchange(this);\r\n\t\tcomplexDataExchange = new ComplexDataExchange(this);\r\n\t}", "public \n UnpackExtFactory\n (\n Path bundlePath, \n String author, \n String view, \n boolean releaseOnError, \n ActionOnExistence actOnExist,\n TreeMap<String,String> toolsetRemap,\n TreeMap<String,String> selectionKeyRemap,\n TreeMap<String,String> licenseKeyRemap,\n TreeMap<String,String> hardwareKeyRemap,\n NodeBundle bundle\n ) \n {\n pPath = bundlePath;\n\n pAuthor = author; \n pView = view; \n\n pReleaseOnError = releaseOnError;\n pActionOnExistence = actOnExist;\n pToolsetRemap = toolsetRemap;\n pSelectionKeyRemap = selectionKeyRemap;\n pLicenseKeyRemap = licenseKeyRemap;\n pHardwareKeyRemap = hardwareKeyRemap;\n\n pBundle = bundle;\n }", "public OBStoreFactory getFactory();", "SerializeFactory getSerializeFactory();", "@VTID(3)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject createApplicationEntityFactory(int ownerType,\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object ownerKey,\n\t\t\tboolean isVirtualFather);", "public static AutomatizacionrevisionFactory init() {\r\n\t\ttry {\r\n\t\t\tAutomatizacionrevisionFactory theAutomatizacionrevisionFactory = (AutomatizacionrevisionFactory)EPackage.Registry.INSTANCE.getEFactory(AutomatizacionrevisionPackage.eNS_URI);\r\n\t\t\tif (theAutomatizacionrevisionFactory != null) {\r\n\t\t\t\treturn theAutomatizacionrevisionFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new AutomatizacionrevisionFactoryImpl();\r\n\t}", "@Nonnull \r\n\tpublic static <T> T create(\r\n\t\t\t@Nonnull Class<T> listener, \r\n\t\t\t@Nonnull final Observer<? super Dynamic> bindTo) {\r\n\t\tfinal InvocationHandler handler = new InvocationHandler() {\r\n\t\t\t@Override\r\n\t\t\tpublic Object invoke(Object proxy, Method method, Object[] args)\r\n\t\t\t\t\tthrows Throwable {\r\n\t\t\t\tbindTo.next(new Dynamic(method.getName(), args));\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\treturn listener.cast(Proxy.newProxyInstance(listener.getClassLoader(), new Class<?>[] { listener }, handler));\r\n\t}", "public static gestionVoeu.EtudiantFactory extract(org.omg.CORBA.Any a)\n {\n if (!a.type().equal(type()))\n throw new org.omg.CORBA.MARSHAL();\n try {\n return gestionVoeu.EtudiantFactoryHelper.narrow(a.extract_Object());\n } catch (final org.omg.CORBA.BAD_PARAM e) {\n throw new org.omg.CORBA.MARSHAL(e.getMessage());\n }\n }", "UberFactory getUberFactory();", "FmprimitivesFactory getFmprimitivesFactory();", "public void setActivatableFactory(ActivatableFactory activatableFactory) {\n this.activatableFactory = activatableFactory;\n }", "private FactoryTransformer(Factory factory) {\n super();\n iFactory = factory;\n }", "public final void mT__213() throws RecognitionException {\r\n try {\r\n int _type = T__213;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:214:8: ( 'factory-method=' )\r\n // InternalSpringConfigDsl.g:214:10: 'factory-method='\r\n {\r\n match(\"factory-method=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public static FieldOfActivityAnnotationsFactory init() {\n\t\ttry {\n\t\t\tFieldOfActivityAnnotationsFactory theFieldOfActivityAnnotationsFactory = (FieldOfActivityAnnotationsFactory)EPackage.Registry.INSTANCE.getEFactory(FieldOfActivityAnnotationsPackage.eNS_URI);\n\t\t\tif (theFieldOfActivityAnnotationsFactory != null) {\n\t\t\t\treturn theFieldOfActivityAnnotationsFactory;\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 FieldOfActivityAnnotationsFactoryImpl();\n\t}", "public static ClassifiedFeature createUnboundFeature(Feature feature) {\n return createClassifiedFeature(feature, Classifier.UNBOUND);\n }", "public PresentationManager.StubFactoryFactory getStubFactoryFactory(boolean paramBoolean) {\n/* 167 */ if (paramBoolean) {\n/* 168 */ return this.dynamicStubFactoryFactory;\n/* */ }\n/* 170 */ return this.staticStubFactoryFactory;\n/* */ }", "protected void onCreate(BeanFactory beanFactory) {\n }", "@Binds\n @IntoMap\n @ActivityKey(BDTMyAccountActivity.class)\n public abstract AndroidInjector.Factory<? extends Activity> bindAndroidInjectorFactory(BDTMyAccountActivitySubcomponent.Builder builder);", "public static ObjectReferenceFactory makeObjectReferenceFactory(ORB paramORB, IORTemplateList paramIORTemplateList) {\n/* 157 */ return (ObjectReferenceFactory)new ObjectReferenceFactoryImpl(paramORB, paramIORTemplateList);\n/* */ }", "public Marshaller getMarshaller(boolean reuse)\n throws JAXBException {\n if (!reuse || this.marshaller == null) {\n Marshaller marshaller = context.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n marshaller.setProperty(Marshaller.JAXB_ENCODING, \"UTF-8\");\n this.marshaller = marshaller;\n }\n return this.marshaller;\n }", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "protected MXBeanMappingFactory() {}", "FactoryBean getFactoryBean();", "@SuppressWarnings(\"unchecked\")\n\tprivate IMonitoringRecordDeserializer createDeserializer(final String deserializerClassName, final Configuration configuration,\n\t\t\tfinal IProjectContext projectContext) {\n\t\tfinal Class<? extends IMonitoringRecordDeserializer> deserializerClass;\n\t\tIMonitoringRecordDeserializer localDeserializer = null;\n\n\t\ttry {\n\t\t\tdeserializerClass = (Class<? extends IMonitoringRecordDeserializer>) Class.forName(deserializerClassName);\n\t\t\tfinal Constructor<? extends IMonitoringRecordDeserializer> constructor = deserializerClass\n\t\t\t\t\t.getConstructor(Configuration.class, IProjectContext.class);\n\t\t\tlocalDeserializer = constructor.newInstance(configuration, projectContext);\n\t\t} catch (final ClassNotFoundException e) {\n\t\t\tLOGGER.error(\"The deserializer class '{}' was not found.\", deserializerClassName);\n\t\t} catch (final NoSuchMethodException e) {\n\t\t\tLOGGER.error(\"The deserializer class '{}' does not provide a suitable constructor.\", deserializerClassName);\n\t\t} catch (final InstantiationException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final IllegalAccessException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final IllegalArgumentException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t} catch (final InvocationTargetException e) {\n\t\t\tthis.logInstantiationFailed(deserializerClassName, e);\n\t\t}\n\n\t\treturn localDeserializer;\n\t}", "<T extends Binding> PhysicalWireDefinition generateBoundService(LogicalBinding<T> binding, URI callbackUri) throws Fabric3Exception;", "public Pack2FactoryImpl() {\n\t\tsuper();\n\t}", "public void setFactory(ValueFactory<K, V> factory)\n {\n this.factory = factory;\n }", "public void setFactory(JDOMFactory factory) {\n this.factory = factory;\n }", "public static UiFactory init() {\n\t\ttry {\n\t\t\tUiFactory theUiFactory = (UiFactory)EPackage.Registry.INSTANCE.getEFactory(UiPackage.eNS_URI);\n\t\t\tif (theUiFactory != null) {\n\t\t\t\treturn theUiFactory;\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 UiFactoryImpl();\n\t}", "public ComponentFactory<T, E> toCreate(BiFunction<Constructor, Object[], Object>\n createFunction) {\n return new ComponentFactory<>(this.annotationType, this.classElement, this.contextConsumer, createFunction);\n }", "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}", "ShadowProtocol.Factory getShadowProtocolFactory();", "public MPSApplicationContextFactory() {\n this.encodingManager = new EncodingManager();\n\n protocolBuilder = new NamedProtocolBuilder();\n // Register the known protocols with the builder.\n ProtocolRegistry registry = new ProtocolRegistry();\n registry.register(protocolBuilder);\n }", "public ClientRepositoryFactory(LocalAdapterFactory factory) {\n this.factory = factory;\n }", "public interface BeanFactory {\n\n// BeanDefinition getBeanDefinition(String beanID);\n\n Object getBean(String beanID);\n}", "@Override\n\tprotected ApplicationFactory createApplicationFactory(final AppConfiguration configuration, final Environment environment) {\n\t\t\n\t\tfinal AwsApplicationFactory appFactory = new AwsApplicationFactory(configuration.getAws(), environment.getObjectMapper());\n\t\tfinal DynamoDbMapperFactory database = appFactory.database();\n\t\t\n\t\t/** Register any application repositories **/\n\t\tdatabase.registerRepo(Book.class, new BookRepository(database.getMapperRepository()));\n\t\treturn appFactory;\n\t}", "public interface BeanFactory<T, R> {\n\n /**\n * Create and return the bean.\n */\n T create(R argument);\n}", "AddressFactory getAddressFactory() {\n\t\treturn addrMap.getAddressFactory();\n\t}", "public DevicesStAXBuilder() {\n super();\n inputFactory = XMLInputFactory.newInstance();\n }", "public ObjectCodecFactory(CodecFactory codecFactory,\n BindingFactory bindingFactory) {\n this.codecFactory = codecFactory;\n this.bindingFactory = bindingFactory;\n }", "public LibraryAdapterFactory() {\r\n\t}", "public abstract ProductFactory getFactory();", "public final Method getFactoryMethod() {\n\treturn factoryMethod;\n }", "public abstract Endpoint createEndpoint(String bindingId, Object implementor);" ]
[ "0.5156477", "0.50349855", "0.5014442", "0.4800872", "0.47903168", "0.47618783", "0.47236815", "0.4693138", "0.46461067", "0.46197256", "0.4618896", "0.45943344", "0.4542591", "0.45194808", "0.4478962", "0.44379264", "0.44355378", "0.44269538", "0.44190097", "0.43956074", "0.43956074", "0.43952823", "0.437682", "0.43695164", "0.43667683", "0.43553582", "0.43497896", "0.43346712", "0.43292183", "0.43285233", "0.432259", "0.43177772", "0.43157682", "0.43120378", "0.4303687", "0.42923415", "0.4281044", "0.42772636", "0.42623082", "0.4258599", "0.42539197", "0.4243888", "0.42256424", "0.42199528", "0.4211885", "0.41982248", "0.41909868", "0.41900948", "0.41733447", "0.41727588", "0.41523123", "0.41509122", "0.4147933", "0.41478783", "0.41348425", "0.4126591", "0.41261485", "0.41137353", "0.4107623", "0.41056895", "0.4101405", "0.40999717", "0.40945125", "0.40898913", "0.40869898", "0.4081554", "0.4075716", "0.40732077", "0.4071686", "0.40691304", "0.40572426", "0.40558755", "0.4050196", "0.4044116", "0.40303978", "0.40227154", "0.40110332", "0.4005782", "0.40039507", "0.39993885", "0.39993075", "0.3996127", "0.39935794", "0.39855906", "0.39827767", "0.39812255", "0.39738074", "0.39670977", "0.3965207", "0.3961109", "0.39601842", "0.3954354", "0.39492872", "0.39385667", "0.3937433", "0.3931127", "0.3928215", "0.39242944", "0.39223683", "0.39222533" ]
0.59680164
0
create instance with all properties
@JsonCreator ReviewImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, @JsonProperty("key") final String key, @JsonProperty("uniquenessValue") final String uniquenessValue, @JsonProperty("locale") final String locale, @JsonProperty("authorName") final String authorName, @JsonProperty("title") final String title, @JsonProperty("text") final String text, @JsonProperty("target") final com.commercetools.api.models.common.Reference target, @JsonProperty("includedInStatistics") final Boolean includedInStatistics, @JsonProperty("rating") final Integer rating, @JsonProperty("state") final com.commercetools.api.models.state.StateReference state, @JsonProperty("customer") final com.commercetools.api.models.customer.CustomerReference customer, @JsonProperty("custom") final com.commercetools.api.models.type.CustomFields custom) { this.id = id; this.version = version; this.createdAt = createdAt; this.lastModifiedAt = lastModifiedAt; this.lastModifiedBy = lastModifiedBy; this.createdBy = createdBy; this.key = key; this.uniquenessValue = uniquenessValue; this.locale = locale; this.authorName = authorName; this.title = title; this.text = text; this.target = target; this.includedInStatistics = includedInStatistics; this.rating = rating; this.state = state; this.customer = customer; this.custom = custom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Propuestas() {}", "public ApplicationDefinitionProperties() {\n }", "public Properties(){\n\n }", "public void init(Properties props) ;", "public void create(){}", "Reproducible newInstance();", "Instance createInstance();", "public KeyVaultProperties() {\n }", "WithCreate withProperties(AccountProperties properties);", "private ConfigProperties() {\n\n }", "@Test\n public void Constructor_ObjectValues_InstanceCreated() {\n\t\ttry {\n Position position = make_PositionWithIntegerPoints(xCoordinate, yCoordinate, direction);\n Surface surface = make_SurfaceWithGivenDimensions(xDimension, yDimension);\n\t\t\tRover rover = make_RoverWithObjectValues(position, surface);\n\t\t}\n\t\tcatch (AssertionError assErr) {\n\t\t\t// Test passed.\n\t\t\treturn;\n\t\t}\n }", "interface WithProperties {\n /**\n * Specifies properties.\n * @param properties Properties of the secret\n * @return the next definition stage\n */\n WithCreate withProperties(SecretProperties properties);\n }", "private Instantiation(){}", "public CustomerPolicyProperties() {\n }", "public CMObject newInstance();", "Property createProperty();", "private PropertySetFactory() {}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "FromValues createFromValues();", "public ManagedHsmProperties() {\n }", "private DatabaseValidationProperties() {}", "@Override\n\tpublic void create() {\n\n\t}", "protected abstract void construct();", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "public DimensionProperties() {\n }", "public ApplicationResourceProperties() {\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public Product() {}", "private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }", "public LogProfileProperties() {\n }", "public void init(java.util.Properties props) {\r\n }", "public EntityPropertyBean() {}", "CreationData creationData();", "InstanceModel createInstanceOfInstanceModel();", "private Builder() {}", "For createFor();", "private TerminalProperties() {\n this(new TerminalPropertiesBuilder());\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n WithCreate withProperties(AccountProperties properties);\n }", "public PropertySellerDetailDTO() {\n\n\t}", "private mxPropertiesManager()\n\t{\n\t}", "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}", "public PSBeanProperties()\n {\n loadProperties();\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "Object build();", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "WithCreate withProperties(JobDetails properties);", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }", "public Builder() {\n\t\t}", "public Product() { }", "public Product() { }", "public Product() {\n\t}", "public ApplyUpdateProperties() {\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "public Instance() {\n }", "public Produto() {}", "public Product() {\n }", "public Product() {\n }", "public Poem(){}", "T create();", "T create();", "public GeneralParameters instantiate() {\n return instantiate(null);\n }", "public BaseParameters(){\r\n\t}", "public Properties initForRuntime() {\n initProperties();\n return this;\n }", "public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}", "public PaymentDetailPojo() {\n }", "Foco createFoco();", "public ObjectFactory() {\n\t}", "OBJECT createOBJECT();", "public PrescriptionDetailCreator() {\n detail=new PrescriptionDetail();\n\n }", "public LoadTestProperties() {\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public abstract void create();", "interface WithProperties {\n /**\n * Specifies properties.\n * @param properties the properties parameter value\n * @return the next definition stage\n */\n WithCreate withProperties(MoveCollectionProperties properties);\n }", "private void __sep__Constructors__() {}", "public User() {\r\n\t\temployee=new HashMap<Integer, Employee>();\r\n\t\tperformance=new HashMap<Employee,String>();\r\n\t}", "abstract Object build();", "public ObjectFactory() {\r\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "protected NodeProperties() {\r\n }", "public Builder() { }", "public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }", "public AllOne() {\n \n }", "protected Product() {\n\t\t\n\t}", "protected BaseTestObject()\n {\n\n fProp = new Properties(); // empty properties object\n fLog = TestLogger.getInstance(); // default level is DEBUG\n\n }", "public Person build(){\n return new Person(this);\n }", "private Builder() {\n\t\t}", "@Override\r\n\tpublic Item constructItem() {\r\n try {\r\n @SuppressWarnings(\"unchecked\")\r\n T entity = (T) entityClass.newInstance();\r\n BeanInfo info = Introspector.getBeanInfo(entityClass);\r\n for (PropertyDescriptor pd : info.getPropertyDescriptors()) {\r\n for (Object propertyId : queryDefinition.getPropertyIds()) {\r\n if (pd.getName().equals(propertyId)) {\r\n Method writeMethod = pd.getWriteMethod();\r\n Object propertyDefaultValue = queryDefinition.getPropertyDefaultValue(propertyId);\r\n writeMethod.invoke(entity, propertyDefaultValue);\r\n }\r\n }\r\n }\r\n return toItem(entity);\r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Error in bean construction or property population with default values.\", e);\r\n }\r\n }", "public TwilioLinkedServiceTypeProperties() {\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public ExpertiseEntity() {\n }", "public Builder() {\n }", "public Builder() {\n }" ]
[ "0.64911973", "0.6378136", "0.631929", "0.62863666", "0.62066835", "0.6193014", "0.61226624", "0.60918266", "0.6069426", "0.60472083", "0.5982922", "0.5977635", "0.59640384", "0.5961222", "0.5942377", "0.593724", "0.59352934", "0.593339", "0.59292704", "0.5925449", "0.5890089", "0.58700866", "0.58650297", "0.58323616", "0.5829347", "0.5829347", "0.5829347", "0.5816083", "0.5810763", "0.5791428", "0.5783149", "0.57771015", "0.57734376", "0.5772986", "0.57649493", "0.575293", "0.5738484", "0.57266086", "0.5723124", "0.57213247", "0.5721249", "0.57208884", "0.5718367", "0.57131106", "0.57130116", "0.5710652", "0.57092863", "0.57070714", "0.56983954", "0.56866443", "0.56778926", "0.5671834", "0.5667408", "0.56624675", "0.56530213", "0.56529385", "0.56529385", "0.5647166", "0.5636767", "0.5628549", "0.5616996", "0.5608278", "0.56067324", "0.56067324", "0.5602363", "0.5601046", "0.5601046", "0.5595997", "0.55935353", "0.5585575", "0.5585415", "0.5584886", "0.5583402", "0.55830026", "0.55820894", "0.55765796", "0.55740124", "0.5569488", "0.5569488", "0.5569488", "0.55601764", "0.5552562", "0.5551214", "0.5550958", "0.5540382", "0.5536216", "0.55343765", "0.55337316", "0.5530772", "0.55302703", "0.55191475", "0.55175745", "0.5515094", "0.55116427", "0.5509713", "0.55058765", "0.55047286", "0.55025095", "0.5500616", "0.54967624", "0.54967624" ]
0.0
-1
Unique identifier of the Review.
public String getId() { return this.id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "public int getReviewId()\r\n {\r\n return this.reviewId;\r\n }", "public int getMyReviewID() {\n return myReviewID;\n }", "public java.lang.String getReviewid() {\n return reviewid;\n }", "public String getReview_id() {\n return this.review_id;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"123\", value = \"The code review id.\")\n public String getReviewId() {\n return reviewId;\n }", "public void setMyReviewID(int myReviewID) {\n this.myReviewID = myReviewID;\n }", "String getCreatorId();", "@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }", "public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }", "@NonNull String identifier();", "public String getUniqueID ( ) { return _uniqueID; }", "@Schema(required = true, description = \"An identifier with the intention of being globally unique. \")\n public String getId() {\n return id;\n }", "public static int generateViewId() {\n return View.generateViewId();\n }", "String getUniqueId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getReceiptId();", "java.lang.String getID();", "String uniqueId();", "public static String id()\n {\n return _id;\n }", "String getUniqueID();", "public String getUniqueID() {\n return this.uniqueID;\n }", "public String getUniqueId() {\n return _uniqueId;\n }", "public String getUniqueID();", "public String uniqueId() {\n return this.uniqueId;\n }", "@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}", "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "public String ID();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "String id();", "public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }", "@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }", "public String RtoosGetID() \n\t{\n\t\treturn UUIDs.random().toString();\n\t}", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7537603", "0.73462284", "0.7186717", "0.7170907", "0.71455437", "0.6369123", "0.6253609", "0.6247851", "0.6204468", "0.6187535", "0.6163618", "0.61278677", "0.612765", "0.6126179", "0.61106044", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.60902935", "0.6075029", "0.6068583", "0.60573024", "0.605463", "0.603627", "0.6029219", "0.6024288", "0.6017837", "0.6005095", "0.59989077", "0.598929", "0.59834576", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.59803975", "0.5964324", "0.59579146", "0.5952449", "0.5951631", "0.5951631", "0.5951631", "0.5951631" ]
0.0
-1
Current version of the Review.
public Long getVersion() { return this.version; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurrentVersion() {\n return currentVersion_;\n }", "public String getCurrentVersion() {\n return this.currentVersion;\n }", "public int getCurrentVersion() {\n return currentVersion_;\n }", "int getCurrentVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getCurrentVersion() {\r\n\t\tAssert.notNull( dbVersion, \"default database may not have been configured\" );\r\n\t\treturn dbVersion.getVersion();\r\n\t}", "public String getVersion()\n\t{\n\t\treturn \"$Date$\";\n\t}", "@Override\n\tpublic java.lang.String getVersion() {\n\t\treturn _scienceApp.getVersion();\n\t}", "public String getVersion () {\r\n return version;\r\n }", "public String getVersion()\n {\n return version;\n }", "public String getVersion()\n {\n return version;\n }", "public Version getVersion();", "public static String getVersion() {\n\t\treturn version;\r\n\t}", "public String getVersion()\n {\n return version;\n }", "public String getVersion() {\r\n return version;\r\n }", "public static String getVersion() {\n\t\treturn version;\n\t}", "public String getVersion()\n {\n return ver;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion(){\r\n return version;\r\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}", "public String getVersion() {\n return _version;\n }", "public default String getVersion() {\n return Constants.VERSION_1;\n }", "public final String getVersion() {\n return version;\n }", "public String getVersion() {\r\n\t\treturn version;\r\n\t}", "public String getVersion() {\n\t\treturn version;\n\t}", "public String getVersion() {\n\t\treturn (VERSION);\n\t}", "public java.lang.String getVersion() {\n return version_;\n }", "public String getVersion () {\n return this.version;\n }", "public static String getVersion() {\n return version;\n }", "public static String getVersion() {\n return version;\n }", "public String getVersion() {\n\t\treturn _version;\n\t}", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "long getCurrentRevision();", "public static String getVersion() {\n\t\treturn \"1.0.3\";\n\t}", "public static final String getVersion() { return version; }", "public static final String getVersion() { return version; }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "Version getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "@CheckForNull\n String getVersion();", "public java.lang.String getVersion() {\r\n return version;\r\n }", "public String getVersion() {\n return this.version;\n }", "public final int getVersion() {\n return version;\n }", "public static String getVersion()\n {\n return \"$Id$\";\n }", "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();", "@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }", "public Version getVersion() {\n return version;\n }", "public long getVersion() {\n return version;\n }", "public long getVersion() {\n return version;\n }", "public Integer getVersion() {\r\n return version;\r\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public static String getVersion() {\n\t\treturn \"0.9.4-SNAPSHOT\";\n\t}", "public int getVersion()\n {\n return info.getVersion().intValueExact();\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }" ]
[ "0.7445403", "0.74130875", "0.7400392", "0.7374079", "0.7033043", "0.7033043", "0.7033043", "0.7033043", "0.70213866", "0.69992495", "0.6998682", "0.6997185", "0.6981731", "0.6981731", "0.6977292", "0.6954011", "0.6950716", "0.69378084", "0.69376385", "0.6932098", "0.69313025", "0.6929722", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6924649", "0.6921049", "0.69164234", "0.6912811", "0.69029474", "0.69017833", "0.68951166", "0.68935937", "0.6893427", "0.68863344", "0.68857986", "0.68857986", "0.68800044", "0.6879018", "0.6879018", "0.68771887", "0.6846123", "0.6838538", "0.6838538", "0.6834776", "0.6834776", "0.6834776", "0.6834776", "0.6834776", "0.6830694", "0.6830694", "0.6830694", "0.6830694", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6828185", "0.6815771", "0.6811587", "0.67925155", "0.6771114", "0.674366", "0.6741858", "0.6741858", "0.6741858", "0.6741858", "0.6741858", "0.6741858", "0.6741858", "0.6741858", "0.6735704", "0.673566", "0.67209315", "0.67209315", "0.6717766", "0.67152905", "0.67152905", "0.67152905", "0.67152905", "0.671064", "0.67096376", "0.6706769", "0.6706769", "0.6706769", "0.6706769", "0.6706769", "0.6706769" ]
0.0
-1
Date and time (UTC) the Review was initially created.
public java.time.ZonedDateTime getCreatedAt() { return this.createdAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getReviewDate() {\n\t\treturn reviewDate;\n\t}", "public Date getTimeCreate() {\n return timeCreate;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public int getCreatedTime() {\n return createdTime_;\n }", "public Date getCreatTime() {\n return creatTime;\n }", "public Date getCreatTime() {\n return creatTime;\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCateCreated() {\n return cateCreated;\n }", "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "public String getCurrentDate() {\n return createdDate;\n }", "public int getCreateTime() {\n return createTime_;\n }", "public Date getCreateTimestamp() {\n return createTimestamp;\n }", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Instant getCreationTime() {\n return creation;\n }", "Instant getCreated();", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public Date getCreatedTime() {\n return createdTime;\n }", "public long getCreateTime() {\n return createTime_;\n }", "public int getCreateTime() {\n return createTime_;\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "@Override\n public String getResumeDate() {\n return operate_time;\n }", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\n return this.createTime;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Long getTimeCreated() {\r\n\t\treturn timeCreated;\r\n\t}", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _paper.getCreateDate();\n\t}", "public long getCreateTime() {\n return createTime_;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "public Date getCreationTime() {\n\n\t\treturn createdAtTime;\n\t}", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public Date getCreateTime() {\r\n return createTime;\r\n }", "public int getCreatedTime() {\n return instance.getCreatedTime();\n }", "public long getCreationDate() {\n return creationDate_;\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Date getCreateTime() {\n\t\treturn this.createTime;\n\t}", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\r\n\t\treturn createTime;\r\n\t}", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }" ]
[ "0.7212128", "0.7204959", "0.7018448", "0.7018448", "0.68792474", "0.6868108", "0.6868108", "0.6846818", "0.6846818", "0.68370485", "0.68370485", "0.68370485", "0.6811986", "0.6806891", "0.6806891", "0.6806891", "0.6806891", "0.68038094", "0.68038094", "0.6800448", "0.6800448", "0.6800448", "0.6800448", "0.6800448", "0.6800448", "0.6800448", "0.6800448", "0.67777574", "0.67713547", "0.6766933", "0.67623675", "0.6742479", "0.6733956", "0.6733956", "0.67157984", "0.6703132", "0.66996837", "0.66996837", "0.66996837", "0.6695954", "0.6691428", "0.6685939", "0.6685939", "0.6682584", "0.66818947", "0.665244", "0.6645401", "0.6645401", "0.66443545", "0.66443545", "0.66443545", "0.66443545", "0.6643127", "0.66424227", "0.66410065", "0.6632535", "0.6630384", "0.6630384", "0.66288054", "0.662752", "0.6626524", "0.6621291", "0.6621291", "0.6621291", "0.6621291", "0.6621291", "0.6621291", "0.66201204", "0.6600375", "0.6599447", "0.6598409", "0.65972394", "0.65972394", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761", "0.6596761" ]
0.0
-1
Date and time (UTC) the Review was last updated.
public java.time.ZonedDateTime getLastModifiedAt() { return this.lastModifiedAt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getReviewDate() {\n\t\treturn reviewDate;\n\t}", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdateTime()\n {\n return data.updateTime;\n }", "public Date getTimeUpdate() {\n return timeUpdate;\n }", "public Date getUpdateTime() {\r\n\t\treturn this.updatedTime;\r\n\t}", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "Date getUpdatedDate();", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public Date getUpdatetime() {\n return updatetime;\n }", "public DateTime getUpdateTime() {\n return updated;\n }", "public Date getUpdateDatetime();", "public Date getLastUpdate() {\r\n return lastUpdate;\r\n }", "public Date getUpdateTime() {\n\t\treturn this.updateTime;\n\t}", "public Date getUpdateTime() {\n return this.updateTime;\n }", "Date getForLastUpdate();", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public int getEditedTime() {\n return editedTime_;\n }", "public java.lang.String getDate_last_update() {\n return date_last_update;\n }", "public Date getUpdateTime() {\r\n\t\treturn updateTime;\r\n\t}", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "long getLastUpdatedTime();", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "Date getDateUpdated();", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdateTime() {\n return updateTime;\n }", "public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}", "public Date getUserUpdateTime() {\r\n return userUpdateTime;\r\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "Date getUpdateTime();", "public Date getFlastupdatetime() {\n return flastupdatetime;\n }", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "public Date getUpdateTime()\n/* */ {\n/* 191 */ return this.updateTime;\n/* */ }", "public String getLastUpdateDate() {\r\n\t\treturn lastUpdateDate;\r\n\t}", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}", "public Date getUpdated() {\n return mUpdated;\n }", "public int getEditedTime() {\n return instance.getEditedTime();\n }" ]
[ "0.73754376", "0.7245454", "0.7245454", "0.7134046", "0.7114463", "0.7098954", "0.7097773", "0.7097773", "0.7097773", "0.70818174", "0.7016941", "0.69790167", "0.69790167", "0.69770294", "0.6972813", "0.6964625", "0.69286424", "0.6915718", "0.69149876", "0.69098055", "0.69098055", "0.69061637", "0.69040805", "0.68965125", "0.6886162", "0.6886162", "0.6886162", "0.6886162", "0.68831265", "0.68726546", "0.6870171", "0.6870171", "0.6869848", "0.6869848", "0.68596995", "0.6859138", "0.6859138", "0.6859138", "0.68520737", "0.6848102", "0.6848102", "0.6846306", "0.68443334", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6839076", "0.6834786", "0.68318063", "0.6831752", "0.6830192", "0.6830146", "0.6827295", "0.6816658", "0.68136406", "0.6801729", "0.68010634", "0.68010634", "0.6793993", "0.6789422", "0.67729986" ]
0.0
-1
Present on resources created after 1 February 2019 except for events not tracked.
public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { return this.lastModifiedBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n\tpublic void onApplicationEvent(BeforeStoreEvent event) {\n\t\tList<? extends DomainObject<?>> domainObjects = event.getStoreContext().getDomainObjects();\n\n\t\tdomainObjects.forEach(domainObject -> {\n\t\t\tif (!domainObject.isNew() && (domainObject instanceof Task)) {\n\t\t\t\tTask task = (Task) domainObject;\n\n\t\t\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\t\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tString author = principal.getUsername();\n\t\t\t\ttask.setLastEditor(principal.getUser());\n\n\t\t\t\tif (!task.getStatus().equals(Status.CLOSED)) {\n\t\t\t\t\tPeriod period = Period.between(LocalDateTime.now().toLocalDate(),\n\t\t\t\t\t\t\ttask.getStartline().toLocalDate());\n\t\t\t\t\ttask.setWastedTime(period.getYears() + \"y \" + period.getMonths() + \"m \" + period.getDays() + \"d\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "@Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "@Override\n public void prepareTransient() {\n fixDates();\n untilWhenDate = assignDateField(untilWhen);\n }", "org.hl7.fhir.Period addNewAppliesPeriod();", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "@Test\n public void testCreateBookingReportJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-28\");\n LocalDate endDate = LocalDate.parse( \"2018-10-23\" );\n while ( currentDate.isBefore( endDate ) ) {\n BookingReportJob workerJob = new BookingReportJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 4 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 5 ); // dates are inclusive, +1\n }\n }", "@Override\r\n\tpublic void onBeforeUpdate(Record record) throws DeadlineExceededException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint newStatus = (Integer) record.getValue(\"resignationstatusid\");\r\n\t\tint oldStatus = (Integer) record.getOldValue(\"resignationstatusid\");\r\n\t\tif((oldStatus == HRISConstants.RESIGNATION_NEW || oldStatus == HRISConstants.RESIGNATION_ONHOLD || oldStatus == HRISConstants.RESIGNATION_REJECTED)&& newStatus == HRISConstants.RESIGNATION_ACCEPTED){\r\n\t\t\t\r\n\t\t\tString TODAY_DATE = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(SystemParameters.getCurrentDateTime());\r\n\t\t\trecord.addUpdate(\"approveddate\",TODAY_DATE);\r\n\t\t}\r\n\t}", "boolean hasAcquireDate();", "public void setAvailability(String date) {\n\t\tavailableAt = date;\n\t}", "public void setUntilDate(Date date);", "org.hl7.fhir.DateTime addNewAppliesDateTime();", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "PastReservation createPastReservation();", "private Constraint scheduleTasksWithDueDates(ConstraintFactory factory) {\n return factory.from(TaskAssignment.class)\n .filter(TaskAssignment::isTaskAssignedWithDueDate)\n .rewardConfigurable(\"Schedule tasks with due dates\");\n }", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }", "public void showByMonthBtn(ActionEvent event) throws IOException, Exception {\r\n\r\n appointments.clear();\r\n appointments.addAll(Appointment.getAppointmentsByMonth());\r\n\r\n }", "void generateResponseHistory(LocalDate from, LocalDate to);", "public void createMonthScenarioBug10249_perUnit_steppedEvents()\n throws Exception {\n long scenarioStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-28 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n long usageStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-29 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n BillingIntegrationTestBase.setDateFactoryInstance(scenarioStartTime);\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10249_PER_UNIT_MONTH_EVENTS\",\n TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_MONTH_STEPPED_EVENTS,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 1);\n\n VORoleDefinition role = VOServiceFactory.getRole(serviceDetails,\n \"ADMIN\");\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", serviceDetails,\n basicSetup.getCustomerUser1(), role);\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(usageStartTime);\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n // record an event after 8 days\n container.login(basicSetup.getSupplierAdminKey(), ROLE_SERVICE_MANAGER,\n ROLE_TECHNOLOGY_MANAGER);\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(8), \"FILE_DOWNLOAD\", 75);\n\n // record another event after 10 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FILE_UPLOAD\", 13);\n\n // record another event after 12 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FOLDER_NEW\", 1);\n\n long usageEndTime = DateTimeHandling\n .calculateMillis(\"2012-12-01 00:00:00\")\n + DateTimeHandling.daysToMillis(10);\n BillingIntegrationTestBase.setDateFactoryInstance(usageEndTime);\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n subscrSetup.unsubscribeToService(subDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", subDetails);\n }", "@Before\n public void before() {\n Study studyToCreate = TestUtils.getValidStudy(this.getClass());\n studyToCreate.setExternalIdRequiredOnSignup(false);\n studyToCreate.setExternalIdValidationEnabled(false);\n studyToCreate.setTaskIdentifiers(Sets.newHashSet(\"taskId\"));\n study = studyService.createStudy(studyToCreate);\n\n Schedule schedule = new Schedule();\n schedule.setLabel(\"Schedule Label\");\n schedule.setScheduleType(ScheduleType.RECURRING);\n schedule.setInterval(\"P1D\");\n schedule.setExpires(\"P1D\");\n schedule.addTimes(\"10:00\");\n schedule.addActivity(new Activity.Builder().withLabel(\"label\").withTask(\"taskId\").build());\n \n SimpleScheduleStrategy strategy = new SimpleScheduleStrategy(); \n strategy.setSchedule(schedule);\n \n schedulePlan = new DynamoSchedulePlan();\n schedulePlan.setLabel(\"Label\");\n schedulePlan.setStudyKey(study.getIdentifier());\n schedulePlan.setStrategy(strategy);\n schedulePlan = schedulePlanService.createSchedulePlan(study, schedulePlan);\n }", "abstract public Date getServiceAppointment();", "@WebMethod public void createEvent(String description, LocalDate eventDate) throws EventAlreadyExist;", "public void checkBlackOutPeriod(){\n\n\n // loop through all filings and output filing date value in milli seconds\n System.out.println(\"checking black out period status for filings : \"+blackOutPeriodDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n BaseTrademarkApplication current = iter.next();\n\n if((current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"TEAS RF New Application\") )|| (current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"New Application\") ) ){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the black out period\");\n\n //baseTradeMarkApplicationService.save(current);\n\n // we need to check current filings to make sure there are no active office action\n\n if(current.hasActiveOfficeAction() == false){\n\n OfficeActions officeActions = new OfficeActions();\n officeActions.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n officeActions.setStandardCharacterMark(current.isStandardTextMark());\n officeActions.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n officeActions.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n officeActions.setParentSerialNumber(current.getTrademarkName());\n officeActions.setParentRegistrationNumber(current.getRegistrationID());\n officeActions.setActiveAction(true);\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod();\n officeActions.setDueDate(new Date(dueDate));\n //officeActions.setOfficeActionCode(\"Missing transliteration\");\n\n\n // create office action event here\n // filing document is only created if an office action is created with required actions\n\n\n\n\n // required actions section\n\n\n // required action Translation\n if (current.getTradeMark().isStandardCharacterMark() || current.getTradeMark().getTrademarkDesignType().equals(\"Design with Text\")) {\n if (current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageType_translation() == null ){\n\n // create required action here\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Translation of Foreign Wording\");\n requiredActions.setTranslationTextForeign(current.getTradeMark().getForeignLanguageTranslationOriginalText());\n requiredActions.setTranslationTextEnglish(current.getTradeMark().getForeignLanguageTranslationUSText());\n requiredActions.setTranslationTextLanguage(current.getTradeMark().getForeignLanguageType_translation());\n\n\n\n officeActions.addRequiredActions(requiredActions);\n\n\n\n }\n\n\n }\n\n // required action disclaimer\n\n if(current.getTradeMark().getDisclaimerDeclarationList().size() == 0){\n // you have to provide at least one disclaimer\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Disclaimer Required\");\n\n officeActions.addRequiredActions(requiredActions);\n\n }\n\n\n // office action is created only if there are required actions\n if(officeActions.getRequiredActions().size() > 0){\n current.setFilingStatus(\"Non-Final Action Mailed\");\n officeActions.setOfficeActionCode(\"Non-Final Action Mailed\");\n\n\n // create an default office action object and attach it to filing\n current.addOfficeAction(officeActions);\n officeActions.setTrademarkApplication(current);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Office Action Outgoing\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n }\n\n baseTradeMarkApplicationService.save(current);\n\n\n\n\n }\n\n\n\n\n // also check for number of required actions.\n // if there are none. office action is not saved\n\n\n\n\n\n // set relevant office actions\n\n\n\n }\n else{\n System.out.println(\"filing is still in the black out period\");\n\n }\n }\n else{\n System.out.println(\"Filing is not Submitted yet.\");\n }\n }\n\n\n }", "@Override\n @Transactional\n public void cancelAllEventsWhenIssued(Set<Prescribing> prescribings) {\n Calendar today = Calendar.getInstance();\n today.roll(Calendar.DATE, -1);\n Calendar dateOfEvent = new GregorianCalendar();\n for (Prescribing prescribing :\n prescribings) {\n Set<Event> events = new HashSet<>(prescribing.getEvents());\n if (events.size() != 0) {\n for (Event event :\n events) {\n dateOfEvent.setTime(event.getDate());\n if (dateOfEvent.after(today) && event.getStatus().equals(\"open\")) {\n event.setStatus(\"Cancel\");\n event.setReason(\"Patient was issued\");\n eventService.updateEvent(event);\n }\n }\n }\n }\n }", "public void setCreatedOn(DateTime createdOn);", "@Override\n public void updatedResource( ResourceEvent event )\n {\n if ( event.getTypeResource( ).equals( Appointment.APPOINTMENT_RESOURCE_TYPE ) )\n {\n IndexingAppointmentService.getService( ).indexAppointmentStateAndHistory( _appointmentDataSource, _appointmentHistoryDataSource,\n Integer.parseInt( event.getIdResource( ) ) );\n }\n\n }", "@Test(expected = IllegalDateException.class)\n\tpublic void testBookStartDateInPast() throws Exception {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, -2);\n\t\t// start is current date - 2\n\t\tDate invalidStartDate = cal.getTime();\n\t\tbookingManagement.book(USER_ID, Arrays.asList(room1.getId()), invalidStartDate, validEndDate);\n\t}", "public static boolean create(String title, String date, String startTime, String endTime) {\n\t\tboolean canAdd = true;\n\t\tif (date.length() != 10) { //not in the correct format MM/DD/YYYY\n\t\t\tString month = date.substring(0, date.indexOf(\"/\"));\n\t\t\tSystem.out.println(\"month within create: \" + month);\n\t\t\tif (month.length() != 2) {\n\t\t\t\tmonth = \"0\" + month;\n\t\t\t}\n\t\t\tString day = date.substring(date.indexOf(\"/\") + 1, date.indexOf(\"/\", date.indexOf(\"/\") + 1));\n\t\t\tSystem.out.println(\"day within create: \" + day);\n\t\t\tif (day.length() != 2) {\n\t\t\t\tday = \"0\" + day;\n\t\t\t}\n\t\t\tString year = date.substring(date.indexOf(\"/\", date.indexOf(\"/\") + 1) + 1);\n\t\t\tSystem.out.println(\"year within create: \" + year);\n\t\t\tdate = month + \"/\" + day + \"/\" + year;\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event> treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\t\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t\treturn canAdd;\n\t}", "Builder addDatePublished(Date value);", "public boolean hasPast();", "boolean hasDeliveryDateBefore();", "public boolean isOverdue(int today);", "@Test\n public void getEmployeesForDate(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEMployeesForDate(\"2017-01-01\"));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "public DateAvailableVO checkDateAvailable(String date) {\n\t\treturn null;\n\t}", "@Test\n public void give_subscriptionCreatedAfterLastScheduledDelivery_when_getDailySubscriptionsToDeliver_then_dontReturn() {\n }", "public List<ScheduleResource> neededSpecificResources();", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "private void givenExchangeRatesExistsForEightMonths() {\n }", "@ScheduledApiChange(when = \"5.0\", details = \"Default implementation will be removed.\")\n default void preparationSuccessful(@Nonnull Module module,\n @Nonnull Client client,\n @Nonnull Set<TCSResource<?>> resources) {\n }", "org.hl7.fhir.Instant addNewIssued();", "Date getRequestedAt();", "@Description(\"request was sent after {date}\")\n public static Criteria<HarEntry> recordedStartedDateTimeAfter(@DescriptionFragment(\"date\") Date date) {\n checkArgument(nonNull(date), \"Date should be defined\");\n\n return condition(entry -> {\n Date startedDateTime = entry.getStartedDateTime();\n\n return startedDateTime.after(date);\n });\n }", "private void verifyPeriod(Date start, Date end){\n List dates = logRepositoy.findAllByDateGreaterThanEqualAndDateLessThanEqual(start, end);\n if(dates.isEmpty()){\n throw new ResourceNotFoundException(\"Date range not found\");\n }\n }", "private boolean compareWithCurrentDate(LocalDateTime deadline, LocalDateTime assignDate, boolean isLessThanDay) {\n boolean isReadyToNotify=false;\n if(isLessThanDay){\n if(deadline.until(LocalDateTime.now(),HOURS)==HALF_A_DAY){\n isReadyToNotify=true;\n }\n }else{\n // if this time is the mean of deadline and assign date\n if(deadline.until(LocalDateTime.now(),HOURS) == deadline.until(assignDate,HOURS)/2){\n isReadyToNotify=true;\n }\n }\n return isReadyToNotify;\n }", "@Override\n\tpublic boolean create(Dates obj) {\n\t\treturn false;\n\t}", "public org.hl7.fhir.Period addNewWhenGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().add_element_user(WHENGIVEN$8);\n return target;\n }\n }", "public void past()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Past\")).click();\n\t}", "@Test\n public void give_subscriptionCreatedBeforeLastScheduledDelivery_when_getDailySubscriptionsToDeliver_then_returnSubscription() {\n }", "public boolean canCreateAnother() {\n\t\treturn new Date(startDate.getTime() + duration + cooldown)\n\t\t\t\t.before(new Date());\n\t}", "public List<String> getEligibleForAutoApproval(Date todayAtMidnight);", "@Override\n public Date getManufactureDate() {\n return manufacturedOn;\n }", "@Test\n public void testRemoveEventConvinienceMethod() {\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n CalendarEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n Assert.assertEquals(1, calendar.getEvents(start, end).size());\n // Remove event\n calendar.removeEvent(event);\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n }", "@Test(expected = IllegalArgumentException.class)\n public void testGetExpensesByTypeAndMonthInFuture() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2016, 12);\n\texpenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n }", "@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}", "public void setValidUntil(Date validUntil);", "boolean hasDeliveryDateAfter();", "private List<Event> getEventsOnDate(Date date) {\r\n List<Event> eventsOnDate = new ArrayList<>();\r\n for (Event event : this.events) {\r\n if (event.getDate().equals(date)) {\r\n eventsOnDate.add(event);\r\n }\r\n }\r\n\r\n return eventsOnDate;\r\n }", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public void createEvent(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tif(!map.containsKey(date)) {\n\t\t\tArrayList<Event> newList = new ArrayList<>();\n\t\t\tnewList.add(e);\n\t\t\tmap.put(date, newList);\n\t\t}\n\t\telse {\n\t\t\tmap.get(date).add(e);\n\n\t\t}\n\t}", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "@Override\n public Flux<PersistentAuditEvent> findAllByAuditEventDateBetween(Instant fromDate, Instant toDate, Pageable pageable) {\n OffsetDateTime fromDateH2 = OffsetDateTime.ofInstant(fromDate, ZoneId.systemDefault());\n OffsetDateTime toDateH2 = OffsetDateTime.ofInstant(toDate, ZoneId.systemDefault());\n Criteria criteria = Criteria\n .where(\"event_date\").greaterThan(fromDateH2)\n .and(\"event_date\").lessThan(toDateH2);\n return findAllFromSpec(select().matching(criteria).page(pageable));\n }", "@PrePersist\n protected void onPersist() {\n this.data = LocalDate.now();\n }", "public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public void checkOfficeActionPeriod1(){\n\n System.out.println(\"checking Office Action period 1 status for filings : \"+firstOfficeActionDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n\n BaseTrademarkApplication current = iter.next();\n if(current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"Non-Final Action Mailed\") == true){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the office action period\");\n\n // check if office action has been completed ..\n for(Iterator<OfficeActions> iter3 = current.getOfficeActions().iterator(); iter3.hasNext(); ) {\n OfficeActions current3 = iter3.next();\n\n if(current3.isOfficeActionCompleted() == false && current.getFilingStatus().contains(\"Abandoned\") == false){\n\n // remove office action ..or set it to inactive\n // so on the dashboard. we only show actions that are active\n //\n // do the same thing. create petition object and attach it to the filing\n Petition petition = new Petition();\n petition.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n petition.setStandardCharacterMark(current.isStandardTextMark());\n petition.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n petition.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n petition.setParentSerialNumber(current.getTrademarkName());\n petition.setParentRegistrationNumber(current.getRegistrationID());\n\n petition.setActionID(String.valueOf(current3.getInternalID()));\n\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod()+current.getPetitionPeriod();\n petition.setDueDate(new Date(dueDate));\n\n\n current.setFilingStatus(\"Abandoned - Failure to Respond or Late Response\");\n petition.setOfficeActionCode(\"Abandoned - Failure to Respond or Late Response\");\n petition.setPetitionTitle(\"Failure to Respond Timely to Office Action\");\n\n petition.setActivePetition(true);\n current.addPetition(petition);\n petition.setTrademarkApplication(current);\n current3.setActiveAction(false);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Abandoned\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n\n }\n\n\n\n }\n\n\n\n // only execute below code if office action is not completed...\n\n\n }\n else{\n System.out.println(\"filing is still in respond to office action period or filing is in a different state\");\n\n\n }\n }\n else{\n if(current.getFilingStatus().equals(\"TEAS RF New Application\") || current.getFilingStatus().equals(\"New Application\") ){\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod() ) < new Date().getTime()){\n boolean acceptedFiling = true;\n\n for(Iterator<OfficeActions> iter4 = current.getOfficeActions().iterator(); iter4.hasNext(); ) {\n OfficeActions current4 = iter4.next();\n if(current4.isActiveAction() && current4.getOfficeActionCode().equals(\"global default action\") == false){\n if(current4.isOfficeActionCompleted() == true){\n // skip examiner review period\n // filing is accepted\n // change filing status\n // create filing document event\n\n current4.setActiveAction(false);\n\n\n\n }\n else {\n acceptedFiling = false;\n\n System.out.println(\"office action is not completed\");\n }\n\n }\n\n\n }\n\n if(acceptedFiling == true){\n current.setFilingStatus(\"Accepted Filing\");\n current.setApplicationAcceptedDate(new Date());\n\n // create accepted filing date\n\n\n\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Accepted\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n }\n // if there are no office actions ..it is also compelete\n\n }\n // check for accepted filings\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n }\n\n }", "public Event createPublish(Address resource, String event, int expires);", "@When(\"^the checkin date is $\")\n public void the_checkin_date_is() throws Throwable {\n throw new PendingException();\n }", "@Test\n public void getShiftsByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n employeeResource.createEmployee(new Employee(\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\", 1));\n\n assertNotNull(shiftListFunctionResource.getShiftsByDate(\"2017-01-01\"));\n\n //clean up\n employeeResource.removeEmployee(\"dummy3\");\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "@Test\n public void testV4HeaderDateValidationSuccess()\n throws MalformedResourceException {\n LocalDate now = LocalDate.now();\n String dateStr = DATE_FORMATTER.format(now);\n testRequestWithSpecificDate(dateStr);\n\n // Case 2: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.plus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n\n // Case 3: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.minus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n }", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore addNewAppointmentsToIgnore();", "@Test\n public void repeatingTask_changeRepeatPeriod_nextWeekDate() {\n LocalDate testDate = LocalDateTime.now().minusWeeks(1).minusDays(1).toLocalDate();\n LocalTime testTime = LocalTime.of(8, 30);\n LocalDateTime testDateTime = LocalDateTime.of(testDate, testTime);\n Event testEvent = new Event(\"8 days ago\", \"CS2113T\", testDateTime, testDateTime.plusHours(4),\n \"testing\");\n testTaskList.addTask(testEvent);\n // Set to 1w\n RepeatCommand testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.WEEKLY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n RepeatEvent repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n // Set to 1d\n testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.DAILY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n\n assertEquals(repeatEvent.getPeriodCounter(), 0);\n assertEquals(repeatEvent.getNextDateTime(), LocalDateTime.of(LocalDate.now().plusWeeks(1), testTime));\n }", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "public static boolean deletePastEvents (Event event){\r\n\t int currentDate = getCurrentDate();\r\n\t int date = event.date;\r\n\t if (date<currentDate){\r\n\t\t masterEventsFile.remove(event.getEventLine());\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }", "@Test\n\t@When(\"posted with future date information\")\n\tpublic void posted_with_future_date_information() {\n\t\tRestAssured.baseURI = BASE_URL;\n\t\t RequestSpecification request = RestAssured.given();\n\t}", "public LocalDate getWhen(){\n return by;\n }", "@Override\n public boolean hasWriteAccess() {\n if (this.employmentDate.isAfter(LocalDate.now().minusMonths(6))) {\n return false;\n } else {\n return true;\n }\n }", "default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }", "@Test\n public void testSetDateCreatedFuture() {\n System.out.println(\"setDateCreated Test (Future value)\");\n long millis = System.currentTimeMillis();\n Date date = new Date(millis + 60000);\n Date dateCreated = date;\n user.setDateCreated(dateCreated);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertFalse(violations.isEmpty());\n }", "public static void testPeriod() {\n LocalDate date1 = LocalDate.now();\n System.out.println(\"Current date: \" + date1);\n\n //add 1 month to the current date\n LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + date2);\n\n Period period = Period.between(date2, date1);\n System.out.println(\"Period: \" + period);\n }", "com.djt.cvpp.ota.orfin.vadrevent.mapper.dto.VadrRelease publishVadrReleaseEvent() \n\tthrows \n\t\tEntityAlreadyExistsException, \n\t\tValidationException;", "public static boolean isPastDue(Date date) {\n\t\tthrow new IllegalStateException(\"no database connection\");\r\n\t}", "private void createEvents() {\n\t}", "boolean isFilterByDate();", "public LocalDateTime getAssignedDate() {\n return assignedDate;\n }", "@Test\n public void testCreateAllocationScraperWorkerJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-25\");\n LocalDate endDate = LocalDate.parse( \"2018-10-06\" );\n while ( currentDate.isBefore( endDate ) ) {\n CloudbedsAllocationScraperWorkerJob workerJob = new CloudbedsAllocationScraperWorkerJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setAllocationScraperJobId( 440052 ); // dbpurge job (no recs)\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 7 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 7 ); // calendar page shows 2 weeks at a time\n }\n }", "List<Product> findAllByDateCreateBetween(Date startDate, Date endDate);", "private Date createExpiredAfter(final int month, final int year) {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\t\n\t\tcalendar.set(year, month - 1, 0, 23, 59, 59);\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n\t\t\n\t\treturn calendar.getTime();\n\t}", "@Override\n public LocalDate getDate() {\n return null;\n }", "private void onRequireCalendarPermissionsDenied() {\r\n showToast(getString(R.string.event_require_calendar_permission), Toast.LENGTH_LONG);\r\n }", "AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}", "@Override\n public List<? extends WeekViewEvent> onMonthChange(int newYear, int newMonth) {\n\n List<WeekViewEvent> eventsList = new ArrayList<WeekViewEvent>();\n\n for (int i = 0; i < events.size(); i++) {\n if (newMonth - 2 == fromEpoch(events.get(i).getTimeInMillis())) {\n Calendar startTime = Calendar.getInstance();\n WeekViewEvent event;\n startTime.setTimeInMillis(events.get(i).getTimeInMillis());\n //startTime.set(Calendar.MONTH, newMonth-2);\n Calendar endTime = (Calendar) startTime.clone();\n endTime.setTimeInMillis(events.get(i).getTimeInMillis() + (3600000 * events.get(i).getDurationHour())\n + (60000 * events.get(i).getDurationMin()));\n //endTime.set(Calendar.MONTH, newMonth-2);\n event = new WeekViewEvent(events.get(i).getID(), events.get(i).getData().toString(), startTime, endTime);\n event.setColor(events.get(i).getColor());\n eventsList.add(event);\n }\n }\n\n return eventsList;\n }" ]
[ "0.5471755", "0.54024285", "0.5343594", "0.52927154", "0.52118397", "0.5133571", "0.51209664", "0.51038027", "0.5088717", "0.50848913", "0.50561994", "0.5046911", "0.5022705", "0.5013186", "0.50028527", "0.49890834", "0.49741238", "0.49613267", "0.492853", "0.49241662", "0.49220333", "0.49183577", "0.49043232", "0.49004984", "0.48980084", "0.48938152", "0.4889681", "0.48860022", "0.4872038", "0.4868897", "0.4858472", "0.4854295", "0.48451373", "0.48208815", "0.48200956", "0.48042336", "0.4804218", "0.47986546", "0.47722787", "0.4765382", "0.47641224", "0.4759344", "0.4758061", "0.4753626", "0.47486275", "0.47437242", "0.47317913", "0.4730593", "0.4725559", "0.4724787", "0.4724676", "0.47240907", "0.47214845", "0.47163633", "0.47160634", "0.47156054", "0.47122565", "0.4711574", "0.4705438", "0.4698497", "0.4696594", "0.46926787", "0.4691014", "0.46808076", "0.4680052", "0.4679691", "0.4676691", "0.46747234", "0.46723142", "0.4670622", "0.46695092", "0.4660626", "0.46599752", "0.4657157", "0.4653749", "0.46530196", "0.46449885", "0.46443534", "0.46357143", "0.46343803", "0.4633281", "0.46328542", "0.46300903", "0.46230736", "0.46202934", "0.46159145", "0.46145576", "0.4614479", "0.4614085", "0.4611527", "0.45985588", "0.45959425", "0.45918855", "0.45912415", "0.45902625", "0.45900732", "0.45874208", "0.45868292", "0.45858717", "0.45830324", "0.45829493" ]
0.0
-1
Present on resources created after 1 February 2019 except for events not tracked.
public com.commercetools.api.models.common.CreatedBy getCreatedBy() { return this.createdBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n\tpublic void onApplicationEvent(BeforeStoreEvent event) {\n\t\tList<? extends DomainObject<?>> domainObjects = event.getStoreContext().getDomainObjects();\n\n\t\tdomainObjects.forEach(domainObject -> {\n\t\t\tif (!domainObject.isNew() && (domainObject instanceof Task)) {\n\t\t\t\tTask task = (Task) domainObject;\n\n\t\t\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\t\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tString author = principal.getUsername();\n\t\t\t\ttask.setLastEditor(principal.getUser());\n\n\t\t\t\tif (!task.getStatus().equals(Status.CLOSED)) {\n\t\t\t\t\tPeriod period = Period.between(LocalDateTime.now().toLocalDate(),\n\t\t\t\t\t\t\ttask.getStartline().toLocalDate());\n\t\t\t\t\ttask.setWastedTime(period.getYears() + \"y \" + period.getMonths() + \"m \" + period.getDays() + \"d\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "@Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "@Override\n public void prepareTransient() {\n fixDates();\n untilWhenDate = assignDateField(untilWhen);\n }", "org.hl7.fhir.Period addNewAppliesPeriod();", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "@Test\n public void testCreateBookingReportJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-28\");\n LocalDate endDate = LocalDate.parse( \"2018-10-23\" );\n while ( currentDate.isBefore( endDate ) ) {\n BookingReportJob workerJob = new BookingReportJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 4 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 5 ); // dates are inclusive, +1\n }\n }", "@Override\r\n\tpublic void onBeforeUpdate(Record record) throws DeadlineExceededException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint newStatus = (Integer) record.getValue(\"resignationstatusid\");\r\n\t\tint oldStatus = (Integer) record.getOldValue(\"resignationstatusid\");\r\n\t\tif((oldStatus == HRISConstants.RESIGNATION_NEW || oldStatus == HRISConstants.RESIGNATION_ONHOLD || oldStatus == HRISConstants.RESIGNATION_REJECTED)&& newStatus == HRISConstants.RESIGNATION_ACCEPTED){\r\n\t\t\t\r\n\t\t\tString TODAY_DATE = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(SystemParameters.getCurrentDateTime());\r\n\t\t\trecord.addUpdate(\"approveddate\",TODAY_DATE);\r\n\t\t}\r\n\t}", "boolean hasAcquireDate();", "public void setAvailability(String date) {\n\t\tavailableAt = date;\n\t}", "public void setUntilDate(Date date);", "org.hl7.fhir.DateTime addNewAppliesDateTime();", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "PastReservation createPastReservation();", "private Constraint scheduleTasksWithDueDates(ConstraintFactory factory) {\n return factory.from(TaskAssignment.class)\n .filter(TaskAssignment::isTaskAssignedWithDueDate)\n .rewardConfigurable(\"Schedule tasks with due dates\");\n }", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }", "public void showByMonthBtn(ActionEvent event) throws IOException, Exception {\r\n\r\n appointments.clear();\r\n appointments.addAll(Appointment.getAppointmentsByMonth());\r\n\r\n }", "void generateResponseHistory(LocalDate from, LocalDate to);", "public void createMonthScenarioBug10249_perUnit_steppedEvents()\n throws Exception {\n long scenarioStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-28 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n long usageStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-29 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n BillingIntegrationTestBase.setDateFactoryInstance(scenarioStartTime);\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10249_PER_UNIT_MONTH_EVENTS\",\n TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_MONTH_STEPPED_EVENTS,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 1);\n\n VORoleDefinition role = VOServiceFactory.getRole(serviceDetails,\n \"ADMIN\");\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", serviceDetails,\n basicSetup.getCustomerUser1(), role);\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(usageStartTime);\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n // record an event after 8 days\n container.login(basicSetup.getSupplierAdminKey(), ROLE_SERVICE_MANAGER,\n ROLE_TECHNOLOGY_MANAGER);\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(8), \"FILE_DOWNLOAD\", 75);\n\n // record another event after 10 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FILE_UPLOAD\", 13);\n\n // record another event after 12 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FOLDER_NEW\", 1);\n\n long usageEndTime = DateTimeHandling\n .calculateMillis(\"2012-12-01 00:00:00\")\n + DateTimeHandling.daysToMillis(10);\n BillingIntegrationTestBase.setDateFactoryInstance(usageEndTime);\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n subscrSetup.unsubscribeToService(subDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", subDetails);\n }", "@Before\n public void before() {\n Study studyToCreate = TestUtils.getValidStudy(this.getClass());\n studyToCreate.setExternalIdRequiredOnSignup(false);\n studyToCreate.setExternalIdValidationEnabled(false);\n studyToCreate.setTaskIdentifiers(Sets.newHashSet(\"taskId\"));\n study = studyService.createStudy(studyToCreate);\n\n Schedule schedule = new Schedule();\n schedule.setLabel(\"Schedule Label\");\n schedule.setScheduleType(ScheduleType.RECURRING);\n schedule.setInterval(\"P1D\");\n schedule.setExpires(\"P1D\");\n schedule.addTimes(\"10:00\");\n schedule.addActivity(new Activity.Builder().withLabel(\"label\").withTask(\"taskId\").build());\n \n SimpleScheduleStrategy strategy = new SimpleScheduleStrategy(); \n strategy.setSchedule(schedule);\n \n schedulePlan = new DynamoSchedulePlan();\n schedulePlan.setLabel(\"Label\");\n schedulePlan.setStudyKey(study.getIdentifier());\n schedulePlan.setStrategy(strategy);\n schedulePlan = schedulePlanService.createSchedulePlan(study, schedulePlan);\n }", "abstract public Date getServiceAppointment();", "@WebMethod public void createEvent(String description, LocalDate eventDate) throws EventAlreadyExist;", "public void checkBlackOutPeriod(){\n\n\n // loop through all filings and output filing date value in milli seconds\n System.out.println(\"checking black out period status for filings : \"+blackOutPeriodDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n BaseTrademarkApplication current = iter.next();\n\n if((current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"TEAS RF New Application\") )|| (current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"New Application\") ) ){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the black out period\");\n\n //baseTradeMarkApplicationService.save(current);\n\n // we need to check current filings to make sure there are no active office action\n\n if(current.hasActiveOfficeAction() == false){\n\n OfficeActions officeActions = new OfficeActions();\n officeActions.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n officeActions.setStandardCharacterMark(current.isStandardTextMark());\n officeActions.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n officeActions.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n officeActions.setParentSerialNumber(current.getTrademarkName());\n officeActions.setParentRegistrationNumber(current.getRegistrationID());\n officeActions.setActiveAction(true);\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod();\n officeActions.setDueDate(new Date(dueDate));\n //officeActions.setOfficeActionCode(\"Missing transliteration\");\n\n\n // create office action event here\n // filing document is only created if an office action is created with required actions\n\n\n\n\n // required actions section\n\n\n // required action Translation\n if (current.getTradeMark().isStandardCharacterMark() || current.getTradeMark().getTrademarkDesignType().equals(\"Design with Text\")) {\n if (current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageType_translation() == null ){\n\n // create required action here\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Translation of Foreign Wording\");\n requiredActions.setTranslationTextForeign(current.getTradeMark().getForeignLanguageTranslationOriginalText());\n requiredActions.setTranslationTextEnglish(current.getTradeMark().getForeignLanguageTranslationUSText());\n requiredActions.setTranslationTextLanguage(current.getTradeMark().getForeignLanguageType_translation());\n\n\n\n officeActions.addRequiredActions(requiredActions);\n\n\n\n }\n\n\n }\n\n // required action disclaimer\n\n if(current.getTradeMark().getDisclaimerDeclarationList().size() == 0){\n // you have to provide at least one disclaimer\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Disclaimer Required\");\n\n officeActions.addRequiredActions(requiredActions);\n\n }\n\n\n // office action is created only if there are required actions\n if(officeActions.getRequiredActions().size() > 0){\n current.setFilingStatus(\"Non-Final Action Mailed\");\n officeActions.setOfficeActionCode(\"Non-Final Action Mailed\");\n\n\n // create an default office action object and attach it to filing\n current.addOfficeAction(officeActions);\n officeActions.setTrademarkApplication(current);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Office Action Outgoing\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n }\n\n baseTradeMarkApplicationService.save(current);\n\n\n\n\n }\n\n\n\n\n // also check for number of required actions.\n // if there are none. office action is not saved\n\n\n\n\n\n // set relevant office actions\n\n\n\n }\n else{\n System.out.println(\"filing is still in the black out period\");\n\n }\n }\n else{\n System.out.println(\"Filing is not Submitted yet.\");\n }\n }\n\n\n }", "@Override\n @Transactional\n public void cancelAllEventsWhenIssued(Set<Prescribing> prescribings) {\n Calendar today = Calendar.getInstance();\n today.roll(Calendar.DATE, -1);\n Calendar dateOfEvent = new GregorianCalendar();\n for (Prescribing prescribing :\n prescribings) {\n Set<Event> events = new HashSet<>(prescribing.getEvents());\n if (events.size() != 0) {\n for (Event event :\n events) {\n dateOfEvent.setTime(event.getDate());\n if (dateOfEvent.after(today) && event.getStatus().equals(\"open\")) {\n event.setStatus(\"Cancel\");\n event.setReason(\"Patient was issued\");\n eventService.updateEvent(event);\n }\n }\n }\n }\n }", "public void setCreatedOn(DateTime createdOn);", "@Override\n public void updatedResource( ResourceEvent event )\n {\n if ( event.getTypeResource( ).equals( Appointment.APPOINTMENT_RESOURCE_TYPE ) )\n {\n IndexingAppointmentService.getService( ).indexAppointmentStateAndHistory( _appointmentDataSource, _appointmentHistoryDataSource,\n Integer.parseInt( event.getIdResource( ) ) );\n }\n\n }", "@Test(expected = IllegalDateException.class)\n\tpublic void testBookStartDateInPast() throws Exception {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, -2);\n\t\t// start is current date - 2\n\t\tDate invalidStartDate = cal.getTime();\n\t\tbookingManagement.book(USER_ID, Arrays.asList(room1.getId()), invalidStartDate, validEndDate);\n\t}", "public static boolean create(String title, String date, String startTime, String endTime) {\n\t\tboolean canAdd = true;\n\t\tif (date.length() != 10) { //not in the correct format MM/DD/YYYY\n\t\t\tString month = date.substring(0, date.indexOf(\"/\"));\n\t\t\tSystem.out.println(\"month within create: \" + month);\n\t\t\tif (month.length() != 2) {\n\t\t\t\tmonth = \"0\" + month;\n\t\t\t}\n\t\t\tString day = date.substring(date.indexOf(\"/\") + 1, date.indexOf(\"/\", date.indexOf(\"/\") + 1));\n\t\t\tSystem.out.println(\"day within create: \" + day);\n\t\t\tif (day.length() != 2) {\n\t\t\t\tday = \"0\" + day;\n\t\t\t}\n\t\t\tString year = date.substring(date.indexOf(\"/\", date.indexOf(\"/\") + 1) + 1);\n\t\t\tSystem.out.println(\"year within create: \" + year);\n\t\t\tdate = month + \"/\" + day + \"/\" + year;\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event> treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\t\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t\treturn canAdd;\n\t}", "Builder addDatePublished(Date value);", "public boolean hasPast();", "boolean hasDeliveryDateBefore();", "public boolean isOverdue(int today);", "@Test\n public void getEmployeesForDate(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertNotNull(employeeResource.getEMployeesForDate(\"2017-01-01\"));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "public DateAvailableVO checkDateAvailable(String date) {\n\t\treturn null;\n\t}", "@Test\n public void give_subscriptionCreatedAfterLastScheduledDelivery_when_getDailySubscriptionsToDeliver_then_dontReturn() {\n }", "public List<ScheduleResource> neededSpecificResources();", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "private void givenExchangeRatesExistsForEightMonths() {\n }", "@ScheduledApiChange(when = \"5.0\", details = \"Default implementation will be removed.\")\n default void preparationSuccessful(@Nonnull Module module,\n @Nonnull Client client,\n @Nonnull Set<TCSResource<?>> resources) {\n }", "org.hl7.fhir.Instant addNewIssued();", "Date getRequestedAt();", "@Description(\"request was sent after {date}\")\n public static Criteria<HarEntry> recordedStartedDateTimeAfter(@DescriptionFragment(\"date\") Date date) {\n checkArgument(nonNull(date), \"Date should be defined\");\n\n return condition(entry -> {\n Date startedDateTime = entry.getStartedDateTime();\n\n return startedDateTime.after(date);\n });\n }", "private void verifyPeriod(Date start, Date end){\n List dates = logRepositoy.findAllByDateGreaterThanEqualAndDateLessThanEqual(start, end);\n if(dates.isEmpty()){\n throw new ResourceNotFoundException(\"Date range not found\");\n }\n }", "private boolean compareWithCurrentDate(LocalDateTime deadline, LocalDateTime assignDate, boolean isLessThanDay) {\n boolean isReadyToNotify=false;\n if(isLessThanDay){\n if(deadline.until(LocalDateTime.now(),HOURS)==HALF_A_DAY){\n isReadyToNotify=true;\n }\n }else{\n // if this time is the mean of deadline and assign date\n if(deadline.until(LocalDateTime.now(),HOURS) == deadline.until(assignDate,HOURS)/2){\n isReadyToNotify=true;\n }\n }\n return isReadyToNotify;\n }", "@Override\n\tpublic boolean create(Dates obj) {\n\t\treturn false;\n\t}", "public void past()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Past\")).click();\n\t}", "public org.hl7.fhir.Period addNewWhenGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().add_element_user(WHENGIVEN$8);\n return target;\n }\n }", "@Test\n public void give_subscriptionCreatedBeforeLastScheduledDelivery_when_getDailySubscriptionsToDeliver_then_returnSubscription() {\n }", "public List<String> getEligibleForAutoApproval(Date todayAtMidnight);", "public boolean canCreateAnother() {\n\t\treturn new Date(startDate.getTime() + duration + cooldown)\n\t\t\t\t.before(new Date());\n\t}", "@Override\n public Date getManufactureDate() {\n return manufacturedOn;\n }", "@Test\n public void testRemoveEventConvinienceMethod() {\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n CalendarEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n Assert.assertEquals(1, calendar.getEvents(start, end).size());\n // Remove event\n calendar.removeEvent(event);\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n }", "@Test(expected = IllegalArgumentException.class)\n public void testGetExpensesByTypeAndMonthInFuture() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2016, 12);\n\texpenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n }", "@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}", "public void setValidUntil(Date validUntil);", "private List<Event> getEventsOnDate(Date date) {\r\n List<Event> eventsOnDate = new ArrayList<>();\r\n for (Event event : this.events) {\r\n if (event.getDate().equals(date)) {\r\n eventsOnDate.add(event);\r\n }\r\n }\r\n\r\n return eventsOnDate;\r\n }", "boolean hasDeliveryDateAfter();", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public void createEvent(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tif(!map.containsKey(date)) {\n\t\t\tArrayList<Event> newList = new ArrayList<>();\n\t\t\tnewList.add(e);\n\t\t\tmap.put(date, newList);\n\t\t}\n\t\telse {\n\t\t\tmap.get(date).add(e);\n\n\t\t}\n\t}", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "@Override\n public Flux<PersistentAuditEvent> findAllByAuditEventDateBetween(Instant fromDate, Instant toDate, Pageable pageable) {\n OffsetDateTime fromDateH2 = OffsetDateTime.ofInstant(fromDate, ZoneId.systemDefault());\n OffsetDateTime toDateH2 = OffsetDateTime.ofInstant(toDate, ZoneId.systemDefault());\n Criteria criteria = Criteria\n .where(\"event_date\").greaterThan(fromDateH2)\n .and(\"event_date\").lessThan(toDateH2);\n return findAllFromSpec(select().matching(criteria).page(pageable));\n }", "@PrePersist\n protected void onPersist() {\n this.data = LocalDate.now();\n }", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void checkOfficeActionPeriod1(){\n\n System.out.println(\"checking Office Action period 1 status for filings : \"+firstOfficeActionDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n\n BaseTrademarkApplication current = iter.next();\n if(current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"Non-Final Action Mailed\") == true){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the office action period\");\n\n // check if office action has been completed ..\n for(Iterator<OfficeActions> iter3 = current.getOfficeActions().iterator(); iter3.hasNext(); ) {\n OfficeActions current3 = iter3.next();\n\n if(current3.isOfficeActionCompleted() == false && current.getFilingStatus().contains(\"Abandoned\") == false){\n\n // remove office action ..or set it to inactive\n // so on the dashboard. we only show actions that are active\n //\n // do the same thing. create petition object and attach it to the filing\n Petition petition = new Petition();\n petition.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n petition.setStandardCharacterMark(current.isStandardTextMark());\n petition.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n petition.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n petition.setParentSerialNumber(current.getTrademarkName());\n petition.setParentRegistrationNumber(current.getRegistrationID());\n\n petition.setActionID(String.valueOf(current3.getInternalID()));\n\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod()+current.getPetitionPeriod();\n petition.setDueDate(new Date(dueDate));\n\n\n current.setFilingStatus(\"Abandoned - Failure to Respond or Late Response\");\n petition.setOfficeActionCode(\"Abandoned - Failure to Respond or Late Response\");\n petition.setPetitionTitle(\"Failure to Respond Timely to Office Action\");\n\n petition.setActivePetition(true);\n current.addPetition(petition);\n petition.setTrademarkApplication(current);\n current3.setActiveAction(false);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Abandoned\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n\n }\n\n\n\n }\n\n\n\n // only execute below code if office action is not completed...\n\n\n }\n else{\n System.out.println(\"filing is still in respond to office action period or filing is in a different state\");\n\n\n }\n }\n else{\n if(current.getFilingStatus().equals(\"TEAS RF New Application\") || current.getFilingStatus().equals(\"New Application\") ){\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod() ) < new Date().getTime()){\n boolean acceptedFiling = true;\n\n for(Iterator<OfficeActions> iter4 = current.getOfficeActions().iterator(); iter4.hasNext(); ) {\n OfficeActions current4 = iter4.next();\n if(current4.isActiveAction() && current4.getOfficeActionCode().equals(\"global default action\") == false){\n if(current4.isOfficeActionCompleted() == true){\n // skip examiner review period\n // filing is accepted\n // change filing status\n // create filing document event\n\n current4.setActiveAction(false);\n\n\n\n }\n else {\n acceptedFiling = false;\n\n System.out.println(\"office action is not completed\");\n }\n\n }\n\n\n }\n\n if(acceptedFiling == true){\n current.setFilingStatus(\"Accepted Filing\");\n current.setApplicationAcceptedDate(new Date());\n\n // create accepted filing date\n\n\n\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Accepted\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n }\n // if there are no office actions ..it is also compelete\n\n }\n // check for accepted filings\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n }\n\n }", "public Event createPublish(Address resource, String event, int expires);", "@When(\"^the checkin date is $\")\n public void the_checkin_date_is() throws Throwable {\n throw new PendingException();\n }", "@Test\n public void getShiftsByDate(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n employeeResource.createEmployee(new Employee(\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\",\"dummy3\", 1));\n\n assertNotNull(shiftListFunctionResource.getShiftsByDate(\"2017-01-01\"));\n\n //clean up\n employeeResource.removeEmployee(\"dummy3\");\n shiftListResource.removeShiftlist(new Date(2017-01-01),1,\"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n\n }", "@Test\n public void testV4HeaderDateValidationSuccess()\n throws MalformedResourceException {\n LocalDate now = LocalDate.now();\n String dateStr = DATE_FORMATTER.format(now);\n testRequestWithSpecificDate(dateStr);\n\n // Case 2: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.plus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n\n // Case 3: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.minus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n }", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore addNewAppointmentsToIgnore();", "public void setCreatedon( Date createdon )\n {\n this.createdon = createdon;\n }", "@Test\n public void repeatingTask_changeRepeatPeriod_nextWeekDate() {\n LocalDate testDate = LocalDateTime.now().minusWeeks(1).minusDays(1).toLocalDate();\n LocalTime testTime = LocalTime.of(8, 30);\n LocalDateTime testDateTime = LocalDateTime.of(testDate, testTime);\n Event testEvent = new Event(\"8 days ago\", \"CS2113T\", testDateTime, testDateTime.plusHours(4),\n \"testing\");\n testTaskList.addTask(testEvent);\n // Set to 1w\n RepeatCommand testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.WEEKLY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n RepeatEvent repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n // Set to 1d\n testRepeatCommand = new RepeatCommand(2, 1, RepeatCommand.DAILY_ICON);\n testRepeatCommand.execute(testTaskList, testUi);\n repeatEvent = (RepeatEvent) testTaskList.getTask(2);\n\n assertEquals(repeatEvent.getPeriodCounter(), 0);\n assertEquals(repeatEvent.getNextDateTime(), LocalDateTime.of(LocalDate.now().plusWeeks(1), testTime));\n }", "public static boolean deletePastEvents (Event event){\r\n\t int currentDate = getCurrentDate();\r\n\t int date = event.date;\r\n\t if (date<currentDate){\r\n\t\t masterEventsFile.remove(event.getEventLine());\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }", "@Test\n\t@When(\"posted with future date information\")\n\tpublic void posted_with_future_date_information() {\n\t\tRestAssured.baseURI = BASE_URL;\n\t\t RequestSpecification request = RestAssured.given();\n\t}", "public LocalDate getWhen(){\n return by;\n }", "default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }", "@Override\n public boolean hasWriteAccess() {\n if (this.employmentDate.isAfter(LocalDate.now().minusMonths(6))) {\n return false;\n } else {\n return true;\n }\n }", "public static void testPeriod() {\n LocalDate date1 = LocalDate.now();\n System.out.println(\"Current date: \" + date1);\n\n //add 1 month to the current date\n LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + date2);\n\n Period period = Period.between(date2, date1);\n System.out.println(\"Period: \" + period);\n }", "@Test\n public void testSetDateCreatedFuture() {\n System.out.println(\"setDateCreated Test (Future value)\");\n long millis = System.currentTimeMillis();\n Date date = new Date(millis + 60000);\n Date dateCreated = date;\n user.setDateCreated(dateCreated);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertFalse(violations.isEmpty());\n }", "com.djt.cvpp.ota.orfin.vadrevent.mapper.dto.VadrRelease publishVadrReleaseEvent() \n\tthrows \n\t\tEntityAlreadyExistsException, \n\t\tValidationException;", "public static boolean isPastDue(Date date) {\n\t\tthrow new IllegalStateException(\"no database connection\");\r\n\t}", "private void createEvents() {\n\t}", "boolean isFilterByDate();", "@Test\n public void testCreateAllocationScraperWorkerJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-25\");\n LocalDate endDate = LocalDate.parse( \"2018-10-06\" );\n while ( currentDate.isBefore( endDate ) ) {\n CloudbedsAllocationScraperWorkerJob workerJob = new CloudbedsAllocationScraperWorkerJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setAllocationScraperJobId( 440052 ); // dbpurge job (no recs)\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 7 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 7 ); // calendar page shows 2 weeks at a time\n }\n }", "List<Product> findAllByDateCreateBetween(Date startDate, Date endDate);", "public LocalDateTime getAssignedDate() {\n return assignedDate;\n }", "private void onRequireCalendarPermissionsDenied() {\r\n showToast(getString(R.string.event_require_calendar_permission), Toast.LENGTH_LONG);\r\n }", "private Date createExpiredAfter(final int month, final int year) {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\t\n\t\tcalendar.set(year, month - 1, 0, 23, 59, 59);\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n\t\t\n\t\treturn calendar.getTime();\n\t}", "@Override\n public LocalDate getDate() {\n return null;\n }", "AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}", "@Override\n public List<? extends WeekViewEvent> onMonthChange(int newYear, int newMonth) {\n\n List<WeekViewEvent> eventsList = new ArrayList<WeekViewEvent>();\n\n for (int i = 0; i < events.size(); i++) {\n if (newMonth - 2 == fromEpoch(events.get(i).getTimeInMillis())) {\n Calendar startTime = Calendar.getInstance();\n WeekViewEvent event;\n startTime.setTimeInMillis(events.get(i).getTimeInMillis());\n //startTime.set(Calendar.MONTH, newMonth-2);\n Calendar endTime = (Calendar) startTime.clone();\n endTime.setTimeInMillis(events.get(i).getTimeInMillis() + (3600000 * events.get(i).getDurationHour())\n + (60000 * events.get(i).getDurationMin()));\n //endTime.set(Calendar.MONTH, newMonth-2);\n event = new WeekViewEvent(events.get(i).getID(), events.get(i).getData().toString(), startTime, endTime);\n event.setColor(events.get(i).getColor());\n eventsList.add(event);\n }\n }\n\n return eventsList;\n }" ]
[ "0.5471904", "0.5402169", "0.53441733", "0.52945495", "0.5210954", "0.51345336", "0.5120131", "0.5104203", "0.50905865", "0.50864434", "0.505593", "0.50456303", "0.5022047", "0.50141174", "0.5002711", "0.4990184", "0.49723974", "0.49618804", "0.4928682", "0.49235797", "0.49227846", "0.49185967", "0.49044865", "0.49000806", "0.48989168", "0.4893423", "0.48905516", "0.4886828", "0.48717535", "0.48682994", "0.48592782", "0.48548537", "0.48445392", "0.48205942", "0.48194462", "0.4804486", "0.48025727", "0.47972256", "0.47723424", "0.47648698", "0.47646514", "0.4760238", "0.47577354", "0.4752906", "0.47465593", "0.47425538", "0.47308946", "0.4730826", "0.4725564", "0.47246853", "0.4723581", "0.47232714", "0.47199184", "0.47167832", "0.47157812", "0.47148213", "0.4712302", "0.47112113", "0.47062114", "0.4699774", "0.4696461", "0.4693835", "0.4689284", "0.46820086", "0.46816108", "0.4678887", "0.46775538", "0.46758145", "0.46728897", "0.46725565", "0.4668799", "0.46609366", "0.46588877", "0.46563488", "0.4653627", "0.46530402", "0.46452245", "0.4644816", "0.46357742", "0.46346182", "0.46336555", "0.46336523", "0.4630631", "0.46231884", "0.46199092", "0.46153837", "0.4615062", "0.46139094", "0.46137297", "0.46100363", "0.45977938", "0.4597162", "0.45921877", "0.45916858", "0.4591013", "0.4589473", "0.4586947", "0.4586125", "0.45860204", "0.4583922", "0.45834368" ]
0.0
-1
Userdefined unique identifier of the Review.
public String getKey() { return this.key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "public int getReviewId()\r\n {\r\n return this.reviewId;\r\n }", "public int getMyReviewID() {\n return myReviewID;\n }", "public java.lang.String getReviewid() {\n return reviewid;\n }", "public String getReview_id() {\n return this.review_id;\n }", "public void setMyReviewID(int myReviewID) {\n this.myReviewID = myReviewID;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"123\", value = \"The code review id.\")\n public String getReviewId() {\n return reviewId;\n }", "String getCreatorId();", "String getUview_id();", "public String getUniqueID ( ) { return _uniqueID; }", "String uniqueId();", "public static int generateViewId() {\n return View.generateViewId();\n }", "java.lang.String getID();", "String getReceiptId();", "String getUniqueId();", "String getUniqueID();", "@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }", "@NonNull String identifier();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "private String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}", "@Schema(required = true, description = \"An identifier with the intention of being globally unique. \")\n public String getId() {\n return id;\n }", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "public void setReview_id(String review_id) {\n this.review_id = review_id;\n }", "public String RtoosGetID() \n\t{\n\t\treturn UUIDs.random().toString();\n\t}", "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }", "String generateUID();", "public String getUniqueID();", "@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }", "public String getUniqueID() {\n return this.uniqueID;\n }", "String getID();", "String getID();", "String getID();", "String getID();", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\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 }", "String getIdNumber();", "String getUserID();", "java.lang.String getIdentifier();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.7630444", "0.7087628", "0.7084734", "0.69617903", "0.6920204", "0.6403198", "0.62350106", "0.61710703", "0.6091141", "0.606979", "0.6045115", "0.60377026", "0.59990025", "0.5982668", "0.598", "0.5972977", "0.59518003", "0.5943526", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59128094", "0.59091747", "0.5904572", "0.5892286", "0.5892286", "0.5892286", "0.588823", "0.58855474", "0.58758336", "0.58569765", "0.58563775", "0.584977", "0.58458674", "0.58418524", "0.5840229", "0.5830411", "0.5830411", "0.5830411", "0.5830411", "0.5829422", "0.5815145", "0.5809365", "0.5773624", "0.57698274", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725", "0.57666725" ]
0.0
-1
Must be unique among Reviews. For example, if this value is set to Customer id&nbsp;+ Product id, only one Review per Customer and per Product is allowed.
public String getUniquenessValue() { return this.uniquenessValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "@objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Review)) {\n return false;\n }\n Review other = (Review) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "public void setMyReviewID(int myReviewID) {\n this.myReviewID = myReviewID;\n }", "public boolean isUnique();", "public boolean addReview(String hotelId, String reviewId, int rating, String reviewTitle, String review,\n\t\t\tboolean isRecom, String date, String username) {\n\t\t// FILL IN CODE\n\t\t\n\t\tlock.lockWrite();\n\t\ttry{\n\t\t\tSet<Review> reviewSet;\n \t\t\tif(reviewMap.get(hotelId) == null){\n \t\t\t\treviewSet = new TreeSet<Review>();\n\t\t\t}\n \t\t\telse{\n \t\t\t\treviewSet = reviewMap.get(hotelId);\n \t\t\t}\n\t\t\tif(rating <= 0 || rating >= 6 || !isValidDate(date)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tReview r = new Review(reviewId, hotelId, reviewTitle, review, isRecom, username, date, rating);\n\t\t\treviewSet.add(r);\n\t\t\t\n\t\t\treviewMap.put(hotelId, reviewSet);\n\t\t\treturn true; \n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockWrite();\n\t\t}\n\t}", "boolean isUniqueAttribute();", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Review)) {\n return false;\n }\n return id != null && id.equals(((Review) o).id);\n }", "public void setReview_id(String review_id) {\n this.review_id = review_id;\n }", "public String getReview_id() {\n return this.review_id;\n }", "public int getReviewId()\r\n {\r\n return this.reviewId;\r\n }", "private void addReviewId(HashMap<String, String> review, int reviewId, int length) {\n\t\treviewIds.put(reviewId, new ArrayList<>());\n\t\t// 0 - productId, 1 - score, 2 - helpfulness, 3 - length\n\t\tfor (String field : DataParser.INTEREST_FIELDS) {\n\t\t\tif (field.equals(\"text\")) { continue; }\n\t\t\treviewIds.get(reviewId).add(review.get(field));\n\t\t}\n\t\treviewIds.get(reviewId).add(String.valueOf(length));\n\t}", "public boolean isExplicitUniqueCheckRequired();", "public boolean supportsUnique() {\n \t\treturn true;\n \t}", "boolean isIsUnique();", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"123\", value = \"The code review id.\")\n public String getReviewId() {\n return reviewId;\n }", "@Override\r\n\tpublic void regReview(ReviewVO rvo) {\n\t\tss.insert(\"insertReview\", rvo);\r\n\t}", "public Review(String myReview, String myReviewer, String myReviewed, String myDatePosted, String myRole,\n int myReviewID, double myRating) {\n this.myReview = myReview;\n this.myReviewer = myReviewer;\n this.myReviewed = myReviewed;\n this.myDatePosted = myDatePosted;\n this.myRole = myRole;\n this.myReviewID = myReviewID;\n this.myRating = myRating;\n }", "@Override\n\tprotected void checkDiscussionItem(final Review review, final DBSession session) {\n\t\tfinal double rating = review.getRating();\n\t\t\n\t\tif (Double.compare(rating, Review.MIN_REVIEW_RATING) < 0 || Double.compare(rating, Review.MAX_REVIEW_RATING) > 0) {\n\t\t\tthrow new ValidationException(\"Review rating not in range\"); // TODO: error message?!\n\t\t}\n\t\t\n\t\tfinal double decimal = Math.abs(rating - Math.rint(rating));\n\t\t\n\t\tif (Double.compare(decimal, 0) != 0 && Double.compare(decimal - 0.5, 0) != 0) {\n\t\t\tthrow new ValidationException(\"Only ?.0 and ?.5 ratings are supported\"); // TODO: error message?\n\t\t}\n\t\t\n\t\tif (present(review.getText()) && review.getText().length() > Review.MAX_TEXT_LENGTH) {\n\t\t\tthrow new ValidationException(\"review text too long\");\n\t\t}\n\t}", "private void validateNamesUniqueness(String[] fieldNames) {\n Set<String> duplicatedNames = findDuplicates(fieldNames);\n if (duplicatedNames.size() != 0) {\n\n throw new ValidationException(\n String.format(\n \"Field names must be unique.\\n\"\n + \"List of duplicate fields: [%s].\\n\"\n + \"List of all fields: [%s].\",\n String.join(\", \", duplicatedNames), String.join(\", \", fieldNames)));\n }\n }", "public java.lang.String getReviewid() {\n return reviewid;\n }", "boolean isUnique();", "public Review() {\n this.review_id = \"\";\n this.user_id = \"\";\n this.business_id = \"\";\n this.stars = 0;\n this.useful = 0;\n this.funny = 0;\n this.cool = 0;\n this.date = LocalDateTime.now();\n this.text = \"\";\n }", "public int getMyReviewID() {\n return myReviewID;\n }", "public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenticated() && professionalStatus.isIsProfessional()) {\r\n Users user = ui.getUser();\r\n if (recipe != null) {\r\n for (Review rev : recipe.getReviews()) {\r\n if (rev.getReviewer().getUserName().equals(user.getUserName())) {\r\n result = true;\r\n break;\r\n }\r\n }//end for\r\n }\r\n }// end value != null\r\n return result;\r\n }", "@DefaultMessage(\"Please enter a unique value for this field\")\n @Key(\"gen.fieldUniqueOnlyException\")\n String gen_fieldUniqueOnlyException();", "public Boolean isUniqueUsingAPI(String value) {\n\t\t// We put each character of our value in a Set that don't allows duplicated values\n\t\tSet<String> items = new HashSet<String>(Arrays.asList(value.toUpperCase().replaceAll(\"\\\\s\",\"\").split(\"\")));\n\t\t\n\t\t// If the size of our set is different that the length of our string that means that on the string are duplicated values.\n\t\treturn value.length() == items.size();\n\t}", "@org.junit.Test\r\n public void testInsertReview5() throws Exception {\r\n System.out.println(\"insertReview5\");\r\n Review review = new Review(new Long(0), \"Max\", 9, null);\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null review text\");\r\n }", "@org.junit.Test\r\n public void testGetReviewById1() throws Exception {\r\n System.out.println(\"getReviewById1\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n review = service.insertReview(review);\r\n Review result = service.getReviewById(id);\r\n assertEquals(review, result);\r\n }", "@org.junit.Test\r\n public void testInsertReview6() throws Exception {\r\n System.out.println(\"insertReview6\");\r\n Review review = new Review(new Long(0), \"Max\", 9, \"\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty review text\");\r\n }", "boolean isUnique(TextField inputPartNumber);", "public Review create(Review newReview) {\n\t\tList<Review> matchingReviews = revRepo.matchingReviews(newReview.getUser().getId(),\n\t\t\t\tnewReview.getTVShow().getId());\n\t\tif (matchingReviews.size() > 0) {\n\t\t\treturn null;\n\t\t}\n\t\tnewReview.setId(null);\n\t\treturn revRepo.save(newReview);\n\t}", "private void checkIfDuplicateKey(String recordKey) {\n if (this.records.containsKey(recordKey)) {\n System.out.println(duplicateKey);\n throw new IllegalArgumentException();\n }\n }", "@Override\r\n\tpublic void review_insert(ReviewDTO dto) throws Exception {\n\r\n\t}", "@DefaultMessage(\"A record with this value already exists. Please enter a unique value for this field\")\n @Key(\"gen.fieldUniqueException\")\n String gen_fieldUniqueException();", "@Override\r\n\tprotected void buildUniqueKeys(final DatabaseTable table) throws SQLException {\r\n\t\tif (views.contains(table)) {\r\n\t\t\t// buildUniqueKeysOfView(table);\r\n\t\t} else {\r\n\t\t\tbuildUniqueKeysOfTable(table);\r\n\t\t}\r\n\t}", "@POST(\"/attractions/{attractionId}/reviews\")\n Call<Review> postReview(\n @Path(\"attractionId\") int attractionId,\n @Header(\"Authorization\") String bearer,\n @Body Review review\n );", "@org.junit.Test\r\n public void testRemoveReview1() throws Exception {\r\n System.out.println(\"removeReview1\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n review = service.insertReview(review);\r\n Review result = service.removeReview(id);\r\n assertEquals(review, result);\r\n }", "boolean isFieldUnique(String fieldName, Object value, Serializable objectId);", "@UniqueID(\"ProvidedID\")\n\t\t@org.testng.annotations.Test\n\t\tprivate void uniqueIdAnnotation() {\n\t\t}", "protected boolean isDuplicate(ELesxUseCase useCase) {\n return false;\n }", "@NotNull\n @Valid\n @JsonProperty(\"review\")\n public Review getReview();", "public void newReview(Review review) throws SQLException\n {\n \n \n }", "private void validateDuplicateDocuments(Noc noc) {\n\t\tif (!ObjectUtils.isEmpty(noc.getDocuments())) {\n\t\t\tList<String> documentFileStoreIds = new LinkedList<String>();\n\t\t\tnoc.getDocuments().forEach(document -> {\n\t\t\t\tif (documentFileStoreIds.contains(document.getFileStoreId()))\n\t\t\t\t\tthrow new CustomException(\"NOC_DUPLICATE_DOCUMENT\", \"Same document cannot be used multiple times\");\n\t\t\t\telse\n\t\t\t\t\tdocumentFileStoreIds.add(document.getFileStoreId());\n\t\t\t});\n\t\t}\n\t}", "public static boolean isEndorValid(int CUST_ID,int REVIEW_ID) {\n irate_Connection om = new irate_Connection();\n om.startConnection(\"user1\", \"password\", dbName);\n conn = om.getConnection();\n s = om.getStatement();\n irate_DQL dql = new irate_DQL(conn, s);\n int REVIEW_ID_2 = dql.revid(CUST_ID);\n if(REVIEW_ID == REVIEW_ID_2)\n return false;\n else\n return true;\n }", "public void setReviewid(java.lang.String reviewid) {\n this.reviewid = reviewid;\n }", "public boolean isUniqueA() {\n return true;\n }", "@org.junit.Test\r\n public void testUpdateReview4() throws Exception {\r\n System.out.println(\"updateReview4\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"\", 2, \"Disappointing\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty author name\");\r\n }", "private void addReview(){\n db = DatabaseHelper.getInstance(this).getWritableDatabase();\n btn = findViewById(R.id.rvBtn);\n btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n editText = findViewById(R.id.rvEditText);\n ratingBar = findViewById(R.id.rvRatingBar);\n\n String comment = editText.getText().toString();\n double rating = ratingBar.getRating();\n\n if(rating == 0){\n Toast.makeText(BookReviewActivity.this, \"Please add your rating\", Toast.LENGTH_SHORT).show();\n } else if(comment.equals(\"\")){\n Toast.makeText(BookReviewActivity.this, \"Please add your comment\", Toast.LENGTH_SHORT).show();\n } else {\n db.execSQL(\"INSERT INTO REVIEW (Comment, Rate, BookID) VALUES ('\"+comment+\"','\"+rating+\"','\"+bookIDSelected+\"');\");\n Toast.makeText(BookReviewActivity.this, comment+\", \"+rating, Toast.LENGTH_SHORT).show();\n }\n\n loadReviews();\n\n }\n });\n }", "@DefaultMessage(\"Since this user has no permissions, duplication is invalid\")\n @Key(\"systemUser.userDuplicateInvalid\")\n String systemUser_userDuplicateInvalid();", "@Override\r\n\tpublic void deleteReview(int r_no) {\n\t\tss.delete(\"deleteReview\", r_no);\r\n\t}", "private boolean isOverReviewLimit(UUID theConferenceID) {\r\n\t\t// check to see if conference exists within reviewer list of confs or not\r\n\t\tif(this.isReviewerAssignedToConference(theConferenceID)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tboolean isOver = false;\r\n\t\tif (this.myConferencesAndAssignedManuscriptsList.get(theConferenceID).size() >= MAX_REVIEWS) {\r\n\t\t\tisOver = true;\r\n\t\t} \r\n\t\tSystem.out.println(isOver);\r\n\t\treturn isOver;\r\n\t}", "@Test\n\tpublic void hashCodeDifferentId() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setId(2);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}", "@org.junit.Test\r\n public void testInsertReview3() throws Exception {\r\n System.out.println(\"insertReview3\");\r\n Review review = new Review(new Long(0), \"\", 9, \"It's excellent\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty author name\");\r\n }", "@org.junit.Test\r\n public void testRemoveReview2() throws Exception {\r\n System.out.println(\"removeReview2\");\r\n Long id = null;\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n try{\r\n Review result = service.removeReview(id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null id\");\r\n }", "@Test\n\tpublic void testFindAllReviewByProduct() {\n\t\tProduct savedProduct = productRepository.save(testProduct);\n\t\ttestReview.setProduct(savedProduct);\n\t\t\n\t\tReview expectedReview = reviewRepository.save(testReview);\n\t\tassertThat(expectedReview).isNotNull();\n\t\t\n\t\tList<Review> actualList = (List<Review>) reviewRepository.findAll();\n\t\tassertFalse(actualList.size() == 0);\n\t\tassertTrue(actualList.size() == 1);\n\t\t\n\t\tReview actualReview = actualList.get(0);\n\t\tassertThat(expectedReview.getId().equals(actualReview.getId()));\n\t}", "public void setReUserId(String reUserId) {\n this.reUserId = reUserId == null ? null : reUserId.trim();\n }", "@UiThreadTest\r\n public void testValidationUnique() {\n View addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n View addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be gone\", View.GONE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be gone\", View.GONE, addProjectValidateUnique.getVisibility());\r\n\r\n // Enter the name of the default project that is already in use...\r\n EditText addProjectName = (EditText) solo.getView(R.id.projectname);\r\n solo.enterText(addProjectName, getActivity().getString(R.string.default_project_name));\r\n\r\n takeScreenshot();\r\n\r\n ActionBar.clickMenuItem(R.id.menu_add_project_activity_save, solo.getCurrentActivity());\r\n solo.assertCurrentActivity(\"The add/edit project activity is expected\", AddEditProjectActivity.class);\r\n addProjectValidateRequired = solo.getView(R.id.projectname_required);\r\n addProjectValidateUnique = solo.getView(R.id.projectname_unique);\r\n assertEquals(\"The validation error message 'required' should be gone\", View.GONE, addProjectValidateRequired.getVisibility());\r\n assertEquals(\"The validation error message 'unique' should be visible\", View.VISIBLE, addProjectValidateUnique.getVisibility());\r\n }", "@Test\n\tpublic void testIsUniqueOnUniqueString() {\n\t\tassertTrue(ArraysAndStrings.isUnique(UNIQUE_CHARACTERS));\n\t}", "@Override\r\n\tprotected boolean isRefactoringSupportedForDialect(HibernateDialect dialect)\r\n\t{\r\n\t\treturn dialect.supportsAddUniqueConstraint();\r\n\t}", "@Test\n public void noEqualsID() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType2.setId(\"ID2\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, 1);\n courseTypeNull.setId(null);\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }", "public void verify_AddSubCategory_DuplicateRecord(String maincategoryname, String subcategoryname, String assignorder,String errorMsg) {\n\t\t\t\t\tboolean bstatus;\n\t\t\t\t\tselect_MainCategoryName(maincategoryname);\n\t\t\t\t\tedit_SubCategoryName(subcategoryname);\n\t\t\t\t\tselect_AssignedOrderValue(assignorder);\n\t\t\t\t\tclick_SubmitButton();\n\t\t\t\t\tbstatus = verifyText(error_SubCategoryNameExist,errorMsg); //Sub Category Name was already exist\n\t\t\t\t\tReporter.log(bstatus, \"Error message displayed as Sub Category Name was already exist\",\n\t\t\t\t\t\t\t\"Error message not displayed as Sub Category Name was already exist\");\n\n\t\t\t\t}", "@org.junit.Test\r\n public void testGetReviewById2() throws Exception {\r\n System.out.println(\"getReviewById2\");\r\n Long id = null;\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n try{\r\n Review result = service.getReviewById(id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null id\");\r\n }", "@org.junit.Test\r\n public void testInsertReview4() throws Exception {\r\n System.out.println(\"insertReview4\");\r\n Review review = new Review(new Long(0), \"Max\", null, \"It's excellent\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null rating\");\r\n }", "public void setReviews(Set<Review> reviews) {\n this.reviews = reviews;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserreviewhistoryEntity)) {\n return false;\n }\n UserreviewhistoryEntity other = (UserreviewhistoryEntity) object;\n if ((this.idUserReviewHistory == null && other.idUserReviewHistory != null) || (this.idUserReviewHistory != null && !this.idUserReviewHistory.equals(other.idUserReviewHistory))) {\n return false;\n }\n return true;\n }", "public void testValidateSubjectPrimaryAssociationsDuplicate() throws Exception {\n positionWrapperBean.addNewSubjectPrimaryAssociation();\n positionWrapperBean.addNewSubjectPrimaryAssociation();\n List subjectPrimaryAssociations = positionWrapperBean.getSubjectPrimaryAssociations();\n for (int i = 0; i < subjectPrimaryAssociations.size(); i++) {\n ArtefactAssociationWrapperBean artefactAssociationWrapperBean = (ArtefactAssociationWrapperBean) subjectPrimaryAssociations.get(i);\n artefactAssociationWrapperBean.setSourceId(new Long(12));\n artefactAssociationWrapperBean.setQualifierId(new Long(399));\n }\n // should produce a duplicate assocition error\n DataBinder binder = new DataBinder(positionWrapperBean, ZynapDefaultFormController.DEFAULT_COMMAND_NAME);\n Errors errors = binder.getBindingResult();\n positionValidator.validateSubjectPrimaryAssociations(positionWrapperBean, errors);\n assertEquals(1, errors.getErrorCount());\n FieldError error = errors.getFieldError(FIRST_PRIMARY_ASSOCIATION_SOURCE_FIELD);\n assertEquals(\"error.association.target.unique.required\", error.getCode());\n }", "private boolean checkMovieRedundancyByTitle(ArrayList<Movie> movies, String title)\n { \n for (Movie film : movies)\n {\n String head = film.getTitle();\n \n if (head.equalsIgnoreCase(title))\n {\n System.out.println(\"\\n\\t\\t >>>>> Sorry, \" + title.toUpperCase() + \" is already EXIST in database <<<<< \");\n displayOneFilm(film);\n return true;\n }\n }\n \n return false;\n }", "public void setReviewType(java.lang.String value);", "@org.junit.Test\r\n public void testInsertReview1() throws Exception {\r\n System.out.println(\"insertReview1\");\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n Review result = service.insertReview(review);\r\n assertEquals(review, result);\r\n }", "public static boolean insertGooglePlayReview(SQLiteDatabase db, String javaPackageName,\n String appVersionCode, int appVersionName,\n String reviewerLanguage, String device,\n String reviewSubmitted, int reviewSubmittedTimeInMsecs,\n String reviewLastUpdated, int reviewLastUpdatedInMsecs,\n int starRating, String reviewTitle, String reviewText,\n String developerReply, int developerReplyTimeInMsecs,\n String developerReplyText, String reviewURL) {\n ContentValues reviewValues = new ContentValues();\n reviewValues.put(PACKAGE, javaPackageName);\n reviewValues.put(APP_VERSION_CODE, appVersionCode);\n reviewValues.put(APP_VERSION_NAME, appVersionName);\n reviewValues.put(REVIEWER_LANGUAGE, reviewerLanguage);\n reviewValues.put(DEVICE, device);\n reviewValues.put(REVIEW_SUBMITTED, reviewSubmitted);\n reviewValues.put(REVIEW_SUBMITTED_MILLIS, reviewSubmittedTimeInMsecs);\n reviewValues.put(REVIEW_LAST_UPDATED, reviewLastUpdated);\n reviewValues.put(REVIEW_LAST_UPDATED_MILLIS, reviewLastUpdatedInMsecs);\n reviewValues.put(STAR_RATING, starRating);\n reviewValues.put(REVIEW_TITLE, reviewTitle);\n reviewValues.put(REVIEW_TEXT, reviewText);\n reviewValues.put(DEVELOPER_REPLY, developerReply);\n reviewValues.put(DEVELOPER_REPLY_MILLIS, developerReplyTimeInMsecs);\n reviewValues.put(DEVELOPER_REPLY_TEXT, developerReplyText);\n reviewValues.put(REVIEW_LINK, reviewURL);\n\n return insertReview(db, reviewValues);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = getIntent();\n\t\t\t\tint pos = intent.getIntExtra(\"position\", 0);\n\t\t\t\tint uid = intent.getIntExtra(\"userid\", -1);\n\t\t\t\tString review =et_review.getText().toString();\n\t\t\t\tfloat rate = rating.getRating();\n\t\t\t\tif(db.saveReview(uid,pos,review,rate,review_given) >0 )\n\t\t\t\t\t{\n\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Review Saved!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t review_given=false;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Review given already!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "private boolean isUniqueEntity(Entity newEnt, int layerId) {\n for (Entity ent: getList(layerId)){\n if (ent.get_uid().equals(newEnt.get_uid())){\n return false;\n }\n }\n return true;\n }", "@ApiModelProperty(value = \"The id of the service user that reviewed the submission.\")\n\n\n public String getReviewedBy() {\n return reviewedBy;\n }", "private void HaveDuplicate() {\n haveDuplicate = false;\n duplicateCounter = 0;\n try {\n query=\"SELECT * FROM category WHERE category_id = '\"+ txtCategoryNo.getText() +\"' OR category_name = '\"+\n txtCategoryName.getText() + \"'\";\n rset = connection.createStatement().executeQuery(query);\n while (rset.next()) {\n haveDuplicate = true;\n duplicateCounter++;\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "protected Review() {}", "public String getAddUniqueConstraintString(String constraintName) {\n return \" add constraint \" + constraintName + \" unique \";\n }", "public void insert(ReviewRecord review){\n\t\t super.doInsert(review);\n\t}", "public interface UniqueValidable {\n\n boolean isUnique(String fieldName, String value);\n\n}", "@Test(timeout = 4000)\n public void test125() throws Throwable {\n DBCatalog dBCatalog0 = new DBCatalog();\n DBSchema dBSchema0 = new DBSchema(\"}{,65x^HxS\", dBCatalog0);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"%@gEV{P$8\", dBSchema0);\n String[] stringArray0 = new String[3];\n DBPrimaryKeyConstraint dBPrimaryKeyConstraint0 = new DBPrimaryKeyConstraint(defaultDBTable0, \"}{,65x^HxS\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.NEVER;\n String string0 = SQLUtil.ukSpec(dBPrimaryKeyConstraint0, nameSpec0);\n assertEquals(\"UNIQUE (, , )\", string0);\n }", "@PostMapping(\"/trails\")\n public String addReview(@RequestParam(value=\"trailId\") long trailId, @ModelAttribute Review review){\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n Trail trail = trailsDao.getOne(trailId);\n review.setCreatedAt(dtf.format(now));\n review.setUser((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal());\n review.setTrail(trail);\n\n trail.getReviewsList().add(review);\n reviewsDao.save(review);\n return \"redirect:/trails\";\n }", "public boolean validatePropertyBasedStatement_IDMustBeUnique(PropertyBasedStatement propertyBasedStatement, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn propertyBasedStatement.IDMustBeUnique(diagnostics, context);\n\t}", "public String getUniqueField() {\n return uniqueField;\n }", "public void postReview(Review review)\n\t{\n\t\t// The new review ID is the last review ID + 1\n\t\treview.setId(list.get(list.size()-1).getId() + 1);\n\t\t\n\t\t// Add the review to the list\n\t\tlist.add(review);\n\t}", "public Review(String authorUsername, Integer game_id, Integer givenRating,\n\t\t\tString reviewText, Timestamp reviewDate) {\n\t\tthis.authorUsername = authorUsername;\n\t\tthis.game_id = game_id;\n\t\tthis.givenRating = givenRating;\n\t\tthis.reviewText = reviewText;\n\t\tthis.reviewDate = reviewDate;\n\t}", "@org.junit.Test\r\n public void testInsertReview2() throws Exception {\r\n System.out.println(\"insertReview2\");\r\n Review review = new Review(new Long(0), null, 9, \"It's excellent\");\r\n try{\r\n Review result = service.insertReview(review);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null author name\");\r\n }", "public void fillReviews(int totalEntries) {\n StoreAPI storeOperations = new StoreAPIMongoImpl();\n for (int i = 0; i < totalEntries; i++) {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n int getRandomUserId = getRandomNumber(0, 999);\n Fairy fairy = Fairy.create();\n TextProducer text = fairy.textProducer();\n storeOperations.postReview(i, \"user_\" + getRandomUserId, \"password_\" + getRandomUserId, (long) getRandomNumber(0, 9999), getRandomNumber(1, 5), text.paragraph(getRandomNumber(1, 5)), dateFormat.format(date));\n }\n }", "@org.junit.Test\r\n public void testUpdateReview7() throws Exception {\r\n System.out.println(\"updateReview7\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", 2, \"\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted empty review text\");\r\n }", "@org.junit.Test\r\n public void testUpdateReview5() throws Exception {\r\n System.out.println(\"updateReview5\");\r\n Long id = new Long(0);\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", null, \"Disappointing\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null rating\");\r\n }", "private static boolean checkDuplicateDocName(User user, String name) {\n\n\t\t// Check if document name is already in user's documents\n\t\tboolean isInvalid = false;\n\n\t\tfor(@SuppressWarnings(\"unchecked\")\n\t\tIterator<Document> iter = user.getDocumentList().iterator(); iter.hasNext(); ) {\n\t\t\tDocument doc = iter.next();\n\t\t\tif(doc.getDocName().equals(name)) {\n\t\t\t\tisInvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isInvalid;\n\t}", "public void setReviewedBy(java.lang.String value);", "public boolean isEveryIdValid()\n {\n return(idValidation.size()==0);\n }", "public void setReview(List<ReviewType> review) {\n\t this.review = review;\n\t}", "static void generateUnique(Table table, Key key, PrintWriter outData, String mcomma)\r\n {\r\n String comma = \" ( \";\r\n String keyname = key.name.toUpperCase();\r\n if (keyname.indexOf(table.name.toUpperCase()) == -1)\r\n keyname = table.name.toUpperCase()+\"_\"+keyname;\r\n outData.println(mcomma+\"CONSTRAINT \"+keyname+\" UNIQUE\");\r\n for (int i=0; i<key.fields.size(); i++, comma = \" , \")\r\n {\r\n String name = (String) key.fields.elementAt(i);\r\n outData.println(comma+name);\r\n }\r\n outData.println(\" )\");\r\n for (int i=0; i < key.options.size(); i++)\r\n {\r\n String option = (String) key.options.elementAt(i);\r\n outData.println(\" \"+option);\r\n }\r\n }", "public void checkIfDuplicatesExist(ArrayList<ItemCategory> itemCategories) throws NewException {\n Set<Integer> idset = new HashSet<>();\n Set<String> categorySet = new HashSet<>();\n for (ItemCategory itemCategorie : itemCategories) {\n if (idset.contains(itemCategorie.getId())) {\n throw new NewException(\"Category\", itemCategorie.getLine(), \"no duplicates are allowed\");\n } else if (categorySet.contains(itemCategorie.getCategory())) {\n throw new NewException(\"Category\", itemCategorie.getLine(), \"no duplicates are allowed\");\n } else {\n categorySet.add(itemCategorie.getCategory());\n idset.add(itemCategorie.getId());\n }\n }\n }", "@Test\n\tpublic void test() {\n\t\tString r1 = CGroup.createRandomId();\n\t\tassertTrue(r1.matches(\"[0-9]+\"));\n\t\t\n\t\tString r2 = CGroup.createRandomId();\n\t\tassertFalse(r1.equals(r2));\n\t}", "public boolean isDuplicate(IDecodedDeviceRequest<?> request) throws SiteWhereException;", "@Override\n public int hashCode() {\n return 1;\n }", "Builder addReview(Review value);", "@org.junit.Test\r\n public void testUpdateReview2() throws Exception {\r\n System.out.println(\"updateReview2\");\r\n Long id = null;\r\n Review review = new Review(new Long(0), \"Max\", 9, \"It's excellent\");\r\n service.insertReview(review);\r\n Review review2 = new Review(new Long(0), \"Jack\", 2, \"Disappointing\");\r\n try{\r\n Review result = service.updateReview(review2, id);\r\n }catch(BusinessException ex){\r\n return;\r\n }\r\n fail(\"Accepted null id\");\r\n }", "@SuppressWarnings({ \"unchecked\", \"static-access\" })\r\n\tpublic boolean checkArticleIsDuplicated(){\r\n\t\r\n\t\tnum_DupInDBLP = 0;\r\n\t\t\t\t\r\n\t\tCheckExist check = new CheckExist();\r\n\t\t\r\n\t\tnumberArray = (ArrayList<Integer>) check.CheckTitleSignaturePublications(dbsaPublicationCheckList).clone();\r\n\t\tduplicateNumber = numberArray.size();\r\n\t\t\r\n\t\tduplicationArtilce = false;\r\n\t\tif(numberArray.size() > 0){\r\n\t\t\tfor(int i = 0; i < numberArray.size(); i++)\r\n\t\t\t{\t\r\n\t\t\t\tmodel.setValueAt(true, numberArray.get(i), 8);\r\n\t\t\t\tresultsJTable.addRowToPaint(numberArray.get(i), Color.red);\r\n\t\t\t\tduplicationArtilce = true;\r\n\t\t\t\t\r\n\t\t\t\tnum_DupInDBLP ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgetFetcherInfo();\r\n\t\t//System.out.println(num_DupInDBLP);\r\n\t\tcheckDuplicateJButton.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\tDBSAApplication.statisticPanel.updateStatistic(num_Total);\r\n\t\treturn duplicationArtilce;\r\n\t}" ]
[ "0.5891075", "0.5561872", "0.55119985", "0.53885937", "0.52667755", "0.5223725", "0.5220809", "0.52040285", "0.5182417", "0.5169814", "0.5167875", "0.51653355", "0.51009804", "0.5073665", "0.50062126", "0.49720538", "0.4936011", "0.49309832", "0.4888614", "0.4872263", "0.48592442", "0.48576397", "0.48444596", "0.48281854", "0.4781791", "0.4776252", "0.47396898", "0.47340995", "0.47131807", "0.47130376", "0.47014827", "0.4699473", "0.46937224", "0.46891227", "0.4679393", "0.4653771", "0.46488422", "0.4641659", "0.46292976", "0.46212336", "0.4615118", "0.46147588", "0.46135226", "0.4599414", "0.45878834", "0.45856526", "0.45828778", "0.45459446", "0.4541266", "0.45392054", "0.45354414", "0.4526959", "0.452693", "0.45231143", "0.45187548", "0.4515099", "0.4505258", "0.4502738", "0.4487738", "0.4486558", "0.44844806", "0.44812167", "0.44766182", "0.4465322", "0.44648102", "0.445814", "0.4457045", "0.44528502", "0.4448559", "0.44447687", "0.44408596", "0.4430623", "0.44292364", "0.44245332", "0.44235483", "0.44192204", "0.44129446", "0.44087726", "0.44087026", "0.44064498", "0.44048607", "0.4403899", "0.43993366", "0.43973663", "0.43888712", "0.43877766", "0.43864626", "0.43639922", "0.43637362", "0.43632895", "0.43592697", "0.4344772", "0.4341996", "0.43392658", "0.433836", "0.4335917", "0.4334397", "0.43330365", "0.43315047", "0.43305585", "0.4330254" ]
0.0
-1
Language in which the content of the Review is written.
public String getLocale() { return this.locale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLanguage();", "java.lang.String getLanguage();", "String getLanguage();", "String getLanguage();", "String getLanguage();", "public String getLanguage();", "public Object language() {\n return this.language;\n }", "CLanguage getClanguage();", "String getLang();", "@Override\n public String getContentLang() {\n return \"en\";\n }", "public String getContentLanguage() {\n return this.contentLanguage;\n }", "public String getLanguage() {\n return _language;\n }", "public String getLanguage() {\n return this.language;\n }", "public String getLanguage() {\r\n return language;\r\n }", "public String getLanguage()\n\t{\n\t\treturn language;\n\t}", "public String getLanguage() {\n return language;\n }", "public String getLanguage() {\n return language;\n }", "@DISPID(-2147413012)\n @PropGet\n java.lang.String language();", "@AutoEscape\n\tpublic String getLanguage();", "@objid (\"8b3ba8b8-4d09-4d8e-9064-983191cc6b26\")\n @Override\n public String getLanguage() {\n String language = Platform.getNL();\n if (language.contains(\"_\")) {\n return Platform.getNL().substring(0, language.lastIndexOf(\"_\"));\n }\n return Platform.getNL();\n }", "public Language getLanguage() {\n return this.language;\n }", "public static String getLanguage() {\n return language;\n }", "public java.lang.String getLanguage() {\n return _courseImage.getLanguage();\n }", "public String getLanguage() {\n return languageProperty.get();\n }", "public String getLanguage()\n {\n return mLanguage;\n }", "public String getUserLangage() {\n return sessionData.getUserLanguage();\n }", "public String getLanguage() {\n\t\treturn this.language;\n\t}", "@Override\n public String getLang() {\n if (request != null) {\n return GuideUtils.getAcceptLang(request);\n } else {\n return FormContainer.super.getLang();\n }\n }", "@DISPID(-2147413103)\n @PropGet\n java.lang.String lang();", "public java.lang.String getLanguage() {\n return language;\n }", "public java.lang.String getLanguage() {\n return language;\n }", "public Language getLanguage() {\n return this.language;\n }", "private static String getCurrentLanguageCode() {\n return Locale.getDefault().getLanguage();\n }", "public Language getLanguage() {\r\n\t\t\treturn lang;\r\n\t\t}", "public String getLang() {\n return lang;\n }", "public String getLanguage() {\n\t\treturn language;\n\t}", "public String getLanguage() {\n\t\treturn language;\n\t}", "public String getTargetLanguage()\n\t{\n\t\treturn targetLanguage;\n\t}", "public AVT getLang()\n {\n return m_lang_avt;\n }", "@Override\n\tpublic java.lang.String getTargetLanguage() {\n\t\treturn _scienceApp.getTargetLanguage();\n\t}", "public LanguageCode getLanguage() {\n return language;\n }", "java.lang.String getLanguageCode();", "java.lang.String getLanguageCode();", "public String getPreferredLanguage()\n {\n if (lsData == null)\n return null;\n else\n return lsData.language;\n }", "public String getLang() {\n return (String)getAttributeInternal(LANG);\n }", "public String getLanguage()\r\n\t{\r\n\t\treturn (String) queryParams.get(AUTH_LANGUAGE);\r\n\t}", "String getLanguageCode();", "@Override\r\n\t\tpublic String getLang()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public Language getLanguage()\n\t{\n\t\treturn m_language;\n\t}", "java.lang.String getTargetLanguageCode();", "public String getCurrentLanguage() {\n return getStringData(Key.APP_CURRENT_LANGUAGE + \"\", \"zh\");\n }", "public java.lang.String getLanguage()\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(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getLanguage()\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(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@Override\n public String getLanguage() {\n Object ref = language_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n language_ = s;\n return s;\n }\n }", "public String getLanguageType() {\n return languageType;\n }", "public String[] getLanguage() {\n return mSelf.getLanguage();\n }", "@java.lang.Override\n public java.lang.String getLanguage() {\n java.lang.Object ref = language_;\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 language_ = s;\n }\n return s;\n }\n }", "@Nullable\n public final String getLanguage() {\n return this.language;\n }", "public int getLanguageLevel() {\n return languageLevel;\n }", "public final String getLangAttribute() {\n return getAttributeValue(\"lang\");\n }", "public String getAuthorizedLang() {\n return (String)getAttributeInternal(AUTHORIZEDLANG);\n }", "public java.lang.String getLanguage() {\n java.lang.Object ref = language_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n language_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLang()\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(LANG$28);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public StrColumn getLanguage() {\n return delegate.getColumn(\"language\", DelegatingStrColumn::new);\n }", "LanguageDescription getDescription() {\n\t\treturn langDescription;\n\t}", "public javax.sip.header.ContentLanguageHeader getContentLanguage() {\n return (ContentLanguageHeader)\n getHeader(ContentLanguageHeader.NAME);\n \n }", "public String getLanguage() {\n Object ref = language_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n language_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getLanguageName() {\r\n return languageName;\r\n }", "public String getLanguages() {\n return languages;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLanguageBytes() {\n java.lang.Object ref = language_;\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 language_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLanguageKey();", "com.google.protobuf.ByteString\n getLanguageBytes();", "private String getLanguage(String fileName)\n {\n if (fileName.endsWith(\".C\"))\n {\n return \"C\";\n }\n else if (fileName.endsWith(\".Java\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".CPP\"))\n {\n return \"C++\";\n }\n else if (fileName.endsWith(\".Class\"))\n {\n return \"Java\";\n }\n if (fileName.endsWith(\".c\"))\n {\n return \"C\";\n }\n else if (fileName.endsWith(\".java\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".cpp\"))\n {\n return \"C++\";\n }\n else if (fileName.endsWith(\".class\"))\n {\n return \"Java\";\n }\n else if (fileName.endsWith(\".h\"))\n {\n return \"C\";\n }\n else\n {\n return \"??\";\n }\n }", "public String getLanguageMenuText() {\r\n\t\treturn \"语言\";\r\n\t}", "public Locale preferredLanguage() {\n return this.preferredLanguage;\n }", "com.google.protobuf.ByteString\n getLanguageBytes();", "com.google.protobuf.ByteString\n getLanguageBytes();", "public String getLanguageCode() {\n\t\treturn model.languageCode;\n\t}", "public String getLocale()\n {\n return (m_taskVector == null || m_taskVector.size() == 0) ?\n DEFAULT_LOCALE :\n taskAt(0).getSourceLanguage();\n }", "@Override\n public String returnlanguage() {\n name =\"Java\";\n return name;\n }", "com.google.ads.googleads.v6.resources.LanguageConstant getLanguageConstant();", "public String returnLanguage() {\n\t\treturn this.registration_language.getAttribute(\"value\");\r\n\t}", "public String getGuiTranslationLanguageIso() {\n final FxLanguage lang = getUserTicket().getLanguage();\n return FxSharedUtils.isTranslatedLocale(lang.getIso2digit())\n ? lang.getIso2digit().toLowerCase()\n : \"en\";\n }", "public java.lang.String getDefaultLanguage() {\n return defaultLanguage;\n }", "@Override\n public com.google.protobuf.ByteString\n getLanguageBytes() {\n Object ref = language_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n language_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getOppositeLanguage() {\n if (this._language == WORD_LANGUAGE_ENGLISH) {\n return WORD_LANGUAGE_POLISH;\n } else {\n return WORD_LANGUAGE_ENGLISH;\n }\n }", "public static String getCurrentLanguage() {\n\t\tif ( currentLanguage == null || currentLanguage.isEmpty() ) {\r\n\t\t\tcurrentLanguage = Locale.getDefault().getLanguage();\r\n\t\t}\r\n\t\treturn currentLanguage;\r\n\t}", "java.lang.String getSourceLanguageCode();", "public String getLangCode() {\n\t\treturn langCode;\n\t}", "public String getLanguage() {\n\t\tif (language == null)\n\t\t throw new IllegalStateException(\"Should be impossible; missing build.language in test.properties!\");\n\t\treturn language.toLowerCase(Locale.US);\n\t}", "public String getLanguageId() {\r\n\t\treturn this.languageId;\r\n\t}", "public String getLangMeaning() {\n return (String) getAttributeInternal(LANGMEANING);\n }", "public String[] getLanguages() {\n/* 238 */ return getStringArray(\"language\");\n/* */ }", "public static String getSavedLanguage(Context context) {\r\n\t\treturn getPreferences(context).getString(\"app-language\", null);\r\n\t}", "@ApiModelProperty(required = true, value = \"Language key of this category\")\n\n public LanguageEnum getLanguage() {\n return language;\n }", "protected String getLang(SharedPreferences prefs, Resources res) {\n Intent intent = getIntent();\n if (intent != null) {\n String lang = intent.getStringExtra(RecognizerIntent.EXTRA_LANGUAGE);\n if (lang != null) {\n return lang;\n }\n }\n return PreferenceUtils.getPrefString(prefs, res, R.string.keyLanguage, R.string.defaultLanguage);\n }", "public String getLanguage() throws DynamicCallException, ExecutionException {\n return (String)call(\"getLanguage\").get();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ProgrammingLanguage \" + programmingLanguage + super.toString();\n\t}", "private String getSystemLanguage() {\n String language;\n if (System.getProperty(COUNTRY) == null) {\n language = System.getProperty(LANGUAGE);\n } else {\n language = System.getProperty(LANGUAGE) + \"-\"\n + System.getProperty(COUNTRY).toLowerCase(Locale.ENGLISH);\n }\n return language;\n }", "public static Language getAD_Language() {\n\t\treturn null;\r\n\t}", "@Override\n protected String[] onGetLanguage() {\n return mCurrentLanguage;\n }" ]
[ "0.7494302", "0.7494302", "0.73746693", "0.73746693", "0.73746693", "0.7338278", "0.7181001", "0.7113608", "0.70672876", "0.7056853", "0.696731", "0.6884503", "0.6847113", "0.6836476", "0.6823378", "0.68170756", "0.68170756", "0.6801259", "0.6800132", "0.6782883", "0.67806655", "0.67689216", "0.67569995", "0.6752391", "0.67512214", "0.67448086", "0.67386645", "0.6738066", "0.6730076", "0.6729475", "0.6729475", "0.67271256", "0.6706531", "0.6674316", "0.66626763", "0.66475534", "0.66475534", "0.66402453", "0.66208935", "0.66136557", "0.6595128", "0.6564123", "0.6564123", "0.65381867", "0.65261936", "0.65248954", "0.6464981", "0.64476436", "0.64210314", "0.6416006", "0.6415855", "0.6415753", "0.6415753", "0.641396", "0.6406708", "0.6382398", "0.637263", "0.6372553", "0.6356591", "0.63270783", "0.6318815", "0.6313487", "0.6289921", "0.62896323", "0.6289007", "0.6253398", "0.62533027", "0.6169551", "0.61648387", "0.61546093", "0.61543524", "0.61537236", "0.61509675", "0.6150908", "0.6139103", "0.61381775", "0.6130999", "0.6107076", "0.6102917", "0.61018676", "0.60882866", "0.6086528", "0.6084866", "0.6076467", "0.60716236", "0.60604376", "0.60483533", "0.6045065", "0.6031375", "0.6002847", "0.5998216", "0.599365", "0.59868103", "0.59860605", "0.5973433", "0.5959148", "0.5939528", "0.5932447", "0.59206283", "0.59190905", "0.59187937" ]
0.0
-1
Name of the author.
public String getAuthorName() { return this.authorName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return mAuthorName;\n }", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "public String getAuthor()\r\n {\r\n return(\"Judy O'Brien\");\r\n }", "String getAuthorName();", "@Override\n\tpublic String author() {\n\t\treturn author;\n\t}", "public String getAuthor() {\r\n\t\treturn author;\r\n\t}", "public String getAuthorUsername() {\n\t\treturn authorUsername;\n\t}", "public java.lang.String getAuthor() {\n return author;\n }", "public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}", "public java.lang.String getAuthor() {\n return author;\n }", "private static String authorLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, NAME_STR, NAME);\n }", "@Override\n\tpublic String getAuthor() {\n\t\treturn \"\";\n\t}", "public String getAuthor() { return author_; }", "public String getAuthor() {\r\n return author;\r\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n\t\treturn null;\r\n\t}", "public String getAuthor() {\n return mAuthor;\n }", "public String getAuthor() {\n return (String)getAttributeInternal(AUTHOR);\n }", "@Override\r\n\tpublic String getAuthor() {\n\t\treturn super.getAuthor();\r\n\t}", "public String getAuthor()\r\n {\r\n return (m_author);\r\n }", "@Override\n\tpublic java.lang.String getAuthor() {\n\t\treturn _news_Blogs.getAuthor();\n\t}", "public String getAuthor() {\n\t\treturn auth;\n\t}", "@Override\n public String toString() {\n return getAuthor().getName();\n }", "public String getAuthorFullName() {\r\n String fullAuthorName = \"\";\r\n\r\n fullAuthorName = author.getAuthorFullName();\r\n return fullAuthorName;\r\n }", "public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }", "public void setAuthorName(String authorName) {\n this.authorName = authorName;\n }", "public String getAuthor();", "String getAuthor();", "String getAuthor();", "default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}", "public void printAuthor()\n {\n System.out.println(\"by: \" + author);\n }", "@Override\r\n\tpublic String getTagName() {\n\t\treturn \"author\";\r\n\t}", "public String getAuthor() {\n\treturn author;\n}", "public String getAuthor() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_author == null)\n jcasType.jcas.throwFeatMissing(\"author\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_author);}", "public String getAuthor(){\n return author;\n \n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:author\")\n public String getAuthor() {\n return getProperty(AUTHOR);\n }", "public String getAuthorLastName() {\r\n return author.getLastName();\r\n }", "public String getAuthor() {\n\t\tint start = \"Author:\".length();\n\t\tint end = author.indexOf('<');\n\t\tString parsed = author.substring(start, end).trim();\n\t\treturn parsed;\n\t}", "@Override\n public void author_()\n {\n }", "public String getAuthor() {\n \treturn metricMetadata.getAuthor();\n }", "private String getAuthor(CloudEntity post) {\n if (post.getCreatedBy() != null) {\n return \" \" + post.getCreatedBy().replaceFirst(\"@.*\", \"\");\n } else {\n return \"<anonymous>\";\n }\n }", "private String getAuthor(CloudEntity post) {\n if (post.getCreatedBy() != null) {\n return \" \" + post.getCreatedBy().replaceFirst(\"@.*\", \"\");\n } else {\n return \"<anonymous>\";\n }\n }", "private String getAuthorUsername(UIMessage message) {\r\n\t\tString toReturn = \"<Author-Not-Found>\";\r\n\t\ttry {\r\n\t\t\ttoReturn = facade.getMemberByID(message.getAuthorID()).getUsername();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\t// do nothing - return a default user-name\r\n\t\t}\r\n\t\treturn toReturn;\t\t\r\n\t}", "public Author getAuthor() {\n\t\treturn this.author;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn author;\n\t}", "public String printAuthor(){\n System.out.println();\n return author;\n }", "public IPerson getAuthor() {\n\t\treturn fAuthor;\n\t}", "public String getAuthorisor()\n\t{\n\t\treturn authorisor;\n\t}", "public void setAuthor(String author) {\r\n this.author = author;\r\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public void setAuthor(String author) {\n this.author = author;\n }", "public String getScientificNameAuthorship() {\n return scientificNameAuthorship;\n }", "public void setAuthor(String value) {\n setAttributeInternal(AUTHOR, value);\n }", "public String getAuthorId() {\n return authorId;\n }", "@Override\n public void author()\n {\n }", "public String getBookAuthor() {\n return bookAuthor;\n }", "public IUser getAuthor() {\n\t\treturn message.getAuthor();\n\t}", "public void setAuthor(String author) {\r\n\t\tthis.author = author;\r\n\t}", "public Author getAuthor() {\r\n return author;\r\n }", "public String getCreateAuthor() {\n return createAuthor;\n }", "public String getAuthor(){return author;}", "@Override\n\tpublic long getAuthorId() {\n\t\treturn _scienceApp.getAuthorId();\n\t}", "public abstract String getAuthor();", "public void setAuthor(String author) {\n\tthis.author = author;\n}", "@Override\n public String toString() {\n return bookName + \"-\" + authorName;\n }", "public void setAuthor(String author) {\n\t\tauth = author;\n\t}", "public void setAuthor(String author)\r\n {\r\n m_author = author;\r\n }", "public User getAuthor() {\n return author;\n }", "private String getOpinionAuthor() {\n String opinion = opinionView.getSelectionModel().getSelectedItem();\n String username = \"\";\n int i = 0;\n while (opinion.charAt(i) != ' '){\n username += opinion.charAt(i);\n i++;\n }\n return username;\n }", "public String getName() {\r\n\t\treturn username;\r\n\t}", "public final void author() throws RecognitionException {\n Token ID1=null;\n\n try {\n // /Users/valliant/Projects/java/CFML/cfml.parsing/antlr/Javadoc.g:13:8: ( '@author' ID )\n // /Users/valliant/Projects/java/CFML/cfml.parsing/antlr/Javadoc.g:13:10: '@author' ID\n {\n match(input,7,FOLLOW_7_in_author42); \n\n ID1=(Token)match(input,ID,FOLLOW_ID_in_author44); \n\n System.out.println(\"author \"+(ID1!=null?ID1.getText():null));\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public String getModifiAuthor() {\n return modifiAuthor;\n }", "@ApiModelProperty(value = \"The event author WordPress post ID\")\n public Integer getAuthor() {\n return author;\n }", "public String toString() {\n return authorName + \" - \" + timestamp + \": \" + text;\n }", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "public final native String getAuthor() /*-{\n return this.getAuthor();\n }-*/;", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public java.lang.String getAuthor()\n\tthrows java.rmi.RemoteException\n {\n\ttry {\n\t Object $result = ref.invoke(this, $method_getAuthor_0, null, 5683193999863030062L);\n\t return ((java.lang.String) $result);\n\t} catch (java.lang.RuntimeException e) {\n\t throw e;\n\t} catch (java.rmi.RemoteException e) {\n\t throw e;\n\t} catch (java.lang.Exception e) {\n\t throw new java.rmi.UnexpectedException(\"undeclared checked exception\", e);\n\t}\n }", "public String getAuthors() {\n return getProperty(Property.AUTHORS);\n }", "public String getLastUpdateAuthor() {\n return (String)content.get(LAST_UPDATE_AUTHOR);\n }", "public String getCanonicalAuthorName(GitCommit commit) {\n return getCanonicalName(commit.getAuthorName(), commit.getAuthorEmailAddress());\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}" ]
[ "0.8647248", "0.8647248", "0.84674", "0.84214926", "0.82505655", "0.8214729", "0.8214422", "0.81705415", "0.81068885", "0.80757755", "0.8057745", "0.80305576", "0.79773873", "0.7967369", "0.79397154", "0.7938078", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.79139864", "0.78603697", "0.7800442", "0.77901244", "0.7744627", "0.7692327", "0.7633291", "0.7626768", "0.76232594", "0.76071686", "0.76022774", "0.76022774", "0.75933933", "0.75860965", "0.75860965", "0.75645137", "0.75131917", "0.75048107", "0.7503093", "0.749389", "0.7488774", "0.7456496", "0.74324846", "0.7414906", "0.7340058", "0.72923315", "0.72694963", "0.72694963", "0.72555023", "0.72099704", "0.7175681", "0.7166426", "0.7130436", "0.7089624", "0.7071519", "0.70270675", "0.70270675", "0.70270675", "0.70270675", "0.70270675", "0.7017666", "0.70042455", "0.70035166", "0.700037", "0.6995915", "0.6974044", "0.69714755", "0.6955452", "0.6927874", "0.68683314", "0.68556064", "0.6851608", "0.6840066", "0.6784158", "0.6775617", "0.67738295", "0.6768141", "0.6762437", "0.67390394", "0.67308104", "0.6725754", "0.672291", "0.67132384", "0.6711521", "0.6709568", "0.6682316", "0.6682316", "0.6682316", "0.6650445", "0.6648756", "0.6637457", "0.6635977", "0.6603017" ]
0.8647825
0
Title of the Review.
public String getTitle() { return this.title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n String getTitle();", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _scienceApp.getTitle();\n\t}", "public String getTitle(){\n\n\t\treturn title;\n\t}", "public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\n \t\treturn title;\n \t}", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle() {\n return titleName;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "@Override\r\n public String getTitle() {\n return title;\r\n }", "public String getTitle() {\r\n return _title;\r\n }", "@Override\r\n public String getTitle() {\r\n return title;\r\n }" ]
[ "0.7560088", "0.75534487", "0.75297314", "0.75177383", "0.75016093", "0.74994606", "0.74994606", "0.7482387", "0.7480349", "0.7473551", "0.74695116", "0.74695116", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74691916", "0.74685645", "0.74685645", "0.7461217", "0.7461217", "0.7461217", "0.7461217", "0.7461217", "0.7461217", "0.7461217", "0.74448955", "0.7440876", "0.7437405", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.743428", "0.7433291", "0.7433291", "0.7433291", "0.743311", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.74293953", "0.7426575", "0.7425208", "0.74245346" ]
0.0
-1
Content of the Review.
public String getText() { return this.text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReviewText() {\n\t\treturn this.reviewText;\n\t}", "public String getReviewText() {\n\t\treturn reviewText;\n\t}", "public String toString() {\n return review;\n }", "@java.lang.Override\n public com.google.cloud.recommender.v1.RecommendationContent getContent() {\n return content_ == null\n ? com.google.cloud.recommender.v1.RecommendationContent.getDefaultInstance()\n : content_;\n }", "public String getContent() {\r\n return content;\r\n }", "public String getContent() {\r\n return content;\r\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return content_;\n }", "public String getContent() {\n return content_;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getReview(){\n\t\treturn this.review;\n\t}", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\n return instance.getContent();\n }", "public String getContent() {\r\n \r\n return text;\r\n }", "public String getContent() {\n\t return content;\n }", "public String getContent() { return this.content; }", "public String getContent() {\n\t\treturn content.toString();\n\t}", "public String getContent() {\r\n\t\treturn content;\r\n\t}", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return content_;\n }", "public String getContent() {\n return content_;\n }", "public String getContent() {\n\t\treturn content;\n\t}", "public String getContent() {\n\t\treturn content;\n\t}", "public String getContent() {\n\t\treturn content;\n\t}", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "public String getContent() {\n return this.m_content;\n }", "public String getContent() {\r\n\t\treturn this.content;\r\n\t}", "public java.lang.String getContent() {\n return content;\n }", "public String getContent();", "public java.lang.String getContent() {\n return content;\n }", "public PostContent getContent() {\n return content;\n }", "@Override\n\tpublic String getContent() {\n\t\treturn promotionLineItem.getContent();\n\t}", "public String getContent(){\n return content.getText().toString();\n }", "@Override\n\tpublic\n\tObject getContent() {\n\t\treturn this.content;\n\t}", "@Override\n public String toString() {\n return this.content.toString();\n }", "public String getContent() {\n\t\treturn mContent;\n\t}", "public java.lang.String getContent () {\n\t\treturn content;\n\t}", "public java.lang.String getContent() {\n return this._content;\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();", "public java.lang.String getContent(\n ) {\n return this._content;\n }", "public com.google.cloud.recommender.v1.RecommendationContent getContent() {\n if (contentBuilder_ == null) {\n return content_ == null\n ? com.google.cloud.recommender.v1.RecommendationContent.getDefaultInstance()\n : content_;\n } else {\n return contentBuilder_.getMessage();\n }\n }", "static String reviewCard(Review review) {\n return \"\"\"\n <div class=\"card\">\n <label class=\"label\">\n \"\"\"\n + StringEscapeUtils.escapeHtml3(review.getReviewerName()) +\n \"\"\"\n </label>\n <p><span class=\"stars\">\n \"\"\"\n + review.getOverall() +\n \"\"\"\n /5 </span><span class=\"summary\">\n \"\"\" + StringEscapeUtils.escapeHtml3(review.getSummary()) + \"\"\"\n </span></p>\n <p>\n \"\"\"\n + StringEscapeUtils.escapeHtml3(review.getReviewText()) +\n \"\"\"\n </p>\n <p class=\"date\">\n \"\"\" + review.getReviewTime() + \"\"\"\n </p>\n </div>\n \"\"\";\n }", "@java.lang.Override\n public com.google.cloud.recommender.v1.RecommendationContentOrBuilder getContentOrBuilder() {\n return content_ == null\n ? com.google.cloud.recommender.v1.RecommendationContent.getDefaultInstance()\n : content_;\n }", "@Override\n public String toString() {\n return \"REVIEW FOR: \" +\n \"Book Title: '\" + title + '\\'' +\n \" Author: '\" + author + '\\'';\n\n }", "public Content getContent() {\n return this.content;\n }", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "public String getDiscussContent() {\n\t\treturn this.content;\r\n\t}", "public String getAnswercontent() {\n return answercontent;\n }", "public String getCommentContent() {\n return commentContent;\n }", "@Override\r\n \tpublic String toString() {\r\n \t\t//\tSystem.out.println(this.getClass());\r\n \t\tif (this.getContent()==null) {\r\n\t\t\treturn \"no content\";\r\n \t\t} else {\r\n \t\t\treturn this.getContent().toString();\r\n \t\t}\r\n \t}", "public Term getContent() {\n return content;\n }", "public String getViewContent() {\r\n\t\treturn viewContent;\r\n\t}", "public String toString() {\n\t\treturn content;\n\t}", "public String geteContent() {\n return eContent;\n }", "@Override\n public String get_content() {\n return _adContent;\n }", "@Override\n public void showReview() {\n }", "public String getQuestionContent() {\n return questionContent;\n }", "public String toString()\n {\n return content.toString();\n }", "public java.lang.String[] getReview() {\n return review;\n }", "public java.lang.CharSequence getContent() {\n return Content;\n }", "@Override\n public String toTxt() {\n return this.content;\n }", "@Override\n\tpublic String getContents() {\n\t\treturn this.contents;\n\t}", "public String getReplyContent() {\n return replyContent;\n }", "public java.lang.CharSequence getContent() {\n return Content;\n }", "public Review() {\n this.review_id = \"\";\n this.user_id = \"\";\n this.business_id = \"\";\n this.stars = 0;\n this.useful = 0;\n this.funny = 0;\n this.cool = 0;\n this.date = LocalDateTime.now();\n this.text = \"\";\n }", "public T getContent() {\n return content;\n }", "public String getContent()\n/* */ {\n/* 1329 */ return this.content;\n/* */ }", "public String describeContent(){\n String description;\n if (content != null){\n description = content.getDescription();\n } else {\n description = \"This chest is empty\";\n }\n return description;\n }" ]
[ "0.68847024", "0.6815954", "0.6780946", "0.66379654", "0.6632764", "0.6632764", "0.6629375", "0.6629375", "0.6624624", "0.6624624", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.6607785", "0.65961087", "0.65796274", "0.65796274", "0.6570412", "0.6565548", "0.6548935", "0.6534421", "0.65339375", "0.65294313", "0.65189767", "0.65189767", "0.65189767", "0.65189767", "0.6509838", "0.6509838", "0.6500486", "0.6500486", "0.6500486", "0.6498356", "0.64859205", "0.64642084", "0.6439609", "0.6429169", "0.6420011", "0.64064604", "0.6368471", "0.6357694", "0.63157016", "0.6311319", "0.62996984", "0.62841225", "0.62730783", "0.6247207", "0.6247207", "0.6247207", "0.6247207", "0.6247207", "0.6247207", "0.62119573", "0.6148393", "0.61463755", "0.6109381", "0.61033833", "0.6099195", "0.60580766", "0.60580766", "0.60580766", "0.60580766", "0.60580766", "0.60580766", "0.60580766", "0.60580766", "0.604209", "0.6038161", "0.6035096", "0.60315746", "0.6010276", "0.6000608", "0.5983638", "0.59662795", "0.59590775", "0.59434354", "0.59397525", "0.5937552", "0.5919433", "0.5919239", "0.5911493", "0.59074533", "0.590147", "0.58954847", "0.58914286", "0.5862957", "0.5860033", "0.58589405" ]
0.0
-1
A Reference represents a loose reference to another resource in the same Project identified by its id. The typeId indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like ChannelReference. A referenced resource can be embedded through Reference Expansion. The expanded reference is the value of an additional obj field then.
public com.commercetools.api.models.common.Reference getTarget() { return this.target; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IDatatype getReference() { \n\t\treturn myReference;\n\t}", "int getReferenceKind();", "public void setTypeId(final ReferenceTypeId typeId);", "public void setReferenceId(String refid) {\n this.refid = refid;\n }", "public void setRefId(String refId) {\n this.refId = refId;\n }", "HxType createReference(final HxType resolvedType);", "ReferenceKind getKind();", "TypeReference getTypeReference();", "HxType createReference(final String className);", "public void setRefId(java.lang.String refId) {\n this.refId = refId;\n }", "@NotNull\n @JsonProperty(\"typeId\")\n public ReferenceTypeId getTypeId();", "ReferenceLink createReferenceLink();", "public void setReference(Reference ref)\n {\n this.ref = ref;\n }", "public void setRefId (int refId)\n {\n this.refId = refId;\n }", "public void setReferenceId(E referenceId) {\n this.referenceId = referenceId;\n }", "public DatabaseReference getRef(String type) {\n return db.getReference(type);\n }", "public Binding setReference(IDatatype theValue) {\n\t\tmyReference = theValue;\n\t\treturn this;\n\t}", "PSObject getTypeReference();", "public void setRefId(Integer refId) {\n this.refId = refId;\n }", "public abstract byte getReferenceKind();", "public void setRefType(String refType) {\n this.refType = refType == null ? null : refType.trim();\n }", "public String getReferenceId();", "public String getReferenceId() {\n return refid;\n }", "public String getRefType() {\n return refType;\n }", "public void addReference() {\r\n mReferenced = true;\r\n }", "public String getReference();", "public String getReference();", "String getReferenceType();", "public abstract R createReference(T type, Object value);", "public void setReference(String reference) {\n this.reference = reference;\n }", "public void setReference(String reference) {\n this.reference = reference;\n }", "String getReference();", "String getReference();", "private Reference parseReference(Record record) {\n return new Reference(record.value(CommonTerms.identifierTerm),\n record.value(TermFactory.instance().findTerm(TermURIs.publicationTypeURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.fullReferenceURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.primaryTitleURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.titleURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.pagesURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.pageStartURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.pageEndURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.volumeURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.editionURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.publisherURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.authorsListURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.editorsListURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.createdURI)),\n record.value(CommonTerms.languageTerm),\n record.value(TermFactory.instance().findTerm(TermURIs.uriURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.doiURI)),\n record.value(TermFactory.instance().findTerm(TermURIs.localityOfPublisherURI)));\n }", "@Schema(example = \"inv_1815_ref_1\", description = \"ID for the reference of the API consumer.\")\n public String getReferenceId() {\n return referenceId;\n }", "public void addReference(Reference ref) {\n references.addElement(ref);\n }", "public final void mT__177() throws RecognitionException {\n try {\n int _type = T__177;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:177:8: ( 'typeRef' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:177:10: 'typeRef'\n {\n match(\"typeRef\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setReference(String reference);", "ReferenceProperty createReferenceProperty();", "java.lang.String getRef();", "public final void mT__175() throws RecognitionException {\n try {\n int _type = T__175;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:175:8: ( 'reference' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:175:10: 'reference'\n {\n match(\"reference\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public String getReference() {\n return reference;\n }", "public Reference() {\n super();\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public String getReference() {\n return reference;\n }", "public E getReferenceId() {\n return referenceId;\n }", "public final EObject ruleFieldReference() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n\n enterRule(); \n \n try {\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:265:28: ( (otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) ) )\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:266:1: (otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) )\n {\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:266:1: (otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) )\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:266:3: otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) )\n {\n otherlv_0=(Token)match(input,16,FOLLOW_16_in_ruleFieldReference526); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getFieldReferenceAccess().getRefKeyword_0());\n \n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:270:1: ( (otherlv_1= RULE_ID ) )\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:271:1: (otherlv_1= RULE_ID )\n {\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:271:1: (otherlv_1= RULE_ID )\n // ../org.xtext.example.helloscoping/src-gen/org/xtext/example/helloscoping/parser/antlr/internal/InternalHelloScoping.g:272:3: otherlv_1= RULE_ID\n {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getFieldReferenceRule());\n \t }\n \n otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleFieldReference546); \n\n \t\tnewLeafNode(otherlv_1, grammarAccess.getFieldReferenceAccess().getReferenceFieldCrossReference_1_0()); \n \t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public ReferenceType(Name name) {\n super(name.line, name.byteOffset);\n this.name = name;\n }", "ReferenceEmbed createReferenceEmbed();", "public final String getReference() {\n return reference;\n }", "public INamedReference<IEntity> getEntityRef();", "public void setReference(java.lang.String reference) {\n this.reference = reference;\n }", "public String getRef() {\n return ref;\n }", "public boolean isReference() {\n return isReference;\n }", "boolean references(ResourceElement<S, V> referred, ResourceElement<?, ?> refers);", "public java.lang.String getReference() {\n return reference;\n }", "EReference getModelReference();", "public Integer getRefId() {\n return refId;\n }", "public final void mT__232() throws RecognitionException {\n try {\n int _type = T__232;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:230:8: ( 'reference' )\n // InternalMyDsl.g:230:10: 'reference'\n {\n match(\"reference\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Nullable\n String getRef();", "ReferenceBound(ReferenceType boundType) {\n this.boundType = boundType;\n }", "public AssetRef retrieveRef(Long id) throws IOException, SQLException {\n String select = \"select definition_id, name, ref from ASSET_REF where definition_id = ?\";\n try (Connection conn = getDbConnection();\n PreparedStatement stmt = conn.prepareStatement(select)) {\n stmt.setLong(1, id);\n try (ResultSet rs = stmt.executeQuery()) {\n if (rs.next()) {\n return new AssetRef(rs.getString(\"name\"), id, rs.getString(\"ref\"));\n }\n }\n }\n return null;\n }", "public interface ReferencesFilter extends SerializableDataObjectFilter {\n\t/**\n\t * Returns the data object identifier of the reference a valid data object must contain.\n\t * @return Data object identifier.\n\t */\n\tpublic String getReferenceId();\n}", "public final boolean isReference() {\n \treturn !isPrimitive();\n }", "EReference getRelationReference();", "void setReference(String reference);", "public final void mREFERENCE() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = REFERENCE;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:413:10: ( '^^' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:413:16: '^^'\n\t\t\t{\n\t\t\tmatch(\"^^\"); \n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "@JsonGetter(\"reference\")\r\n public String getReference ( ) { \r\n return this.reference;\r\n }", "private Reference(IProject project, String id) {\n super();\n mProject = project;\n mId = id;\n }", "@UML(identifier=\"valueReference\", obligation=MANDATORY, specification=ISO_19143)\n ValueReference<? super R, ?> getValueReference();", "private static Object referenceValue(IDatatype type, Object value) {\n if (Reference.TYPE.isAssignableFrom(type)) {\n DisplayNameProvider nameProvider = DisplayNameProvider.getInstance();\n List<AbstractVariable> possibleDecls = ReferenceValuesFinder.findPossibleValues(\n de.uni_hildesheim.sse.qmApp.model.VariabilityModel.Configuration.INFRASTRUCTURE.getConfiguration()\n .getProject(), (Reference) type);\n for (int i = 0; i < possibleDecls.size(); i++) {\n AbstractVariable declaration = possibleDecls.get(i);\n String name = nameProvider.getDisplayName(declaration);\n if (name.equals(value)) {\n value = declaration;\n break;\n }\n }\n } \n return value;\n }", "public URI getReferenceUri() {\n return m_referenceUri;\n }", "private IncludeReference(@NotNull Project project, @NotNull String id) {\n myProject = project;\n myId = id;\n }", "public boolean canBeReferencedByIDREF() {\n/* 171 */ return false;\n/* */ }", "public ReferenceHelper getReferenceHelper();", "public void setReference1(java.lang.String reference1) {\n this.reference1 = reference1;\n }", "public abstract Reference getReference() throws NamingException ;", "public long getRefId() {\n return refId;\n }", "public Reference getReference() throws NamingException\n {\n return ref;\n }", "public java.lang.String getRefId() {\n return refId;\n }", "public void addReference(Ant.Reference r) {\r\n references.addElement(r);\r\n }", "@Override\n public final boolean isReferenceType() {\n return true;\n }", "public Chargeur(int reference, String intitule, float prix, Set<String> marques, Types type) {\r\n\t\tsuper(reference, intitule, prix, marques);\r\n\t\tthis.type = type;\r\n\t}", "public ObjectReference getObject();", "@JsonSetter(\"reference\")\r\n public void setReference (String value) { \r\n this.reference = value;\r\n }", "public ReferenceRemote getReferenceLocal()\n throws RemoteException, IOException {\n refObj = new ReferenceAdapter();\n return refObj;\n }", "public ObjectReference getObjectReference() {\n return new ObjectReferenceBuilder()\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withNamespace(getMetaspace())\n .withUid(getMetadata().getUid())\n .build();\n }", "public Dependency(final Reference reference) {\r\n\tthis(reference.getGroupId(), reference.getArtifactId(), reference.getVersion());\r\n }", "@JsonIgnore\r\n public String getReferenceId() {\r\n return OptionalNullable.getFrom(referenceId);\r\n }", "public void setRefId(long value) {\n this.refId = value;\n }", "@Override\n public ResolvedReferenceType asReferenceType() {\n return this;\n }", "@Override\n public String getText(Object object) {\n String label = ((Reference)object).getName();\n return label == null || label.length() == 0 ?\n getString(\"_UI_Reference_type\") :\n getString(\"_UI_Reference_type\") + \" \" + label;\n }", "public String getREFERENCE() {\r\n return REFERENCE;\r\n }", "public boolean isReference() {\n AnnotatedBase comp = m_item.getSchemaComponent();\n return comp instanceof IReference && ((IReference)comp).getRef() != null;\n }", "public String getRefNodeType() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn \"lfims:branchDetails\";\r\n\t\t\t\t\t}", "public void setResourceRef(Reference resourceRef) {\n this.resourceRef = resourceRef;\n }", "@Override\r\n\tpublic String getRefBillType() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getRefBillType() {\n\t\treturn null;\r\n\t}", "public T caseDefinitionReference(DefinitionReference object)\n {\n return null;\n }", "public void setReference(boolean isReference) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.REFERENCE_FLAG_MODIFIED, this )\n .setOldValue( this.isReference ).setNewValue( isReference ).buildEvent();\n\n this.isReference = isReference;\n publishEvent( event );\n }" ]
[ "0.6334168", "0.6214021", "0.6194556", "0.61843944", "0.6087203", "0.6052573", "0.60343844", "0.6021186", "0.5953315", "0.59147835", "0.59090734", "0.58817774", "0.5880409", "0.5869577", "0.5860991", "0.5845589", "0.58404785", "0.584023", "0.5825403", "0.5816867", "0.5773604", "0.5752007", "0.5744352", "0.57281893", "0.5663438", "0.5657884", "0.5657884", "0.56103826", "0.55804193", "0.5564587", "0.5564587", "0.5495887", "0.5495887", "0.5486451", "0.5482133", "0.5477255", "0.54646224", "0.5440283", "0.54303133", "0.5419877", "0.541659", "0.5390839", "0.5385487", "0.53848606", "0.53848606", "0.53848606", "0.5376281", "0.5375918", "0.53757083", "0.53474844", "0.5334293", "0.53137976", "0.53044313", "0.52867776", "0.52718735", "0.52504534", "0.52234197", "0.52156055", "0.52035415", "0.5187185", "0.51869833", "0.51769805", "0.5173523", "0.51605415", "0.5160209", "0.51585937", "0.5153987", "0.51267123", "0.5121285", "0.5121043", "0.5114475", "0.5097131", "0.5077091", "0.50716347", "0.50632006", "0.5049483", "0.50448495", "0.5043067", "0.503648", "0.5034588", "0.5033716", "0.5024739", "0.50211895", "0.5011581", "0.501156", "0.50091344", "0.500913", "0.5008604", "0.5005372", "0.49855134", "0.49780485", "0.497637", "0.49717653", "0.49706417", "0.49705788", "0.4969974", "0.49674684", "0.4951664", "0.4951664", "0.49422905", "0.49421942" ]
0.0
-1
Indicates if this Review is taken into account in the ratings statistics of the target. A Review is per default used in the statistics, unless the Review is in a state that does not have the role ReviewIncludedInStatistics. If the role of a State is modified after the calculation of this field, the calculation is not updated.
public Boolean getIncludedInStatistics() { return this.includedInStatistics; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReviewRatingStatistics(final ReviewRatingStatistics reviewRatingStatistics);", "public com.commercetools.api.models.review.ReviewRatingStatistics getReviewRatingStatistics() {\n return this.reviewRatingStatistics;\n }", "public Boolean isReviewState() {\n return this.isReviewState;\n }", "@Valid\n @JsonProperty(\"reviewRatingStatistics\")\n public ReviewRatingStatistics getReviewRatingStatistics();", "public boolean getReviewed() {\n\t\treturn this.reviewed;\n\t}", "public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenticated() && professionalStatus.isIsProfessional()) {\r\n Users user = ui.getUser();\r\n if (recipe != null) {\r\n for (Review rev : recipe.getReviews()) {\r\n if (rev.getReviewer().getUserName().equals(user.getUserName())) {\r\n result = true;\r\n break;\r\n }\r\n }//end for\r\n }\r\n }// end value != null\r\n return result;\r\n }", "public boolean isMatchRated() {\n return getBooleanProperty(\"IsRated\");\n }", "public boolean getIsPMReviewed() {\n if (review != null) {\n return review.isPMReviewed();\n } else {\n return false;\n }\n }", "public boolean isReviewMode() {\n return mIsReviewMode;\n }", "public boolean isApplicable(BlockState state, Player player) {\n if (getRewardLimit() == 0) {\n debug(\"Group \" + this.getName() + \" was skipped because it has a reward limit of 0\");\n return false;\n }\n if (!isWorldAllowed(player.getWorld().getName())) {\n debug(\"Player was denied access to rewards in reward group because the reward group is not allowed in this world.\");\n return false;\n }\n WorldGuardManager wgm = cmr.getWGManager();\n if (wgm.usingWorldGuard() && !wgm.isAllowedInRegions(this, state.getBlock())) {\n debug(\"Player was denied access to rewards in reward group because the reward group is not allowed in this region.\");\n return false;\n }\n return true;\n }", "boolean hasBonusStats();", "public Integer getRating() {\r\n if (recipe != null && ui.isIsUserAuthenticated()) {\r\n RecipeRating temp = ratingEJB.findByUserAndRecipe(ui.getUser(), recipe);\r\n if (temp != null) {\r\n rating = temp.getRatingValue().getValue();\r\n }\r\n }\r\n return rating;\r\n }", "public Integer getGivenRating() {\n\t\treturn givenRating;\n\t}", "public double getRating() {\n return rating_;\n }", "public boolean isReviewPositive()\n {\n return (m_nReviewValue == REVIEW_VALUE_POSITIVE) ? true : false ;\n }", "public double getRating() {\n return rating_;\n }", "public List<ReviewStat> getReviewStat() {\n\t\t\treturn reviewRepositorystatR.findReviewStat();\n\t\t}", "public boolean isSetVote_average() {\n return EncodingUtils.testBit(__isset_bitfield, __VOTE_AVERAGE_ISSET_ID);\n }", "public boolean hasBonusStats() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isRelevant() {\n return isRelevant;\n }", "public AggregationReview getReview() {\n return review;\n }", "public double getRating(){\n\t\treturn this.user_rating;\n\t}", "public boolean getUsageWeighted() {\n return usageWeighted; \n }", "public boolean hasBonusStats() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public double getTotalRating() {\n return totalRating;\n }", "boolean isTargetStatistic();", "@Override\n public boolean isStatisticsEnabled() {\n return counter != null && counter.isStatisticsEnabled();\n }", "public double getReview() {\r\n return review;\r\n }", "public boolean isOverrideAmount() {\n return overrideAmount;\n }", "public boolean getPopulateAvg() {\n return populateAvg;\n }", "public final boolean producesScores() {\n return producesScores;\n }", "public Boolean getIsRecommend() {\n return isRecommend;\n }", "public String getUserRating() {\n return userRating;\n }", "public int getHotOrNotRating() {\r\n if (ratingCount == 0) return 0;\r\n return (rating/ratingCount);\r\n }", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "public Boolean getIsCalculated() {\n return this.isCalculated;\n }", "public String getMyReviewed() {\n return myReviewed;\n }", "public Short getUserRating() {\r\n return userRating;\r\n }", "public double getRating() {\n\t\treturn rating;\n\t}", "public double calculateOverallRating() {\n Rating[] ratingArray = this.ratings;\n double sum = 0.0;\n for(int i = 0; i < ratingArray.length; i++) {\n if (ratingArray[i] != null) { // Making sure it has a rating\n sum = sum + ratingArray[i].getScore();\n } else {\n sum = sum + 0.0;\n }\n }\n return sum;\n }", "public void setHotOrNotRating(int rating) {\r\n this.rating += rating;\r\n ratingCount++;\r\n }", "public GiftCardProductQuery ratingSummary() {\n startField(\"rating_summary\");\n\n return this;\n }", "public double getReward() {\n if (inGoalRegion()) {\n return REWARD_AT_GOAL;\n } else {\n return REWARD_PER_STEP;\n }\n }", "String getReviewrate();", "public Integer getRating() {\n return this.rating;\n }", "public int getSumratings() {\n\treturn sumratings;\n}", "public int getNumberOfRatings() {\n return this.usersRatings.size();\n }", "public double rating() {\r\n double value = BASE_RATING * specialization * (1 / (1 + era)) \r\n * ((wins - losses + saves) / 30.0);\r\n return value;\r\n }", "public boolean isApplicable () {\n\t\treturn isFilterApplicable();\n\t}", "boolean hasScoringParams();", "public double getRating(){\n\t\treturn this.rating;\n\t}", "public Long getIsRevisable() {\n return isRevisable;\n }", "public boolean hasReward() {\n return result.hasReward();\n }", "public float getRating() {\n\t\treturn rating;\n\t}", "public int getOpponentMinRating() {\n return getIntegerProperty(\"MinRating\");\n }", "public Long getReviewerCount(){\n return User.count(\"from User u where u.status in (?1) and u.company = ?2 and (u.superReviewer = ?3 or u.reviewCategories IS NOT EMPTY)\",\n UserStatus.getStatusesConsideredInUse(), this, true);\n }", "void setReviewStats()\n {\n if (hasInfo)\n {\n curReviewPageNum = 1;\n WalmartRequestHelper walmartRequestHelper = new WalmartRequestHelper(itemID, curReviewPageNum);\n\n curReviewURL = walmartRequestHelper.getRequestURL();\n\n Integer numStars[] = new Integer[5];\n\n for (int i = 0; i < 5; i++)\n {\n numStars[i] = 0;\n }\n\n try\n {\n Document reviewResultPage = Jsoup.connect(curReviewURL).userAgent(\"Mozilla\")\n .ignoreHttpErrors(true).ignoreContentType(true).get();\n\n // Handles the rare case where the API gives an error.\n if (reviewResultPage.getElementsByTag(\"title\").text().equals(\"Error\"))\n {\n return;\n }\n\n Elements unparsedRatings = reviewResultPage.getElementsByTag(\"ratingCounts\");\n\n // Review statistics are only generated if ratings can be found.\n if (unparsedRatings.size() != 0)\n {\n for (int i = 0; i < unparsedRatings.size(); i++)\n {\n String unparsedRatingCount = unparsedRatings.get(i).getElementsByTag(\"count\").text();\n\n if (!unparsedRatingCount.equals(\"\"))\n {\n numStars[i] = Integer.parseInt(unparsedRatings.get(i).text());\n }\n else\n {\n // No ratings could be found\n numStars[i] = 0;\n }\n }\n\n reviewStats = new ReviewStats(numStars);\n }\n else\n {\n reviewStats = new ReviewStats(numStars);\n }\n }\n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n }\n }", "public float getRating() {\n return rating;\n }", "public float getRating() {\n return rating;\n }", "public double getAverageRating() {\n return averageRating;\n }", "public double getAverageRating() {\n return averageRating;\n }", "public float getRating() {\n return this.rating;\n }", "public double getOgRating() {\n return ogRating;\n }", "public boolean getSpreadActualCost()\r\n {\r\n return (m_spreadActualCost);\r\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof Rating)) return false;\n Rating rating = (Rating) o;\n return Double.compare(rating.getAverageRating(), getAverageRating()) == 0 &&\n getCount() == rating.getCount() &&\n getMaxRating() == rating.getMaxRating() &&\n getMinRating() == rating.getMinRating();\n }", "private boolean modifiable() {\n // Only allow un-answered tests/surveys to be modified\n return this.completed.size() == 0;\n }", "public boolean getShowNarration()\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(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWNARRATION$18);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "public Boolean isPremium() {\n return this.isPremium;\n }", "@Nullable\n public Float getRating() {\n return rating;\n }", "public Boolean isPSMSetScore() {\n return false;\n }", "public Integer getSellerRateStatus() {\n return sellerRateStatus;\n }", "Boolean getIsSummary();", "@JsonIgnore\n public boolean isWeightStrategySet() { return isSet.contains(\"weightStrategy\"); }", "public int getSeekerRating() {\n return getIntegerProperty(\"Rating\");\n }", "@Override\r\n\tpublic Double getPropensity_loan_score() {\n\t\treturn super.getPropensity_loan_score();\r\n\t}", "public Boolean isPremium() {\n return this.isPremium;\n }", "public double getBonusAwarded() {\n return bonusAwarded;\n }", "Boolean getAccruedInterest();", "@Override\n\tpublic float calculateRunRate() {\n\t\tint remaingrun=Math.abs((super.getTarget()-super.getCurrentscore()));\n\t\tfloat remaingOver=20-super.getCurrentover();\n\t\treturn remaingrun/remaingOver;\n\t}", "public boolean isRolModified()\n\t{\n\t\treturn rolModified;\n\t}", "@Override\n\tpublic float calculateRunRate() {\n\t\tint remaingrun=Math.abs((super.getTarget()-super.getCurrentscore()));\n\t\tfloat remaingOver=30-super.getCurrentover();\n\t\treturn remaingrun/remaingOver;\n\t}", "double getRating();", "boolean hasAppliedModifier();", "boolean hasHasRecommendation();", "public boolean isLiked();", "public boolean update(Strategy strat, StrategyState state, double r){\n\t\t//assert(state!=null);\n\t\tif(!T.get(strat).containsKey(state))\n\t\t\tT.get(strat).put(state, 1);\n\t\telse\n\t\t\tT.get(strat).put(state, T.get(strat).get(state)+1);\n\t\t//this should be an (exponential) average\n\t\t//TODO: check this update\n\t\tdouble p = (1-GAMMA) *reward.get(strat) + GAMMA * r;\n\t\treward.put(strat, p);\n\t\texperience.put(strat, experience.get(strat)+1);\n\t\texperienceSum++;\n\t\tif(experienceSum == K){\n\t\t\tknown = true;\n\t\t\t//System.out.print(this.features);\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t}", "public Integer getRating()\n\t{\n\t\treturn null;\n\t}", "public boolean hasRanking() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Min(0)\n @Max(5)\n public int getRating() {\n return rating;\n }", "public int getWorth() { return 1; }", "@Override\r\n\tpublic Double getPropensity_credit_score() {\n\t\treturn super.getPropensity_credit_score();\r\n\t}", "@java.lang.Override\n public boolean getCorrect() {\n return correct_;\n }", "@Override\r\n\tpublic Double getPropensity_trust_score() {\n\t\treturn super.getPropensity_trust_score();\r\n\t}", "public void setRating(double rating) throws RatingWasAlreadySetExecption {\n if (!isRated) {\n this.rating = rating;\n this.isRated = true;\n } else {\n throw new RatingWasAlreadySetExecption(\"Rating was set on an already rated tweet!\", this, rating);\n }\n\n }", "public Boolean estimatedAge() {\n return data.getBoolean(FhirPropertyNames.PROPERTY_ESTIMATED_AGE);\n }", "public void setReview(double review) {\r\n this.review = review;\r\n }", "public double getSpecReview() {\r\n return specReview;\r\n }", "public void setSumratings(int sumratings) {\n\tthis.sumratings = sumratings;\n}", "public boolean didStudentVote() {\n\t\treturn voted;\n\t}", "public double setAvg(Review reviewp) {\n\t\tint number=0;\n\t\tint mark=0;\n\t\tdouble br=0;\n\t\tfor(Review review: reviews) {\n\t\t\tif(review.getRestaurant().getName().equals(reviewp.getRestaurant().getName()) &&\n\t\t\t\t\treview.getStatus().equals(ReviewStatus.ACCEPTED)) {\n\t\t\t\t\t\tnumber++;\n\t\t\t\t\t\tmark+=review.getRating();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(mark==0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn mark/number;\n\t}" ]
[ "0.60064703", "0.59447235", "0.5910263", "0.58080906", "0.5706148", "0.5387228", "0.53379613", "0.53107584", "0.52790904", "0.52707607", "0.5229754", "0.5198857", "0.5122988", "0.5100314", "0.5079171", "0.5072429", "0.50580597", "0.5052768", "0.5044891", "0.50447166", "0.50111765", "0.49975777", "0.4989396", "0.49825367", "0.49577492", "0.4938144", "0.49368548", "0.49177977", "0.4894776", "0.48719257", "0.4870322", "0.4856111", "0.48521355", "0.48494783", "0.48437563", "0.48218268", "0.48135686", "0.4809921", "0.47880742", "0.47632113", "0.47611776", "0.47579807", "0.47465333", "0.4741327", "0.47301584", "0.47224206", "0.4719541", "0.47137746", "0.4707893", "0.4706269", "0.46915218", "0.4690758", "0.46751493", "0.46749732", "0.46742344", "0.46741253", "0.4667741", "0.46569034", "0.46569034", "0.46546397", "0.46546397", "0.465312", "0.46462575", "0.46411416", "0.4636121", "0.46355563", "0.4635051", "0.46253562", "0.4624365", "0.4619705", "0.4610739", "0.4600103", "0.4598216", "0.45922795", "0.459107", "0.45904112", "0.45902172", "0.45854622", "0.45710436", "0.45700252", "0.45671266", "0.45656222", "0.45649913", "0.45605403", "0.45573926", "0.45562923", "0.45562235", "0.4546843", "0.45450732", "0.4542485", "0.45338982", "0.453384", "0.45328197", "0.45260453", "0.4524318", "0.45213836", "0.4520514", "0.45160252", "0.45155248", "0.45000443" ]
0.5110602
13
Rating of the Product or Channel.
public Integer getRating() { return this.rating; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRating() {\n return rating_;\n }", "public double getRating() {\n return rating_;\n }", "public double getRating(){\n\t\treturn this.rating;\n\t}", "public double getRating() {\n\t\treturn rating;\n\t}", "double getRating();", "public float getRating() {\n\t\treturn rating;\n\t}", "public float getRating() {\n return this.rating;\n }", "public float getRating() {\n return rating;\n }", "public float getRating() {\n return rating;\n }", "public int getRating() {\n\t\treturn this.rating;\n\t}", "public int getRating();", "public double getRating(){\n\t\treturn this.user_rating;\n\t}", "public String getRating() {\r\n\t\tswitch (rating) {\r\n\t\tcase \"high\":\r\n\t\t\treturn \"high\";\r\n\t\tcase \"medium\":\r\n\t\t\treturn \"medium\";\r\n\t\tcase \"low\":\r\n\t\t\treturn \"low\";\r\n\t\tdefault: return \"none\";\r\n\t\t}\r\n\t}", "public int getRating()\n {\n return this.rating;\n }", "public Integer getRating()\n\t{\n\t\treturn null;\n\t}", "public void setRating(int rating) {\r\n this.rating = rating;\r\n }", "public void setRating(int rating) {\n this.rating = rating;\n }", "public java.lang.String getRating() {\n return rating;\n }", "public void setRating(int rating)\n {\n this.rating = rating;\n }", "public void setRating(Integer rating) {\r\n this.rating = rating;\r\n }", "public void setRating(Integer value)\n\t{\n\t}", "public Integer getGivenRating() {\n\t\treturn givenRating;\n\t}", "public void setRating(float rating) {\n this.rating = rating;\n }", "public void setRating(double rating){\n\t\tthis.rating = rating;\n\t}", "public Integer getRating() {\r\n if (recipe != null && ui.isIsUserAuthenticated()) {\r\n RecipeRating temp = ratingEJB.findByUserAndRecipe(ui.getUser(), recipe);\r\n if (temp != null) {\r\n rating = temp.getRatingValue().getValue();\r\n }\r\n }\r\n return rating;\r\n }", "public void setRating(int rating) {\n\t\tthis.rating = rating;\n\t}", "public void setRating(int rating);", "public float getRating(String productid) {\n\t\treturn 0;\r\n\t}", "public void setRating(double rating) {\n\t\tthis.rating = rating;\n\t}", "@Nullable\n public Float getRating() {\n return rating;\n }", "public MediaRating getRating() {\n MediaRating mediaRating = ratings.get(MediaRating.USER);\n\n // then the default one (either NFO or DEFAULT)\n if (mediaRating == null) {\n mediaRating = ratings.get(MediaRating.NFO);\n }\n if (mediaRating == null) {\n mediaRating = ratings.get(MediaRating.DEFAULT);\n }\n\n // is there any rating?\n if (mediaRating == null && !ratings.isEmpty()) {\n mediaRating = ratings.values().iterator().next();\n }\n\n // last but not least a non null value\n if (mediaRating == null) {\n mediaRating = new MediaRating();\n }\n\n return mediaRating;\n }", "public void setRating(java.lang.String rating) {\n this.rating = rating;\n }", "public void setRating(float r) {\n\t\trating = r;\n\t}", "@Min(0)\n @Max(5)\n public int getRating() {\n return rating;\n }", "public String getUserRating() {\n return userRating;\n }", "public Short getUserRating() {\r\n return userRating;\r\n }", "public void setMyRating(double myRating) {\n this.myRating = myRating;\n }", "public double getOgRating() {\n return ogRating;\n }", "public String getRatingValue() {\n return ratingValue;\n }", "public int getStarRating(){\n return starRating;\n }", "public double getTotalRating() {\n return totalRating;\n }", "public int getRatings() {\n return ratings;\n }", "@Override\n\tpublic List<Rating> getAllRating() {\n\t\treturn rr.getAllRating();\n\t}", "public double rating() {\r\n double value = BASE_RATING * specialization * (1 / (1 + era)) \r\n * ((wins - losses + saves) / 30.0);\r\n return value;\r\n }", "public double getAverageRating() {\n return averageRating;\n }", "public double getAverageRating() {\n return averageRating;\n }", "public String getContactRating() {\n return contactRating;\n }", "public java.lang.String[] getRating() {\n return rating;\n }", "public int getRatingID() {\n return ratingID;\n }", "public void handleRating() {\r\n Users rater = ui.getUser();\r\n newRating = ratingEJB.findByUserAndRecipe(rater, recipe);\r\n boolean edit = false; // determine whether we need to edit\r\n\r\n // No rating for this user exists\r\n if (newRating == null && rating > 0 && rating <= 5) {\r\n newRating = new RecipeRating();\r\n newRating.setRater(rater);\r\n newRating.setRecipe(recipe);\r\n newRating.setRatingDate(new Date().getTime());\r\n } // A rating exists\r\n else {\r\n edit = true;\r\n }\r\n\r\n switch (rating) {\r\n case 1:\r\n this.newRating.setRatingValue(RatingValue.ONE_STAR);\r\n break;\r\n case 2:\r\n this.newRating.setRatingValue(RatingValue.TWO_STARS);\r\n break;\r\n case 3:\r\n this.newRating.setRatingValue(RatingValue.THREE_STARS);\r\n break;\r\n case 4:\r\n this.newRating.setRatingValue(RatingValue.FOUR_STARS);\r\n break;\r\n case 5:\r\n this.newRating.setRatingValue(RatingValue.FIVE_STARS);\r\n break;\r\n }// end switch\r\n\r\n if (edit) {\r\n this.newRating = ratingEJB.editRecipeRating(newRating);\r\n } else {\r\n this.newRating = ratingEJB.createRecipeRating(newRating);\r\n }\r\n }", "public void setRating(int rating) {\n this.rating = rating;\n if (this.rating < 0) {\n this.rating = 0;\n }\n }", "@Nullable\n final public Double getStarRating() {\n return mStarRating;\n }", "public double getRatingAverage() {\n return average;\n }", "public void setRating(Rating rating) {\n double boundedRating = this.boundedRating(rating);\n this.normalisedRating = this.normaliseRating(boundedRating);\n this.ratingCount++;\n }", "void getRating(String rid, final RatingResult result);", "public void setHotOrNotRating(int rating) {\r\n this.rating += rating;\r\n ratingCount++;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.APDExposureRatingType getRatingType();", "public abstract double calcAvRating();", "Integer rateSong(User user, Song toRate, Integer rating)\n\t\tthrows IllegalArgumentException, IndexOutOfBoundsException, NullPointerException;", "public int getHotOrNotRating() {\r\n if (ratingCount == 0) return 0;\r\n return (rating/ratingCount);\r\n }", "public Float getAverageRating() {\n\t return this.averageRating;\n\t}", "public int getSpeedRating(){\n\t\treturn speedRating;\n\t}", "public Integer getRate() {\r\n return rate;\r\n }", "public List<Rating> ratings(Customer c) {\n\t\treturn shopRepository.getRatingsForCustomer(c);\n\t}", "public int getSeekerRating() {\n return getIntegerProperty(\"Rating\");\n }", "public int getRate() {\n return rate_;\n }", "String getReviewrate();", "public String getRatingText() {\n return ratingText;\n }", "public double getRatingAt(int pos) {\n return this.usersRatings.get(pos).getRating();\n }", "private void updateProduct(String productId, double reviewRating) {\n\t\tMap<String, Double> details = products.containsKey(productId)? products.get(productId): new HashMap<String, Double>();\n\t\tDouble numberOfReviews = details.containsKey(NUMBEROFREVIEWS)? details.get(NUMBEROFREVIEWS): 0.0;\n\t\tDouble totalRatings = details.containsKey(TOTALRATINGS)? details.get(TOTALRATINGS): 0.0;\n\n\t\tdetails.put(NUMBEROFREVIEWS, numberOfReviews + 1);\n\t\tdetails.put(TOTALRATINGS, totalRatings + reviewRating);\n\t\t\n\t\tList<Double> list = productRatings.containsKey(productId)? productRatings.get(productId): new ArrayList<Double>();\n\t\tlist.add(reviewRating);\n\t\t\n\t\tproducts.put(productId, details);\n\t\tproductRatings.put(productId, list);\n\t}", "public int get () { return rating; }", "public void setRating(double rating) throws RatingWasAlreadySetExecption {\n if (!isRated) {\n this.rating = rating;\n this.isRated = true;\n } else {\n throw new RatingWasAlreadySetExecption(\"Rating was set on an already rated tweet!\", this, rating);\n }\n\n }", "public double getMinRating() {\n return min;\n }", "public int getRate() {\n return rate_;\n }", "public void setUserRating(String userRating) {\n this.userRating = userRating;\n }", "public int getNumberOfRatings() {\n return this.usersRatings.size();\n }", "public Rating[] getRatings(){\n return this.ratings;\n }", "@Override\n public String toString() {\n return \"{rating = \" + averageRating + \", count \" + count + \"}\";\n }", "public int getMinRating() {\n return minRating;\n }", "public Builder setRating(double value) {\n \n rating_ = value;\n onChanged();\n return this;\n }", "public interface RatingInterface {\n\tpublic Double getRating();\n\tpublic String getComment();\n\tpublic String getDoctorID();\n\tpublic String getUserName();\n\t\n\tpublic void setRating(Double score);\n\tpublic void setComment(String comment);\n\tpublic void setDoctorID(String id);\n\tpublic void setUserName(String name);\n}", "public void setContactRating(String contactRating) {\n this.contactRating = contactRating;\n }", "void addRating(Rating2 rating2);", "private int getRatingColor(double rating){\n int ratingColorResourceId;\n int magnitudeFloor = (int) Math.floor(rating);\n switch(magnitudeFloor){\n case 0:\n case 1:\n ratingColorResourceId = R.color.rating1;\n break;\n case 2:\n ratingColorResourceId = R.color.rating2;\n break;\n case 3:\n ratingColorResourceId = R.color.rating3;\n break;\n case 4:\n case 5:\n ratingColorResourceId = R.color.rating4;\n break;\n default:\n ratingColorResourceId = R.color.rating1;\n break;\n }\n return ContextCompat.getColor(getContext(), ratingColorResourceId);\n }", "public static void rate(Long propID, String userID, Integer newRatingValue)\r\n\t\t\tthrows ServiceException {\r\n\t\tRating rating = ofy.find(Rating.class, buildID(userID, propID));\r\n\r\n\t\t/*\r\n\t\t * if there was no previous rating and the new value indicates a rating\r\n\t\t * deletion, or if the previous rating and the new rating are the same,\r\n\t\t * then there is nothing to do. So, notify the client that it sent a\r\n\t\t * pointless update.\r\n\t\t */\r\n\t\tif ((rating == null && newRatingValue == null)\r\n\t\t\t\t|| ((rating != null && newRatingValue != null) && rating.eval == newRatingValue\r\n\t\t\t\t\t\t.intValue())) {\r\n\t\t\tthrow new ServiceException(\"cannot update rating: old rating (\"\r\n\t\t\t\t\t+ rating.eval + \") is the same as new rating (\"\r\n\t\t\t\t\t+ newRatingValue + \")\");\r\n\t\t}\r\n\r\n\t\tLock lock = Lock.getNodeLock(propID);\r\n\t\ttry {\r\n\t\t\tlock.lock();\r\n\r\n\t\t\tProposition prop = ofy.get(Proposition.class, propID);\r\n\r\n\t\t\t/* if the user has previously rated back out previous rating */\r\n\t\t\tif (rating != null) {\r\n\t\t\t\tprop.ratingSum -= rating.eval;\r\n\t\t\t\tprop.ratingCount--;\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * otherwise create a new rating object to hold new rating (note\r\n\t\t\t * that in the case where rating == null we always need a new rating\r\n\t\t\t * object here because we have ruled out the case where both rating\r\n\t\t\t * == null and newRatingValue == null by throwing the exception\r\n\t\t\t * above)\r\n\t\t\t */\r\n\t\t\telse {\r\n\t\t\t\trating = new Rating();\r\n\t\t\t\trating.setID(userID, propID);\r\n\t\t\t}\r\n\r\n\t\t\tif (newRatingValue != null) {\r\n\t\t\t\t/* update the proposition with the new evaluation */\r\n\t\t\t\tprop.ratingSum += newRatingValue;\r\n\t\t\t\tprop.ratingCount++;\r\n\r\n\t\t\t\t/* save the new evaluation */\r\n\t\t\t\trating.eval = newRatingValue;\r\n\t\t\t\tofy.put(rating);\r\n\t\t\t} else {\r\n\t\t\t\t/*\r\n\t\t\t\t * if newRatingValue == null we need to delete the rating object\r\n\t\t\t\t * (note this will only happen when there was already a rating\r\n\t\t\t\t * object in the database because we ruled out the possibility\r\n\t\t\t\t * of (rating == null && newRating == null) by throwing\r\n\t\t\t\t * exception above)\r\n\t\t\t\t */\r\n\t\t\t\tofy.delete(rating);\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * notice that I do not call the ArgMapServiceImpl.updateNode()\r\n\t\t\t * function here because I do not want to have the updated time\r\n\t\t\t * change. The updated time is used by the live refresh system to\r\n\t\t\t * determine when a client refresh is needed, and I don't want to\r\n\t\t\t * trigger a client refresh because, at the moment I'm not even\r\n\t\t\t * sending the ratingSum to the client (and don't plan to) (it's\r\n\t\t\t * marked 'transient', so it doesn't get sent.)\r\n\t\t\t */\r\n\t\t\tofy.put(prop);\r\n\r\n\t\t\t/*\r\n\t\t\t * TODO need to queue a task to recalculate the scores for all the\r\n\t\t\t * nodes that depend on this node's score or average rating.\r\n\t\t\t */\r\n\t\t} finally {\r\n\t\t\tlock.unlock();\r\n\t\t}\r\n\t}", "private double boundedRating(Rating rating) {\n double boundedRating;\n if (rating.getRating() > MAX_RATING) {\n boundedRating = MAX_RATING;\n }\n else if (rating.getRating() < MIN_RATING) {\n boundedRating = MIN_RATING;\n }\n else {\n boundedRating = rating.getRating();\n }\n return boundedRating;\n }", "public double getRate() {\n return rate;\n }", "public double getRate() {\n return rate;\n }", "public static double getRandomRating() {\n return (double) (RandomNumberGenerator.getRandomInt(0, 10) / 2d);\n }", "public double getRate() {\n\t\treturn rate;\n\t}", "public Date getRatingDate() {\n return ratingDate;\n }", "void editRating(String rid, Rating2 rating2);", "public com.commercetools.api.models.review.ReviewRatingStatistics getReviewRatingStatistics() {\n return this.reviewRatingStatistics;\n }", "public static void setRatings (double irating){\n\t\t\t//ratings = irating;\n\t\t\tr = irating;\n\t}", "public int getMaxRating() {\n return maxRating;\n }", "public void setRatingValue(String ratingValue) {\n this.ratingValue = ratingValue;\n }", "public RatingService getRatingService()\r\n {\r\n if (ratingsService == null && RepositoryVersionHelper.isAlfrescoProduct(session))\r\n {\r\n this.ratingsService = new CustomRatingsServiceImpl((RepositorySession) session);\r\n }\r\n return ratingsService;\r\n }", "public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }", "public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }", "public String getRatingImageUrl() {\n\t\treturn ratingImageUrl;\n\t}" ]
[ "0.73607504", "0.73018366", "0.72432035", "0.7193537", "0.7085065", "0.6975018", "0.69712645", "0.695418", "0.695418", "0.69118863", "0.68532634", "0.68436515", "0.6801705", "0.67809033", "0.6728522", "0.6698602", "0.6695836", "0.6672008", "0.66534865", "0.66257155", "0.6537841", "0.653704", "0.65294784", "0.6526735", "0.6486302", "0.6485895", "0.6472556", "0.6471057", "0.6469684", "0.6450943", "0.6418687", "0.63864976", "0.63685244", "0.6335802", "0.6334951", "0.63330317", "0.6277161", "0.6220892", "0.621789", "0.61691535", "0.61666083", "0.61623055", "0.61069804", "0.6101446", "0.60944504", "0.60944504", "0.60934657", "0.6036642", "0.60123354", "0.59886914", "0.59763986", "0.59495956", "0.59445614", "0.5937138", "0.59322083", "0.5899489", "0.5861655", "0.5845184", "0.5843977", "0.5838213", "0.58108014", "0.5806924", "0.5806392", "0.5802848", "0.57980883", "0.5777377", "0.57709956", "0.5769448", "0.5764493", "0.574509", "0.57256013", "0.5703284", "0.5688842", "0.56809765", "0.56729317", "0.5669868", "0.56682175", "0.5660875", "0.5660583", "0.5651837", "0.5650754", "0.564642", "0.5643982", "0.56406057", "0.56291246", "0.5619353", "0.5618044", "0.5618044", "0.5597775", "0.5594658", "0.5578554", "0.55566573", "0.55486923", "0.55414295", "0.55299073", "0.5513786", "0.5500774", "0.5489963", "0.5489963", "0.5486787" ]
0.71103156
4
State of the Review. Used for approval processes, see Review approval process for details.
public com.commercetools.api.models.state.StateReference getState() { return this.state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isReviewState() {\n return this.isReviewState;\n }", "public int getState() {return state;}", "public int getState() {return state;}", "public int getState();", "public int getState();", "public int getState();", "public int getState();", "public int getState(){\n\t\treturn state;\n\t}", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "public Integer getRptstate() {\n return rptstate;\n }", "public String getState() {\n\t\treturn this.state_rep;\n\t}", "public void setReviewedState(boolean new_state) {\n\t\tthis.reviewed = new_state;\n\t}", "public int getState(){\n return state;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n \t\treturn state;\n \t}", "Object getState();", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public int getState() {\n return state;\n }", "public int getState() {\n return state;\n }", "public int getState() {\n\t\treturn state;\n\t}", "public boolean getState( ) { return state; }", "public String getState() \n\t{\n\t\treturn state;\n\t}", "public int getState() {\n return state;\n }", "public String getState()\n\t{\n\t\treturn state;\n\t}", "public Integer getaState() {\n return aState;\n }", "public int getState() {\r\n\t\treturn dState;\r\n\t}", "public String getState() { return state; }", "public String getState() {\n return this.State;\n }", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "State getState();", "State getState();", "State getState();", "State getState();", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "public String getState()\n\t{\n\t\treturn State;\n\t\t\n\t}", "java.lang.String getState();", "public Integer getState() {\r\n return state;\r\n }", "public Integer getState() {\r\n return state;\r\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n\t\treturn state;\n\t}", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public int getState() {\n return _state;\n }", "public void getState();", "public STATE getState() {\n\t\n\t\treturn state;\n\t}", "@NotNull\r\n State getState();", "public String getSelectedState()\n {\n return rentalModel.getSelectedRental().getStateName();\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState()\n {\n \treturn state;\n }", "String getState();", "String getState();", "String getState();", "@Override\n public BookStatus getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n\t\treturn State;\n\t}", "public int getState() {\n return mState;\n }", "@Override\n public String getState() {\n\n if(this.state == null){\n\n this.state = TestDatabase.getInstance().getClientField(token, id, \"state\");\n }\n\n return state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public int getState() {\n return m_state;\n }", "@Override\n public String getState()\n {\n return state;\n }", "public boolean getState() {\n\t\treturn state;\n\t}", "public int getState() {\n return state.getValue();\n }" ]
[ "0.72220147", "0.6560879", "0.6560879", "0.64617795", "0.64617795", "0.64617795", "0.64617795", "0.64466166", "0.64383334", "0.64383334", "0.64383334", "0.64383334", "0.64383334", "0.64383334", "0.6409871", "0.63999134", "0.63897145", "0.6388256", "0.6386092", "0.6386092", "0.6386092", "0.6386092", "0.6386092", "0.6378409", "0.6378409", "0.6378409", "0.6378409", "0.6377384", "0.6375693", "0.6369239", "0.63543713", "0.63543713", "0.63517857", "0.63517857", "0.632458", "0.63161016", "0.6307232", "0.63014185", "0.62955457", "0.62921387", "0.628279", "0.62801427", "0.6271148", "0.6260121", "0.6260121", "0.6260121", "0.6256399", "0.62409323", "0.62409323", "0.62409323", "0.62409323", "0.6239692", "0.6239692", "0.6233133", "0.6223007", "0.62143326", "0.62143326", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.6212636", "0.62092197", "0.6204531", "0.6204531", "0.6204531", "0.6204531", "0.6204531", "0.6204531", "0.6197805", "0.619394", "0.6185871", "0.61837876", "0.6180838", "0.6179252", "0.6179252", "0.6179252", "0.6179252", "0.61718893", "0.6169207", "0.6169207", "0.6169207", "0.61668485", "0.61504304", "0.61490023", "0.6146629", "0.614637", "0.6145776", "0.6145776", "0.6139283", "0.61323476", "0.61320966", "0.6125729" ]
0.0
-1
Customer who created the Review.
public com.commercetools.api.models.customer.CustomerReference getCustomer() { return this.customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public String getCustomer() {\n return customer;\n }", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "public String getName()\n {\n return customer;\n }", "public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}", "public String getCustomerName() {\r\n return name.getName();\r\n }", "public String getCustomerName()\n\t{\n\t\treturn name;\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "@Override\r\n\tpublic String currentUser() {\n\t\treturn temp.getCustomerName();\r\n\t}", "public Customer getCustomer() {\n\t\treturn customer;\n\t}", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n return customerName;\n }", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public String getCustomerName() {\n\t\treturn customerName;\n\t}", "public String getCreator() {\n return this.creator;\n }", "public String getCustomerName()\n {\n return customerName;\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "@Override\n\tpublic long getCreateBy() {\n\t\treturn _candidate.getCreateBy();\n\t}", "Customer getCustomer() {\n\t\treturn customer;\n\t}", "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public String getCreatedby() {\n return createdby;\n }", "public String getCustomer_Name() {\n return customer_Name;\n }", "public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public String createdBy() {\n return this.createdBy;\n }", "public String getCustomerName() \n {\n return customerName;\n }", "String getName() {\n\t\treturn customer.getName();\n\t}", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreator() {\r\n return creator;\r\n }", "public Customer getCustomer() {\n return this.customer;\n }", "public String getCreator() {\n\t\treturn creator;\n\t}", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreater() {\n\t\treturn creater;\n\t}", "public String getCreater() {\n\t\treturn creater;\n\t}", "public String getCreater() {\n return creater;\n }", "public String getCreater() {\n return creater;\n }", "public String getCreater() {\r\n return creater;\r\n }", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn customerName;\n\t}", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "@VTID(13)\r\n int getCreator();", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public Integer getCustomer() {\n return customer;\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCustName() \r\n\t{\r\n\t\t\r\n\t\treturn custName;\r\n\t\t\r\n\t}", "public User getCreator() {\n return this.creator;\n }", "public String getCustName() {\n\t\treturn custName;\n\t}", "public String getCustName() {\n\t\treturn custName;\n\t}", "public Customer getCustomer() {\r\n return customer;\r\n }", "public Long getCreator() {\n return creator;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public String getCreatorId() {\n return creatorId;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public Customer getCustomer()\n {\n return this.customer;\n }", "public String getCreatorId() {\n return this.CreatorId;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public String getCustomerName(){\n return customerName;\n }", "public String getCreateAuthor() {\n return createAuthor;\n }", "@ApiModelProperty(value = \"The id of the service user that reviewed the submission.\")\n\n\n public String getReviewedBy() {\n return reviewedBy;\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Customer getCustomer() {\n return customer;\n }", "public WhoAmI getCreatorID() {\r\n\t\treturn myCreatorId;\r\n\t}", "public String getTicketCreatedBy() {\n\t\treturn TicketCreatedBy;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }" ]
[ "0.65779036", "0.6553008", "0.6464237", "0.64350134", "0.64020836", "0.6375107", "0.6368767", "0.63455963", "0.63455963", "0.6332638", "0.63267666", "0.62881786", "0.62881786", "0.6274677", "0.6274677", "0.623866", "0.620746", "0.6196815", "0.614761", "0.6114229", "0.61134815", "0.61134815", "0.6107504", "0.61019504", "0.61004686", "0.6097568", "0.6081143", "0.6073527", "0.60682863", "0.6046602", "0.6046602", "0.6045504", "0.6043667", "0.60391897", "0.60391897", "0.60391897", "0.60391897", "0.60391897", "0.60391897", "0.60391897", "0.60391897", "0.60391897", "0.6025177", "0.6025177", "0.6010478", "0.6010478", "0.60099524", "0.6008676", "0.60009515", "0.60005033", "0.59901386", "0.5986665", "0.5986665", "0.5986665", "0.597358", "0.5969844", "0.5969844", "0.5969844", "0.5969251", "0.5966665", "0.59646565", "0.59568524", "0.59512216", "0.5950412", "0.594147", "0.594147", "0.594147", "0.5941371", "0.59389156", "0.5923525", "0.5921727", "0.5921076", "0.5921076", "0.5921076", "0.5921076", "0.5920942", "0.59138316", "0.59065086", "0.59065086", "0.5886778", "0.5884185", "0.58764136", "0.5865971", "0.5865971", "0.5865471", "0.5865373", "0.58641636", "0.5862095", "0.5861656", "0.58479834", "0.5847047", "0.58445454", "0.5841863", "0.5839295", "0.58337104", "0.5819936", "0.5819936", "0.5817044", "0.5817044", "0.5817044", "0.5817044" ]
0.0
-1
Custom Fields of the Review.
public com.commercetools.api.models.type.CustomFields getCustom() { return this.custom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}", "@Column(name = \"customfields\")\n\t@Type(type = \"CustomFields\")\n\tpublic Map<String, String> getCustomFields() {\n\t\treturn customFields;\n\t}", "Fields fields();", "public void formatFields() {\r\n\t}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "@Override\n protected void initializeFields() {\n \tsuper.initializeFields();\n\n \taddField(new DcField(DcMediaObject._A_TITLE, getIndex(), \"Title\", \n false, true, false, true, \n 255, ComponentFactory._SHORTTEXTFIELD, getIndex(), DcRepository.ValueTypes._STRING,\n \"Title\"));\n addField(new DcField(DcMediaObject._B_DESCRIPTION, getIndex(), \"Description\", \n false, true, false, true, \n 0, ComponentFactory._LONGTEXTFIELD, getIndex(), DcRepository.ValueTypes._STRING,\n \"Description\"));\n addField(new DcField(DcMediaObject._C_YEAR, getIndex(), \"Year\", \n false, true, false, true, \n 4, ComponentFactory._NUMBERFIELD, getIndex(), DcRepository.ValueTypes._LONG,\n \"Year\"));\n\n if (getIndex() != DcModules._IMAGE && !isAbstract())\n addField(new DcField(DcMediaObject._D_LANGUAGE, getIndex(), \"Languages\", \n true, true, false, true, \n 255, ComponentFactory._REFERENCESFIELD, DcModules._LANGUAGE, DcRepository.ValueTypes._DCOBJECTCOLLECTION,\n \"Languages\"));\n \n addField(new DcField(DcMediaObject._E_RATING, getIndex(), \"Rating\", \n false, true, false, true, \n 255, ComponentFactory._RATINGCOMBOBOX, getIndex(), DcRepository.ValueTypes._LONG,\n \"Rating\"));\n addField(new DcField(DcMediaObject._F_COUNTRY, getIndex(), \"Countries\", \n true, true, false, true, \n 255, ComponentFactory._REFERENCESFIELD, DcModules._COUNTRY, DcRepository.ValueTypes._DCOBJECTCOLLECTION,\n \"Countries\")); \n }", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }", "protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }", "private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}", "java.lang.String getField1066();", "protected List<ExtraField> getExtraFieldView(\n\t\t\t\t\t\t\tCollection<GenericPolicy> policies) {\n\t\t\t\t\t\tList<ExtraField> rlExtraFields = new ArrayList<ExtraField>();\n\n\t\t\t\t\t\tif (policies.size() > 0) {\n\t\t\t\t\t\t\tArrayList<GenericPolicy> policyList = new ArrayList<GenericPolicy>(\n\t\t\t\t\t\t\t\t\tpolicies);\n\t\t\t\t\t\t\tGenericPolicy policy = policyList.get(0);\n\n\t\t\t\t\t\t\tif (policy.getRules() != null\n\t\t\t\t\t\t\t\t\t&& policy.getRules().size() > 0) {\n\t\t\t\t\t\t\t\tRule rule = policy.getRules().get(0);\n\n\t\t\t\t\t\t\t\tif (rule.getAttributeList() != null\n\t\t\t\t\t\t\t\t\t\t&& rule.getAttributeList().size() > 0) {\n\n\t\t\t\t\t\t\t\t\tfor (RuleAttribute attribute : rule\n\t\t\t\t\t\t\t\t\t\t\t.getAttributeList()) {\n\n\t\t\t\t\t\t\t\t\t\tif (RuleAttribute.NotifyKeys.NotifyEmails\n\t\t\t\t\t\t\t\t\t\t\t\t.name().equals(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tattribute.getKey())) {\n\t\t\t\t\t\t\t\t\t\t\t// Policy Based Email Address\n\t\t\t\t\t\t\t\t\t\t\tExtraField field_1 = new ExtraField();\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setLabelName(\"Policy Based Email Address:\");\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setValue(attribute\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue());\n\t\t\t\t\t\t\t\t\t\t\tfield_1.setOrder(1);\n\t\t\t\t\t\t\t\t\t\t\trlExtraFields.add(field_1);\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (RuleAttribute.NotifyKeys.NotifyActive\n\t\t\t\t\t\t\t\t\t\t\t\t.name().equals(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tattribute.getKey())) {\n\t\t\t\t\t\t\t\t\t\t\t// / Subject Based Email Address:\n\t\t\t\t\t\t\t\t\t\t\tExtraField field_2 = new ExtraField();\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setFieldType(\"CheckBox\");\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setLabelName(\"Subject Based Email Address:\");\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setValue(String\n\t\t\t\t\t\t\t\t\t\t\t\t\t.valueOf(attribute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue()));\n\n\t\t\t\t\t\t\t\t\t\t\tfield_2.setOrder(2);\n\t\t\t\t\t\t\t\t\t\t\trlExtraFields.add(field_2);\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Effect Duration\n\t\t\t\t\t\t\t\tExtraField field_3 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_3.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_3.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getEffectDuration()));\n\t\t\t\t\t\t\t\tfield_3.setLabelName(\"Effect Duration: (secs)\");\n\t\t\t\t\t\t\t\tfield_3.setOrder(3);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_3);\n\n\t\t\t\t\t\t\t\t// Rollover period\n\t\t\t\t\t\t\t\tExtraField field_4 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_4.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_4.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getRolloverPeriod()));\n\t\t\t\t\t\t\t\tfield_4.setLabelName(\"Rollover Period:\");\n\t\t\t\t\t\t\t\tfield_4.setOrder(4);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_4);\n\n\t\t\t\t\t\t\t\t// priority\n\t\t\t\t\t\t\t\tExtraField field_5 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_5.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_5.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getPriority()));\n\t\t\t\t\t\t\t\tfield_5.setLabelName(\"Priority:\");\n\t\t\t\t\t\t\t\tfield_5.setOrder(5);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_5);\n\n\t\t\t\t\t\t\t\t// Effect\n\t\t\t\t\t\t\t\tExtraField field_6 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_6.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tfield_6.setValue(String.valueOf(rule\n\t\t\t\t\t\t\t\t\t\t.getEffect()));\n\t\t\t\t\t\t\t\tfield_6.setLabelName(\"Effect:\");\n\t\t\t\t\t\t\t\tfield_6.setOrder(6);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_6);\n\n\t\t\t\t\t\t\t\t// Condition\n\t\t\t\t\t\t\t\tExtraField field_7 = new ExtraField();\n\t\t\t\t\t\t\t\tfield_7.setFieldType(\"Label\");\n\t\t\t\t\t\t\t\tStringBuilder conditions = new StringBuilder();\n\n\t\t\t\t\t\t\t\tCondition condition = rule.getCondition();\n\n\t\t\t\t\t\t\t\tif (condition != null) {\n\n\t\t\t\t\t\t\t\t\tExpression expression = condition\n\t\t\t\t\t\t\t\t\t\t\t.getExpression();\n\t\t\t\t\t\t\t\t\tif (expression != null) {\n\t\t\t\t\t\t\t\t\t\tconditions\n\t\t\t\t\t\t\t\t\t\t\t\t.append(expression\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getPrimitiveValue()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue());\n\t\t\t\t\t\t\t\t\t\tconditions.append('\\n');\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\tfield_7.setValue(String.valueOf(conditions\n\t\t\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t\t\t\tfield_7.setLabelName(\"Condition:\");\n\t\t\t\t\t\t\t\tfield_7.setOrder(7);\n\t\t\t\t\t\t\t\trlExtraFields.add(field_7);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn rlExtraFields;\n\t\t\t\t\t}", "public String getReview(){\n\t\treturn this.review;\n\t}", "public void createFieldEditors() {\n\t\taddField(\n\t\t\tnew BooleanFieldEditor(\n\t\t\t\tPreferenceConstants.PRETTY_CML,\n\t\t\t\t\"&Pretty print CML\",\n\t\t\t\tgetFieldEditorParent()));\n\t\tbioclipseLogging = new BooleanFieldEditor(\n\t\t\tPreferenceConstants.BIOCLIPSE_LOGGING,\n\t\t\t\"&Use Bioclipse Logging\",\n\t\t\tgetFieldEditorParent());\n\t\taddField(bioclipseLogging);\n\t}", "public ReviewInfo()\n {\n m_nReviewValue = REVIEW_VALUE_POSITIVE;\n m_nID = 1;\n m_type = EntityType.kPolices;\n m_strReviewText = \"\";\n }", "java.lang.String getField1056();", "private void initFields(){\n labels.put(\"patientID\", new JLabel(\"Patient ID:\"));\n labels.put(\"newOwed\", new JLabel(\"New Owed:\"));\n \n fields.put(\"patientID\", new JTextField());\n fields.put(\"newOwed\", new JTextField());\n }", "public Map<String,String> getAllCustomFields()\n\t{\n\t\treturn getAllCustomFields( getSession().getSessionContext() );\n\t}", "java.lang.String getField1028();", "public Review() {\n this.review_id = \"\";\n this.user_id = \"\";\n this.business_id = \"\";\n this.stars = 0;\n this.useful = 0;\n this.funny = 0;\n this.cool = 0;\n this.date = LocalDateTime.now();\n this.text = \"\";\n }", "java.lang.String getField1830();", "private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}", "public void createFieldEditors()\n\t{\n\t}", "public Vector getFieldLabels() {\n\treturn _vcFieldLabels;\n }", "public double getReview() {\r\n return review;\r\n }", "protected Review() {}", "java.lang.String getField1610();", "java.lang.String getField1406();", "private void fillMandatoryFields_custom() {\n\n }", "java.lang.String getField1048();", "java.lang.String getField1078();", "java.lang.String getField1216();", "public void setFieldDetails(){\n if (this.project != null){\n projectTitleField.setText( project.getTitle() );\n projectDescriptionField.setText( project.getDescription() );\n colorThemeField.setValue( Color.valueOf(project.getColorTheme()) );\n dueDateField.setValue( project.getDueDate() );\n createProjectBtn.setText( \"Update Project\" );\n }\n\n }", "public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }", "java.lang.String getField1730();", "java.lang.String getField1702();", "java.lang.String getField1839();", "java.lang.String getField1518();", "java.lang.String getField1869();", "private void processCustomFields(Object value, ProcessorContext<T> processorContext,\r\n Class<CustomFieldProcessor<T, ?>> processorClass)\r\n {\r\n CustomFieldProcessor cfp = getFieldProcessor(processorClass);\r\n if (cfp != null) {\r\n cfp.processCustomField(value, processorContext);\r\n }\r\n }", "java.lang.String getField1864();", "java.lang.String getField1843();", "public void addTextFieldsAndLabels(){\n this.add(this.firstLabel);\n this.add(firstNameField);\n this.add(this.secondLabel);\n this.add(lastNameField);\n }", "java.lang.String getField1815();", "java.lang.String getField1812();", "java.lang.String getField1015();", "java.lang.String getField1530();", "public Map<String,String> getAllCustomFields(final SessionContext ctx)\n\t{\n\t\tMap<String,String> map = (Map<String,String>)getProperty( ctx, CUSTOMFIELDS);\n\t\treturn map != null ? map : Collections.EMPTY_MAP;\n\t}", "public AggregationReview getReview() {\n return review;\n }", "java.lang.String getField1712();", "public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }", "java.lang.String getField1820();", "private void createExportStatusAndReview(){\r\n\t\tComposite composite = createParent(getFieldEditorParent(), \"Common\");\r\n\t\tuseExportStatusAndReview = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__STATUS_AND_REVIEW, \r\n\t\t\t\t Messages.EXPORT__STATUS_AND_REVIEW_FIELD_LABEL, composite);\r\n\t}", "protected abstract void createFieldEditors();", "java.lang.String getField1152();", "java.lang.String getField1539();", "java.lang.String getField1718();", "java.lang.String getField1218();", "java.lang.String getField1874();", "private void displayNameFields() {\n FieldRelatedLabel nameLabel = new FieldRelatedLabel(\"Name\", 750, 170);\n\n invalidNameLabel = new InvalidFormEntryLabel(\"Name must only contain letters,\\nspaces, dots and apostrophes\", 910, 190, false);\n\n nameTF = new TextField();\n nameTF.relocate(750, 200);\n nameTF.textProperty().addListener(e->FormValidatorPokeMongo.handleName(nameTF, invalidNameLabel));\n\n sceneNodes.getChildren().addAll(nameLabel, invalidNameLabel, nameTF);\n }", "java.lang.String getField1402();", "java.lang.String getField1835();", "public java.lang.String[] getReview() {\n return review;\n }", "java.lang.String getField1764();", "public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }", "java.lang.String getField1885();", "java.lang.String getField1739();", "java.lang.String getField1829();", "java.lang.String getField1863();", "java.lang.String getField1810();", "java.lang.String getField1821();", "java.lang.String getField1430();", "public void createFieldEditors() {\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter &Diff on startup\", getFieldEditorParent()));\n\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter D&oclocs on startup\", getFieldEditorParent()));\n\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter &Survey on startup\", getFieldEditorParent()));\n\t}", "public List<ReviewType> getReview() {\n\t return this.review;\n\t}", "@JsonAnyGetter\n public Map<String, Object[]> otherFields() {\n return disciplineFields;\n }", "java.lang.String getField1230();", "java.lang.String getField1831();", "java.lang.String getField1418();", "java.lang.String getField1895();", "java.lang.String getField1715();", "@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }", "java.lang.String getField1564();", "public String getFields() {\n return fields;\n }", "java.lang.String getField1873();", "java.lang.String getField1867();", "java.lang.String getField1813();", "java.lang.String getField1848();", "java.lang.String getField1837();", "public void createFieldEditors() \n\t{\n\t\n\tprefix = new StringFieldEditor(PreferenceConstants.PSQL_PREFIX, \"Verbindungsprefix:\", 14, getFieldEditorParent());\n\taddField(prefix);\n\t\n\tip = new StringFieldEditor(PreferenceConstants.PSQL_IP, \"IP-Adresse der Datenbank:\", 14, getFieldEditorParent());\n\taddField(ip);\n\t\n\tport = new IntegerFieldEditor(PreferenceConstants.PSQL_PORT, \"Port der Datenbank:\", getFieldEditorParent(),5);\n\taddField(port);\n\t\n\tdb = new StringFieldEditor(PreferenceConstants.PSQL_DATABASE, \"Name des Datenbankschemas:\", 14, getFieldEditorParent());\n\taddField(db);\n\t\n\tuser = new StringFieldEditor(PreferenceConstants.PSQL_USER, \"Name des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(user);\n\n\tpasswort = new StringFieldEditor(PreferenceConstants.PSQL_PASSWORT, \"Passwort des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(passwort);\n\n\t}", "java.lang.String getField1318();", "java.lang.String getField1817();", "public String getReviewText() {\n\t\treturn reviewText;\n\t}", "java.lang.String getFields();", "java.lang.String getField1840();", "java.lang.String getField1569();", "java.lang.String getField1846();", "java.lang.String getField1025();" ]
[ "0.61142695", "0.5760796", "0.5581292", "0.5578492", "0.5570104", "0.5561415", "0.5559678", "0.55476725", "0.55442834", "0.55300206", "0.5507962", "0.54558074", "0.5366789", "0.5362518", "0.5361038", "0.5334779", "0.5313518", "0.5310365", "0.53034407", "0.5296385", "0.52950007", "0.52689254", "0.5263255", "0.52389026", "0.5235044", "0.5224492", "0.52195287", "0.5217896", "0.52166146", "0.52142715", "0.5213117", "0.520028", "0.51972014", "0.51957667", "0.51936316", "0.5174266", "0.5173476", "0.51533264", "0.51463604", "0.51461947", "0.5132321", "0.51304793", "0.51286775", "0.5125222", "0.51247114", "0.51214826", "0.5119097", "0.51178133", "0.5117809", "0.51086533", "0.51070184", "0.51069665", "0.5100845", "0.5100105", "0.5096581", "0.5094478", "0.50888366", "0.50874674", "0.50860953", "0.50855017", "0.50849324", "0.50789064", "0.50748837", "0.50744414", "0.5073939", "0.50714546", "0.5070543", "0.5066962", "0.5064288", "0.50636125", "0.5061755", "0.5059525", "0.5057905", "0.5056777", "0.5055368", "0.5055121", "0.50542617", "0.50528836", "0.50504076", "0.50502694", "0.5050071", "0.5049618", "0.50483733", "0.5047849", "0.5047505", "0.5046718", "0.5044156", "0.50417984", "0.5040731", "0.50397515", "0.50377876", "0.50377774", "0.50371563", "0.50364304", "0.5032518", "0.50317264", "0.502894", "0.50247383", "0.50243545" ]
0.60495365
2
Wird vor dem Testen ausgefuehrt.
@Before public void setUp() throws Exception { rooms.add(room1); rooms1.add(room2); classes.add(class1); classes1.add(class2); newPersonTime.add(person2); newSubjects.add(sub2); teachu1.getSubjects().add(sub1); // Hinzufuegen von Klassen breaku1.setClasses(classes); externu1.setClasses(classes); meetingu1.setClasses(classes); teachu1.setClasses(classes); // Hinzufuegen von Raeumen breaku1.setRooms(rooms); externu1.setRooms(rooms); meetingu1.setRooms(rooms); teachu1.setRooms(rooms); // Hinzufuegen von Personen meetingu1.getMembers().add(teach1); meetingu1.getMembers().add(teach2); // Hinzufuegen von PersonTime teachu1.getPersons().add(person1); teachu1.getPersons().add(person2); // setId() breaku1.setId(1); externu1.setId(2); meetingu1.setId(3); teachu1.setId(4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Override\n public void test() {\n \n }", "private void test() {\n\n\t}", "@Override\n public void runTest() {\n }", "@Override\n\tpublic void setTest() {\n\t}", "@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Override\n\tpublic void test(Object t) {\n\t\t\n\t}", "@Override\n\tpublic void test(Object t) {\n\t\t\n\t}", "@Override\n\tpublic void runTest() throws Throwable {}", "public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}", "@Test\n public void testKatsokoko() {\n \n assertEquals(50, testi.ruudunkoko);\n }", "@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "public void test() {\n\t}", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "@Test\n\tpublic void getTest() {\n\t}", "private boolean isTest() {\n \t\treturn false;\n\t\t// return !index.isLeft();\n\t}", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "@Test\n public void testCarregarTrimestre() {\n }", "@Override\r\n public void runTests() {\r\n getTemperature();\r\n }", "@Test\n public void testKelloAika() {\n System.out.println(\"kelloAika\");\n Peli peeli = new Peli(new Alue(3, 1));\n String tulos = peeli.kelloAika();\n assertEquals(tulos, \"00:00:00\");\n\n }", "@Test\n public void testLisaa33() { // Oluet: 33\n Oluet oluet = new Oluet(); \n Olut karjala1 = new Olut(), karjala2 = new Olut(); \n assertEquals(\"From: Oluet line: 36\", 0, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 37\", 1, oluet.getLkm()); \n oluet.lisaa(karjala2); assertEquals(\"From: Oluet line: 38\", 2, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 39\", 2, oluet.getAlkiot()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 40\", 3, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 41\", 4, oluet.getAlkiot()); \n assertEquals(\"From: Oluet line: 42\", karjala1, oluet.tuoOlut(0)); \n assertEquals(\"From: Oluet line: 43\", karjala2, oluet.tuoOlut(1)); \n assertEquals(\"From: Oluet line: 44\", karjala1, oluet.tuoOlut(2)); \n assertEquals(\"From: Oluet line: 45\", false, oluet.tuoOlut(1) == karjala1); \n assertEquals(\"From: Oluet line: 46\", true, oluet.tuoOlut(1) == karjala2); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 47\", 4, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 48\", 5, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 49\", 6, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 50\", 7, oluet.getLkm()); \n }", "@Override\n\tpublic ArrayList<Test> listTest() {\n\t\treturn null;\n\t}", "@Test\n\tpublic void test04() throws Throwable {\n\t}", "@Test\r\n public void testRentOut() {\r\n }", "@Test\n public void testEtene() {\n System.out.println(\"etene\");\n Peli peli = new Peli(new Alue(3, 1));\n peli.etene();\n assertEquals(peli.getKello().getSekunnit(), 1);\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public boolean test() throws Exception {\n throw new Exception(\"Test funcationality not yet implemented: unclear API\");\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "public void test() {\n\tassertTrue(true);\n\t}", "public void testBidu(){\n\t}", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "@Test\r\n public void testWortUeberpruefen() {\r\n System.out.println(\"wortUeberpruefen\");\r\n String eingabewort = \"\";\r\n Turingband t = null;\r\n Texteinlesen instance = new Texteinlesen();\r\n instance.wortUeberpruefen(eingabewort, t);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public void testAltaVehiculo(){\r\n\t}", "@Override\n public void tests() {\n System.out.println(\"222222222222222222\"); \n }", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}", "protected void runTest() throws Throwable {\n\t\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t}", "@Test\n\tpublic void test(){\n\t}", "public ClockTest( String testName )\r\n {\r\n super( testName );\r\n }", "@Override\n\tpublic void testEngine() {\n\t\t\n\t}", "public void test() {\n\t\tSystem.out.println(\"Test\");\r\n\t}", "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "@Test\n public void proximaSequencia(){\n\n }", "@Test\n\tpublic void test() {\n\t}", "@Test\n\tpublic void test() {\n\t}", "public EcriveurMetierTest() {\r\n\t\t\r\n\t\tsuper();\r\n\t\t\r\n\t}", "public void incrementerTest() {\n\t\tthis.nbTests++;\n\t}", "@Test\n\tvoid testLectureChaineCaracteres() {\n\t}", "@Test\n public void z_topDown_TC02() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "public void test(int testNumber) throws Throwable {\n\t\tswitch (testNumber) {\n\t\tcase 0:\n\t\t\tserializeThenDeserializeTest();\n\t\t\tbreak;\n\t\t}\n\t}", "public test() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn name+\" : \"+test;\n\t}", "public void test5() {\n\t\t\n\t}", "private void testGet() {\n init();\n assertTrue(\"FListInteger.get(l1, 0)\", FListInteger.get(l1, 0) == 5);\n assertTrue(\"FListInteger.get(l2, 0)\", FListInteger.get(l2, 0) == 4);\n assertTrue(\"FListInteger.get(l3, 0)\", FListInteger.get(l3, 0) == 7);\n }", "public FunctionsTest( String testName )\r\n {\r\n super( testName );\r\n }", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n\tfinal void test() {\n\t}", "@Test\n public void test8() throws Exception {\n try {\n tester.testOnInheritanceTree(Story8, testClass);\n Assert.assertTrue(true);\n } catch (StoryTestException | WrongMethodException e) {\n Assert.fail();\n }\n }", "@Test\n public void testTermine(){\n //Test ob testTermin1 vorhanden\n assertNotNull(testTermin1);\n System.out.println(\"Termin 1 NotNull\");\n assertNotNull(testTermin2);\n System.out.println(\"Termin 2 NotNull\");\n }", "@Test\n public void testRucheVide() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test rucheVide =============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test sur une ruche venant d'être créé :\");\n assertTrue(instance.rucheVide());\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec un insecte a l'origine :\");\n instance.ajoutInsecte(reine, orig);\n assertFalse(instance.rucheVide());\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n }", "@Test\r\n\tpublic void Event() {\n\t\tString message = \"\";\r\n\t\tList<Object[]> myList = new ArrayList<Object[]>();\r\n\r\n\t\tmyList.add(new Object[] { \"nn\", \"artist\", \"not null\" });\r\n\t\tmyList.add(new Object[] { \"s\", \"venue\", null });\r\n\t\tmyList.add(new Object[] { \"s\", \"date\", null });\r\n\t\tmyList.add(new Object[] { \"i\", \"attendees\", 0 });\r\n\t\tmyList.add(new Object[] { \"s\", \"description\", \"\" });\r\n\r\n\t\tfor (Object[] li : myList) {\r\n\t\t\tmessage = String.format(\"initial value for %s should be %s\\n\",\r\n\t\t\t\t\tli[1], li[2]);\r\n\t\t\ttry {\r\n\t\t\t\tswitch (li[0].toString()) {\r\n\t\t\t\tcase \"i\":\r\n\t\t\t\tcase \"s\":\r\n\t\t\t\t\tassertEquals(\r\n\t\t\t\t\t\t\tgetPrivateField(toTest, li[1].toString()).get(\r\n\t\t\t\t\t\t\t\t\ttoTest), li[2], message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"nn\":\r\n\t\t\t\t\tassertNotNull(getPrivateField(toTest, li[1].toString())\r\n\t\t\t\t\t\t\t.get(toTest), message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "@Test\n public void testCarregarUex() {\n }", "@AfterTest\n\tpublic void reportTestResult() {\n\t\textent.endTest(test);\n\t\t\n\t\t/*LogStatus info =test.getRunStatus();\n\t\t\n\t\tif(info.toString().equalsIgnoreCase(\"PASS\"))\n\t\t\tstatus=1;\n\t\telse if(info.toString().equalsIgnoreCase(\"FAIL\"))\n\t\t\tstatus=2;\n\t\t\n\t\tif (status == 1)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"PASS\");\n\t\telse if (status == 2)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"FAIL\");\n\t\telse\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"SKIP\");*/\n\n\t}", "@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }", "@Test\n public void testGetLastAttackTitle() {\n \n assertEquals(hero.getLastAttackTitle(), \"The starting battle specs are:\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n }", "@BeforeTest\n\tpublic void beforeTest() throws Exception {\n\t\textent = ExtentManager.getReporter(filePath);\n\t\trowData = testcase.get(this.getClass().getSimpleName());\n\t\ttest = extent.startTest(rowData.getTestcaseId(), rowData.getTestcaseDescription()).assignCategory(\"Watchlist\");\n\n\t}", "@Override\n protected void executeTest() {\n ClientConnection<Event> harry = register(0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n ClientConnection<Event> statist23 = register(1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n\n assertRegisterEvent(harry.nextEvent(), 1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n assertRegisterEvent(statist23.nextEvent(), 0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n\n // round 1 begins\n assertRoundBegin(assertAndMerge(harry, statist23), 1);\n\n for (int i = 0; i < this.stepsBeforeTurn; i++) {\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(Direction.EAST);\n assertMoved(assertAndMerge(harry, statist23), 0, Direction.EAST);\n }\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(this.lastDirection);\n assertKicked(assertAndMerge(harry, statist23), 0);\n\n assertActNow(assertAndMerge(harry, statist23), 1);\n statist23.sendDoneActing();\n assertDoneActing(assertAndMerge(harry, statist23), 1);\n\n assertRoundEnd(assertAndMerge(harry, statist23), 1, 0);\n assertWinner(assertAndMerge(harry, statist23), \"Passive\");\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Test \n\tpublic void Day1_test1() {\n\t\t// TODO Auto-generated method stub\n\n\t\tSystem.out.println(\"Day1 (test1)\");\n\t}", "public TestCase pass();", "@Override\n\tpublic void testVehicle() {\n\t\t\n\t}", "@Test\n\t\tpublic void testTrainersCatchDifferentKudomon(){\n\t\t try {\n\t\t\t\ttestTrainer1.attemptCapture(aggron);\n\t\t\t\ttestTrainer2.attemptCapture(alakazam);\n\t\t\t} catch (KudomonCantBeCaughtException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t \n\t\t //Both Trainers complete the catch\n\t\t\ttestTrainer1.finishCapture();\n\t\t\ttestTrainer2.finishCapture();\n\t\t\t\n\t\t ArrayList<Kudomon> expectedTrainer1CaughtKudomon = new ArrayList<Kudomon>();\n\t\t expectedTrainer1CaughtKudomon.add(aggron);\n\t\t \n\t\t ArrayList<Kudomon> expectedTrainer2CaughtKudomon = new ArrayList<Kudomon>();\n\t\t expectedTrainer2CaughtKudomon.add(alakazam);\n\t\t\t\n\t\t //Both Trainers successfully catch their respective Kudomon\n\t\t\tassertEquals(expectedTrainer1CaughtKudomon,testTrainer1.getCaughtKudomon());\n\t\t\tassertEquals(expectedTrainer2CaughtKudomon,testTrainer2.getCaughtKudomon());\n\t\t \n\t\t}", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "public void tests() {\n this.testStartBaseLocationsDraw();\n }", "public RegonTest( String testName )\n {\n super( testName );\n }", "@Test\n\tpublic void notATest() {\n\t\tSystem.out.println(\"I am NOT a Test\");\n\t}", "@Override\n\tpublic String selectTest() throws Exception {\n\t\treturn boardDao.selectTest();\n\t}", "private test5() {\r\n\t\r\n\t}", "@Test\n\tpublic void getWorksTest() throws Exception {\n\t}", "@Override\n\tpublic Test addTest(Test onlineTest) throws UserException {\n\t\treturn null;\n\t}", "@Test\n\tpublic void kaempfeTest() {\n\t\t\n\t\tSc1.kaempfe(Su3);\n\t\tassertEquals(true, Sc1.getIstBesiegt());\n\t\tassertEquals(false, Su3.getIstBesiegt());\n\n\t\tSu1.kaempfe(Sc2);\n\t\tassertEquals(false, Sc2.getIstBesiegt());\n\t\tassertEquals(true, Su1.getIstBesiegt());\n\t}", "@Test\n\tpublic void test4() {\n\t}", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "@Test\n public void testRucheBrisee() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test rucheBrisee ===========================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n instance.ajoutCasesVoisines(orig);\n\n System.out.println(\"test sur une ruche vide :\");\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec un insecte :\");\n instance.ajoutInsecte(reine, orig);\n assertFalse(instance.rucheBrisee(null, null));\n //assertFalse(instance.rucheBrisee(reine));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec deux insectes collés :\");\n instance.ajoutInsecte(reine, orig.voisinBas());\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec deux insectes non collés :\");\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n assertTrue(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec trois insectes en ligne :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec trois insectes en ligne ghost et casedest :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas());\n assertTrue(instance.rucheBrisee(new Case(orig.voisinBas()), new Case(orig.voisinBas().voisinBas().voisinBas())));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche casé avec trois insectes :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas().voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinBas().voisinBas().voisinGaucheBas());\n assertTrue(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche avec 7 insectes (1 à l'origine et les 6 coins remplit) :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n assertFalse(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test sur une ruche casé avec 7 insectes :\");\n instance = new Plateau();\n instance.ajoutCasesVoisines(orig);\n instance.ajoutCasesVoisines(orig.voisinBas());\n instance.ajoutInsecte(reine, orig);\n instance.ajoutInsecte(reine, orig.voisinBas().voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteBas().voisinGaucheBas().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut().voisinHaut().voisinHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas().voisinGaucheBas().voisinBas().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut().voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n assertTrue(instance.rucheBrisee(null, null));\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n }", "@Test\n public void testTerminsatz(){\n assertNotNull(testTerminsatz);\n System.out.println(\"Terminsatz NotNull\");\n }", "void test02(){\n\t}", "@Test\n public void shouldTestWinner(){\n }", "@Test\n\tpublic void bmainTestOne() {\n\t\tAssert.assertEquals(\"Test1\", \"Test1\");\n\t\tSystem.out.println(\"This is main Test 2\");\n\t}", "protected void runBeforeTest() {}", "public static void dummyTest(){}", "public static void dummyTest(){}", "private void reportTestResult() {\n TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName);\n if (mCurrentTestStatus.equals(\"ok\")) {\n mTestResultCache.put(testId, null);\n } else if (mCurrentTestStatus.equals(\"ignored\")) {\n mTestResultCache.put(testId, SKIPPED_ENTRY);\n } else if (mCurrentTestStatus.equals(\"FAILED\")) {\n // Rust tests report \"FAILED\" without stack trace.\n mTestResultCache.put(testId, FAILED_ENTRY);\n } else {\n mTestResultCache.put(testId, mCurrentTestStatus);\n }\n }", "private void test2(){\n\t}", "@Test\n\tpublic void testFtoC(){\n\t}" ]
[ "0.7437475", "0.6917685", "0.69011563", "0.67709875", "0.67431825", "0.66521615", "0.6611916", "0.6610991", "0.6472303", "0.6472303", "0.6407744", "0.63840485", "0.63756216", "0.63751525", "0.63715965", "0.63656545", "0.6352759", "0.6331275", "0.63016766", "0.6288152", "0.6279965", "0.62589353", "0.62404466", "0.6238502", "0.6236929", "0.623086", "0.6215153", "0.619971", "0.6193212", "0.6186273", "0.6185627", "0.61678004", "0.6163845", "0.615442", "0.6149549", "0.61493003", "0.6136429", "0.61303854", "0.61265486", "0.6109413", "0.6106246", "0.60876393", "0.6079202", "0.6068822", "0.6068412", "0.60635895", "0.60635895", "0.60605353", "0.6059311", "0.60550624", "0.6054172", "0.6049183", "0.60486865", "0.60399514", "0.60326743", "0.6029501", "0.602424", "0.6017091", "0.6015517", "0.6008043", "0.5997899", "0.5989962", "0.59896296", "0.59870523", "0.5983682", "0.59733003", "0.5971882", "0.5953416", "0.5948761", "0.59486145", "0.5943138", "0.59400773", "0.5934388", "0.5934388", "0.5934388", "0.59305996", "0.5928393", "0.5925437", "0.5921851", "0.5918716", "0.5916211", "0.5915286", "0.5911221", "0.5909059", "0.59065783", "0.590434", "0.58880615", "0.5887967", "0.58870006", "0.5883549", "0.58794296", "0.58725595", "0.5870894", "0.58698696", "0.58697647", "0.58681554", "0.5865821", "0.5865821", "0.58657235", "0.58642757", "0.5859608" ]
0.0
-1
Testet, ob die Methode getId(), die richtige Id zurueckgibt
@Test public void testGetId() { assertEquals(1, breaku1.getId()); assertEquals(2, externu1.getId()); assertEquals(3, meetingu1.getId()); assertEquals(4, teachu1.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "public int getId ()\r\n {\r\n return id;\r\n }", "public int getId() {return id;}", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "private Integer getId() { return this.id; }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public int getId() {return Id;}", "public int getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "@Override\n public Integer getId() {\n return id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@Override\r\n public int getId() {\n return id;\r\n }", "public int getId()\n {\n return id;\n }", "public abstract ID getId();", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public Long getId() \n {\n return id;\n }", "public int getId(){\r\n return this.id;\r\n }", "@Override\n\tpublic Long getId() {\n\t\treturn id;\n\t}", "@Override\n public long getId() {\n return this.id;\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public int getId()\n {\n return id;\n }", "public Integer getId() { return id; }", "@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}", "@Override\n\tpublic long getId() {\n\t\treturn id;\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public long getId() { return id; }", "public long getId() { return id; }", "public int getId() {\r\n return id;\r\n }", "public int getId(){ return id; }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "public int getId() {\r\n return id;\r\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public abstract Long getId();", "protected abstract String getId();", "public int getId()\n {\n return id;\n }", "public long getId() { return this.id; }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "public long getId() { return _id; }", "public Long getId()\r\n {\r\n return id;\r\n }", "public Long getId() \r\n {\r\n return id;\r\n }", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public int getId(){\r\n\t\treturn id;\r\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public int getId()\n {\n\treturn id;\n }", "public int getId() {\n return id;\n }", "public int getId() {\n return id;\n }", "public int getId() {\n return id;\n }", "public int getId() {\n return id;\n }" ]
[ "0.79483", "0.78927046", "0.785638", "0.785638", "0.785638", "0.785638", "0.785638", "0.785638", "0.77991235", "0.77917635", "0.77774477", "0.7774578", "0.77712417", "0.77533937", "0.7745115", "0.773587", "0.7711182", "0.7710703", "0.7710703", "0.7710601", "0.77087873", "0.77087873", "0.77075505", "0.7702092", "0.7701395", "0.76761335", "0.76761335", "0.7666739", "0.7657273", "0.76555926", "0.76463515", "0.76449466", "0.76449466", "0.76449466", "0.76449466", "0.76400465", "0.7638873", "0.7638873", "0.7638873", "0.7634255", "0.7625417", "0.7625417", "0.76221323", "0.76217955", "0.76093453", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.76072645", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.7600671", "0.75933677", "0.7590194", "0.75893295", "0.75881255", "0.7587747", "0.7587747", "0.7587747", "0.7587747", "0.75840926", "0.75840926", "0.75840926", "0.7582847", "0.7580348", "0.7575197", "0.7568356", "0.75607896", "0.75607896", "0.7560658", "0.75602245", "0.7557071", "0.7557071", "0.7557071", "0.7557071" ]
0.0
-1
Testet, ob die Methode setId(), die Id richtig setzt
@Test public void testSetId() { breaku1.setId(5); externu1.setId(6); meetingu1.setId(7); teachu1.setId(8); assertEquals(5, breaku1.getId()); assertEquals(6, externu1.getId()); assertEquals(7, meetingu1.getId()); assertEquals(8, teachu1.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "@Override\n\tpublic void setId(Long id) {\n\t}", "@Override\n public void setId(int id) {\n this.id = id;\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void setId(int id){ this.id = id; }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "private void setId(Integer id) { this.id = id; }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(long id) {\n id_ = id;\n }", "@Override\n public void setId(Integer id) {\n this.id = id;\n }", "public void setId(ID id)\n {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Integer id) {\n this.id = id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "public void setId(int id) {\n\tthis.id = id;\n}", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n\t}", "@Override\r\n\tpublic void setId(String id) {\n\t\t\r\n\t}", "public void setId(long id) {\r\n this.id = id;\r\n }", "public void setId( Integer id )\n {\n this.id = id ;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(final int id);", "public void setId(int id)\n {\n\tthis.id = id;\n }", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId( Long id );", "public void setId(Long id) \n {\n this.id = id;\n }", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId( Integer id ) {\n this.id = id ;\n }", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(int id);", "public void setId(int id);", "@Override\n\tpublic void setId(String id)\n\t{\n\t\t\n\t}", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }" ]
[ "0.85402334", "0.85402334", "0.84267414", "0.8424219", "0.8400029", "0.8400029", "0.83918595", "0.83895713", "0.8388923", "0.8384012", "0.8345808", "0.83299655", "0.83299655", "0.83299655", "0.83299655", "0.83182955", "0.8310181", "0.8282949", "0.8282949", "0.8274375", "0.82659256", "0.82636887", "0.8243592", "0.8243592", "0.8243592", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82343644", "0.82339513", "0.82229304", "0.8219147", "0.82046777", "0.82046777", "0.81951344", "0.81951344", "0.81539655", "0.81474626", "0.81449044", "0.8125412", "0.8116888", "0.81166285", "0.8107762", "0.81072503", "0.81072503", "0.81044656", "0.81021106", "0.8096249", "0.8094491", "0.8094491", "0.8094491", "0.8094491", "0.8094491", "0.8094491", "0.8094491", "0.80944693", "0.80894107", "0.80894107", "0.80875367", "0.80841136", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915", "0.80752915" ]
0.0
-1
Testet, ob die Startzeit der Pause, mit der Startzeit, des Timeslots den wir den Konstruktor uebergeben haben uebereinstimmt.
@Test public void testGetStarttime() { assertTrue(breaku1.getStarttime().equals("08:00")); assertTrue(externu1.getStarttime().equals("08:00")); assertTrue(meetingu1.getStarttime().equals("08:00")); assertTrue(teachu1.getStarttime().equals("08:00")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean canPause() {\n\t\treturn true;\r\n\t}", "@Override\n public void pause() {\n }", "@Override\n public void Pause() {\n }", "@Override\n public void pause() {\n // Not used\n }", "@Override\r\n public void pause() {}", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n \tpublic void pause() {\n \t}", "@Override\r\n\tpublic void pause() {\n\t}", "public void checkPause();", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\n public void Pause() {\n\n }", "@Override\n public void Pause() {\n\n }", "public void pauseWorkout(){\n mStart = 0;\n mEnd = 0;\n mIsPlay = false;\n mIsPause = true;\n mFabPlay.setIcon(R.mipmap.ic_play_arrow_white_24dp);\n if(mCounter != null) {\n if (mCounter.timerCheck()) mCounter.cancel();\n mCurrentTime = mCounter.timerPause();\n }\n if(mIsFirstAppRun){\n mTxtBreakTime.setText(mCurrentTime);\n }else {\n if (mIsBreak) {\n // If this is break, set mTimer to break time view and set sub title view\n // with initial time\n mTxtBreakTime.setText(mCurrentTime);\n mTxtSubTitle.setText(mCurrentTime);\n } else {\n mTxtSubTitle.setText(mCurrentTime);\n }\n }\n }", "@Override\n\tpublic void pause()\n\t{\n\n\t}", "@Override\n\tpublic void pause() \n\t{\n\n\t}", "@Override\n public void pause() {\n \n }", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "@Override\n public void pause() {\n\n }", "@Override\n public void pause() {\n\n }", "@Override\n public void pause() {\n\n }", "protected void pause(){}", "void checkPaused() {\n\t\twhile (paused) {\n\t\t\ttry {\n\t\t\t\tthis.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "public void checkPaused()\n {\n paused = true;\n }", "boolean isPause();", "private void pause() {\n\t\t// TODO\n\t}" ]
[ "0.65391827", "0.6535443", "0.6522386", "0.6518998", "0.6496242", "0.64846414", "0.64846414", "0.64846414", "0.64846414", "0.64846414", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.6482302", "0.64779735", "0.64779735", "0.64779735", "0.6466982", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64637095", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.64608634", "0.6456876", "0.6446945", "0.6438093", "0.6429386", "0.6429386", "0.6424088", "0.6424088", "0.64175963", "0.6411471", "0.6397135", "0.6387531", "0.6383198", "0.6383198", "0.6383198", "0.6383198", "0.6383198", "0.6383198", "0.6383198", "0.6383198", "0.6383198", "0.63598686", "0.63426584", "0.63426584", "0.63426584", "0.632862", "0.6321735", "0.63042617", "0.63042617", "0.63042617", "0.63042617", "0.63042617", "0.63042617", "0.63042617", "0.6298409", "0.62490374", "0.6241893" ]
0.0
-1
Testet, ob die Dauer der Pause, mit der Dauer, des Timeslots den wir den Konstruktor uebergeben haben uebereinstimmt.
@Test public void testGetDuration() { assertEquals(90, breaku1.getDuration()); assertEquals(90, externu1.getDuration()); assertEquals(90, meetingu1.getDuration()); assertEquals(90, teachu1.getDuration()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void pause() {\n // Not used\n }", "@Override\n public void pause() {\n }", "@Override\r\n\tpublic boolean canPause() {\n\t\treturn true;\r\n\t}", "@Override\r\n public void pause() {}", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void Pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n \tpublic void pause() {\n \t}", "@Override\r\n\tpublic void pause() {\n\t}", "public void checkPause();", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\n\tpublic void pause()\n\t{\n\n\t}", "@Override\n\tpublic void pause() \n\t{\n\n\t}", "@Override\n public void pause() {\n \n }", "@Override\n public void Pause() {\n\n }", "@Override\n public void Pause() {\n\n }", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "void checkPaused() {\n\t\twhile (paused) {\n\t\t\ttry {\n\t\t\t\tthis.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "@Override\n public void pauseClock() {\n state = ClockState.PAUSED;\n // TODO Auto-generated method stub\n\n }", "@Override\n public void pause() {\n\n }", "@Override\n public void pause() {\n\n }", "@Override\n public void pause() {\n\n }", "public void pauseWorkout(){\n mStart = 0;\n mEnd = 0;\n mIsPlay = false;\n mIsPause = true;\n mFabPlay.setIcon(R.mipmap.ic_play_arrow_white_24dp);\n if(mCounter != null) {\n if (mCounter.timerCheck()) mCounter.cancel();\n mCurrentTime = mCounter.timerPause();\n }\n if(mIsFirstAppRun){\n mTxtBreakTime.setText(mCurrentTime);\n }else {\n if (mIsBreak) {\n // If this is break, set mTimer to break time view and set sub title view\n // with initial time\n mTxtBreakTime.setText(mCurrentTime);\n mTxtSubTitle.setText(mCurrentTime);\n } else {\n mTxtSubTitle.setText(mCurrentTime);\n }\n }\n }", "protected void pause(){}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "private void pause() {\n\t\t// TODO\n\t}", "@Override\n T pause();" ]
[ "0.64904505", "0.64864147", "0.6473691", "0.64480305", "0.6437505", "0.6437505", "0.6437505", "0.6437505", "0.6437505", "0.64344066", "0.6427265", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.64265263", "0.6420012", "0.6420012", "0.6420012", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.64069325", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6403199", "0.6394972", "0.6379876", "0.63651794", "0.6358177", "0.6358177", "0.63492376", "0.63304174", "0.6326696", "0.6316664", "0.6316664", "0.6296529", "0.6296529", "0.6296529", "0.6296529", "0.6296529", "0.6296529", "0.6296529", "0.6296529", "0.6296529", "0.6294325", "0.6294108", "0.62773806", "0.6273694", "0.6273694", "0.6273694", "0.6256401", "0.6250442", "0.6218652", "0.6218652", "0.6218652", "0.6218652", "0.6218652", "0.6218652", "0.6218652", "0.6183518", "0.6162472" ]
0.0
-1
Testet, ob der Timeslot der Pause, mit dem Wert, den wir den Konstruktor uebergeben haben uebereinstimmt
@Test public void testGetTimeslot() { assertEquals(time1, breaku1.getTimeslot()); assertEquals(time1, externu1.getTimeslot()); assertEquals(time1, meetingu1.getTimeslot()); assertEquals(time1, teachu1.getTimeslot()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void pause() {}", "@Override\n public void pause() {\n // Not used\n }", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t}", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "@Override\r\n public void pause() {\n }", "protected void pause(){}", "@Override\n public void pause() {\n }", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n public void pause() {\n }", "@Override\n \tpublic void pause() {\n \t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\r\n\tpublic void pause() {\n\t}", "public void checkPause();", "@Override\n\tpublic void pause()\n\t{\n\n\t}", "@Override\n\tpublic void pause() \n\t{\n\n\t}", "@Override\n public void Pause() {\n }", "@Override\n T pause();", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\r\n public void pause() {\r\n\r\n }", "@Override\r\n\tpublic boolean canPause() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\n public void pause() {\n\n }", "@Override\n public void pause() {\n\n }", "@Override\n public void pause() {\n\n }", "@Override\n public void pause() {\n \n }", "@Override\n public void Pause() {\n\n }", "@Override\n public void Pause() {\n\n }", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "@Override\r\n\tpublic void pause() {\n\r\n\t}", "public void newTurnPauseCountdown()\n {\n pauseNewTurn = true;\n pauseNewTurnTimer = 169;\n }", "public void pause() {\n }", "public void pause() {}", "public void pauseWorkout(){\n mStart = 0;\n mEnd = 0;\n mIsPlay = false;\n mIsPause = true;\n mFabPlay.setIcon(R.mipmap.ic_play_arrow_white_24dp);\n if(mCounter != null) {\n if (mCounter.timerCheck()) mCounter.cancel();\n mCurrentTime = mCounter.timerPause();\n }\n if(mIsFirstAppRun){\n mTxtBreakTime.setText(mCurrentTime);\n }else {\n if (mIsBreak) {\n // If this is break, set mTimer to break time view and set sub title view\n // with initial time\n mTxtBreakTime.setText(mCurrentTime);\n mTxtSubTitle.setText(mCurrentTime);\n } else {\n mTxtSubTitle.setText(mCurrentTime);\n }\n }\n }" ]
[ "0.67362505", "0.67091036", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6686137", "0.6682909", "0.6682909", "0.6682909", "0.6682909", "0.6682909", "0.66798145", "0.66798145", "0.66798145", "0.66698515", "0.6666757", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6658941", "0.6657389", "0.66513425", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.6650332", "0.66455084", "0.66441333", "0.66333646", "0.6624976", "0.66150254", "0.6608565", "0.66054326", "0.66054326", "0.6585046", "0.6571745", "0.6571745", "0.6571745", "0.6571745", "0.6571745", "0.6571745", "0.6571745", "0.6571745", "0.6571745", "0.65546006", "0.65546006", "0.65546006", "0.65537274", "0.6532754", "0.6532754", "0.65220505", "0.6506965", "0.6506965", "0.6506965", "0.6506965", "0.6506965", "0.6506965", "0.6506965", "0.65065354", "0.6497362", "0.6479979", "0.64777833" ]
0.0
-1
Testet, ob das RaumSet der BreakingUnit, mit dem Set, das wir dem Konstruktor uebergeben haben uebereinstimmt.
@Test public void testGetRooms() { assertEquals(rooms, breaku1.getRooms()); assertEquals(rooms, externu1.getRooms()); assertEquals(rooms, meetingu1.getRooms()); assertEquals(rooms, teachu1.getRooms()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testAllNull() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(null);\r\n\t\t\t// check if set is null \r\n \t\t\tassertNull(testingSet);\r\n\t\t}", "@Test\n\tpublic void testSet() {\n\t}", "@Test\r\n public void descendingSet() throws Exception {\r\n TreeSet<Integer> kek = new TreeSet<>();\r\n kek.addAll(sInt);\r\n TreeSet<Integer> check = (TreeSet<Integer>) kek.descendingSet();\r\n check.add(43);\r\n assertTrue(check.contains(43));\r\n assertTrue(kek.contains(43));\r\n assertTrue(kek.remove(43));\r\n assertFalse(check.contains(43));\r\n assertFalse(kek.contains(43));\r\n }", "@Test\n\tpublic void testAddAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t Set<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.addAll(setB);\n\t Set<Integer> union = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));\n\t assertEquals(setA, union);\n }", "public SetSet() {\n\t}", "BSet createBSet();", "@Test\n\tpublic void testSLLSet() {\n\n\t\t// test constructor 1\n\t\tSLLSet listObj1 = new SLLSet();\n\t\tString expectedSet = \"\";\n\t\tint expectedSize = 0;\n\t\tassertEquals(expectedSize, listObj1.getSize());\n\t\tassertEquals(expectedSet, listObj1.toString());\n\t}", "@Override\n public LinkedHashSet<String> testSet() {\n LinkedHashSet<String> testNameSet = new LinkedHashSet<>();\n testNameSet.add(\"test1\");\n return testNameSet;\n }", "@Test(expected = IllegalStateException.class)\n public void testSet_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.set(3);\n\n instance.set(2);\n\n }", "@Test\n public void testSet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }", "@Test\r\n public void addAllFromSet() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.contains(1));\r\n assertTrue(s.contains(2));\r\n assertTrue(s.contains(3));\r\n assertTrue(s.contains(4));\r\n assertTrue(s.contains(5));\r\n }", "public static <T extends Comparable<T>> boolean testSet(ISet<T> set, String name,\n T[] data, T _invalid) {\n for (int i = 0; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n boolean contains = set.contains(_invalid);\n boolean removed = set.remove(_invalid);\n if (contains || removed) {\n System.err.println(name+\" invalidity check. contains=\" + contains + \" removed=\" + removed);\n Utils.handleError(_invalid,set);\n return false;\n }\n\n int size = set.size();\n for (int i = 0; i < size; i++) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != data.length-(i+1))) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n // Add half, remove a quarter, add three-quarters, remove all\n int quarter = data.length/4;\n int half = data.length/2;\n for (int i = 0; i < half; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = (half-1); i >= quarter; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = quarter; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = data.length-1; i >= 0; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if ((!removed || set.contains(item))) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n if (set.size() != 0) {\n System.err.println(name+\" YIKES!! a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n \n return true;\n }", "public ImmutableSetTest( String testName )\n {\n super( testName );\n }", "@Test\n void testSetOf6() {\n testSetOfSuccess(TestSetOf6.class, new TestSetOf6(), ASN1Integer.valueOf(1L), ASN1Integer.valueOf(2L),\n ASN1Integer.valueOf(3L));\n\n testSetOfFailure(TestSetOf6.class, new TestSetOf6(), ASN1Integer.valueOf(1L), ASN1Integer.valueOf(2L));\n }", "@Test\n public void whenAddSeveralIdenticalElementsThenSetHasOnlyOneSuchElement() {\n SimpleSet<Integer> set = new SimpleSet<>();\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(3);\n set.add(2);\n set.add(1);\n\n Iterator<Integer> iterator = set.iterator();\n\n assertThat(iterator.next(), is(1));\n assertThat(iterator.next(), is(2));\n assertThat(iterator.next(), is(3));\n assertThat(iterator.hasNext(), is(false));\n }", "public interface TransformsToUnsortedSetTrait extends RichIterableTestCase\n{\n @Override\n default <T> UnsortedSetIterable<T> getExpectedTransformed(T... elements)\n {\n return Sets.immutable.with(elements);\n }\n\n @Override\n default <T> MutableSet<T> newMutableForTransform(T... elements)\n {\n return Sets.mutable.with(elements);\n }\n\n @Override\n default MutableBooleanSet newBooleanForTransform(boolean... elements)\n {\n return new BooleanHashSet(elements);\n }\n\n @Override\n default MutableByteSet newByteForTransform(byte... elements)\n {\n return new ByteHashSet(elements);\n }\n\n @Override\n default MutableCharSet newCharForTransform(char... elements)\n {\n return new CharHashSet(elements);\n }\n\n @Override\n default MutableDoubleSet newDoubleForTransform(double... elements)\n {\n return new DoubleHashSet(elements);\n }\n\n @Override\n default MutableFloatSet newFloatForTransform(float... elements)\n {\n return new FloatHashSet(elements);\n }\n\n @Override\n default MutableIntSet newIntForTransform(int... elements)\n {\n return new IntHashSet(elements);\n }\n\n @Override\n default MutableLongSet newLongForTransform(long... elements)\n {\n return new LongHashSet(elements);\n }\n\n @Override\n default MutableShortSet newShortForTransform(short... elements)\n {\n return new ShortHashSet(elements);\n }\n}", "@Test\r\n public void testUnion1() {\r\n int actual[] = set1.unionOfSets(set2);\r\n Assert.assertArrayEquals(new int[] { 1, 2, 3, 4, 5 }, actual);\r\n }", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "@Test\n public void testSetLostValues() {\n System.out.println(\"setLostValues\");\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testCreateSetFromNull() {\n\t\t\ttestingSet = new IntegerSet(null); \r\n\t\t}", "boolean isCustomiseSet();", "@Test\r\n public void addToStringSet() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertTrue(s.add(\"kek\"));\r\n assertTrue(s.contains(\"kek\"));\r\n }", "@Test\r\n\tpublic void testSet() {\r\n\t\tll.add(0, t3);\r\n\t\tll.add(0, t2);\r\n\t\tll.add(2, t4);\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\r\n\t\t// valid sets\r\n\t\tll.set(0, t1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t1, ll.get(0));\r\n\t\tassertEquals(t3, ll.get(1));\r\n\r\n\t\tll.set(1, t2);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t1, ll.get(0));\r\n\t\tassertEquals(t2, ll.get(1));\r\n\t\tassertEquals(t4, ll.get(2));\r\n\r\n\t\tll.set(2, t3);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\tassertEquals(t2, ll.get(1));\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3]\r\n\r\n\t\t// invalid sets\r\n\t\ttry {\r\n\t\t\tll.set(-1, t4);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(3, t4);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(t1, ll.get(0));\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(t1, ll.get(0));\r\n\t\t}\r\n\t}", "public interface Set {\n\n /**\n * Create an empty set.\n *\n * @return the empty set\n */\n static Set createEmpty() {\n return new EmptySet();\n }\n\n /**\n * Checks if the ASet is empty.\n *\n * @return true if the set is empty, false otherwise\n */\n boolean isEmpty();\n\n /**\n * Given an {@code Integer} {@code element} add the element to the set. If {@code element} is\n * already a member of the set, we perform no operation and return back the set intact.\n *\n * @param element the new element to add to the set\n *\n * @return a newly created set that contains {@code element} and the original elements of the set.\n */\n Set add(Integer element);\n\n /**\n * Given an {@code Integer} {@code element} returns {@code true} if the element is already in the\n * set and {@code false} otherwise.\n *\n * @param element the element to check\n *\n * @return true if {@code element} is in the set, false otherwise\n */\n Boolean contains(Integer element);\n\n /**\n * Return the size of the set.\n *\n * @return return the size of the set\n */\n Integer size();\n\n /**\n * Given an element {@code element} remove it from the this list if it exists.\n *\n * @param element the element to remove\n *\n * @return set without {@code element}\n */\n Set remove(Integer element);\n\n\n /**\n * Given a set {@code other} return a new set which is the set union between {@code this} set and\n * {@code other} set.\n *\n * @param other set to perform union\n *\n * @return set union of this and other\n */\n Set union(Set other);\n\n\n /**\n * Returns the set intersection between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform intersection with\n *\n * @return set intersection between {@code this} and {@code otherSet}\n */\n Set intersect(Set otherSet);\n\n\n /**\n * Returns the set difference between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform set difference with\n *\n * @return set difference between {@code this} and {@code otherSet}\n */\n Set difference(Set otherSet);\n\n\n /**\n * Returns true if {@code this} set is a subset of {@code otherSet}.\n *\n * @param otherSet the set to check against\n *\n * @return true if this is a subset of otherSet, false otherwise\n */\n Boolean subset(Set otherSet);\n\n\n}", "public UnicodeSet getUnicodeSet() {\n/* 64 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }", "@Test\n void descendingSetLowerReturnsCorrectValue() {\n assertEquals(Integer.valueOf(1), reverseSet.lower(0));\n assertEquals(Integer.valueOf(2), reverseSet.lower(1));\n assertEquals(Integer.valueOf(4), reverseSet.lower(2));\n assertEquals(Integer.valueOf(4), reverseSet.lower(3));\n assertEquals(Integer.valueOf(6), reverseSet.lower(4));\n assertEquals(Integer.valueOf(6), reverseSet.lower(5));\n assertEquals(Integer.valueOf(9), reverseSet.lower(6));\n assertEquals(Integer.valueOf(9), reverseSet.lower(7));\n assertEquals(Integer.valueOf(9), reverseSet.lower(8));\n assertNull(reverseSet.lower(9));\n assertNull(reverseSet.lower(10));\n }", "@Test\r\n public void removeAndForEach() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n int[] expected1 = {1, 3, 4, 5};\r\n int i = 0;\r\n for (int el : s) {\r\n assertEquals(expected1[i], el);\r\n i++;\r\n }\r\n }", "@Test \r\n\t\tpublic void testinsertAll() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(list1);\r\n\t\t\t// create set = to unique values in list \r\n\t\t\ttestingSet2 = new IntegerSet(unique); \r\n\t\t\t// 2 set should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet.toArray(), testingSet2.toArray()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t}", "@Test\n\tpublic void test1() {\n\t\t// add a new method for ordering\n\t\tMySet<String> s = loadSet();\n\t\ts.add(\"a\");\n\t\ts.add(\"b\");\n\t\ts.add(\"c\");\n\t\ts.add(\"d\");\n\t\ts.add(\"e\");\n\t\ts.add(\"f\");\n\t\ts.add(\"g\");\n\t\ts.add(\"h\");\n\t\tassertEquals(8, ((MyLinkedHashSet<String>) s).map.size());\n\n\t\tString exp = \"[ a b c d e f g h ]\";\n\t\tassertEquals(exp, s.toString());\n\n\t}", "public static void main(String[] argv) throws SetException {\n\t\tString[] professor = new String[] { \"Kesden\", \"Atkeson\", \"Reddy\" };\n\t\tString[] lecturer = new String[] { \"Kesden\", \"Atkeson\", \"Joe\", \"Reddy\" };\n\t\tString[] students = new String[] { \"SungPil\", \"Joe\", \"Pom\" };\n\n\t\t// Test for constructor\n\t\tSet professorSet = new Set();\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for constructor\");\n\t\tSystem.out.println(\"No data in the Set: \" + professorSet.toString());\n\n\t\t// Test for addItem\n\t\tfor (String prof : professor)\n\t\t\tprofessorSet.addItem(prof);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItem\");\n\t\tSystem.out.println(\"Professors in the Set: \" + professorSet.toString());\n\n\t\t// Test for copy constructor\n\t\tSet professorCopySet = new Set(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for copy constructor\");\n\t\tSystem.out.println(\"Professors copy Set: \"\n\t\t\t\t+ professorCopySet.toString());\n\n\t\t// Test for addItems with Exception\n\t\tSet lecturerSet = new Set();\n\t\tfor (String lect : lecturer)\n\t\t\tlecturerSet.addItem(lect);\n\t\tSet teacherSet = new Set();\n\t\tteacherSet.addItems(professorSet);\n\t\ttry {\n\t\t\tteacherSet.addItems(lecturerSet);\n\t\t} catch (SetException se) {\n\t\t\tSystem.out.println(se.toString());\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItems\");\n\t\tSystem.out.println(\"Teacher Set: \" + teacherSet.toString());\n\n\t\t// Test for removeItem\n\t\tteacherSet.removeItem(\"Joe\");\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItem\");\n\t\tSystem.out.println(\"Joe left CMU: \" + teacherSet.toString());\n\n\t\t// Test for removeItems\n\t\tteacherSet.removeItems(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItems\");\n\t\tSystem.out\n\t\t\t\t.println(\"Professor is not teacher: \" + teacherSet.toString());\n\n\t\t// Test for member\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for memeber\");\n\t\tSystem.out.println(\"Joe is professor?: \" + professorSet.member(\"Joe\"));\n\t\tSystem.out.println(\"Joe is lecturer?: \" + lecturerSet.member(\"Joe\"));\n\n\t\t// Test for intersection\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for intersection\");\n\t\tSet intersectionSet = professorSet.intersection(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is proferssor as well as lecturer?: \"\n\t\t\t\t\t\t+ intersectionSet.toString());\n\n\t\t// Test for union\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for union\");\n\t\tSet unionSet = professorSet.union(lecturerSet);\n\t\tSystem.out.println(\"The person who is proferssor or lecturer?: \"\n\t\t\t\t+ unionSet.toString());\n\n\t\t// Test for subset\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for subset\");\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of lecturer is the subset of the group of professor?: \"\n\t\t\t\t\t\t+ professorSet.subset(lecturerSet));\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of professor is the subset of the group of lecturer?: \"\n\t\t\t\t\t\t+ lecturerSet.subset(professorSet));\n\n\t\t// Test for xor\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for xor\");\n\t\tSet xor = professorSet.xor(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is only professor or only lecturer: \"\n\t\t\t\t\t\t+ xor.toString());\n\t\tSystem.out\n\t\t\t\t.println(\"----------------------------------------------------\");\n\t}", "@Test\r\n\t\tpublic void testUnion() {\n\t\t\ttestingSet = new IntegerSet(list1);\r\n\t\t\ttestingSet2= new IntegerSet(list2);\r\n\t\t\t// 3rd set =to the union of the two lists \r\n\t\t\ttestingSet3= new IntegerSet(union);\r\n\t\t\t// 4th set equal to the union of sets 1 and 2 \r\n\t\t\ttestingSet4= testingSet.union(testingSet, testingSet2);\r\n\t\t\t// sets 3 and 4 should be equal\r\n\t\t\t// assertEquals method is deprecated \r\n\t\t\tassertArrayEquals(testingSet3.toArray(),testingSet4.toArray());\r\n\t\t\t \r\n\t\t}", "@Test\r\n\tpublic void testSet() {\r\n\t\tAssert.assertNull(list.set(100, null));\r\n\t\tAssert.assertTrue(list.get(5).equals(\r\n\t\t\t\tlist.set(5, new Munitions(4, 3, \"cuprum\"))));\r\n\t\tAssert.assertTrue(list.get(5).equals(new Munitions(4, 3, \"cuprum\")));\r\n\t}", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "public static void main(String[] args) {\n\t\tArraySet as = new ArraySet(10);\n\t\tArraySet as2 = new ArraySet();\n\n\t\t//Testing add method\n\t\tas.add(1);\n\t\tas.add(2);\n\t\tas.add(3);\n\t\tas.add(6);\n\t\tas.add(5);\n\t\tas.add(23);\n\n\t\tas2.add(2);\n\t\tas2.add(3);\n\n\t\t//Testing size method\n\t\tSystem.out.println(\"Size of as: \" + as.size() + \"\\nSize of as2: \" + as2.size());\n\n\t\t//Testing contains method\n\t\tSystem.out.println(\"as contains 2: \" + as.contains(2) + \"\\nas2 contains 5: \" + as2.contains(5));\n\n\t\t//Testing addall method\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"Testing addall on as : \" + as.toString() +\"\\nTesting addall on as2: \" + as2.toString());\n\n\t\t//Testing remove method\n\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Testing remove 5 on as: \" + as.remove(5));\n\t\t\tSystem.out.println(\"Testing remove 33 on as2: \" + as2.remove(12));\n\n\t\t} catch (NoSuchElementException name) {\n\t\t\tSystem.out.println(\"NoSuchElementException: \" + name.getMessage());\n\t\t}\n\n\t\t//Testing removeRandom method\n\t\tSystem.out.println(\"Testing removeRandom on as: \" + as.removeRandom());\n\n\t\t//Testing union method\n\t\tas.add(7);\n\t\tas.add(56);\n\n\t\tas2.add(45);\n\t\tas2.add(8);\n\t\tSystem.out.println(\"Testing union method on as: \" + as.union(as2));\n\n\t\t//Testing equals method\n\t\tSystem.out.println(\"Testing equals method: \" + as.equals(as2));\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\n\n\t\tSystem.out.println(\"Testing equals method: \" + as2.equals(as));\n\n\t\t//Testing difference method\n\t\tas2.remove(6);\n\t\tSystem.out.println(\"Testing difference method: \" + as.difference(as2));\n\n\t}", "@Test\r\n public void testCompliment1() {\r\n int actual[] = set1.getComplement();\r\n Assert.assertArrayEquals(new int[] { 100, 200, 456, 234, 890, 990, 100,\r\n 210, 500, 700, 900 }, actual);\r\n }", "public void testNormalEntrySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkEntrySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "private EmptySet() {}", "public void setUnit(Unit newUnit){\r\n tacUnit = newUnit;\r\n }", "@Test(expected = IllegalStateException.class)\n public void testRemove_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.set(2);\n\n instance.remove();\n\n }", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "@Test\r\n public void testSize1() {\r\n Assert.assertEquals(5, set1.size());\r\n }", "@Test\n public void testGetLrs() {\n System.out.println(\"getLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "@Test\n public void randomWinValueInRangeOfSet() throws NoBetsMadeException {\n Set<Bet> bets=new HashSet<Bet>();\n Bet bet1=mock(Bet.class,\"Bet1\");\n Bet bet2=mock(Bet.class,\"Bet2\");\n Bet bet3=mock(Bet.class,\"Bet3\");\n Bet bet4=mock(Bet.class,\"Bet4\");\n //\n bets.add(bet1);\n bets.add(bet2);\n bets.add(bet3);\n bets.add(bet4);\n //test bets size\n assertEquals(4,bets.size());\n //test the return BetResult: A BetResult object is expected bcs range is 1-4\n assertNotEquals(null,gameRule.determineWinner(4,bets));\n }", "protected Set() {\n size = 0;\n set = new int[TEN];\n }", "@Test\r\n public void lowerHigherDoNotContains() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n check.remove(3);\r\n assertEquals(2, (int) check.lower(3));\r\n assertEquals(4, (int) check.higher(3));\r\n assertEquals(4, (int) check.ceiling(3));\r\n assertEquals(2, (int) check.floor(3));\r\n }", "@Test\r\n public void removeAndSize() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.remove(2));\r\n assertEquals(4, s.size());\r\n assertFalse(s.remove(2));\r\n assertEquals(4, s.size());\r\n }", "@Test\n public void testAddCity_City03() {\n\n System.out.println(\"addCity\");\n City cityTest = new City(new Pair(41.243345, -8.674084), \"city0\", 28);\n Set<City> expResult = new HashSet<>();\n\n expResult.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n expResult.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n expResult.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n expResult.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n expResult.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n expResult.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n expResult.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n expResult.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n expResult.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n expResult.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n sn10.addCity(cityTest);\n Set<City> result = sn10.getCitiesList();\n assertEquals(expResult, result);\n }", "@Test\n public void whenAddThreeDifferentElementsThenSetHasThreeTheSameElements() {\n SimpleSet<Integer> set = new SimpleSet<>();\n set.add(1);\n set.add(2);\n set.add(3);\n\n Iterator<Integer> iterator = set.iterator();\n\n assertThat(iterator.next(), is(1));\n assertThat(iterator.next(), is(2));\n assertThat(iterator.next(), is(3));\n assertThat(iterator.hasNext(), is(false));\n }", "@Test\n\tpublic void endBorder() {\n\n\t\tassertEquals(set.size(), set.getEnd());\n\t\tset.endAt(1);\n\t\tassertEquals(1, set.getEnd());\n\t}", "@Test\r\n public void NegativeTestSize1() {\r\n Assert.assertNotEquals(1, set1.size());\r\n }", "protected HashSet getNoDesc(){\n return tester.noDesc;\n }", "public static void main(String[] args) {\n/*\n * Implementações\n * Set notas = new HashSet(); --> antes do Java 5\n * HashSet<Double> notas = new HashSet<>();\n * Set<Double> notas = new HashSet<>(); //--> Generics (jdk5) - Diamond Operator(jdk7)\n * \n */\n\t\t//--> Set não aceita elementos duplicados \n//\t\tSet<Double> notas = Set.of(7d, 8.5, 9.3, 5d, 7d, 0d, 3.6); \t\t\n//\t\tnotas.add(1d);\n//\t\tnotas.add(1d);\n//\t\tSystem.out.println(notas);\n\t\t\n\t\t\tSystem.out.println(\"Crie um conjunto e adicione as notas:\");\n\t\t\t//Elementos serão impressos em ordem aleatória\n\t\t\t//Elementos duplicados não serão impressos\n\t\t\tSet<Double> notas = new HashSet<>(Arrays.asList(7d, 8.5, 9.3, 5d, 7d, 0d, 3.6));\n\t\t\tSystem.out.println(notas.toString());\n\t\t\t\n\t\t\t//indexOf --> Set não trabalha com indice, não é possível fazer a pesquisa\n//\t\t\tSystem.out.println(\"Exiba a posição da nota 5.0: \" + notas.indexOf(5.0));\n\n\t\t\t\t// não se trabalha com indice(posição) no Set\n//\t\t\t\tSystem.out.println(\"Adicione na lista a nota 8.0 na posição 4: \");\n\n\t\t\t\t// set --> não há como fazer atualizacao usando Set\n//\t\t\t\tSystem.out.println(\"Substitua a nota 5.0 pela nota 6.0:\");\n//\t\t\t\tnotas.set(notas.indexOf(5.0), 6.0);\n//\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t// contains --> retorna boolean (true or false) se determinado elemento existe\n\t\t\t\t// na lista\n\t\t\t\tSystem.out.println(\"Confira se a nota 5.0 está na lista: \" + notas.contains(5.0));\n\n\t\t\t\t// get --> não consegue executar o método em Set apenas em List\n//\t\t\t\tSystem.out.println(\"Exiba a terceira nota: \" + notas.get(2));\n//\t\t\t\tSystem.out.println(notas.toString());\n\t\t\t\t\n\t\t\t\t// Collections.min/max --> não existem métodos nativos em Set para\n\t\t\t\t// comparacao de valores minimos e maximos\n\t\t\t\t// porém sendo Set uma Collection\n\t\t\t\t// pode-se utilizar metodos de Collections na implementacao\n\t\t\t\tSystem.out.println(\"Exiba a menor nota: \" + Collections.min(notas));\n\t\t\t\t// Collections.max\n\t\t\t\tSystem.out.println(\"Exiba a maior nota: \" + Collections.max(notas));\n\t\t\t\t\n\t\t\t\t// Soma de valores\n\t\t\t\tIterator<Double> iterator = notas.iterator();\n\t\t\t\tDouble soma = 0d;\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\tDouble next = iterator.next();\n\t\t\t\t\tsoma += next;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Exiba a soma dos valores: \" + soma);\n\n\t\t\t\t// Media dos valores\n\t\t\t\tSystem.out.println(\"Exiba a média dos valores: \" + (soma / notas.size()));\n\n\t\t\t\t// remove --> pode ser usado para remocao pelo elemento ou indice\n\t\t\t\tSystem.out.println(\"Remova a nota 0.0\");\n\t\t\t\tnotas.remove(0.0); // remocao do elemento 0.0 ou 0d\n\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t// remove na posição --> não pode ser usado pois Set não é indexado\n//\t\t\t\tSystem.out.println(\"Remova a nota na posição 0\");\n//\t\t\t\tnotas.remove(0);\n//\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t// Remocao de uma colecao de elementos\n\t\t\t\tIterator<Double> iterator1 = notas.iterator();\n\t\t\t\twhile (iterator1.hasNext()) {\n\t\t\t\t\tDouble next = iterator1.next();\n\t\t\t\t\tif (next < 7)\n\t\t\t\t\t\titerator1.remove();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(notas);\n\n\t\t\t\t//Implementando o conjunto com LinkedHasSet\n\t\t\t\t//Exibir os elementos na ordem em que foram inseridos\n\t\t\t\tSystem.out.println(\"Exiba todas as notas na ordem em que foram inseridos:\");\n\t\t\t\tSet<Double> notas2 = new LinkedHashSet<>();\n\t\t\t\tnotas2.add(7.0);\n\t\t\t\tnotas2.add(8.5);\n\t\t\t\tnotas2.add(9.3);\n\t\t\t\tnotas2.add(5.0);\n\t\t\t\tnotas2.add(7.0);\n\t\t\t\tnotas2.add(0.0);\n\t\t\t\tnotas2.add(3.6);\n\t\t\t\t\n\t\t\t\tSystem.out.println(notas2);\n\n\t\t\t\t//Implementando o conjunto com TreeSet\n\t\t\t\t//Exibir os elementos na ordem crescente\n\t\t\t\tSystem.out.println(\"Exiba todas as notas na ordem crescente:\");\n\t\t\t\tSet<Double> notas3 = new TreeSet<>(notas2);\n\t\t\t\tSystem.out.println(notas3);\n\t\t\t\t\n\t\t\t\t// clear --> apagar um conjunto\t\t\n\t\t\t\tSystem.out.println(\"Apague todo o conjunto\"); \n\t\t\t\tnotas.clear();\n\t\t\t\tSystem.out.println(notas);\n\t\t\t\t\n\t\t\t\t// isEmpty --> retorna boolean (true or false) para validacao se a lista\n\t\t\t\t// encontra-se vazia ou nao\n\t\t\t\tSystem.out.println(\"Confira se o conjunto está vazio notas1: \" + notas.isEmpty());\n\t\t\t\tSystem.out.println(\"Confira se o conjunto está vazio notas2: \" + notas2.isEmpty());\n\t\t\t\tSystem.out.println(\"Confira se o conjunto está vazio: notas3\" + notas3.isEmpty());\n\t\t\t}", "public static void main(String[] args) {\n\t\tSet<Numbers> enumSet = EnumSet.of(Numbers.ONE,Numbers.TWO,Numbers.THREE,Numbers.FOUR,Numbers.FIVE);\n\t\t \n\t\t\tSystem.out.println(\"enumSet: \" + enumSet);\n\t\t\tSystem.out.println(\"contains: \" + enumSet.contains(Numbers.ONE));\n\t\t\tSystem.out.println(\"isEmpty: \" + enumSet.isEmpty());\n\t\t\tSystem.out.println(\"iterator: \" + enumSet.iterator());\n\t\t\tSystem.out.println(\"remove: \" + enumSet.remove(Numbers.THREE));\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t\t\tSystem.out.println(\"size: \" + enumSet.size());\n\t\t\tenumSet.clear();\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t}", "@Test\n public void test17() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1337,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test17\");\n LinkedHashSet<Object> linkedHashSet0 = new LinkedHashSet<Object>();\n ResettableIterator<Object> resettableIterator0 = IteratorUtils.loopingIterator((Collection<?>) linkedHashSet0);\n assertEquals(false, resettableIterator0.hasNext());\n }", "@Test\n public void testSet_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.set(2, 9);\n\n List<Integer> expResult = Arrays.asList(1, 1, 9, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }", "@Test(expected = NoBetsMadeException.class)\n public void betsSetIsNullOrEmpty() throws NoBetsMadeException {\n Set<Bet> bets=null;\n //test when set is null\n gameRule.determineWinner(1,bets);\n //test when set is empty\n bets=new HashSet<Bet>();\n gameRule.determineWinner(1,bets);\n }", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"\";\n Unit instance = new Unit();\n instance.setName(name);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\t public void test_Union_Set_Same() throws Exception{\n\t\t int[] setarray1= new int[]{1,2,3};\n\t\t int[] setarray2= new int[]{1,2,3};\n\t\t SET set = new SET(setarray1);\n\t\t int returnedArrOperation[] =set.Union(setarray1,setarray2); \n\t\t int []expectedArr = new int[] {1,2,3};\n\t\t Assert.assertArrayEquals( expectedArr, returnedArrOperation );\n\t }", "Set createSet();", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public void testPersistence() {\n ImmutableSet<Integer> set = new ImmutableSet();\n for (int i = -50; i < 51; i++) {\n set.add(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n for(int i = -50; i < 51; i++) {\n set.remove(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n }", "private void testSet() {\n init();\n assertTrue(\"l2.set(l2, 0, 39)\", \n FListInteger.get(l2.set(l2, 0, 39), 0) == 39);\n assertTrue(\"l2.set(l2, 0, 51)\", \n FListInteger.get(l2.set(l2, 0, 51), 0) == 51);\n assertTrue(\"l1.set(l1, 0, 10101)\",\n FListInteger.get(l1.set(l1, 0, 10101), 0) == 10101);\n }", "@Test\n public void testSetCodeExamples() {\n logger.info(\"Beginning testSetCodeExamples()...\");\n\n // Create some sets\n Set<Integer> emptySet = new Set<>();\n\n Integer[] first = { 1, 2, 3, 4 };\n Set<Integer> firstSet = new Set<>(first);\n\n Integer[] second = { 3, 4, 5, 6 };\n Set<Integer> secondSet = new Set<>(second);\n\n Integer[] third = { 3, 4 };\n Set<Integer> thirdSet = new Set<>(third);\n\n Integer[] fourth = { 1, 2 };\n Set<Integer> fourthSet = new Set<>(fourth);\n\n Integer[] fifth = { 1, 2, 3, 4, 5, 6 };\n Set<Integer> fifthSet = new Set<>(fifth);\n\n Integer[] sixth = { 1, 2, 5, 6 };\n Set<Integer> sixthSet = new Set<>(sixth);\n\n // Find the logical \"and\" with an empty set\n Set<Integer> set = Set.and(emptySet, firstSet);\n assert set.isEmpty();\n logger.info(\"{} and {} yields {}\", emptySet, firstSet, set);\n\n // Find the logical \"and\" with non-empty sets\n set = Set.and(firstSet, secondSet);\n assert set.equals(thirdSet);\n logger.info(\"{} and {} yields {}\", firstSet, secondSet, set);\n\n // Find the logical \"sans\" (same as \"a and not b\")\n set = Set.sans(firstSet, secondSet);\n assert set.equals(fourthSet);\n logger.info(\"{} sans {} yields {}\", firstSet, secondSet, set);\n\n // Find the logical \"or\" with an empty set\n set = Set.or(emptySet, firstSet);\n assert !set.isEmpty();\n logger.info(\"{} or {} yields {}\", emptySet, firstSet, set);\n\n // Find the logical \"or\" with non-empty sets\n set = Set.or(firstSet, secondSet);\n assert set.equals(fifthSet);\n logger.info(\"{} or {} yields {}\", firstSet, secondSet, set);\n\n // Find the logical \"xor\" (same as \"(a and not b) or (not a and b)\")\n set = Set.xor(firstSet, secondSet);\n assert set.equals(sixthSet);\n logger.info(\"{} xor {} yields {}\", firstSet, secondSet, set);\n\n logger.info(\"Completed testSetCodeExamples().\\n\");\n }", "boolean getSet();", "protected void setBreak() {\n shouldBreak = true;\n }", "@Test\n public void randomWinValueNotInRangeOfSet() throws NoBetsMadeException {\n Set<Bet> bets=new HashSet<Bet>();\n bets.add(mock(Bet.class,\"Bet1\"));\n bets.add(mock(Bet.class,\"Bet2\"));\n bets.add(mock(Bet.class,\"Bet3\"));\n bets.add(mock(Bet.class,\"Bet4\"));\n //test bets size\n assertEquals(4,bets.size());\n //test the return BetResult: null is expected bcs range is 1-4\n assertEquals(null,gameRule.determineWinner(5,bets));\n assertEquals(null,gameRule.determineWinner(0,bets));\n }", "@Test\n public void testSetCitiesList() {\n System.out.println(\"setCitiesList\");\n Set<City> citiesList = new HashSet<>();\n\n sn10.setCitiesList(citiesList);\n assertEquals(citiesList, sn10.getCitiesList());\n }", "@Test\n\tpublic void addSameValueTwice() {\n\t\tXSet xset = new XSet(3);\n\t\txset.add(1);\n\t\txset.add(1);\n\t\tassertTrue(xset.getSize() == 1);\n\t}", "@Test\n public void testAdd_After_Set() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n ;\n\n instance.set(3);\n instance.add(9);\n int expResult = 2;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "@Test\n\tpublic void testListsAndSets() throws Exception {\n\t\ttestWith(TestClassListAndSet.getInstance());\n\t}", "@Test\n public void testAddEligibleSetters() {\n System.out.println(\"addEligibleSetters\");\n int[] IDs = new int[2];\n IDs[0] = 98;\n IDs[1] = 99;\n\n instance.addEligibleSetters(IDs);\n\n assertTrue(\"Setters not added to eligibility lists\", instance.isSetterEligible(98)\n && instance.isSetterEligible(99));\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}", "public InbreedingCoeff(){\n super((Set<String>) null);\n }", "public static void main(String[] args) {\n Set<BankAccount> set=new TreeSet(new BankAccountTest());\n\tset.add(new BankAccount(128,\"mallika\",2000.0));\n\tset.add(new BankAccount(124,\"sallika1\",21000.0));\n\tset.add(new BankAccount(125,\"nallika2\",20000));\t\n\tfor(BankAccount bank:set){\n\t\tSystem.out.println(bank);\n\t}\n \n\t}", "@Test\r\n\t\tpublic void testDeleteAll() {\n\t\t\ttestingSet = new IntegerSet(); \r\n\t\t\ttestingSet.insertAll(list1); \r\n\t\t\ttestingSet.deleteAll();\r\n\t\t\t// after data is deleted set should be empty \r\n\t\t\tassertTrue(testingSet.isEmpty());\r\n\t\t}", "public static void main(String[] args) {\n SortedSet<Long> longTreeSet = new TreeSet<>();\n longTreeSet.add(3L);\n longTreeSet.add(3L);\n longTreeSet.add(39L);\n longTreeSet.add(30L);\n longTreeSet.add(30L);\n\n System.out.println(\"longTreeSet = \" + longTreeSet);\n System.out.println(\"longTreeSet.size() = \" + longTreeSet.size());\n System.out.println(\"longTreeSet.first() = \" + longTreeSet.first());\n System.out.println(\"longTreeSet.last() = \" + longTreeSet.last());\n\n longTreeSet.addAll(Arrays.asList(15L, 18L, 15L, 18L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n //longTreeSet.add(null);\n // System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n System.out.println(\"longTreeSet.subSet(15L, 21L) = \" + longTreeSet.subSet(15L, 30L));\n System.out.println(\"longTreeSet.headSet(18L) = \" + longTreeSet.headSet(18L));\n System.out.println(\"longTreeSet.tailSet(18L) = \" + longTreeSet.tailSet(18L));\n\n SortedSet<Long> tailView = longTreeSet.tailSet(18L);\n System.out.println(\"tailView.remove(30L) = \" + tailView.remove(30L));\n System.out.println(\"longTreeSet = \" + longTreeSet);\n\n\n\n }", "public TestData getMixedLinkedSetTestData() {\n\t\tString dataName = \"MixedLinkedSet\";\n\t\tString xml = getJavaTestXml(dataName);\n\t\tObject obj = new LinkedHashSet<>(Arrays.asList(getColletionData()));\n\t\treturn new TestData(xml, obj);\n\t}", "public static void main(String[] args) {\n Set<Integer> set = new HashSet<>();\n\n\n // elementy w secie nie są poukładane\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(4);\n set.add(5);\n set.add(5);\n set.add(5);\n set.add(null);\n set.add(null);\n System.out.println(set);// elementów: 6\n\n\n\n Set<String> setString = new HashSet<>();\n\n List<Integer> ar = new ArrayList<>();\n }", "@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}", "@Test\n public void AfterAddingDuplicatetheSizeShouldBeOne() throws MySetException {\n set.add(1);\n assertThat(set.size(), is(1));\n }", "public AgileSet() {\n currentSize = 0.0;\n }", "@Test\n public void testSet_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }", "@Test(expected = IllegalStateException.class)\n public void testSet_After_Remove() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n instance.remove();\n\n instance.set(2);\n\n }", "public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "private Set<T> getMemory() { return null; }", "@Test\n public void testSet_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.set(2, 9);\n\n List<Integer> expResult = Arrays.asList(1, 1, 9, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "protected HashSet getNotTraversable(){\n tester.removeTraversedComponents();\n return tester.traversableComponents;\n }", "public UnitSetLoader()\n\t{\n\t // Empty Constructor\n\t}", "public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }", "public interface ISet<T> {\n\n // Maximum possible size of data structures\n int MAX_SIZE = 100;\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain one of each int from both unionWith and this]\n * @param unionWith ISet to find the union from\n */\n default void union(ISet<T> unionWith) {\n T temp;\n int tsize = unionWith.getSize();\n//For every element in unionWith...\n for (int i = 0; i < tsize; i++) {\n //Store value at first position\n //Remove value from unionWith\n temp = unionWith.removePos(0);\n //If this set does not contain value from unionWith...\n if (!this.contains(temp)) {\n //Add value to this set\n this.add(temp);\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are not in diffWith]\n * @param diffWith ISet to find the difference from\n */\n default void difference(ISet<T> diffWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If diffWith does not contain value from this set...\n if(!diffWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are also found in intWith]\n * @param intWith ISet to find the intersection from\n */\n default void intersect(ISet<T> intWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If intWith does not contain value from this set...\n if(intWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n\n }\n\n\n /**\n * @pre [ISet initialized]\n * @post [ISet contains same elements with a\n * new element - add - placed at the end]\n * @param add T value to be added to ISet\n */\n void add(T add);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and pos >= 0\n * @post [ISet contains same elements as\n * when it was passed, without element at pos] and [T returned]\n * @param pos position in ISet to be removed\n * @return T of position where the element was removed\n */\n T removePos(int pos);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and val != NULL\n * @post [ISet unmodified] and [boolean returned]\n * @param val value to be searched in ISet\n * @return true if ISet contains val, otherwise false\n */\n boolean contains(T val);\n\n /**\n * @pre [ISet initialized with constructor]\n * @post [ISet, size of ISet unmodified] and [int returned]\n * @return int value of the size of the ISet\n */\n int getSize();\n\n}", "public Set(Set original) throws SetException {\n\t\tthis();\n\t\taddItems(original);\n\t}", "@Test\r\n public void addWorks() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n assertTrue(s.add(1));\r\n assertTrue(s.contains(1));\r\n assertFalse(s.add(1));\r\n }", "@Test\n public void testRemoveSetting() {\n System.out.println(\"removeSetting\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n Setting[] settings = {s, s1, s2, s3};\n for (Setting ss : settings) {\n assertFalse(Setting.isNotUsed(ss.getName()));\n }\n Setting.removeSetting(s3);\n for (int i = 0; i < 3; i++) {\n assertFalse(Setting.isNotUsed(settings[i].getName()));\n }\n assertTrue(Setting.isNotUsed(s3.getName()));\n for (Setting ss : settings) {\n Setting.removeSetting(ss);\n }\n for (Setting ss : settings) {\n assertTrue(Setting.isNotUsed(ss.getName()));\n }\n }", "@Test\n\tpublic void testRemove1() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\n\t\tint notremove = 10;\n\n\t\t// test remove\n\n\t\tlistObj2.remove(notremove);\n\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t}", "@Test\r\n public void testSetLisrFournisseur() {\r\n System.out.println(\"setLisrFournisseur\");\r\n List<Fournisseur> lisrFournisseur = null;\r\n \r\n chequeBeans instance = new chequeBeans();\r\n instance.setLisrFournisseur(lisrFournisseur);\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }" ]
[ "0.5996185", "0.57997715", "0.5705461", "0.56524575", "0.56440485", "0.55696344", "0.5519443", "0.55127656", "0.5493064", "0.54852027", "0.54620534", "0.5448676", "0.5425293", "0.54246247", "0.5414934", "0.54137045", "0.5410321", "0.53887707", "0.538761", "0.5385382", "0.53832257", "0.5383054", "0.53613544", "0.53452694", "0.5339413", "0.5337342", "0.5335151", "0.53301907", "0.53194606", "0.5307485", "0.52900577", "0.52899754", "0.5286932", "0.52824455", "0.5275738", "0.5266937", "0.52618074", "0.5255308", "0.52550095", "0.5253463", "0.52512634", "0.5246075", "0.5233161", "0.52224797", "0.52152467", "0.52141887", "0.5213558", "0.5212452", "0.52051806", "0.5204266", "0.5204053", "0.5197264", "0.51930195", "0.5189987", "0.5189178", "0.51819384", "0.51810634", "0.5177516", "0.51760393", "0.5174549", "0.5166078", "0.51527625", "0.51507056", "0.51496387", "0.5147849", "0.5147663", "0.51462007", "0.51351", "0.5126195", "0.51221293", "0.51206136", "0.51055765", "0.51033145", "0.5102145", "0.5096716", "0.50951636", "0.5093721", "0.5093102", "0.5088052", "0.50844496", "0.5080793", "0.5080578", "0.5076659", "0.50759524", "0.50719786", "0.5069221", "0.50638306", "0.5055679", "0.5055199", "0.5052511", "0.50439584", "0.5037023", "0.5034011", "0.50258636", "0.5025608", "0.50248677", "0.50138634", "0.50106865", "0.50078464", "0.5006317", "0.50019294" ]
0.0
-1
Testet, ob ein gueltiges Set von Rauemen angenommen wird.
@Test public void testSetRooms() { breaku1.setRooms(rooms1); externu1.setRooms(rooms1); meetingu1.setRooms(rooms1); teachu1.setRooms(rooms1); assertEquals(rooms1, breaku1.getRooms()); assertEquals(rooms1, externu1.getRooms()); assertEquals(rooms1, meetingu1.getRooms()); assertEquals(rooms1, teachu1.getRooms()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "boolean isCustomiseSet();", "protected Set<E> ensureSet()\n {\n Set<E> set = m_set;\n if (set == null)\n {\n set = m_set = new LiteSet<>();\n }\n return set;\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testAllNull() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(null);\r\n\t\t\t// check if set is null \r\n \t\t\tassertNull(testingSet);\r\n\t\t}", "boolean getSet();", "@Override\n public LinkedHashSet<String> testSet() {\n LinkedHashSet<String> testNameSet = new LinkedHashSet<>();\n testNameSet.add(\"test1\");\n return testNameSet;\n }", "Set createSet();", "public static void main(String[] args) {\n Set<Integer> set = new HashSet<>();\n\n\n // elementy w secie nie są poukładane\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(4);\n set.add(5);\n set.add(5);\n set.add(5);\n set.add(null);\n set.add(null);\n System.out.println(set);// elementów: 6\n\n\n\n Set<String> setString = new HashSet<>();\n\n List<Integer> ar = new ArrayList<>();\n }", "@Test\n public void testGetLrs() {\n System.out.println(\"getLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "@Test\r\n public void addAllFromSet() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.contains(1));\r\n assertTrue(s.contains(2));\r\n assertTrue(s.contains(3));\r\n assertTrue(s.contains(4));\r\n assertTrue(s.contains(5));\r\n }", "@Test\n\tpublic void testAddAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t Set<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.addAll(setB);\n\t Set<Integer> union = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));\n\t assertEquals(setA, union);\n }", "@Test\n\tpublic void test1() {\n\t\t// add a new method for ordering\n\t\tMySet<String> s = loadSet();\n\t\ts.add(\"a\");\n\t\ts.add(\"b\");\n\t\ts.add(\"c\");\n\t\ts.add(\"d\");\n\t\ts.add(\"e\");\n\t\ts.add(\"f\");\n\t\ts.add(\"g\");\n\t\ts.add(\"h\");\n\t\tassertEquals(8, ((MyLinkedHashSet<String>) s).map.size());\n\n\t\tString exp = \"[ a b c d e f g h ]\";\n\t\tassertEquals(exp, s.toString());\n\n\t}", "@Test \r\n\t\tpublic void testinsertAll() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(list1);\r\n\t\t\t// create set = to unique values in list \r\n\t\t\ttestingSet2 = new IntegerSet(unique); \r\n\t\t\t// 2 set should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet.toArray(), testingSet2.toArray()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t}", "@Test\r\n public void descendingSet() throws Exception {\r\n TreeSet<Integer> kek = new TreeSet<>();\r\n kek.addAll(sInt);\r\n TreeSet<Integer> check = (TreeSet<Integer>) kek.descendingSet();\r\n check.add(43);\r\n assertTrue(check.contains(43));\r\n assertTrue(kek.contains(43));\r\n assertTrue(kek.remove(43));\r\n assertFalse(check.contains(43));\r\n assertFalse(kek.contains(43));\r\n }", "@Override\n\tpublic Set<T> valeurs() {\n\t\treturn Set.of(val);\n\t}", "private Set<E> toSet(Node<E> n) {\n Set<E> result = new HashSet<>();\n toSet(result, n);\n return result;\n }", "@Test\r\n public void addToStringSet() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertTrue(s.add(\"kek\"));\r\n assertTrue(s.contains(\"kek\"));\r\n }", "public RandomizedSet() {\n realSet = new HashSet<>();\n allSet = new Integer[10];\n random = new Random();\n }", "public static void main(String[] args) {\n\n TreeSet<String> set = new TreeSet<String>();\n try {\n set.add(\"hello\");\n set.add(\"world\");\n set.add(\"welcome\");\n set.add(\"all\");\n set.add(\"all\");\n set.add(\"welcome\");\n\n for (String num : set) {\n System.out.println( num);\n\n }\n// set.add(null);\n } catch (NullPointerException e) {\n System.out.println(e);\n System.out.println(\"Set doesn't allow null value and duplicate value\");\n }\n\n }", "@Test\n public void whenAddSeveralIdenticalElementsThenSetHasOnlyOneSuchElement() {\n SimpleSet<Integer> set = new SimpleSet<>();\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(3);\n set.add(2);\n set.add(1);\n\n Iterator<Integer> iterator = set.iterator();\n\n assertThat(iterator.next(), is(1));\n assertThat(iterator.next(), is(2));\n assertThat(iterator.next(), is(3));\n assertThat(iterator.hasNext(), is(false));\n }", "public RandomizedSet() {\n set = new HashSet<Integer>();\n }", "public RandomizedSet() {\r\n set = new HashSet<>();\r\n }", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}", "public void test_retainAll() {\r\n try {\r\n List<WrongHashCode> retain = new ArrayList<WrongHashCode>();\r\n retain.add(new WrongHashCode(\"1\"));\r\n \r\n Set<WrongHashCode> set = IdentityHashSet.create();\r\n set.add(new WrongHashCode(\"2\"));\r\n \r\n assertTrue(set.retainAll(retain));\r\n assertEquals(0, set.size());\r\n \r\n fail(\"retainAll works now, rewrite test\");\r\n } catch (UnsupportedOperationException e) {\r\n //passed\r\n }\r\n }", "public ImmutableSetTest( String testName )\n {\n super( testName );\n }", "public static <T extends Comparable<T>> boolean testSet(ISet<T> set, String name,\n T[] data, T _invalid) {\n for (int i = 0; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n boolean contains = set.contains(_invalid);\n boolean removed = set.remove(_invalid);\n if (contains || removed) {\n System.err.println(name+\" invalidity check. contains=\" + contains + \" removed=\" + removed);\n Utils.handleError(_invalid,set);\n return false;\n }\n\n int size = set.size();\n for (int i = 0; i < size; i++) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != data.length-(i+1))) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n // Add half, remove a quarter, add three-quarters, remove all\n int quarter = data.length/4;\n int half = data.length/2;\n for (int i = 0; i < half; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = (half-1); i >= quarter; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = quarter; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = data.length-1; i >= 0; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if ((!removed || set.contains(item))) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n if (set.size() != 0) {\n System.err.println(name+\" YIKES!! a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n \n return true;\n }", "private EmptySet() {}", "public RandomizedSet() {\n map = new HashMap<Integer, Integer>();\n set = new ArrayList<Integer>();\n int validLength = 0;\n }", "@Test\n public void testEquals() {\n \t\n \t//create data set\n \tString strJava = \"java\";\n \tString strScala = \"scala\";\n \tString strPhp = \"php\";\n \t\n \tfinal LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n\n \tlastWriteWinSet1.add(time1, strJava);\n \tlastWriteWinSet1.add(time1, strScala);\n \tlastWriteWinSet1.add(time1, strPhp);\n\n \tlastWriteWinSet1.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n\n lastWriteWinSet2.add(time1, strJava);\n lastWriteWinSet2.add(time1, strScala);\n lastWriteWinSet2.add(time1, strPhp);\n\n lastWriteWinSet2.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet3 = lastWriteWinSet2;\n \t\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet3.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet1));\n assertTrue(!lastWriteWinSet1.equals(null));\n }", "public void testPersistence() {\n ImmutableSet<Integer> set = new ImmutableSet();\n for (int i = -50; i < 51; i++) {\n set.add(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n for(int i = -50; i < 51; i++) {\n set.remove(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n }", "public SetSet() {\n\t}", "@Override\n public Set<T> asSet() {\n return new AbstractSet<T>() {\n @Override\n public Iterator<T> iterator() {\n return new Iterator<T>() {\n boolean foundNext;\n boolean hasNext;\n T next;\n \n private void findNext() {\n if (!foundNext) {\n hasNext = isPresent();\n if (hasNext) {\n try {\n next = get();\n } catch (NoSuchElementException e) {\n // in case there was a race and the value became absent\n hasNext = false;\n next = null;\n }\n } else {\n next = null;\n }\n foundNext = true;\n }\n }\n \n @Override\n public boolean hasNext() {\n findNext();\n return hasNext;\n }\n\n @Override\n public T next() {\n findNext();\n if (hasNext) {\n // no next after consuming the single present value \n hasNext = false;\n T ret = next;\n next = null;\n return ret;\n }\n throw new NoSuchElementException();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }\n\n @Override\n public int size() {\n return isPresent() ? 1 : 0;\n }\n };\n }", "public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }", "private HashSet addGranteeAndRoles(HashSet set) {\n\n RoleManager rm = getRoleManager();\n String candidateRole;\n\n set.add(sName);\n\n Iterator it = roles.iterator();\n\n while (it.hasNext()) {\n candidateRole = (String) it.next();\n\n if (!set.contains(candidateRole)) {\n try {\n rm.getGrantee(candidateRole).addGranteeAndRoles(set);\n } catch (HsqlException he) {\n throw new RuntimeException(he.getMessage());\n }\n }\n }\n\n return set;\n }", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "@Test\n public void test17() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1337,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test17\");\n LinkedHashSet<Object> linkedHashSet0 = new LinkedHashSet<Object>();\n ResettableIterator<Object> resettableIterator0 = IteratorUtils.loopingIterator((Collection<?>) linkedHashSet0);\n assertEquals(false, resettableIterator0.hasNext());\n }", "@Test\n public void whenAddThreeDifferentElementsThenSetHasThreeTheSameElements() {\n SimpleSet<Integer> set = new SimpleSet<>();\n set.add(1);\n set.add(2);\n set.add(3);\n\n Iterator<Integer> iterator = set.iterator();\n\n assertThat(iterator.next(), is(1));\n assertThat(iterator.next(), is(2));\n assertThat(iterator.next(), is(3));\n assertThat(iterator.hasNext(), is(false));\n }", "public Set<T> m37700a() {\n return new LinkedHashSet();\n }", "public interface Set {\n\n /**\n * Create an empty set.\n *\n * @return the empty set\n */\n static Set createEmpty() {\n return new EmptySet();\n }\n\n /**\n * Checks if the ASet is empty.\n *\n * @return true if the set is empty, false otherwise\n */\n boolean isEmpty();\n\n /**\n * Given an {@code Integer} {@code element} add the element to the set. If {@code element} is\n * already a member of the set, we perform no operation and return back the set intact.\n *\n * @param element the new element to add to the set\n *\n * @return a newly created set that contains {@code element} and the original elements of the set.\n */\n Set add(Integer element);\n\n /**\n * Given an {@code Integer} {@code element} returns {@code true} if the element is already in the\n * set and {@code false} otherwise.\n *\n * @param element the element to check\n *\n * @return true if {@code element} is in the set, false otherwise\n */\n Boolean contains(Integer element);\n\n /**\n * Return the size of the set.\n *\n * @return return the size of the set\n */\n Integer size();\n\n /**\n * Given an element {@code element} remove it from the this list if it exists.\n *\n * @param element the element to remove\n *\n * @return set without {@code element}\n */\n Set remove(Integer element);\n\n\n /**\n * Given a set {@code other} return a new set which is the set union between {@code this} set and\n * {@code other} set.\n *\n * @param other set to perform union\n *\n * @return set union of this and other\n */\n Set union(Set other);\n\n\n /**\n * Returns the set intersection between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform intersection with\n *\n * @return set intersection between {@code this} and {@code otherSet}\n */\n Set intersect(Set otherSet);\n\n\n /**\n * Returns the set difference between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform set difference with\n *\n * @return set difference between {@code this} and {@code otherSet}\n */\n Set difference(Set otherSet);\n\n\n /**\n * Returns true if {@code this} set is a subset of {@code otherSet}.\n *\n * @param otherSet the set to check against\n *\n * @return true if this is a subset of otherSet, false otherwise\n */\n Boolean subset(Set otherSet);\n\n\n}", "@Test\r\n\t\tpublic void testDeleteAll() {\n\t\t\ttestingSet = new IntegerSet(); \r\n\t\t\ttestingSet.insertAll(list1); \r\n\t\t\ttestingSet.deleteAll();\r\n\t\t\t// after data is deleted set should be empty \r\n\t\t\tassertTrue(testingSet.isEmpty());\r\n\t\t}", "@Test\r\n public void addAllFromSetWithStrings() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n s.addAll(sStr);\r\n assertTrue(s.contains(\"kek\"));\r\n assertTrue(s.contains(\"lel\"));\r\n assertTrue(s.contains(\"lol\"));\r\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testCreateSetFromNull() {\n\t\t\ttestingSet = new IntegerSet(null); \r\n\t\t}", "@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "public void check_union_set(boolean on){\r\n this.e_union_set = on;\r\n }", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "@Test\r\n public void testRegexpSetExclusion() {\r\n rs.getRegexp(reString);\r\n final Set<String> s1 = rs.getRegexpSet();\r\n stringSet.add(reString);\r\n s1.removeAll(stringSet);\r\n assertTrue(s1.isEmpty());\r\n }", "public SetTest()\r\n\t{\r\n\t\tList< String > list = Arrays.asList( colors );\r\n\t\tSystem.out.printf( \"ArrayList: %s\\n\", list );\r\n\t\tprintNonDuplicates( list );\r\n\t\tprintSortedNonDuplicates(list);\r\n\t\t}", "static void arrayToSet()\n\t{\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\tString arr[] = {\"A\",\"B\",\"C\",\"D\",\"E\",\"A\"};\n\t\t\t\n\t\t\toList = Arrays.asList(arr);\n\t\t\tSystem.out.println(\"List: \"+oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>(oList);\n\t\t\t\n\t\t\tSystem.out.println(\"Set: \"+oSet);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet = null;\n\t\t}\n\t}", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "public SetTest()\r\n {\r\n List< String > list = Arrays.asList( colors );\r\n System.out.printf( \"ArrayList: %s\\n\", list );\r\n printNonDuplicates( list );\r\n }", "public boolean isEqualTo (OrderedSet set) {\n if (set==null || size!=set.size)\n return false;\n for (DoubleLinkedList p=first; p!=null; p=p.getNext()) {\n if (set.dictionary.get(p.getInfo()) == null)\n\treturn false;\n }\n for (DoubleLinkedList p=set.first; p!=null; p=p.getNext()) {\n if (dictionary.get(p.getInfo()) == null)\n\treturn false;\n }\n return true;\n }", "@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }", "public static void main(String[] argv) throws SetException {\n\t\tString[] professor = new String[] { \"Kesden\", \"Atkeson\", \"Reddy\" };\n\t\tString[] lecturer = new String[] { \"Kesden\", \"Atkeson\", \"Joe\", \"Reddy\" };\n\t\tString[] students = new String[] { \"SungPil\", \"Joe\", \"Pom\" };\n\n\t\t// Test for constructor\n\t\tSet professorSet = new Set();\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for constructor\");\n\t\tSystem.out.println(\"No data in the Set: \" + professorSet.toString());\n\n\t\t// Test for addItem\n\t\tfor (String prof : professor)\n\t\t\tprofessorSet.addItem(prof);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItem\");\n\t\tSystem.out.println(\"Professors in the Set: \" + professorSet.toString());\n\n\t\t// Test for copy constructor\n\t\tSet professorCopySet = new Set(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for copy constructor\");\n\t\tSystem.out.println(\"Professors copy Set: \"\n\t\t\t\t+ professorCopySet.toString());\n\n\t\t// Test for addItems with Exception\n\t\tSet lecturerSet = new Set();\n\t\tfor (String lect : lecturer)\n\t\t\tlecturerSet.addItem(lect);\n\t\tSet teacherSet = new Set();\n\t\tteacherSet.addItems(professorSet);\n\t\ttry {\n\t\t\tteacherSet.addItems(lecturerSet);\n\t\t} catch (SetException se) {\n\t\t\tSystem.out.println(se.toString());\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItems\");\n\t\tSystem.out.println(\"Teacher Set: \" + teacherSet.toString());\n\n\t\t// Test for removeItem\n\t\tteacherSet.removeItem(\"Joe\");\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItem\");\n\t\tSystem.out.println(\"Joe left CMU: \" + teacherSet.toString());\n\n\t\t// Test for removeItems\n\t\tteacherSet.removeItems(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItems\");\n\t\tSystem.out\n\t\t\t\t.println(\"Professor is not teacher: \" + teacherSet.toString());\n\n\t\t// Test for member\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for memeber\");\n\t\tSystem.out.println(\"Joe is professor?: \" + professorSet.member(\"Joe\"));\n\t\tSystem.out.println(\"Joe is lecturer?: \" + lecturerSet.member(\"Joe\"));\n\n\t\t// Test for intersection\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for intersection\");\n\t\tSet intersectionSet = professorSet.intersection(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is proferssor as well as lecturer?: \"\n\t\t\t\t\t\t+ intersectionSet.toString());\n\n\t\t// Test for union\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for union\");\n\t\tSet unionSet = professorSet.union(lecturerSet);\n\t\tSystem.out.println(\"The person who is proferssor or lecturer?: \"\n\t\t\t\t+ unionSet.toString());\n\n\t\t// Test for subset\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for subset\");\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of lecturer is the subset of the group of professor?: \"\n\t\t\t\t\t\t+ professorSet.subset(lecturerSet));\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of professor is the subset of the group of lecturer?: \"\n\t\t\t\t\t\t+ lecturerSet.subset(professorSet));\n\n\t\t// Test for xor\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for xor\");\n\t\tSet xor = professorSet.xor(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is only professor or only lecturer: \"\n\t\t\t\t\t\t+ xor.toString());\n\t\tSystem.out\n\t\t\t\t.println(\"----------------------------------------------------\");\n\t}", "@Test\r\n\tpublic void testSetRooms_Empty_NoIllegalArgumentException() {\r\n\t\tHashSet<Room> rooms = new HashSet<Room>();\r\n\t\tteachu1.setRooms(rooms);\r\n\t\tassertTrue(teachu1.getRooms().size() == 0);\r\n\t}", "@Test\n public void testSetCitiesList() {\n System.out.println(\"setCitiesList\");\n Set<City> citiesList = new HashSet<>();\n\n sn10.setCitiesList(citiesList);\n assertEquals(citiesList, sn10.getCitiesList());\n }", "@Test\n void descendingSetDescendingSetReturnsOriginalSet() {\n assertArrayEquals(filledSet.toArray(), reverseSet.descendingSet().toArray());\n }", "public RandomizedSet() {\n list = new ArrayList<>();\n map = new HashMap<>();\n }", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }", "public RandomizedSet() {\n set = new HashMap<>();\n list = new ArrayList<>();\n }", "NavigableSet<V> rW() {\n return (NavigableSet) super.rW();\n }", "@Test\n\tpublic void addSameValueTwice() {\n\t\tXSet xset = new XSet(3);\n\t\txset.add(1);\n\t\txset.add(1);\n\t\tassertTrue(xset.getSize() == 1);\n\t}", "public RandomizedSet() {\n map = new HashMap<>();\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "Boolean superset(MultiSet<X> s);", "@Test \r\n\t\tpublic void testIsEmpty() {\n\t\ttestingSet= new IntegerSet();\r\n\t\tassertTrue(testingSet.isEmpty()); // empty list = true \r\n\t\tassertFalse(!testingSet.isEmpty());// !empty list = false\r\n\t\t}", "public static void main(String[] args) {\n Set<Inner> set = new HashSet<>();\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n\n System.out.println(set);\n }", "public static void main(String[] args) {\n\t\tArraySet as = new ArraySet(10);\n\t\tArraySet as2 = new ArraySet();\n\n\t\t//Testing add method\n\t\tas.add(1);\n\t\tas.add(2);\n\t\tas.add(3);\n\t\tas.add(6);\n\t\tas.add(5);\n\t\tas.add(23);\n\n\t\tas2.add(2);\n\t\tas2.add(3);\n\n\t\t//Testing size method\n\t\tSystem.out.println(\"Size of as: \" + as.size() + \"\\nSize of as2: \" + as2.size());\n\n\t\t//Testing contains method\n\t\tSystem.out.println(\"as contains 2: \" + as.contains(2) + \"\\nas2 contains 5: \" + as2.contains(5));\n\n\t\t//Testing addall method\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"Testing addall on as : \" + as.toString() +\"\\nTesting addall on as2: \" + as2.toString());\n\n\t\t//Testing remove method\n\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Testing remove 5 on as: \" + as.remove(5));\n\t\t\tSystem.out.println(\"Testing remove 33 on as2: \" + as2.remove(12));\n\n\t\t} catch (NoSuchElementException name) {\n\t\t\tSystem.out.println(\"NoSuchElementException: \" + name.getMessage());\n\t\t}\n\n\t\t//Testing removeRandom method\n\t\tSystem.out.println(\"Testing removeRandom on as: \" + as.removeRandom());\n\n\t\t//Testing union method\n\t\tas.add(7);\n\t\tas.add(56);\n\n\t\tas2.add(45);\n\t\tas2.add(8);\n\t\tSystem.out.println(\"Testing union method on as: \" + as.union(as2));\n\n\t\t//Testing equals method\n\t\tSystem.out.println(\"Testing equals method: \" + as.equals(as2));\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\n\n\t\tSystem.out.println(\"Testing equals method: \" + as2.equals(as));\n\n\t\t//Testing difference method\n\t\tas2.remove(6);\n\t\tSystem.out.println(\"Testing difference method: \" + as.difference(as2));\n\n\t}", "@Test\r\n public void testRegexpSetInclusion() {\r\n rs.getRegexp(reString);\r\n stringSet.add(reString);\r\n assertTrue(rs.getRegexpSet().containsAll(stringSet));\r\n }", "@Test\n\tpublic void testSLLSet() {\n\n\t\t// test constructor 1\n\t\tSLLSet listObj1 = new SLLSet();\n\t\tString expectedSet = \"\";\n\t\tint expectedSize = 0;\n\t\tassertEquals(expectedSize, listObj1.getSize());\n\t\tassertEquals(expectedSet, listObj1.toString());\n\t}", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "public boolean equals (SetADT<T> set);", "@Test\n public void testSet_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.set(2, 9);\n\n List<Integer> expResult = Arrays.asList(1, 1, 9, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }", "public RandomizedSet() {\n\n\n sub =new ArrayList<Integer>();\n hm=new HashMap<Integer,Integer>();\n rand =new Random();\n\n }", "public static void main(String[] args) {\n\t\tSet<Numbers> enumSet = EnumSet.of(Numbers.ONE,Numbers.TWO,Numbers.THREE,Numbers.FOUR,Numbers.FIVE);\n\t\t \n\t\t\tSystem.out.println(\"enumSet: \" + enumSet);\n\t\t\tSystem.out.println(\"contains: \" + enumSet.contains(Numbers.ONE));\n\t\t\tSystem.out.println(\"isEmpty: \" + enumSet.isEmpty());\n\t\t\tSystem.out.println(\"iterator: \" + enumSet.iterator());\n\t\t\tSystem.out.println(\"remove: \" + enumSet.remove(Numbers.THREE));\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t\t\tSystem.out.println(\"size: \" + enumSet.size());\n\t\t\tenumSet.clear();\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t}", "private void testSet() {\n init();\n assertTrue(\"l2.set(l2, 0, 39)\", \n FListInteger.get(l2.set(l2, 0, 39), 0) == 39);\n assertTrue(\"l2.set(l2, 0, 51)\", \n FListInteger.get(l2.set(l2, 0, 51), 0) == 51);\n assertTrue(\"l1.set(l1, 0, 10101)\",\n FListInteger.get(l1.set(l1, 0, 10101), 0) == 10101);\n }", "public static void main(String[] args)\r\n\t{\r\n\t\r\n\t\tSet<String> lhs = new LinkedHashSet<>();\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(\"Srinath\");\r\n\t\tlhs.add(\"Shringesh\");\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(null);\r\n\t\t\r\n\t\tfor (String lhselement : lhs)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"print the linked hasset elemenet :\"+lhselement);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "<V extends Object> Set<V> getSet(String setName);", "@Test\r\n\tpublic void testSet() {\r\n\t\tAssert.assertNull(list.set(100, null));\r\n\t\tAssert.assertTrue(list.get(5).equals(\r\n\t\t\t\tlist.set(5, new Munitions(4, 3, \"cuprum\"))));\r\n\t\tAssert.assertTrue(list.get(5).equals(new Munitions(4, 3, \"cuprum\")));\r\n\t}", "@Test\n public void canWeKeepNullInCollections() {\n List<Integer> list = new ArrayList<>();\n Set<Integer> set = new HashSet<>();\n Map<Integer, Integer> map = new HashMap<>();\n\n list.add(null);\n set.add(null);\n map.put(1, null);\n map.put(null, 1);\n map.put(null, null);\n\n System.out.println(map);\n\n }", "public Set<T> toSet()\r\n\t{\r\n\t\tSet<T> s = new HashSet<T>();\r\n//\t\tSystem.out.println(\"in toSet method\");\r\n//\t\tSystem.out.println(\"thisTable.tostring \" + this.toString());\r\n\t\tIterator<T> thisTableIter = this.iterator();\r\n\t\t\r\n\t\twhile (thisTableIter.hasNext())\r\n\t\t{\r\n\t\t\tT e = thisTableIter.next();\r\n\t\t//\tSystem.out.println(e + \" \");\r\n\t\t\ts.add(e);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "@Override\n public int size() {\n return theSet.size();\n }", "Boolean same(MultiSet<X> s);", "@Test\r\n public void retainAll() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.retainAll(l);\r\n assertTrue(check.containsAll(l));\r\n assertFalse(check.contains(1));\r\n assertFalse(check.contains(3));\r\n assertFalse(check.contains(5));\r\n\r\n }", "public RandomizedSet() {\n list = new HashSet<>();\n\n }", "protected Set() {\n size = 0;\n set = new int[TEN];\n }", "@Test\n\tpublic void testAddHash() {\n\t\t// add a new method for ordering\n\t\tMySet <String> s = loadSet();\n\t\ts.add(\"Alice\");\n\t\ts.add(\"Sue\");\n\t\ts.add(\"Bob\");\n\t\ts.add(\"Cindy\");\n\t\ts.add(\"Joe\");\n\t\t\n\t\tassertEquals(5, ((MyHashSet<String>)s).map.size());\n\t\t\n\t\t\t\n\t}", "@Override\r\n\tpublic void clear() {\n\t\tset.clear();\r\n\t}", "public RandomizedSet() {\n nums = new ArrayList<Integer>();\n location = new HashMap<Integer, Integer>();\n }", "public void testNormalEntrySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkEntrySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public RandomizedSet() {\n data=new ArrayList<>();\n valueIndex=new HashMap<>();\n random=new Random();\n }", "@Test\n void descendingSetLowerReturnsCorrectValue() {\n assertEquals(Integer.valueOf(1), reverseSet.lower(0));\n assertEquals(Integer.valueOf(2), reverseSet.lower(1));\n assertEquals(Integer.valueOf(4), reverseSet.lower(2));\n assertEquals(Integer.valueOf(4), reverseSet.lower(3));\n assertEquals(Integer.valueOf(6), reverseSet.lower(4));\n assertEquals(Integer.valueOf(6), reverseSet.lower(5));\n assertEquals(Integer.valueOf(9), reverseSet.lower(6));\n assertEquals(Integer.valueOf(9), reverseSet.lower(7));\n assertEquals(Integer.valueOf(9), reverseSet.lower(8));\n assertNull(reverseSet.lower(9));\n assertNull(reverseSet.lower(10));\n }", "@Test\r\n\tpublic void testSet() {\r\n\t\tll.add(0, t3);\r\n\t\tll.add(0, t2);\r\n\t\tll.add(2, t4);\r\n\t\t// order of list: [0: t2, 1: t3, 2: t4]\r\n\r\n\t\t// valid sets\r\n\t\tll.set(0, t1);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t1, ll.get(0));\r\n\t\tassertEquals(t3, ll.get(1));\r\n\r\n\t\tll.set(1, t2);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t1, ll.get(0));\r\n\t\tassertEquals(t2, ll.get(1));\r\n\t\tassertEquals(t4, ll.get(2));\r\n\r\n\t\tll.set(2, t3);\r\n\t\tassertEquals(3, ll.size());\r\n\t\tassertEquals(t3, ll.get(2));\r\n\t\tassertEquals(t2, ll.get(1));\r\n\t\t// order of list: [0: t1, 1: t2, 2: t3]\r\n\r\n\t\t// invalid sets\r\n\t\ttry {\r\n\t\t\tll.set(-1, t4);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(3, t4);\r\n\t\t\tfail();\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tassertEquals(3, ll.size());\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(0, null);\r\n\t\t\tfail();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tassertEquals(t1, ll.get(0));\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.set(0, t3);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(t1, ll.get(0));\r\n\t\t}\r\n\t}", "public StringSet() {\r\n\t\tsuper();\r\n\t}", "static void experiment1Day1Part2() {\n\n Set<Integer> integerList = new HashSet(); // Defining an integer Array List\n Set<Integer> setToReturn = new HashSet();\n Set<Integer> set1 = new HashSet();\n\n Scanner myFile = null;\n\n try {\n myFile = new Scanner(new FileReader(\"src/main/java/weekone/input01.txt\"));\n while (myFile.hasNext()) {\n integerList.add(myFile.nextInt());\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (myFile != null) {\n myFile.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n for (int myInt : integerList) {\n if (!set1.add(myInt)) {\n //this set is 0, but why?\n setToReturn.add(myInt);\n }\n }\n\n String test = \"test\";\n\n for (int myInt2 : setToReturn) {\n System.out.println(myInt2);\n }\n\n }", "private static boolean isUnivalNode(Node x, Set<Node> set) {\n if (x == null) { return true; }\n boolean left = isUnivalNode(x.left, set);\n boolean right = isUnivalNode(x.right, set);\n\n if (left && right) {\n boolean leftSubTree = x.left == null || x.left.val == x.val;\n boolean rightSubTree = x.right == null || x.right.val == x.val;\n if (leftSubTree && rightSubTree) {\n set.add(x);\n return true;\n }\n }\n return false;\n }" ]
[ "0.69031084", "0.6897271", "0.66242665", "0.6521166", "0.65083456", "0.6423166", "0.6407382", "0.63377416", "0.6300464", "0.6289821", "0.62582195", "0.6206071", "0.6183218", "0.61704475", "0.6151411", "0.61260176", "0.60614485", "0.6040714", "0.6036281", "0.6030079", "0.6022543", "0.5999959", "0.5985972", "0.5984944", "0.59731877", "0.59721726", "0.595667", "0.59457636", "0.593703", "0.5926397", "0.59229696", "0.59192127", "0.5913891", "0.591353", "0.59023607", "0.589051", "0.5882842", "0.588186", "0.58725464", "0.58718455", "0.5869436", "0.5858579", "0.5857395", "0.5855954", "0.58527285", "0.58510697", "0.58468574", "0.5845451", "0.58400524", "0.5821031", "0.5819728", "0.58137906", "0.5813111", "0.5804192", "0.580356", "0.5790595", "0.57893187", "0.578677", "0.5784767", "0.57795495", "0.5772988", "0.57712805", "0.5759294", "0.57531554", "0.57478744", "0.57455194", "0.573885", "0.5738354", "0.5733502", "0.57330894", "0.57330465", "0.5723529", "0.5722901", "0.5721504", "0.57172656", "0.5709923", "0.5705125", "0.5703816", "0.5701491", "0.57009286", "0.5690789", "0.5686489", "0.5684259", "0.5676104", "0.5674046", "0.5672996", "0.5672306", "0.5670735", "0.56698793", "0.56682205", "0.5663973", "0.56623894", "0.5661972", "0.5655547", "0.565548", "0.5652634", "0.56513405", "0.56506157", "0.56486994", "0.56484544", "0.56459844" ]
0.0
-1
Testet, ob ein leeres Set von Raumen erlaubt ist.
@Test public void testSetRooms_Empty_NoIllegalArgumentException() { HashSet<Room> rooms = new HashSet<Room>(); teachu1.setRooms(rooms); assertTrue(teachu1.getRooms().size() == 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isCustomiseSet();", "protected Set<E> ensureSet()\n {\n Set<E> set = m_set;\n if (set == null)\n {\n set = m_set = new LiteSet<>();\n }\n return set;\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "public static void main(String[] args) {\n Set<Integer> set = new HashSet<>();\n\n\n // elementy w secie nie są poukładane\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(4);\n set.add(5);\n set.add(5);\n set.add(5);\n set.add(null);\n set.add(null);\n System.out.println(set);// elementów: 6\n\n\n\n Set<String> setString = new HashSet<>();\n\n List<Integer> ar = new ArrayList<>();\n }", "protected abstract Set method_1559();", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testAllNull() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(null);\r\n\t\t\t// check if set is null \r\n \t\t\tassertNull(testingSet);\r\n\t\t}", "@Test\n\tpublic void testAddAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t Set<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.addAll(setB);\n\t Set<Integer> union = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));\n\t assertEquals(setA, union);\n }", "public static <T extends Comparable<T>> boolean testSet(ISet<T> set, String name,\n T[] data, T _invalid) {\n for (int i = 0; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n boolean contains = set.contains(_invalid);\n boolean removed = set.remove(_invalid);\n if (contains || removed) {\n System.err.println(name+\" invalidity check. contains=\" + contains + \" removed=\" + removed);\n Utils.handleError(_invalid,set);\n return false;\n }\n\n int size = set.size();\n for (int i = 0; i < size; i++) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != data.length-(i+1))) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n // Add half, remove a quarter, add three-quarters, remove all\n int quarter = data.length/4;\n int half = data.length/2;\n for (int i = 0; i < half; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = (half-1); i >= quarter; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = quarter; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = data.length-1; i >= 0; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if ((!removed || set.contains(item))) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n if (set.size() != 0) {\n System.err.println(name+\" YIKES!! a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n \n return true;\n }", "boolean getSet();", "Set createSet();", "@Test\r\n public void addAllFromSet() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.contains(1));\r\n assertTrue(s.contains(2));\r\n assertTrue(s.contains(3));\r\n assertTrue(s.contains(4));\r\n assertTrue(s.contains(5));\r\n }", "public static void main(String[] args) {\n\n TreeSet<String> set = new TreeSet<String>();\n try {\n set.add(\"hello\");\n set.add(\"world\");\n set.add(\"welcome\");\n set.add(\"all\");\n set.add(\"all\");\n set.add(\"welcome\");\n\n for (String num : set) {\n System.out.println( num);\n\n }\n// set.add(null);\n } catch (NullPointerException e) {\n System.out.println(e);\n System.out.println(\"Set doesn't allow null value and duplicate value\");\n }\n\n }", "private static boolean m879a(Set<String> set) {\n return set.isEmpty() || (set.size() == 1 && set.contains(\"\"));\n }", "public boolean isEqualTo (OrderedSet set) {\n if (set==null || size!=set.size)\n return false;\n for (DoubleLinkedList p=first; p!=null; p=p.getNext()) {\n if (set.dictionary.get(p.getInfo()) == null)\n\treturn false;\n }\n for (DoubleLinkedList p=set.first; p!=null; p=p.getNext()) {\n if (dictionary.get(p.getInfo()) == null)\n\treturn false;\n }\n return true;\n }", "private EmptySet() {}", "@Test\n public void whenAddSeveralIdenticalElementsThenSetHasOnlyOneSuchElement() {\n SimpleSet<Integer> set = new SimpleSet<>();\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(3);\n set.add(2);\n set.add(1);\n\n Iterator<Integer> iterator = set.iterator();\n\n assertThat(iterator.next(), is(1));\n assertThat(iterator.next(), is(2));\n assertThat(iterator.next(), is(3));\n assertThat(iterator.hasNext(), is(false));\n }", "public void check_union_set(boolean on){\r\n this.e_union_set = on;\r\n }", "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "public RandomizedSet() {\r\n set = new HashSet<>();\r\n }", "private boolean checksetunions(Set<String> set, HashMap<String, ArrayList<String>> c) {\n\t\tObject[] ckeys = c.keySet().toArray();\r\n\t\tfor (int i = 0; i < c.keySet().size(); i++) {\r\n\t\t\tif (c.get(ckeys[i]).containsAll(set)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private HashSet addGranteeAndRoles(HashSet set) {\n\n RoleManager rm = getRoleManager();\n String candidateRole;\n\n set.add(sName);\n\n Iterator it = roles.iterator();\n\n while (it.hasNext()) {\n candidateRole = (String) it.next();\n\n if (!set.contains(candidateRole)) {\n try {\n rm.getGrantee(candidateRole).addGranteeAndRoles(set);\n } catch (HsqlException he) {\n throw new RuntimeException(he.getMessage());\n }\n }\n }\n\n return set;\n }", "public SetTest()\r\n {\r\n List< String > list = Arrays.asList( colors );\r\n System.out.printf( \"ArrayList: %s\\n\", list );\r\n printNonDuplicates( list );\r\n }", "private static boolean isUnivalNode(Node x, Set<Node> set) {\n if (x == null) { return true; }\n boolean left = isUnivalNode(x.left, set);\n boolean right = isUnivalNode(x.right, set);\n\n if (left && right) {\n boolean leftSubTree = x.left == null || x.left.val == x.val;\n boolean rightSubTree = x.right == null || x.right.val == x.val;\n if (leftSubTree && rightSubTree) {\n set.add(x);\n return true;\n }\n }\n return false;\n }", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}", "public RandomizedSet() {\n realSet = new HashSet<>();\n allSet = new Integer[10];\n random = new Random();\n }", "public SetTest()\r\n\t{\r\n\t\tList< String > list = Arrays.asList( colors );\r\n\t\tSystem.out.printf( \"ArrayList: %s\\n\", list );\r\n\t\tprintNonDuplicates( list );\r\n\t\tprintSortedNonDuplicates(list);\r\n\t\t}", "public HashSet<T> removeDups(Node root, HashSet set) {\n if(root == null) {\n return set;\n }\n if(root.getLeftChildNode() != null) {\n removeDups(root.getLeftChildNode(), set);\n }\n if(set.contains(root.getData())){\n set.add(root.getData());\n }\n if(root.getRightChildNode() != null) {\n removeDups(root.getRightChildNode(), set);\n }\n return set;\n }", "@Override\n public LinkedHashSet<String> testSet() {\n LinkedHashSet<String> testNameSet = new LinkedHashSet<>();\n testNameSet.add(\"test1\");\n return testNameSet;\n }", "private void setHoleUNr(Hole hole, Set<Hole> holeSet){\n for (Hole uniqueHole:holeSet) {\n if (hole.equals(uniqueHole)) {\n hole.setUNr(uniqueHole.getUNr());\n return;\n }\n }\n }", "private static boolean fillSet(final int atLeast, final SortedSet<PeerStatistic> set,\n final Map<Number160, PeerStatistic> tmp) {\n synchronized (tmp) {\n for (final PeerStatistic peerStatistic : tmp.values()) {\n \tset.add(peerStatistic);\n }\n }\n return set.size() >= atLeast;\n }", "@Test\n\tpublic void test1() {\n\t\t// add a new method for ordering\n\t\tMySet<String> s = loadSet();\n\t\ts.add(\"a\");\n\t\ts.add(\"b\");\n\t\ts.add(\"c\");\n\t\ts.add(\"d\");\n\t\ts.add(\"e\");\n\t\ts.add(\"f\");\n\t\ts.add(\"g\");\n\t\ts.add(\"h\");\n\t\tassertEquals(8, ((MyLinkedHashSet<String>) s).map.size());\n\n\t\tString exp = \"[ a b c d e f g h ]\";\n\t\tassertEquals(exp, s.toString());\n\n\t}", "public RandomizedSet() {\n set = new HashSet<Integer>();\n }", "@Test\r\n public void addToStringSet() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertTrue(s.add(\"kek\"));\r\n assertTrue(s.contains(\"kek\"));\r\n }", "@Override\n public Set<T> asSet() {\n return new AbstractSet<T>() {\n @Override\n public Iterator<T> iterator() {\n return new Iterator<T>() {\n boolean foundNext;\n boolean hasNext;\n T next;\n \n private void findNext() {\n if (!foundNext) {\n hasNext = isPresent();\n if (hasNext) {\n try {\n next = get();\n } catch (NoSuchElementException e) {\n // in case there was a race and the value became absent\n hasNext = false;\n next = null;\n }\n } else {\n next = null;\n }\n foundNext = true;\n }\n }\n \n @Override\n public boolean hasNext() {\n findNext();\n return hasNext;\n }\n\n @Override\n public T next() {\n findNext();\n if (hasNext) {\n // no next after consuming the single present value \n hasNext = false;\n T ret = next;\n next = null;\n return ret;\n }\n throw new NoSuchElementException();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }\n\n @Override\n public int size() {\n return isPresent() ? 1 : 0;\n }\n };\n }", "public interface Set {\n\n /**\n * Create an empty set.\n *\n * @return the empty set\n */\n static Set createEmpty() {\n return new EmptySet();\n }\n\n /**\n * Checks if the ASet is empty.\n *\n * @return true if the set is empty, false otherwise\n */\n boolean isEmpty();\n\n /**\n * Given an {@code Integer} {@code element} add the element to the set. If {@code element} is\n * already a member of the set, we perform no operation and return back the set intact.\n *\n * @param element the new element to add to the set\n *\n * @return a newly created set that contains {@code element} and the original elements of the set.\n */\n Set add(Integer element);\n\n /**\n * Given an {@code Integer} {@code element} returns {@code true} if the element is already in the\n * set and {@code false} otherwise.\n *\n * @param element the element to check\n *\n * @return true if {@code element} is in the set, false otherwise\n */\n Boolean contains(Integer element);\n\n /**\n * Return the size of the set.\n *\n * @return return the size of the set\n */\n Integer size();\n\n /**\n * Given an element {@code element} remove it from the this list if it exists.\n *\n * @param element the element to remove\n *\n * @return set without {@code element}\n */\n Set remove(Integer element);\n\n\n /**\n * Given a set {@code other} return a new set which is the set union between {@code this} set and\n * {@code other} set.\n *\n * @param other set to perform union\n *\n * @return set union of this and other\n */\n Set union(Set other);\n\n\n /**\n * Returns the set intersection between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform intersection with\n *\n * @return set intersection between {@code this} and {@code otherSet}\n */\n Set intersect(Set otherSet);\n\n\n /**\n * Returns the set difference between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform set difference with\n *\n * @return set difference between {@code this} and {@code otherSet}\n */\n Set difference(Set otherSet);\n\n\n /**\n * Returns true if {@code this} set is a subset of {@code otherSet}.\n *\n * @param otherSet the set to check against\n *\n * @return true if this is a subset of otherSet, false otherwise\n */\n Boolean subset(Set otherSet);\n\n\n}", "public static void main(String[] args) {\n\t\tSet<Numbers> enumSet = EnumSet.of(Numbers.ONE,Numbers.TWO,Numbers.THREE,Numbers.FOUR,Numbers.FIVE);\n\t\t \n\t\t\tSystem.out.println(\"enumSet: \" + enumSet);\n\t\t\tSystem.out.println(\"contains: \" + enumSet.contains(Numbers.ONE));\n\t\t\tSystem.out.println(\"isEmpty: \" + enumSet.isEmpty());\n\t\t\tSystem.out.println(\"iterator: \" + enumSet.iterator());\n\t\t\tSystem.out.println(\"remove: \" + enumSet.remove(Numbers.THREE));\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t\t\tSystem.out.println(\"size: \" + enumSet.size());\n\t\t\tenumSet.clear();\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t}", "@Test\r\n public void addAllFromSetWithStrings() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n s.addAll(sStr);\r\n assertTrue(s.contains(\"kek\"));\r\n assertTrue(s.contains(\"lel\"));\r\n assertTrue(s.contains(\"lol\"));\r\n }", "public void test_retainAll() {\r\n try {\r\n List<WrongHashCode> retain = new ArrayList<WrongHashCode>();\r\n retain.add(new WrongHashCode(\"1\"));\r\n \r\n Set<WrongHashCode> set = IdentityHashSet.create();\r\n set.add(new WrongHashCode(\"2\"));\r\n \r\n assertTrue(set.retainAll(retain));\r\n assertEquals(0, set.size());\r\n \r\n fail(\"retainAll works now, rewrite test\");\r\n } catch (UnsupportedOperationException e) {\r\n //passed\r\n }\r\n }", "@Test \r\n\t\tpublic void testinsertAll() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(list1);\r\n\t\t\t// create set = to unique values in list \r\n\t\t\ttestingSet2 = new IntegerSet(unique); \r\n\t\t\t// 2 set should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet.toArray(), testingSet2.toArray()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t}", "@Test\r\n public void testRegexpSetExclusion() {\r\n rs.getRegexp(reString);\r\n final Set<String> s1 = rs.getRegexpSet();\r\n stringSet.add(reString);\r\n s1.removeAll(stringSet);\r\n assertTrue(s1.isEmpty());\r\n }", "private Set<E> toSet(Node<E> n) {\n Set<E> result = new HashSet<>();\n toSet(result, n);\n return result;\n }", "public boolean equals (SetADT<T> set);", "@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}", "@Test\r\n public void descendingSet() throws Exception {\r\n TreeSet<Integer> kek = new TreeSet<>();\r\n kek.addAll(sInt);\r\n TreeSet<Integer> check = (TreeSet<Integer>) kek.descendingSet();\r\n check.add(43);\r\n assertTrue(check.contains(43));\r\n assertTrue(kek.contains(43));\r\n assertTrue(kek.remove(43));\r\n assertFalse(check.contains(43));\r\n assertFalse(kek.contains(43));\r\n }", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "private Set<String> cleanSet(Set<String> s){\n\t\t\tLog.i(TAG, \"cleanSet(msg)\");\n\n\t\t\tif (s.contains(\"\")) {\n\t\t\t\ts.remove(\"\");\t\n\t\t\t}if (s.contains(\"etc\")) { // Developers prerogative\n\t\t\t\ts.remove(\"etc\");\n\t\t\t}\n\t\t\treturn s;\n\t\t}", "public static void main(String[] args) {\n\t\tTreeSet<String> ts = new TreeSet<String>();\n\t\t\n\t\tts.add(\"\");\n\t\t//System.out.println(ts);\n\n\t\tts.add(\"Red\");\n\t\tts.add(\"Green\");\n\t\tts.add(\"Blue\");\n\t\tts.add(\"White\");\n\t\tts.add(\"Orange\");\n\t\tts.add(\"\");\n\n\t\tSystem.out.println(ts);\n\t\tSystem.out.println(ts.size());\n\n\t\t// List<String> li = new ArrayList<String>(ts);\n\n\t\tTreeSet<String> ts1 = new TreeSet<String>();\n\n\t\tts1.add(\"Red\");\n\t\tts1.add(\"Green\");\n\t\tts1.add(\"Blue\");\n\t\tts1.add(\"WWhite\");\n\t\tts1.add(\"OOrange\");\n\n\t\tfor (String tss : ts) {\n\t\t\tSystem.out.println(ts1.contains(tss) ? \"YES\" : \"NO\");\n\t\t}\n\n\t\tTreeSet<Integer> ts2 = new TreeSet<Integer>();\n\n\t\tts2.add(1);\n\t\tts2.add(2);\n\t\tts2.add(3);\n\t\tts2.add(5);\n\t\tts2.add(9);\n\n\t\tIterator<Integer> itr = ts2.headSet(3).iterator();\n\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tIterator<Integer> itr2 = ts2.tailSet(3).iterator();\n\n\t\twhile (itr2.hasNext()) {\n\t\t\tSystem.out.println(itr2.next());\n\t\t}\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.ceiling(11));\n\t\tSystem.out.println(ts2.floor(3));\n\n\t\tSystem.out.println(\"======\");\n\n\t\tSystem.out.println(ts2.lower(3));\n\t\tSystem.out.println(ts2.higher(3));\n\t\t\n\t\tSystem.out.println(\"======\");\n\t\t\n\t\tTreeSet t = new TreeSet();\n\t\t\n\t\tt.add(new StringBuffer(\"AA\"));\n\t\tt.add(new StringBuffer(\"BB\"));\n\t\tSystem.out.println(t);\n\t\t\n\n\t\t// ts1.addAll(ts);\n\t\t// System.out.println(ts1);\n\n\t\t/*\n\t\t * System.out.println(\"Treeset to ArrayList: \" + li); Collections.reverse(li);\n\t\t * System.out.println(\"After Reversing: \" + li);\n\t\t */\n\n\t\t/*\n\t\t * Iterator<String> itr = ts.iterator();\n\t\t * \n\t\t * while (itr.hasNext()) { System.out.println(itr.next()); }\n\t\t */\n\t}", "public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n\t\t{\n\t\t\tind = indexOf(set.elementIdAt(i));\n\t\t\ti++;\n\t\t}\n\t\tif (-1==ind) return false;\n\t\telse return true;\n\t}", "public SetSet() {\n\t}", "@Test\n public void testGetLrs() {\n System.out.println(\"getLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }", "public static void main(String[] args){\n\t\tTreeSet hs=new TreeSet();\n\t\t\n\t\ths.add(\"d\");\n\t\ths.add(\"c\");\n\t\ths.add(\"b\");\n\t\ths.add(\"a\");\n\t\ths.add(\"c\");\n\t\ths.add(\"i\");\n\t\ths.add(\"l\");\n\t\ths.add(new Integer(2));\n\t\ths.add(new Float(2));\n\t\t\n\t\t\t\t\n\t\tSystem.out.println(\"Hashset is \"+hs);\n\t\tSystem.out.println(\"Size of Hashset is \"+ hs.size());\n\t\t\n\t\tSystem.out.println(\"Does hashset contains this 'u' element \" + hs.contains(\"u\"));\t\t\n\t\tSystem.out.println(\"is hashset empty \" + hs.isEmpty());\n\t\tSystem.out.println(\"remove the element \"+hs.remove(\"i\"));\n\t\t\n\t\t\n\t hs.clear();\n\t System.out.println(\"get class \" +hs.getClass());\n\t\t\n\t System.out.println(\"is hashset empty \" +hs.isEmpty());\n\t \n\t \n\t\t\n\t}", "@Test \r\n\t\tpublic void testIsEmpty() {\n\t\ttestingSet= new IntegerSet();\r\n\t\tassertTrue(testingSet.isEmpty()); // empty list = true \r\n\t\tassertFalse(!testingSet.isEmpty());// !empty list = false\r\n\t\t}", "public static Set unmodifiableSet(Set set) {\n/* 175 */ return UnmodifiableSet.decorate(set);\n/* */ }", "@Override\n\tpublic Set<T> valeurs() {\n\t\treturn Set.of(val);\n\t}", "private ISet<S> expand(ISet<S> set) {\n\t\t\tISet<S> expanded = ISets.empty();\n\t\t\tfor (S b : set) {\n\t\t\t\texpanded = expanded.union(b);\n\t\t\t\tif (!reasoner.entails(base.minus(expanded), sentence)) {\n\t\t\t\t\treturn expanded;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "@Test\n public void testSetCodeExamples() {\n logger.info(\"Beginning testSetCodeExamples()...\");\n\n // Create some sets\n Set<Integer> emptySet = new Set<>();\n\n Integer[] first = { 1, 2, 3, 4 };\n Set<Integer> firstSet = new Set<>(first);\n\n Integer[] second = { 3, 4, 5, 6 };\n Set<Integer> secondSet = new Set<>(second);\n\n Integer[] third = { 3, 4 };\n Set<Integer> thirdSet = new Set<>(third);\n\n Integer[] fourth = { 1, 2 };\n Set<Integer> fourthSet = new Set<>(fourth);\n\n Integer[] fifth = { 1, 2, 3, 4, 5, 6 };\n Set<Integer> fifthSet = new Set<>(fifth);\n\n Integer[] sixth = { 1, 2, 5, 6 };\n Set<Integer> sixthSet = new Set<>(sixth);\n\n // Find the logical \"and\" with an empty set\n Set<Integer> set = Set.and(emptySet, firstSet);\n assert set.isEmpty();\n logger.info(\"{} and {} yields {}\", emptySet, firstSet, set);\n\n // Find the logical \"and\" with non-empty sets\n set = Set.and(firstSet, secondSet);\n assert set.equals(thirdSet);\n logger.info(\"{} and {} yields {}\", firstSet, secondSet, set);\n\n // Find the logical \"sans\" (same as \"a and not b\")\n set = Set.sans(firstSet, secondSet);\n assert set.equals(fourthSet);\n logger.info(\"{} sans {} yields {}\", firstSet, secondSet, set);\n\n // Find the logical \"or\" with an empty set\n set = Set.or(emptySet, firstSet);\n assert !set.isEmpty();\n logger.info(\"{} or {} yields {}\", emptySet, firstSet, set);\n\n // Find the logical \"or\" with non-empty sets\n set = Set.or(firstSet, secondSet);\n assert set.equals(fifthSet);\n logger.info(\"{} or {} yields {}\", firstSet, secondSet, set);\n\n // Find the logical \"xor\" (same as \"(a and not b) or (not a and b)\")\n set = Set.xor(firstSet, secondSet);\n assert set.equals(sixthSet);\n logger.info(\"{} xor {} yields {}\", firstSet, secondSet, set);\n\n logger.info(\"Completed testSetCodeExamples().\\n\");\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "private boolean isNeedCut(Map<Set<String>, Integer> preMap, Set<String> set) {\n\t\tboolean flag = false;\n\t\tList<Set<String>> subSets = getSubSets(set);\n\t\tfor(Set<String> subSet : subSets){\n\t\t\tif(!preMap.containsKey(subSet)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}", "public RandomizedSet() {\n map = new HashMap<Integer, Integer>();\n set = new ArrayList<Integer>();\n int validLength = 0;\n }", "private static boolean duplicateSetName(String setName){\n boolean duplicate = false;\n for (Set set : SetManager.getInstance().getSets()) {\n if (set.getName() != null) {\n if (set.getName().equals(setName)) {\n duplicate = true;\n }\n }\n }\n return duplicate;\n }", "@Test\n public void testEquals() {\n \t\n \t//create data set\n \tString strJava = \"java\";\n \tString strScala = \"scala\";\n \tString strPhp = \"php\";\n \t\n \tfinal LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n\n \tlastWriteWinSet1.add(time1, strJava);\n \tlastWriteWinSet1.add(time1, strScala);\n \tlastWriteWinSet1.add(time1, strPhp);\n\n \tlastWriteWinSet1.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n\n lastWriteWinSet2.add(time1, strJava);\n lastWriteWinSet2.add(time1, strScala);\n lastWriteWinSet2.add(time1, strPhp);\n\n lastWriteWinSet2.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet3 = lastWriteWinSet2;\n \t\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet3.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet1));\n assertTrue(!lastWriteWinSet1.equals(null));\n }", "public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }", "Boolean same(MultiSet<X> s);", "@Override\n\tpublic int isOrNoSet() {\n\t\treturn 0;\n\t}", "@Test\r\n public void testRegexpSetInclusion() {\r\n rs.getRegexp(reString);\r\n stringSet.add(reString);\r\n assertTrue(rs.getRegexpSet().containsAll(stringSet));\r\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testCreateSetFromNull() {\n\t\t\ttestingSet = new IntegerSet(null); \r\n\t\t}", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "static public boolean setEquals(Set source, Set arg) {\n\t\tif ( source.size() != arg.size() ) {\n\t\t\treturn false;\n\t\t}\n\t\tIterator it = arg.iterator();\n\t\twhile ( it.hasNext() ) {\n\t\t\tObject elem = it.next();\n\t\t\tif ( !source.contains(elem) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String[] argv) throws SetException {\n\t\tString[] professor = new String[] { \"Kesden\", \"Atkeson\", \"Reddy\" };\n\t\tString[] lecturer = new String[] { \"Kesden\", \"Atkeson\", \"Joe\", \"Reddy\" };\n\t\tString[] students = new String[] { \"SungPil\", \"Joe\", \"Pom\" };\n\n\t\t// Test for constructor\n\t\tSet professorSet = new Set();\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for constructor\");\n\t\tSystem.out.println(\"No data in the Set: \" + professorSet.toString());\n\n\t\t// Test for addItem\n\t\tfor (String prof : professor)\n\t\t\tprofessorSet.addItem(prof);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItem\");\n\t\tSystem.out.println(\"Professors in the Set: \" + professorSet.toString());\n\n\t\t// Test for copy constructor\n\t\tSet professorCopySet = new Set(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for copy constructor\");\n\t\tSystem.out.println(\"Professors copy Set: \"\n\t\t\t\t+ professorCopySet.toString());\n\n\t\t// Test for addItems with Exception\n\t\tSet lecturerSet = new Set();\n\t\tfor (String lect : lecturer)\n\t\t\tlecturerSet.addItem(lect);\n\t\tSet teacherSet = new Set();\n\t\tteacherSet.addItems(professorSet);\n\t\ttry {\n\t\t\tteacherSet.addItems(lecturerSet);\n\t\t} catch (SetException se) {\n\t\t\tSystem.out.println(se.toString());\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItems\");\n\t\tSystem.out.println(\"Teacher Set: \" + teacherSet.toString());\n\n\t\t// Test for removeItem\n\t\tteacherSet.removeItem(\"Joe\");\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItem\");\n\t\tSystem.out.println(\"Joe left CMU: \" + teacherSet.toString());\n\n\t\t// Test for removeItems\n\t\tteacherSet.removeItems(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItems\");\n\t\tSystem.out\n\t\t\t\t.println(\"Professor is not teacher: \" + teacherSet.toString());\n\n\t\t// Test for member\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for memeber\");\n\t\tSystem.out.println(\"Joe is professor?: \" + professorSet.member(\"Joe\"));\n\t\tSystem.out.println(\"Joe is lecturer?: \" + lecturerSet.member(\"Joe\"));\n\n\t\t// Test for intersection\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for intersection\");\n\t\tSet intersectionSet = professorSet.intersection(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is proferssor as well as lecturer?: \"\n\t\t\t\t\t\t+ intersectionSet.toString());\n\n\t\t// Test for union\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for union\");\n\t\tSet unionSet = professorSet.union(lecturerSet);\n\t\tSystem.out.println(\"The person who is proferssor or lecturer?: \"\n\t\t\t\t+ unionSet.toString());\n\n\t\t// Test for subset\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for subset\");\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of lecturer is the subset of the group of professor?: \"\n\t\t\t\t\t\t+ professorSet.subset(lecturerSet));\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of professor is the subset of the group of lecturer?: \"\n\t\t\t\t\t\t+ lecturerSet.subset(professorSet));\n\n\t\t// Test for xor\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for xor\");\n\t\tSet xor = professorSet.xor(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is only professor or only lecturer: \"\n\t\t\t\t\t\t+ xor.toString());\n\t\tSystem.out\n\t\t\t\t.println(\"----------------------------------------------------\");\n\t}", "@Test\r\n public void testUnion1() {\r\n int actual[] = set1.unionOfSets(set2);\r\n Assert.assertArrayEquals(new int[] { 1, 2, 3, 4, 5 }, actual);\r\n }", "@Test\n\tpublic void testRetainAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.retainAll(setB);\n\t Set<Integer> intersection = new HashSet<>(Arrays.asList(3, 4, 5));\n\t assertEquals(setA, intersection);\n }", "@Test\r\n\t\tpublic void testDeleteAll() {\n\t\t\ttestingSet = new IntegerSet(); \r\n\t\t\ttestingSet.insertAll(list1); \r\n\t\t\ttestingSet.deleteAll();\r\n\t\t\t// after data is deleted set should be empty \r\n\t\t\tassertTrue(testingSet.isEmpty());\r\n\t\t}", "public boolean containsAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set it null.\");\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private static <T> Set<T> Create_UnModifiableSet_By_InputElements(@NonNull Set<T> set, @NonNull T... ts) {\n for (T t : ts) {\n set.add(t);\n }\n\n return Collections.unmodifiableSet(set);\n }", "Boolean superset(MultiSet<X> s);", "@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}", "@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }", "@Test\n public void whenAddThreeDifferentElementsThenSetHasThreeTheSameElements() {\n SimpleSet<Integer> set = new SimpleSet<>();\n set.add(1);\n set.add(2);\n set.add(3);\n\n Iterator<Integer> iterator = set.iterator();\n\n assertThat(iterator.next(), is(1));\n assertThat(iterator.next(), is(2));\n assertThat(iterator.next(), is(3));\n assertThat(iterator.hasNext(), is(false));\n }", "public ImmutableSetTest( String testName )\n {\n super( testName );\n }", "private static boolean m23477b(Set<String> set, boolean z, boolean z2, boolean z3, boolean z4) {\n C4208a aVar = f19236a;\n if (z != aVar.f19238c || z2 != aVar.f19239d || z3 != aVar.f19240e || z4 != aVar.f19241f) {\n return false;\n }\n if (set == null || set.size() == 0) {\n return true;\n }\n return false;\n }", "NavigableSet<V> rW() {\n return (NavigableSet) super.rW();\n }", "public static void main(String[] args) {\n Set<Inner> set = new HashSet<>();\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n\n System.out.println(set);\n }", "private boolean allCardsAreNull(ArrayList<Card> set) {\r\n\t\tfor (Card c : set) {\r\n\t\t\tif (c != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args) {\n\t\tArraySet as = new ArraySet(10);\n\t\tArraySet as2 = new ArraySet();\n\n\t\t//Testing add method\n\t\tas.add(1);\n\t\tas.add(2);\n\t\tas.add(3);\n\t\tas.add(6);\n\t\tas.add(5);\n\t\tas.add(23);\n\n\t\tas2.add(2);\n\t\tas2.add(3);\n\n\t\t//Testing size method\n\t\tSystem.out.println(\"Size of as: \" + as.size() + \"\\nSize of as2: \" + as2.size());\n\n\t\t//Testing contains method\n\t\tSystem.out.println(\"as contains 2: \" + as.contains(2) + \"\\nas2 contains 5: \" + as2.contains(5));\n\n\t\t//Testing addall method\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"Testing addall on as : \" + as.toString() +\"\\nTesting addall on as2: \" + as2.toString());\n\n\t\t//Testing remove method\n\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Testing remove 5 on as: \" + as.remove(5));\n\t\t\tSystem.out.println(\"Testing remove 33 on as2: \" + as2.remove(12));\n\n\t\t} catch (NoSuchElementException name) {\n\t\t\tSystem.out.println(\"NoSuchElementException: \" + name.getMessage());\n\t\t}\n\n\t\t//Testing removeRandom method\n\t\tSystem.out.println(\"Testing removeRandom on as: \" + as.removeRandom());\n\n\t\t//Testing union method\n\t\tas.add(7);\n\t\tas.add(56);\n\n\t\tas2.add(45);\n\t\tas2.add(8);\n\t\tSystem.out.println(\"Testing union method on as: \" + as.union(as2));\n\n\t\t//Testing equals method\n\t\tSystem.out.println(\"Testing equals method: \" + as.equals(as2));\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\n\n\t\tSystem.out.println(\"Testing equals method: \" + as2.equals(as));\n\n\t\t//Testing difference method\n\t\tas2.remove(6);\n\t\tSystem.out.println(\"Testing difference method: \" + as.difference(as2));\n\n\t}", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "@Test\n public void testSetMayorsSearchTree01() {\n\n System.out.println(\"setMayorsSearchTree\");\n // Converted to TreeSet so it would preserve the order but exclude repetition (Can be the same mayor of more than one city)\n Set<User> expResult = new TreeSet<>(sn10.listMayors().values());\n sn10.setMayorsSearchTree();\n List<User> result = (List<User>) sn10.getMayorsAVL().inOrder();\n\n // Test if Mayors are order by descending order & if AVL Tree is ordered & has the same size\n // listMayors already returns a collection order by mayors score\n assertArrayEquals(expResult.toArray(), result.toArray());\n\n }", "@Override\n public int size() {\n return theSet.size();\n }", "void mo30185a(HashSet<zzawj> hashSet);", "@Test\r\n public void retainAll() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.retainAll(l);\r\n assertTrue(check.containsAll(l));\r\n assertFalse(check.contains(1));\r\n assertFalse(check.contains(3));\r\n assertFalse(check.contains(5));\r\n\r\n }", "@Test\n public void test17() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1337,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test17\");\n LinkedHashSet<Object> linkedHashSet0 = new LinkedHashSet<Object>();\n ResettableIterator<Object> resettableIterator0 = IteratorUtils.loopingIterator((Collection<?>) linkedHashSet0);\n assertEquals(false, resettableIterator0.hasNext());\n }", "static void arrayToSet()\n\t{\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\tString arr[] = {\"A\",\"B\",\"C\",\"D\",\"E\",\"A\"};\n\t\t\t\n\t\t\toList = Arrays.asList(arr);\n\t\t\tSystem.out.println(\"List: \"+oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>(oList);\n\t\t\t\n\t\t\tSystem.out.println(\"Set: \"+oSet);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet = null;\n\t\t}\n\t}", "@Test\n void descendingSetDescendingSetReturnsOriginalSet() {\n assertArrayEquals(filledSet.toArray(), reverseSet.descendingSet().toArray());\n }", "public void remove(int rem){\n if(elementOf(rem)){\n Set removed = new Set();\n for(int element = 0; element < set.length; element++){\n if(set[element] != rem)\n removed.add(set[element]);\n }\n setSet(removed.getSet());\n removed = null;\n }\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "public static boolean isEqualSet(Collection set1, Collection set2) {\n/* 99 */ if (set1 == set2) {\n/* 100 */ return true;\n/* */ }\n/* 102 */ if (set1 == null || set2 == null || set1.size() != set2.size()) {\n/* 103 */ return false;\n/* */ }\n/* */ \n/* 106 */ return set1.containsAll(set2);\n/* */ }", "private boolean allMUsSet() {\n\t\tVector meaningUnits = Model.getIllocutionUnitRoots().getMeaningUnits();\n\t\tfor (int i = 0; i < meaningUnits.size(); i++) {\n\t\t\tMeaningUnit mu = (MeaningUnit) meaningUnits.get(i);\n\t\t\tVector sememeGroups = mu.getSememeGroups();\n\t\t\tif (sememeGroups.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String[] args)\r\n\t{\r\n\t\r\n\t\tSet<String> lhs = new LinkedHashSet<>();\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(\"Srinath\");\r\n\t\tlhs.add(\"Shringesh\");\r\n\t\tlhs.add(\"Srividhya\");\r\n\t\tlhs.add(null);\r\n\t\t\r\n\t\tfor (String lhselement : lhs)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"print the linked hasset elemenet :\"+lhselement);\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }", "public boolean hasNextInSet() {\n return (hasNext() &&\n (indexOfCurrentElement + 1 < firstIndexOfCurrentSet + quantity) &&\n (indexOfCurrentElement + 1 >= firstIndexOfCurrentSet)); \n }" ]
[ "0.6674411", "0.64872324", "0.64785045", "0.6379612", "0.635936", "0.6357281", "0.6325322", "0.6273187", "0.6193486", "0.61512625", "0.61220217", "0.61180395", "0.60964656", "0.60876465", "0.6084883", "0.60765326", "0.6061966", "0.6042195", "0.59827954", "0.59737253", "0.59645015", "0.59603274", "0.5948749", "0.59461933", "0.59443754", "0.5943043", "0.5933758", "0.5924913", "0.5918883", "0.5908693", "0.590865", "0.5907829", "0.59067035", "0.5904675", "0.59019995", "0.59010106", "0.5894478", "0.5886016", "0.58829653", "0.588273", "0.58713555", "0.58529204", "0.58513284", "0.58493215", "0.58424366", "0.5835294", "0.5826583", "0.5825956", "0.5824469", "0.58237314", "0.5821033", "0.58138925", "0.5812553", "0.58042043", "0.58022594", "0.5797768", "0.57950896", "0.57854766", "0.57803607", "0.5780249", "0.5774942", "0.57739323", "0.57732576", "0.5769559", "0.57654494", "0.5764047", "0.5763132", "0.57625777", "0.5758733", "0.5757142", "0.5753557", "0.57487726", "0.57401764", "0.57399", "0.57345194", "0.5728195", "0.571881", "0.571493", "0.57100487", "0.5709154", "0.5704955", "0.57029253", "0.5700954", "0.5694442", "0.5692745", "0.5691521", "0.56903076", "0.56829196", "0.5675838", "0.56735504", "0.5669661", "0.5666244", "0.5665349", "0.566314", "0.5661385", "0.56573653", "0.56548864", "0.56473833", "0.5638443", "0.5638205" ]
0.56407577
98
Testet, ob ein valider Timeslot angenommen wird.
@Test public void testSetTimeslot() { Timeslot t = new Timeslot(20, WEEKDAYS.MONDAY, "09", "00"); breaku1.setTimeslot(t); externu1.setTimeslot(t); meetingu1.setTimeslot(t); teachu1.setTimeslot(t); assertEquals(t, breaku1.getTimeslot()); assertEquals(t, externu1.getTimeslot()); assertEquals(t, meetingu1.getTimeslot()); assertEquals(t, teachu1.getTimeslot()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetTimeslot() {\r\n\t\tassertEquals(time1, breaku1.getTimeslot());\r\n\t\tassertEquals(time1, externu1.getTimeslot());\r\n\t\tassertEquals(time1, meetingu1.getTimeslot());\r\n\t\tassertEquals(time1, teachu1.getTimeslot());\r\n\t}", "public void setTime() {\r\n\t\tArrayList<String> slots = new ArrayList<String>();\r\n\t\tString inSched = getWorkHours();\r\n\t\tswitch(inSched) {\r\n\t\tcase \"6AM-3PM\":\r\n\t\t\tArrayList<String> sched1 = new ArrayList<String>(Arrays.asList(\"06AM\",\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"12PM\",\"1PM\",\"2PM\"));\r\n\t\t\tslots = sched1;\r\n\t\t\tbreak;\r\n\t\tcase \"7AM-4PM\":\r\n\t\t\tArrayList<String> sched2 = new ArrayList<String>(Arrays.asList(\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"1PM\",\"2PM\",\"3PM\"));\r\n\t\t\tslots = sched2;\r\n\t\t\tbreak;\r\n\t\tcase \"8AM-5PM\":\r\n\t\t\tArrayList<String> sched3 = new ArrayList<String>(Arrays.asList(\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"2PM\",\"3PM\",\"4PM\"));\r\n\t\t\tslots = sched3;\r\n\t\t\tbreak;\r\n\t\tcase \"9AM-6PM\":\r\n\t\t\tArrayList<String> sched4 = new ArrayList<String>(Arrays.asList(\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"3PM\",\"4PM\",\"5PM\"));\r\n\t\t\tslots = sched4;\r\n\t\t\tbreak;\r\n\t\tcase \"10AM-7PM\":\r\n\t\t\tArrayList<String> sched5 = new ArrayList<String>(Arrays.asList(\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"2PM\",\"4PM\",\"5PM\",\"6PM\"));\r\n\t\t\tslots = sched5;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tslots.add(\"No appointments available for this date.\");\r\n\t\t}\r\n\t\tthis.timeAvailable = slots;\r\n\t}", "public Timeslot() {\n }", "boolean hasDesiredTime();", "@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}", "public TimeSlot(String timeInterval, Date timeSlotDate)\n\t\t{\n\t\t\tsuper(timeInterval);\n\t\t\tthis.initializeVariables(timeSlotDate);\n\t\t\tthis.setWordWrap(false);\n\t\t}", "public boolean addTimeSlotAt(TimeSlot aTimeSlot, int index)\n { \n boolean wasAdded = false;\n if(addTimeSlot(aTimeSlot))\n {\n if(index < 0 ) { index = 0; }\n if(index > numberOfTimeSlots()) { index = numberOfTimeSlots() - 1; }\n timeSlots.remove(aTimeSlot);\n timeSlots.add(index, aTimeSlot);\n wasAdded = true;\n }\n return wasAdded;\n }", "public void testGetStartTime() {\n assertTrue(mb.getStartTime() > -1);\n }", "public TimeSlot getTimeSlot(int index)\n {\n TimeSlot aTimeSlot = timeSlots.get(index);\n return aTimeSlot;\n }", "public TimeSlot(UUID scheduleID, LocalTime startTime, LocalTime endTime, LocalDate date, boolean isFree) {\r\n\t\tsuper();\r\n\t\tthis.id = UUID.randomUUID();\r\n\t\tthis.scheduleID = scheduleID;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.date = date;\r\n\t\tthis.isFree = isFree;\r\n\t\tthis.hasMeeting = false;\r\n\t\tthis.meeting = new Meeting();\r\n\t}", "private boolean timeSlotConflict(Course course, Lab lab)\n\t{\n\t\tboolean passed = true;\n\t\tTimeSlot cSlot = course.getSlot(), lSlot = lab.getSlot();\n\t\t\n\t\t//Obviously there is no conflict if they course + lab didn't have a time slot assigned\n\t\tif(cSlot != null && lSlot != null)\n\t\t{\n\t\t\t//If a course and lab are on the same day, or course is monday and lab is friday\n\t\t\tif(cSlot.getDay() == lSlot.getDay() || (cSlot.getDay()==ScheduleDay.MO && lSlot.getDay()==ScheduleDay.FR))\n\t\t\t{\n\t\t\t\t//If it's a Tuesday\n\t\t\t\tif(cSlot.getDay() == ScheduleDay.TU)\n\t\t\t\t{\n\t\t\t\t\t//If they have the same start they are a conflict\n\t\t\t\t\t//Lectures are 1.5 hours and labs are 1 hour. \n\t\t\t\t\t//If a lecture starts 30 min after a lab, it's a conflict\n\t\t\t\t\t//If a lecture starts 30 min before (-70 becuase thats how we coded it for ints)\n\t\t\t\t\t// then it is a conflict\n\t\t\t\t\t//NOTE: I need to do more testing, but everything i tired is working so far\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+30))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()-70))\n\t\t\t\t\t\tpassed = false; \n\t\t\t\t\telse if (cSlot.getStartTime() == (lSlot.getStartTime() -100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//THIS IS WHERE WE NEED FIXING \n\t\t\t\t}\n\t\t\t\telse if(cSlot.getDay() == ScheduleDay.MO && lSlot.getDay() == ScheduleDay.FR)\n\t\t\t\t{\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//else if(sC.getStartTime() == (sL.getStartTime()-100))\n\t\t\t\t\t\t//conflict = true; \n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//If they are equaal, there is a time conflict\n\t\t\t\t\tpassed = !(cSlot.getStartTime() == lSlot.getStartTime());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tpassed = true; //If they don't have the same day, they are obviously not in conflict\n\t\t}\n\t\treturn passed;\n\t}", "private void generateDefaultTimeSlots() {\n\t\tLocalTime startTime = LocalTime.of(9, 0); // 9AM start time\n\t\tLocalTime endTime = LocalTime.of(19, 0); // 5PM end time\n\n\t\tfor (int i = 1; i <= 7; i++) {\n\t\t\tList<Timeslot> timeSlots = new ArrayList<>();\n\t\t\tLocalTime currentTime = startTime.plusMinutes(15);\n\t\t\twhile (currentTime.isBefore(endTime) && currentTime.isAfter(startTime)) {\n\t\t\t\tTimeslot newSlot = new Timeslot();\n\t\t\t\tnewSlot.setTime(currentTime);\n\t\t\t\tnewSlot = timeslotRepository.save(newSlot);\n\t\t\t\ttimeSlots.add(newSlot);\n\t\t\t\tcurrentTime = currentTime.plusHours(1); // new slot after one hour\n\t\t\t}\n\t\t\tDay newDay = new Day();\n\t\t\tnewDay.setTs(timeSlots);\n\t\t\tnewDay.setDayOfWeek(DayOfWeek.of(i));\n\t\t\tdayRepository.save(newDay);\n\t\t}\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) { todo:\n // let tmp = after set stop time\n // if tmp time < start time, do nothing.\n //\n Calendar tmp = Calendar.getInstance();\n tmp.set(EventListFragment.this.mStopSearchCalendar.get(Calendar.YEAR), EventListFragment.this.mStopSearchCalendar.get(Calendar\n .MONTH), EventListFragment.this.mStopSearchCalendar.get(Calendar.DAY_OF_MONTH), hourOfDay, minute, 0);\n\n if (tmp.after(EventListFragment.this.mStartSearchCalendar) || tmp.equals(EventListFragment.this.mStartSearchCalendar)) {\n\n EventListFragment.this.mStopSearchCalendar.set(EventListFragment.this.mStopSearchCalendar.get(Calendar.YEAR), EventListFragment\n .this.mStopSearchCalendar.get(Calendar.MONTH), EventListFragment.this.mStopSearchCalendar.get(Calendar.DAY_OF_MONTH),\n hourOfDay, minute);\n\n btnStopTime.setText(timeFormat.format(EventListFragment.this.mStopSearchCalendar.getTime()));\n }\n }", "public void setTime(){\r\n \r\n }", "private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }", "@Test\r\n\tpublic void testToStringTimetable() {\r\n\t\tTimeslot a = new Timeslot(\"40001\",\"CS3332\",\"C01\", \"AC1\", \"LT-1\", 14, 16, Weekday.Mon.getDay());\r\n\t\tTimeslot b = new Timeslot(\"40002\",\"CS2332\",\"LA1\", \"AC2\", \"5503\", 13, 16, Weekday.Tue.getDay());\r\n\t\tTimeslot c = new Timeslot(\"40003\",\"CS3301\",\"LA1\", \"AC1\", \"LT-3\", 9, 11.5, Weekday.Wed.getDay());\r\n\t\tTimeslot d = new Timeslot(\"40004\",\"CS3201\",\"CA1\", \"AC3\", \"6208\", 10, 12, Weekday.Tue.getDay());\r\n\t\tTimeslot e = new Timeslot(\"40005\",\"CS3443\",\"CB1\", \"AC1\", \"LT-2\", 12, 16, Weekday.Tue.getDay());\r\n\r\n\t\ttimetable = new Timetable();\t\t\r\n\r\n\t\ttimetable.add(a);\r\n\t\ttimetable.add(b);\r\n\r\n\t\tassertEquals(timetable.toString().equals(\"[CS3332-C01, CS2332-LA1]\"), true);\r\n\r\n\t\ttimetable.clear();\r\n\t\ttimetable.add(c);\r\n\t\ttimetable.add(d);\r\n\t\ttimetable.add(e);\r\n\r\n\t\tassertEquals(timetable.toString().equals(\"[CS3301-LA1, CS3201-CA1, CS3443-CB1]\"), true);\r\n\t}", "public void timeChanged();", "@Override\n public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute, int second) {\n String time = Integer.toString(hourOfDay) + \"-\" + Integer.toString(minute);\n txtTime.setText(time);\n\n //TODO why get wrong time?\n calendar.set(Calendar.HOUR, hourOfDay);\n calendar.set(Calendar.MINUTE, minute);\n\n }", "public void ShowSchedule(ArrayList<TimeSlot> f_timeSlots)\n {\n this.timeSlots = f_timeSlots;\n\n LinearLayout scheduleLayout = (LinearLayout) findViewById(R.id.scheduleLayout);\n //Remove previous schedule, if any\n scheduleLayout.removeAllViews();\n\n for(int i = 0; i<48; i++)\n {\n final Button slot = new Button(this);\n\n slot.setTextAppearance(this, R.style.TimeTableStyle);\n slot.setText(((timeSlots.get(i).getStartsOn().split(\"T\"))[1]));\n\n if(timeSlots.get(i).isEmpty()) {\n slot.setBackgroundColor(getResources().getColor(R.color.mainGreenLight));\n }\n else\n {\n slot.setBackgroundColor(getResources().getColor(R.color.declinedColor));\n }\n\n final TimeSlot currentTimeSlot = timeSlots.get(i);\n final TimeSlot nextTimeSlot;\n\n if(i<47) { nextTimeSlot= timeSlots.get(i+1); }\n else {\n nextTimeSlot=null;\n }\n\n final TimeSlot prevTimeSlot;\n if(i>0){ prevTimeSlot= timeSlots.get(i-1);}\n else { prevTimeSlot = null;}\n slot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n if(!currentTimeSlot.isEmpty())\n {\n if(!getSharedPreferences(\"venAdminPrefs\",MODE_PRIVATE).getString(\"token\",\"\").equals(\"\")) {\n showTimeSlotDetails(currentTimeSlot.getUsername(), currentTimeSlot.getPhoneNumber());\n }\n return;\n }\n\n //Check if there are no selected slots, then initialize the reservations start and end\n if(reservationStartsOn==null)\n {\n reservationStartsOn=currentTimeSlot.getStartsOn();\n reservationEndsOn = currentTimeSlot.getEndsOn();\n slot.setBackgroundColor(getResources().getColor(R.color.selectedcolor));\n currentTimeSlot.setSelected(true);\n return;\n }\n\n //Here means the user has selected a time slot on this session\n\n //Check if select or deselect\n if(!currentTimeSlot.isSelected()) {\n\n if (reservationStartsOn.equals(currentTimeSlot.getEndsOn())) {\n reservationStartsOn = currentTimeSlot.getStartsOn();\n slot.setBackgroundColor(getResources().getColor(R.color.selectedcolor));\n currentTimeSlot.setSelected(true);\n\n } else if (reservationEndsOn.equals(currentTimeSlot.getStartsOn())) {\n reservationEndsOn = currentTimeSlot.getEndsOn();\n slot.setBackgroundColor(getResources().getColor(R.color.selectedcolor));\n currentTimeSlot.setSelected(true);\n\n } else {\n //This slot is not valid to choose\n showToastMessage(getResources().getString(R.string.invalidSlotSTring));\n\n }\n }\n else\n {\n //Deselect logic\n if (reservationEndsOn.equals(currentTimeSlot.getEndsOn()) )\n {\n currentTimeSlot.setSelected(false);\n slot.setBackgroundColor(getResources().getColor(R.color.mainGreenLight));\n if(reservationStartsOn.equals(currentTimeSlot.getStartsOn()))\n {\n reservationStartsOn = null;\n reservationEndsOn = null;\n }\n else {\n reservationEndsOn = currentTimeSlot.getStartsOn();\n }\n }\n else if (reservationStartsOn.equals(currentTimeSlot.getStartsOn()))\n {\n currentTimeSlot.setSelected(false);\n slot.setBackgroundColor(getResources().getColor(R.color.mainGreenLight));\n if(reservationEndsOn.equals(currentTimeSlot.getEndsOn()))\n {\n reservationStartsOn = null;\n reservationEndsOn = null;\n }\n else {\n reservationStartsOn = currentTimeSlot.getEndsOn();\n }\n\n }\n else\n {\n showToastMessage(getResources().getString(R.string.invalidSlotSTring));\n }\n\n }\n return;\n\n\n }\n });\n\n\n // LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\n scheduleLayout.addView(slot);\n\n\n }\n dismissLoading();\n\n\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }", "default void onCustomStartTimeChanged(LocalTime startTime) {}", "public TimeSlot(UUID id, UUID scheduleID, LocalTime startTime, LocalTime endTime, LocalDate date, boolean isFree) {\r\n\t\tsuper();\r\n\t\tthis.id = id;\r\n\t\tthis.scheduleID = scheduleID;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.date = date;\r\n\t\tthis.isFree = isFree;\r\n\t\tthis.hasMeeting = false;\r\n\t\t//this.meeting = new Meeting();\r\n\t\t\r\n\t\tMeetingDAO dao = new MeetingDAO();\r\n\t\tMeeting m = dao.getMeetingByTimeSlotID(id);\r\n\t\tif(m==null) {\r\n\t\t\tmeeting = new Meeting();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tmeeting = m;\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void onTimePicked() {\n }", "@Test\r\n public void testReserveSlot() {\r\n System.out.println(\"reserveSlot\");\r\n Table instance = new Table(\"S\",2);\r\n boolean expResult = true;\r\n boolean result = instance.reserveSlot();\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n public void getterDepartureTime(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n Assert.assertEquals(\"9:00AM\",entry.getDepartureTime());\n }", "public boolean addTimeSlot(TimeSlot aTimeSlot)\n {\n boolean wasAdded = false;\n if (timeSlots.contains(aTimeSlot)) { return false; }\n timeSlots.add(aTimeSlot);\n if (aTimeSlot.indexOfAppointment(this) != -1)\n {\n wasAdded = true;\n }\n else\n {\n wasAdded = aTimeSlot.addAppointment(this);\n if (!wasAdded)\n {\n timeSlots.remove(aTimeSlot);\n }\n }\n return wasAdded;\n }", "@Override\n public void onSleepingHoursSet(int hourOfDay, int minute, int hourOfDayEnd, int minuteEnd) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);\n calendar.set(Calendar.MINUTE, minute);\n // create a date object\n Date startSHdate = calendar.getTime();\n // add one day (for the stopSleepingHours end interval - assuming it next day)\n calendar.add(Calendar.DAY_OF_WEEK, 1);\n // set user selected hour and minute\n calendar.set(Calendar.HOUR_OF_DAY, hourOfDayEnd);\n calendar.set(Calendar.MINUTE, minuteEnd);\n // create a date object\n Date stopSHDate = calendar.getTime();\n // Check of the difference between the dates is at least 8 hours\n if (DateUtils.getDifferenceInHours(startSHdate, stopSHDate) >= 8) {\n // the difference between the dates is > = 8 hours. It is OK\n // Check if the start hour is before midnight\n if (hourOfDay <= ELEVEN_PM && hourOfDay >= SEVEN_PM) {\n try {\n mModel.setSleepingHours(hourOfDay, minute, hourOfDayEnd, minuteEnd);\n mView.showMessage(\"Selected: \" +\n hourOfDay + \" \" + minute +\n \" \" + hourOfDayEnd\n + \" \" + minuteEnd);\n } catch (Exception e) {\n mView.showMessage(\"Error! \" + e.getMessage());\n }\n } else {\n mView.showMessage(\"The start hour has to be between 7pm and 11pm\");\n }\n\n } else {\n mView.showMessage(\"The minimal interval for Sleeping hours is 8 hours!\");\n }\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }", "@Then(\"^I choose an interval time$\")\n public void i_choose_an_interval_time() {\n onViewWithId(R.id.startHour).type(\"12:00\");\n onViewWithId(R.id.endHour).type(\"23:59\");\n }", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;", "public void setUsedInTimeSlots(boolean yesNo) {\n this.usedInTimeSlots = yesNo;\n }", "public static int minimumNumberOfTimeSlots()\n {\n return 0;\n }", "public boolean getUsedInTimeSlots() {\n return usedInTimeSlots;\n }", "@Test\r\n\t// numero 43\r\n\tvoid testGetTime() {\n\t\tclock.setVirtual(true);\r\n\t\tlong result = clock.getTime();\r\n\t\tlong expected = 0;\r\n\t\tassertEquals(expected, result);\r\n\t\r\n\t// numero 44\r\n\t\t//sinon cela retourne Date().getTime()\r\n\t\tclock.setVirtual(false);\r\n\t\tlong result2 = clock.getTime();\r\n\t\tlong expected2 = new Date().getTime();\r\n\t\tassertEquals(expected2, result2);\r\n\r\n\t}", "public String getTimeslot_id() {\n return timeslot_id;\n }", "@Test\r\n\tpublic void testGetStarttime() {\r\n\t\tassertTrue(breaku1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(externu1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(meetingu1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(teachu1.getStarttime().equals(\"08:00\"));\r\n\t}", "public int pillTimeSlot(int xx) {\n\n //Pillen bliver checket om den er indenfor den fø\n if (xx < scanAreaW/4*1+scanAreaX) {\n //Pillen er i nat-zonen.\n return 1;\n } else if (xx < scanAreaW/4*2+scanAreaX) {\n //Pillen er i morgen-zonen.\n return 2;\n } else if (xx < scanAreaW/4*3+scanAreaX) {\n //Pillen er i middag-zonen.\n return 3;\n } else if (xx < scanAreaW/4*4+scanAreaX) {\n //Pillen er i aften-zonen.\n return 4;\n } else {\n //Default værdi, hvis ingen af zonerne er blevet ramt. Dette burde ikke være muligt.\n println(\"PILL NOT IN ZONE!\");\n return 0;\n }\n\n }", "public void testTime()\n {\n SudokuTimer test = new SudokuTimer();\n\n mTimer.start();\n test.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertTrue(mTimer.toString().equals(test.toString()));\n\n mTimer.stop();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertFalse(mTimer.toString().equals(test.toString()));\n\n test.stop();\n mTimer.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n mTimer.stop();\n\n //checks to the nearest second\n assertEquals(mTimer.getElapsedTime() / 1000,\n test.getElapsedTime() / 1000);\n }", "public TimeBlock() {\n name = \"To be assigned\";\n startingTime = \"00:00\";\n endingTime = \"00:00\";\n duration = 0;\n }", "public void setShowInTimeSlots(boolean show) {\n this.showInTimeSlots = show;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n editASLTStime.setText((((hourOfDay < 10) ? \"0\" + hourOfDay : hourOfDay) + \":\" + ((minute < 10) ? \"0\" + minute : minute) + \":00\"));\n }", "private static void timerTest4() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\tcalendar.set(Calendar.MINUTE, 20);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tDate time = calendar.getTime();\n\n\t\tTimer timer = new Timer();\n\t\tSystem.out.println(\"wait ....\");\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"timertest4\");\n\n\t\t\t}\n\t\t}, time, 24 * 60 * 60 * 1000);\n\n\t}", "public boolean removeTimeSlot(TimeSlot aTimeSlot)\n {\n boolean wasRemoved = false;\n if (!timeSlots.contains(aTimeSlot))\n {\n return wasRemoved;\n }\n\n int oldIndex = timeSlots.indexOf(aTimeSlot);\n timeSlots.remove(oldIndex);\n if (aTimeSlot.indexOfAppointment(this) == -1)\n {\n wasRemoved = true;\n }\n else\n {\n wasRemoved = aTimeSlot.removeAppointment(this);\n if (!wasRemoved)\n {\n timeSlots.add(oldIndex,aTimeSlot);\n }\n }\n return wasRemoved;\n }", "public boolean getShowInTimeSlots() {\n return showInTimeSlots;\n }", "public void testCmdUpdate_time_field() {\n\t\t// Initialize test variables\n\t\tCommandAction expectedCA;\n\t\tTask expectedTask;\n\t\tList<Task> expectedTaskList;\n\n\t\t/*\n\t\t * Test 3: Testing time field (all ID are valid)\n\t\t */\n\t\tctf.initialize();\n\t\texpectedTaskList = null;\n\t\taddNewTask(TASK_NAME_1);\n\n\t\t// Test 3a: start time and end time are both null\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, null, null, null);\n\t\texpectedCA = new CommandAction(MSG_TASKNOUPDATE, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\t// Test 3b: valid start time without end time\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, VALID_START_TIME + \"\", null, null);\n\t\texpectedCA = new CommandAction(MSG_INVALIDTIME, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\t// Test 3c: start time after end time\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, INVALID_START_TIME + \"\", VALID_END_TIME + \"\", null);\n\t\texpectedCA = new CommandAction(MSG_INVALIDTIME, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\texpectedTaskList = new ArrayList<Task>();\n\t\t// Test 3d: start time before end time\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, VALID_START_TIME + \"\", VALID_END_TIME + \"\", null);\n\t\texpectedTask = ctf.createExpectedTask(TASK_NAME_1, VALID_START_TIME, VALID_END_TIME, PRIORITY_TYPE.NORMAL);\n\t\texpectedTaskList.add(expectedTask);\n\t\texpectedCA = new CommandAction(String.format(MSG_TASKUPDATED, VALID_TASKID), true, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\t}", "boolean hasStartTime();", "public void setTestTime(Integer testTime) {\n this.testTime = testTime;\n }", "boolean hasTime();", "boolean hasTime();", "@Override\n\tpublic void validate(Component arg0, Object arg1) throws WrongValueException {\n\t\tif (arg0 instanceof Timebox) {\n\n\t\t\t// no need for checking ?\n\t\t\tif (((Timebox) arg0).isDisabled())\n\t\t\t\treturn;\n\t\t\t\n\t\t\tif (arg1 == null)\n\t\t\t\tthrow new WrongValueException(arg0, \"Campo obligatorio\");\n\t\t\telse{\n\t\t\t\tCalendar validaMinutos = Calendar.getInstance();\n\t\t\t\tvalidaMinutos.setTime((Date)arg1);\n\t\t\t\tint totalMinutos = ((validaMinutos.get(Calendar.HOUR_OF_DAY)*60) + validaMinutos.get(Calendar.MINUTE));\n\t\t\t\t\n\t\t\t\tif(totalMinutos < 15)\n\t\t\t\t\tthrow new WrongValueException(arg0, \"Duración mínima de recesos es de 15 minutos\");\n\t\t\t\telse\n\t\t\t\t\tif(totalMinutos % 5 != 0)\n\t\t\t\t\t\tthrow new WrongValueException(arg0, \"Tiempo no permitido, debe ser múltiplo de 5 minutos\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Test\n void deve_retornar_uma_datetimeexception() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"12:00:00\"));\n TimeModel timeModel = TimeModelStub.getTimeModel();\n timeModel.setPeriod(TimeCourseEnum.SECOND_PERIOD_IN);\n timeModel.setTime(\"12:30\");\n Assert.assertThrows(DateTimeException.class, () -> timeService.checkInterval(timeModel, localTimes));\n }", "@Test\r\n public void testGetSlot() {\r\n System.out.println(\"getSlot\");\r\n int s = 0;\r\n Table instance = new Table(\"S\",2);\r\n String expResult = \"10-11\";\r\n String result = instance.getSlot(s);\r\n assertEquals(expResult, result);\r\n \r\n }", "public boolean usesTime() {\n return uhrzeit != null;\n }", "private boolean isTimeOverlap(Item t) {\n\t\treturn t.getEndDate().equals(event.getEndDate());\n\t}", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "public void setTime(java.lang.Integer value) {\n this.time = value;\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n JDayChooser jDayChooser0 = new JDayChooser();\n KeyEvent keyEvent0 = new KeyEvent(jDayChooser0, (-3756), (-3756), (-4175), (-4175), '+');\n jDayChooser0.keyReleased(keyEvent0);\n jDayChooser0.setMaxDayCharacters((-4175));\n String string0 = AbstractButton.HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY;\n // Undeclared exception!\n try { \n Time.valueOf(\"day\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.sql.Time\", e);\n }\n }", "@Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n\n }", "@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}", "@Test(priority = 3, enabled = true)\n\tpublic void spinUpdatesSlotTable() {\n\t\tspin();\n\t\tint[][] slot1 = slotNumbers();\n\t\tspin();\n\t\tint[][] slot2 = slotNumbers();\n\t\t// compare table displayed after spin is not equal to previous\n\t\t// table\n\t\tAssert.assertTrue(slot1 != slot2);\n\n\t}", "public boolean hasDesiredTime() {\n return desiredTime_ != null;\n }", "@Test\n\tvoid testCheckDuration2() {\n\t\tassertFalse(DataChecker.checkDuration(Duration.ofMinutes(-11)));\n\t}", "public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}", "public boolean isTimeToSelect();", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }", "@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }", "public void setAvailableTime() {\n System.out.println(\"What is the free time for the playground\");\n System.out.println(\"From:\");\n Scanner input = new Scanner(System.in);\n int x = input.nextInt();\n System.out.print(\"To: \");\n int y = input.nextInt();\n for (int i = x; i <= y; ++i) {\n availableTime[i] = true;\n }\n }", "@Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n mHour = selectedHour;\n mMinute = selectedMinute;\n if(selectedMinute<10){\n remTime.setText(selectedHour + \":0\" + selectedMinute);\n }\n else {\n remTime.setText(selectedHour + \":\" + selectedMinute);\n }\n }", "public void setTimeStart(int timeStart) {\r\n this.timeStart = timeStart;\r\n }", "void setTime(final int time);", "boolean hasEndTime();", "public static String getSlot(Date date){\n Calendar calendar= Calendar.getInstance(Locale.US);\n Calendar current= Calendar.getInstance(Locale.US);\n calendar.setTime(date);\n current.setTime(date);\n calendar.set(Calendar.HOUR_OF_DAY,5);\n calendar.set(Calendar.MINUTE,0);\n calendar.set(Calendar.SECOND,0);\n calendar.set(Calendar.MILLISECOND,0);\n if(current.before(calendar)){\n return \"null\";\n }\n calendar.set(Calendar.HOUR_OF_DAY,19);\n if(current.after(calendar)){\n return \"null\";\n }\n calendar.set(Calendar.HOUR_OF_DAY,12);\n if(current.before(calendar))\n return \"AM\";\n else\n return \"PM\";\n\n }", "public void setSchedule(String timeframe) {\n\t\t\n\t}", "default void onCustomEndTimeChanged(LocalTime endTime) {}", "@Test\n @Override\n public void testTime(TestContext ctx) {\n testDecodeGeneric(ctx, \"test_time\", Duration.class, Duration.ofHours(18).plusMinutes(45).plusSeconds(2));\n }", "public void timeChanged( int newTime );", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);\n calendar.set(Calendar.MINUTE, minute - 2);\n calendar.set(Calendar.SECOND, 0);\n\n startAlarm(calendar);\n }", "public boolean endsInSlot();", "public void setTesto(){\n \n if(sec < 10){\n this.testo = min + \":0\" + sec + \":\" + deci;\n }\n else{\n this.testo = min + \":\" + sec + \":\" + deci;\n }\n \n }", "private void PrintTimeToET() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tjetztStdTxt.setText(Integer.toString(c.get(Calendar.HOUR_OF_DAY)));\n\t\tjetztMinTxt.setText(Integer.toString(c.get(Calendar.MINUTE)));\n\n\t}", "public void checkAddTrackDay() {\n int hour = this.timeTrankiManager.getHour();\n int minute = this.timeTrankiManager.getMinute();\n\n if (hour == 9 && minute == 00) {\n this.trackListFinal.addTrackDay(1);\n }\n }", "public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }", "private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }", "public void setSlot (Slot slot)\r\n {\r\n this.slot = slot;\r\n }", "@Test\n public void testHoldingTime() throws Exception {\n isisNeighbor.setHoldingTime(1);\n result = isisNeighbor.holdingTime();\n assertThat(result, is(1));\n }", "@Test\n public void is_restaurant_open_should_return_true_if_time_is_between_opening_and_closing_time_Failure_Scenario(){\n\n int isRestaurantOpened = restaurant.isRestaurantOpen().size();\n restaurant.isRestaurantOpen(\"Invalid Input\");\n assertEquals(\"Invalid Input\",restaurant.isRestaurantOpen().size());\n System.out.println(\"Enter proper timing in proper format 23:00:00\")\n\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Slot createSlot();", "@Test\n\tpublic void test() throws InterruptedException {\n\t\tString firstTime = Time.main();\n\t\tString[] splitFirst = firstTime.split(\":\");\n\t\tThread.sleep(5000);\n\t\tString secondTime = Time.main();\n\t\tString[] splitSecond = secondTime.split(\":\");\n\t\t\n\t\t\n\t\tif(Integer.parseInt(splitFirst[2])>=55) //if first time was >= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)%60); //seconds should increase by 5 mod 60\n\n\t\t\tif(Integer.parseInt(splitFirst[1])==59) //if first time was 59 minutes\n\t\t\t{ \n\t\t\t\tassertTrue(splitFirst[1].equals(\"00\")); //reset to zero minutes\n\t\t\t\t\n\t\t\t\tif(Integer.parseInt(splitFirst[0])==23) //if first time was 23 hours\n\t\t\t\t\tassertTrue(splitFirst[0].equals(\"00\")); //reset to zero hours\n\t\t\t\telse //if first time is not 23 hours\n\t\t\t\t\tassertEquals(Integer.parseInt(splitFirst[0])+1, Integer.parseInt(splitSecond[0])); //hours should increase by 1\n\t\t\t}\n\t\t\telse //if first time was not 59 minutes\n\t\t\t{\n\t\t\t\tassertEquals(Integer.parseInt(splitFirst[1])+1, Integer.parseInt(splitSecond[1])); //minutes should increase by 1\n\t\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t}\n\t\t}\n\t\telse //if first time was <= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)); //seconds should increase by 5\n\t\t\tassertTrue(splitFirst[1].equals(splitSecond[1])); //minutes should not change\n\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }", "public void setSlot(int slot) {\n this.slot = slot;\n }", "@Override\n public boolean fillSlot(int slot) {\n if(!isValidSlot(slot) || availableSlots.size() == 0 || !availableSlots.contains(slot)){\n return false;\n }\n\n availableSlots.remove(slot);\n return true;\n }", "private boolean validateArrivingTime(StopPoint currentSP) {\n\t\ttry {\n\t\t\tint time = Integer.valueOf(hourComboBox.getValue()) * 60;\n\t\t\ttime += Integer.valueOf(minuteComboBox.getValue());\n\t\t\ttime += timeIndicatorComboBox.getValue().equals(\"PM\") ? 12 * 60 : 0;\n\t\t\tfor (StopPoint stopPoint : stopPoints) {\n\t\t\t\tif (stopPoint.getTime() != null && !stopPoint.getTime().equals(\"\") && stopPoint != currentSP) {\n\t\t\t\t\tString[] spTimeString = stopPoint.getTime().split(\"[ :]+\");\n\t\t\t\t\tint spTime = Integer.valueOf(spTimeString[0]) * 60;\n\t\t\t\t\tspTime += Integer.valueOf(spTimeString[1]);\n\t\t\t\t\tspTime += spTimeString[2].equals(\"PM\") ? 12 * 60 : 0;\n\n\t\t\t\t\tif (time <= spTime + 5 && time >= spTime - 5) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public void checkTime() throws InterruptedByTimeoutException\n {\n if (System.currentTimeMillis() - this.start > TIME)\n throw new InterruptedByTimeoutException();\n }", "@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddTripActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String a = \"\" + selectedMinute;\n String b = \"\" + selectedHour;\n if(selectedMinute<10){\n a = \"0\"+selectedMinute;\n }\n if(selectedHour<10){\n b = \"0\"+selectedHour;\n }\n mTime.setText( b + \":\" + a);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }" ]
[ "0.76546574", "0.6814888", "0.67507076", "0.62136364", "0.6190057", "0.615849", "0.61557144", "0.61481994", "0.614242", "0.61143684", "0.60745925", "0.6019952", "0.60037476", "0.592213", "0.5899754", "0.58631325", "0.5858302", "0.5838579", "0.5836727", "0.5804044", "0.5792295", "0.57909673", "0.5782773", "0.5777401", "0.5775659", "0.5766834", "0.5759467", "0.5752359", "0.57386076", "0.5694718", "0.5690967", "0.5686507", "0.567467", "0.56712896", "0.5669208", "0.5666181", "0.56612676", "0.5659496", "0.5655876", "0.5646203", "0.563979", "0.56370544", "0.5632601", "0.5625075", "0.56139165", "0.5597892", "0.5595487", "0.558422", "0.5582536", "0.55774134", "0.5564288", "0.5564288", "0.5561292", "0.55427885", "0.55427885", "0.55427885", "0.55337816", "0.5528849", "0.5527245", "0.55235755", "0.55209494", "0.5513549", "0.55118287", "0.5511647", "0.5507577", "0.5504265", "0.5499081", "0.5487232", "0.54865044", "0.54813534", "0.5473117", "0.54609704", "0.5460315", "0.54579926", "0.54453117", "0.54447305", "0.5439494", "0.5438145", "0.5435127", "0.5429055", "0.54284114", "0.5427952", "0.5427082", "0.54197073", "0.54157233", "0.5410165", "0.5398277", "0.53894067", "0.5389199", "0.5381392", "0.5379492", "0.5374487", "0.5370105", "0.5358311", "0.53558594", "0.5349495", "0.53471076", "0.53456306", "0.5340239", "0.5338904" ]
0.75959325
1
Testet, ob die Methode getClasses(), das richtige Set von Klassen zurueckgibt.
@Test public void testGetClasses() { assertTrue(breaku1.getClasses().contains(class1)); assertTrue(externu1.getClasses().contains(class1)); assertTrue(meetingu1.getClasses().contains(class1)); assertTrue(teachu1.getClasses().contains(class1)); assertEquals(classes, breaku1.getClasses()); assertEquals(classes, externu1.getClasses()); assertEquals(classes, meetingu1.getClasses()); assertEquals(classes, teachu1.getClasses()); assertFalse(classes1 == breaku1.getClasses()); assertFalse(classes1 == externu1.getClasses()); assertFalse(classes1 == meetingu1.getClasses()); assertFalse(classes1 == teachu1.getClasses()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetClasses() {\r\n\t\tbreaku1.setClasses(classes1);\r\n\t\texternu1.setClasses(classes1);\r\n\t\tmeetingu1.setClasses(classes1);\r\n\t\tteachu1.setClasses(classes1);\r\n\r\n\t\tassertTrue(breaku1.getClasses().contains(class2));\r\n\t\tassertTrue(externu1.getClasses().contains(class2));\r\n\t\tassertTrue(meetingu1.getClasses().contains(class2));\r\n\t\tassertTrue(teachu1.getClasses().contains(class2));\r\n\r\n\t\tassertEquals(classes1, breaku1.getClasses());\r\n\t\tassertEquals(classes1, externu1.getClasses());\r\n\t\tassertEquals(classes1, meetingu1.getClasses());\r\n\t\tassertEquals(classes1, teachu1.getClasses());\r\n\r\n\t\tassertFalse(classes == breaku1.getClasses());\r\n\t\tassertFalse(classes == externu1.getClasses());\r\n\t\tassertFalse(classes == meetingu1.getClasses());\r\n\t\tassertFalse(classes == teachu1.getClasses());\r\n\t}", "private Set<String> classSet(String whichClass) {\n return subclasses.get(whichClass);\n }", "@NotNull\n List<? extends ClassInfo> getClasses();", "public void testGetClasses() throws Exception {\n assertSetEquals(HasMemberClasses.class.getClasses(),\n HasMemberClassesSuperclass.B.class, HasMemberClasses.H.class);\n }", "@ApiModelProperty(example = \"null\", value = \"Set of possible classes identified by the classifier\")\n public java.util.List<VbClass> getClasses() {\n return classes;\n }", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepository.findAll();\n\t}", "@NotNull\n List<? extends ClassInfo> getAllClasses();", "public ClassInfo[] getClasses() {\r\n return classes.toArray(new ClassInfo[classes.size()]);\r\n }", "final Class<?>[] classes() {\n if (classes instanceof Class[]) {\n return (Class[]) classes;\n } else {\n return new Class[] { (Class) classes };\n }\n }", "public List<IclassItem> getClasses() {\n if(projectData!=null){\n return projectData.getClasses();\n }\n return new ArrayList<IclassItem>();\n }", "@Override\n public Set<Class<?>> getClasses() {\n HashSet h = new HashSet<Class<?>>();\n h.add(AffirmationService.class );\n return h;\n }", "@Override\r\n\tpublic Set<Class<?>> getClasses() {\r\n\t\treturn BazaarApplicationImpl.CLASSES;\r\n\t}", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepo.findAll();\n\t}", "@Test\n public void testGetClasses() throws Exception {\n for (Class clazz : TestClass.class.getClasses()) {\n System.out.println(clazz.getName());\n }\n }", "public void setClasses(final Collection<Class> classes) {\n this.classes = classes;\n }", "Class<?>[] getHandledClasses();", "public static Set<String> getMazeJavaClasses() {\r\n\t\treturn Collections.unmodifiableSet(mazeJavaClasses);\r\n\t}", "public List<Class<?>> getKnownClasses();", "public int getClasses(){\r\n\t\treturn this.classes;\r\n\t}", "@Override\n\tpublic List<Classes> findAllClasses() {\n\t\tString sql = \"select * from classes\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tList<Classes> classesList = (List<Classes>) querys.getResultList();\n\t\treturn classesList;\n\t}", "List<Class<?>> getManagedClasses();", "public AssignmentClasses[] getClasses()\n\t{\n\t\treturn classes;\n\t}", "public List<BaseClass> baseClasses() {\r\n\t\treturn this.baseClasses;\r\n\t}", "@Override\n public Set<Class<?>> getClasses() {\n\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(CountryResource.class);\n resources.add(DepartmentResource.class);\n resources.add(JobResource.class);\n return resources;\n }", "public Set<Class<?>> getScanClasses();", "void initClasses() {\n\t\tif (programUnit == null) return;\n\n\t\t// Add all classes\n\t\tList<BdsNode> cdecls = BdsNodeWalker.findNodes(programUnit, ClassDeclaration.class, true, true);\n\t\tfor (BdsNode n : cdecls) {\n\t\t\tClassDeclaration cd = (ClassDeclaration) n;\n\t\t\tbdsvm.addType(cd.getType());\n\t\t}\n\t}", "public final Set<Class<?>> getInputClasses() {\n return inputClasses;\n }", "public abstract Class<?>[] getCoClasses();", "public static Set<Class<?>> getClassSetFromAnnotation(Class clazz) {\n Set<Class<?>> classSet = new HashSet<>();\n for (Class<?> cls : CLASS_SET) {\n if (cls.isAnnotationPresent(clazz)) {\n classSet.add(cls);\n }\n }\n return classSet;\n }", "@Override\n public Set<Class<?>> getClasses() {\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(api.Auth.class);\n resources.add(api.UserApi.class);\n resources.add(api.TicketApi.class);\n resources.add(api.DepartmentApi.class);\n resources.add(api.MessageApi.class);\n resources.add(api.MilestoneApi.class);\n resources.add(api.InvitationApi.class);\n return resources;\n }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public ClassDoc[] classes() {\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // return the set of classes in specClasses that are \"included\"\n // according to the access modifier filter\n if (includedClasses != null) {\n // System.out.println(\"RootDoc.classes() called.\");\n return includedClasses;\n }\n int size = 0;\n Collection<X10ClassDoc> classes = specClasses.values();\n for (ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n size++;\n }\n }\n includedClasses = new X10ClassDoc[size];\n int i = 0;\n for (X10ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n includedClasses[i++] = cd;\n }\n }\n Comparator<X10ClassDoc> cmp = new Comparator<X10ClassDoc>() {\n public int compare(X10ClassDoc first, X10ClassDoc second) {\n return first.name().compareTo(second.name());\n }\n\n public boolean equals(Object other) {\n return false;\n }\n };\n Arrays.sort(includedClasses, cmp);\n // System.out.println(\"RootDoc.classes() called. result = \" +\n // Arrays.toString(includedClasses));\n return includedClasses;\n }", "public ClassDoc[] specifiedClasses() {\n // System.out.println(\"RootDoc.specifiedClasses() called.\");\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // index.html lists classes returned from specifiedClasses; return the\n // set of classes in specClasses that are\n // included as per access mod filter\n return classes();\n }", "public String getClasses() {\n String classesString = \"\";\n\n for (String className : classes) {\n classesString += (className + \"\\n\");\n }\n\n return classesString;\n }", "@Test\n public void testGetDecalredClasses() {\n for (Class clazz : TestClass.class.getDeclaredClasses()) {\n System.out.println(clazz.getName());\n }\n }", "public List<? extends BaseClassInfo> getClasses(HasMetricsFilter filter) {\n if (classLookup == null) {\n buildClassLookupMap();\n }\n List<BaseClassInfo> result = newArrayList();\n for (BaseClassInfo classInfo : classLookup.values()) {\n if (filter.accept(classInfo)) {\n result.add(classInfo);\n }\n }\n return result;\n }", "public interface HasClasses {\n /**\n * Returns list of classes\n *\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getClasses();\n\n /**\n * Returns list of all classes, including indirect descendants.\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getAllClasses();\n}", "private void onClassesFound(List<UMDClass> classes) {\n\t}", "@OneToMany(mappedBy=\"classRoom\")\n @OrderBy(\"className ASC\")\n public Collection<Class> getClasses() {\n return classes;\n }", "Set<Class<?>> getClassSet(String packageName);", "private Set<Class<?>> describeClassTree(Class<?> inputClass) {\r\n if (inputClass == null) {\r\n return Collections.emptySet();\r\n }\r\n\r\n // create result collector\r\n Set<Class<?>> classes = Sets.newLinkedHashSet();\r\n\r\n // describe tree\r\n describeClassTree(inputClass, classes);\r\n\r\n return classes;\r\n }", "@SuppressWarnings(\"rawtypes\")\n public static Set<Class> getAllInterfacesForClassAsSet(Class clazz, ClassLoader classLoader) {\n Preconditions.checkNotNull(clazz, \"Class must not be null\");\n if (clazz.isInterface() && isVisible(clazz, classLoader)) {\n return Collections.singleton(clazz);\n }\n Set<Class> interfaces = new LinkedHashSet<>();\n Class sclazz = clazz;\n while (sclazz != null) {\n Class<?>[] ifcs = sclazz.getInterfaces();\n for (Class<?> ifc : ifcs) {\n interfaces.addAll(getAllInterfacesForClassAsSet(ifc, classLoader));\n }\n sclazz = clazz.getSuperclass();\n }\n return interfaces;\n }", "@Override\r\n\tpublic List<Classified> getAllClassified() {\n\t\treturn null;\r\n\t}", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses, boolean innerClasses) {\r\n\t\tIterator iterClasses = null;\r\n\t\tString strClassName = null;\r\n\t\tString strSuperClassName = null;\r\n\t\tClass c = null;\r\n\t\tClass cParent = null;\r\n\t\tboolean bIsSubclass = false;\r\n\t\tstrSuperClassName = theClass.getName();\r\n\t\titerClasses = listAllClasses.iterator();\r\n\t\twhile (iterClasses.hasNext()) {\r\n\t\t\tstrClassName = (String) iterClasses.next();\r\n\t\t\t// only check classes if they are not inner classes\r\n\t\t\t// or we intend to check for inner classes\r\n\t\t\tif ((strClassName.indexOf(\"$\") == -1) || innerClasses) {\r\n\t\t\t\t// might throw an exception, assume this is ignorable\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Class.forName() doesn't like nulls\r\n\t\t\t\t\tif (strClassName == null)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tif (strClassName.endsWith(\".groovy\")) {\r\n\t\t\t\t\t\tGroovyClassLoader loader = new GroovyClassLoader(Thread.currentThread()\r\n\t\t\t\t\t\t\t\t.getContextClassLoader());\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tc = loader.parseClass(loader.getResourceAsStream(strClassName));\r\n\t\t\t\t\t\t} catch (Throwable e) {\r\n\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tFile gFile = new File(strClassName);\r\n\t\t\t\t\t\t\t\tc = loader.parseClass(new FileInputStream(gFile));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(Throwable e1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"file load failed: \" + e1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tc = Class.forName(strClassName, false, Thread\r\n\t\t\t\t\t\t\t\t.currentThread().getContextClassLoader());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!c.isInterface()\r\n\t\t\t\t\t\t\t&& !Modifier.isAbstract(c.getModifiers())) {\r\n\t\t\t\t\t\tbIsSubclass = theClass.isAssignableFrom(c);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbIsSubclass = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (bIsSubclass) {\r\n\t\t\t\t\t\tlistSubClasses.add(c);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Throwable ignored) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<String> getHideClasses() {\n\t\treturn hideClasses;\n\t}", "public abstract List<String> scanAllClassNames();", "public static Set<Class<?>> getAllInterfacesForClassAsSet(Class<?> clazz) {\n return getAllInterfacesForClassAsSet(clazz, null);\n }", "public Iterator<String> listAllClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "public static Class<?>[] findTestClasses(Class<?> clazz) throws ClassNotFoundException {\n\t\tFile testDir = findClassDir(clazz);\n\t\treturn findTestClasses(testDir);\n\t}", "private void loadClasses() {\n\t\tString[] classes = new String[] { \"com.sssprog.delicious.api.ApiAsyncTask\" };\n\t\tfor (String c : classes) {\n\t\t\ttry {\n\t\t\t\tClass.forName(c);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void clear() {\n loadedClasses.clear();\n }", "public List<String> getClassList() {\n return classlist;\n }", "private void describeClassTree(Class<?> inputClass, Set<Class<?>> setOfClasses) {\r\n // can't map null class\r\n if (inputClass == null) {\r\n return;\r\n }\r\n\r\n // don't further analyze a class that has been analyzed already\r\n if (Object.class.equals(inputClass) || setOfClasses.contains(inputClass)) {\r\n return;\r\n }\r\n\r\n // add to analysis set\r\n setOfClasses.add(inputClass);\r\n\r\n // perform super class analysis\r\n describeClassTree(inputClass.getSuperclass(), setOfClasses);\r\n\r\n // perform analysis on interfaces\r\n for (Class<?> hasInterface : inputClass.getInterfaces()) {\r\n describeClassTree(hasInterface, setOfClasses);\r\n }\r\n }", "Integer[] getClasses() {\n\t\tArrayList<Integer> uniqueClasses = new ArrayList<Integer>();\n\t\tfor(ClassInfo c : preferences) {\n\t\t\tif (uniqueClasses.contains(c.getCourseID()) == false){\n\t\t\t\tuniqueClasses.add(c.getCourseID());\n\t\t\t}\n\t\t}\n\t\treturn uniqueClasses.toArray(new Integer[0]);\n\t}", "public final int getMaxClasses()\r\n\t{\r\n\t\treturn maxClasses;\r\n\t}", "private void setClasses(OWLClass cls, int depth, Set<String> supers) {\n\n\t\tif (depth > 0) {\n\t\t\tString nm = render(cls);\n\t\t\tsupersInfo.put(nm, supers);\n\t\t\tSet<OWLClass> children = theProvider.getDescendants(cls);\n\t\t\tString lbl = (children.size() > 0 && depth == 1) ? nm + \"+\" : nm;\n\t\t\tPair<String, OWLClass> nameInfo = new Pair<String, OWLClass>(lbl,\n\t\t\t\t\tcls);\n\t\t\tclassMap.put(nm, nameInfo);\n\t\t\tif (depth > 1) {\n\t\t\t\tSet<String> supers2 = new HashSet<String>(supers);\n\t\t\t\tsupers2.add(nm);\n\t\t\t\tint newDepth = --depth;\n\t\t\t\tfor (OWLClass sub : theProvider.getChildren(cls)) {\n\t\t\t\t\tsetClasses(sub, newDepth, supers2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// collect the spiders info\n\t\t\tSet<OWLIndividual> inds = cls.getIndividuals(mgr\n\t\t\t\t\t.getActiveOntologies());\n\t\t\t// TODO all individuals are reported as belonging to Thing, but not\n\t\t\t// to the other\n\t\t\t// superclasses of the class within which they are actually defined.\n\t\t\t// For now,\n\t\t\t// only show spiders for the actual class, c, within which they are\n\t\t\t// defined, and work\n\t\t\t// out how to show spiders in any superclass of c later on\n\t\t\tif (showSpiders && !inds.isEmpty() && !nm.equals(\"Thing\")) {\n\t\t\t\tArrayList<Pair<String, List<CVizZone>>> spInfo = new ArrayList<Pair<String, List<CVizZone>>>();\n\t\t\t\tfor (OWLIndividual i : inds) {\n\t\t\t\t\tif (i.isNamed()) {\n\t\t\t\t\t\tspInfo.add(new Pair<String, List<CVizZone>>(ren\n\t\t\t\t\t\t\t\t.render((OWLEntity) i),\n\t\t\t\t\t\t\t\tnew ArrayList<CVizZone>()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindMap.put(nm, spInfo);\n\t\t\t}\n\t\t\t// collect the children info\n\t\t\tSet<String> childrenStr = new HashSet<String>();\n\t\t\tIterator<OWLClass> it = children.iterator();\n\t\t\tOWLClass c;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tchildrenStr.add(render(it.next()));\n\t\t\t}\n\t\t\tchildrenInfo.put(nm, childrenStr);\n\n\t\t\t// collect the disjointness info\n\t\t\tNodeSet<OWLClass> ds = theReasoner.getDisjointClasses(cls);\n\t\t\tSet<String> disjoints = new HashSet<String>();\n\t\t\tIterator<Node<OWLClass>> it2 = ds.iterator();\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tc = it2.next().getRepresentativeElement();\n\t\t\t\tdisjoints.add(render(c));\n\t\t\t}\n\t\t\tif (disjoints.size() > 0)\n\t\t\t\tdisjointsInfo.put(nm, disjoints);\n\t\t\t// collect the equivalent classes info\n\t\t\tNode<OWLClass> equivs = theReasoner.getEquivalentClasses(cls);\n\t\t\tif (!equivs.isSingleton())\n\t\t\t\tequivsInfo.put(nm, new HashSet<OWLClass>(equivs.getEntities()));\n\t\t\t// collect the union classes info\n\t\t\tSet<OWLEquivalentClassesAxiom> eq;\n\t\t\tfor (OWLOntology ont : activeOntologies) {\n\t\t\t\teq = ont.getEquivalentClassesAxioms(cls);\n\t\t\t\tif (eq.size() > 0) {\n\t\t\t\t\tfor (OWLEquivalentClassesAxiom a : eq) {\n\t\t\t\t\t\tboolean isUnion = true;\n\t\t\t\t\t\tClassExpressionType t;\n\t\t\t\t\t\tfor (OWLClassExpression e : a.getClassExpressions()) {\n\t\t\t\t\t\t\tt = e.getClassExpressionType();\n\t\t\t\t\t\t\tif (!(t.equals(ClassExpressionType.OWL_CLASS) || t\n\t\t\t\t\t\t\t\t\t.equals(ClassExpressionType.OBJECT_UNION_OF))) {\n\t\t\t\t\t\t\t\tisUnion = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isUnion) {\n\t\t\t\t\t\t\tSet<OWLClass> us = a.getClassesInSignature();\n\t\t\t\t\t\t\tus.remove(cls);\n\t\t\t\t\t\t\tif (us.size() > 0)\n\t\t\t\t\t\t\t\tunionsInfo.put(render(cls), us);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// collect the inconsistent classes info\n\t\t\tif (!theReasoner.isSatisfiable(cls)) {\n\t\t\t\tinconsistentClasses.add(nm);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Classes findClasses(String cls_id) {\n\t\tString sql = \"select * from classes where cls_id='\" + cls_id + \"'\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tClasses classes = querys.getBean();\n\t\treturn classes;\n\t}", "public Set<Class<? extends Throwable>> getRegisteredExceptionClasses() {\n\t\treturn Collections.unmodifiableSet(registeredClasses);\n\t}", "public Set<String> getClassKeys();", "@Test\r\n\tpublic void testContainsClass() {\r\n\t\tassertTrue(breaku1.containsClass(class1));\r\n\t\tassertTrue(externu1.containsClass(class1));\r\n\t\tassertTrue(meetingu1.containsClass(class1));\r\n\t\tassertTrue(teachu1.containsClass(class1));\r\n\t}", "public Object VisitClasses(ASTClasses classes){\n for (int i = 0; i <classes.size(); i++) {\n classes.elementAt(i).Accept(this);\n }\n return null;\n }", "public List<Class<?>> getSubClasses(Class<?> aClass) {\n\t\treturn ModelClasses.getAllSubClasses(aClass);\n\t}", "public static synchronized Set<Class<?>> keySet() {\n\t\treturn ClassRegistry.dictionary.keySet();\n\t}", "Set<Class<?>> getClassSetBySuperClass(String packageName, Class<?> superClass);", "public List<String> getClassesList() {\n\t\tCursor c = theDb.rawQuery(\"SELECT * \" +\n\t\t\t\t\t\t\t\t \"FROM \" + DbContract.Classes.TABLE_NAME, null);\n\t\t\n\t\t//Read cursor into an ArrayList\n\t\tList<String> classesList = new ArrayList<String>();\n\t\tclassesList.add( context.getString(R.string.all_classes) );\t\t\t//Add \"All classes\"\n\t\t\n\t\twhile (c.moveToNext()) {\n\t\t\tclassesList.add( c.getString( c.getColumnIndex(DbContract.Classes.ATTRIBUTE_NAME)));\n\t\t}\n\t\t\n\t\treturn classesList;\n\t}", "default boolean isClass() {\n return false;\n }", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses) {\r\n\t\tfindAllSubclassesOneClass(theClass, listAllClasses, listSubClasses,\r\n\t\t\t\tfalse);\r\n\t}", "private void restrictClasses() {\n\t\tSet<String> classes = classMap.keySet();\n\t\tSet<String> intersect;\n\t\tfor (String s : disjointsInfo.keySet()) {\n\t\t\tintersect = disjointsInfo.get(s);\n\t\t\tintersect.retainAll(classes);\n\t\t\tdisjointsInfo.put(s, intersect);\n\t\t}\n\t\tfor (String s : supersInfo.keySet()) {\n\t\t\tintersect = supersInfo.get(s);\n\t\t\tintersect.retainAll(classes);\n\t\t\tsupersInfo.put(s, intersect);\n\t\t}\n\t}", "List<String> getClassNames() {\n List<String> allGeneratedClasses = new ArrayList<String>();\n for (int i = 0; i < classesToScan.size(); i++) {\n String lookupName = classesToScan.get(i);\n byte classBytes[] = getClassBytes(lookupName);\n if (classBytes == null) {\n /*\n * Weird case: javac might generate a name and reference the class in\n * the bytecode but decide later that the class is unnecessary. In the\n * bytecode, a null is passed for the class.\n */\n continue;\n }\n \n /*\n * Add the class to the list only if it can be loaded to get around the\n * javac weirdness issue where javac refers a class but does not\n * generate it.\n */\n if (CompilingClassLoader.isClassnameGenerated(lookupName)\n && !allGeneratedClasses.contains(lookupName)) {\n allGeneratedClasses.add(lookupName);\n }\n AnonymousClassVisitor cv = new AnonymousClassVisitor();\n new ClassReader(classBytes).accept(cv, 0);\n List<String> innerClasses = cv.getInnerClassNames();\n for (String innerClass : innerClasses) {\n // The innerClass has to be an inner class of the lookupName\n if (!innerClass.startsWith(mainClass + \"$\")) {\n continue;\n }\n /*\n * TODO (amitmanjhi): consider making this a Set if necessary for\n * performance\n */\n // add the class to classes\n if (!classesToScan.contains(innerClass)) {\n classesToScan.add(innerClass);\n }\n }\n }\n Collections.sort(allGeneratedClasses, new GeneratedClassnameComparator());\n return allGeneratedClasses;\n }", "public static Set<Class<?>> getAllInterfacesForClassAsSet(\n Class<?> clazz, @Nullable ClassLoader classLoader) {\n Assert.notNull(clazz, \"Class must not be null\");\n\n if (clazz.isInterface() && isVisible(clazz, classLoader)) {\n return Collections.singleton(clazz);\n }\n\n Set<Class<?>> interfaces = new LinkedHashSet<>();\n Class<?> currentClass = clazz;\n\n while (currentClass != null) {\n Class<?>[] interfaceArray = currentClass.getInterfaces();\n for (Class<?> cl : interfaceArray) {\n if (isVisible(cl, classLoader)) {\n interfaces.add(cl);\n }\n }\n currentClass = currentClass.getSuperclass();\n }\n\n return interfaces;\n }", "public void compareClasses() {\n for (User f : friends) {\n compareClassesHelper(thisUser.getArrMatch(), f.getArrMatch(), f);\n }\n }", "public Map getStandardClasses() {\n return standardClasses;\n }", "@SuppressWarnings(\"rawtypes\")\n public static Iterable<Class> getClasses(String packageName, Class<?> superClass) throws ClassNotFoundException, IOException\n {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements())\n {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n List<Class> classes = new ArrayList<Class>();\n for (File directory : dirs)\n {\n List<Class> foundClasses = findClasses(directory, packageName);\n for (Class foundClass : foundClasses)\n {\n if (superClass.isAssignableFrom(foundClass))\n {\n classes.add(foundClass);\n }\n }\n }\n\n return classes;\n }", "@SuppressWarnings(\"rawtypes\")\n public static Iterable<Class> getClasses(String packageName) throws ClassNotFoundException, IOException\n {\n return getClasses(packageName, null);\n }", "boolean hasClassname();", "protected Class[] getDestinationClassesImpl() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public List<BaiseeClazz> findAllClazzInfo() {\n return claMapper.findAllClazzInfo();\n }", "public Set<TestInfo> getAnnotatedClasses(final Set<TestInfo> testClasses, final TestInfo contractClassInfo) {\n\n\t\tCollection<Class<?>> lst = getAllInterfaces(contractClassInfo.getClassUnderTest());\n\t\tfor (Class<?> clazz : lst) {\n\t\t\ttestClasses.addAll(getInfoByInterfaceClass(clazz));\n\t\t}\n\n\t\treturn testClasses;\n\t}", "public Set<Class<?>> getAllInterfaces(Class<?> clazz) {\n\t\tSet<Class<?>> result = new HashSet<Class<?>>();\n\t\tgetAllInterfaces(result, clazz);\n\t\treturn result;\n\t}", "Collection<ClassValidationAnnotationHandler> getClassHandlers();", "@NonNull\n public static Map<String, Set<ClassObj>> allClasses(@NonNull Snapshot snapshot) {\n return classes(snapshot, null);\n }", "public List<Class<?>> getSuperClasses(Class<?> aClass) {\n\t\treturn ModelClasses.getAllSuperClasses(aClass);\n\t}", "private List<IClass> getChildren(IClass cls) {\n\t\tList<IClass> subclasses = new ArrayList<IClass>();\n\t\tCollections.addAll(subclasses, cls.getDirectSubClasses());\n\t\treturn subclasses;\n\t}", "public String[][] ResetClasses()\r\n {\r\n String[][] classesR = {\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null },\r\n { null, null, null, null, null }};\r\n \r\n return classesR;\r\n }", "public HashMap<Integer,Category_components> get_classes(){\n return game_classes;\n }", "private List<Class> getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes;\n }", "public Set<Class<?>> getUntestedInterfaces() {\n\t\tfinal Set<Class<?>> retval = new TreeSet<Class<?>>(\n\t\t\t\tCLASS_NAME_COMPARATOR);\n\n\t\tfor (final InterfaceInfo info : getInterfaceInfoMap().values()) {\n\t\t\t// no test and has methods\n\t\t\tif (info.getTests().isEmpty() && info.getName().getDeclaredMethods().length > 0) {\n\t\t\t\tretval.add(info.getName());\n\t\t\t}\n\t\t}\n\t\treturn retval;\n\t}", "@PathSensitive(PathSensitivity.RELATIVE)\n @InputFiles\n @SkipWhenEmpty\n public FileCollection getClassesDirs() {\n return classesDirs;\n }", "public List<Classinfo> list() {\n\t\treturn null;\r\n\t}", "private static <T> Collection<Class<?>> getClassHierarchy(T instance) {\n Collection<Class<?>> hierarchy = new LinkedList<>();\n Class<?> clazz = (Class<?>) instance;\n while (clazz != null) {\n hierarchy.add(clazz);\n clazz = clazz.getSuperclass();\n }\n return hierarchy;\n }", "Object getClass_();", "Object getClass_();", "@Override\n\tpublic void setClassMissing() {\n\n\t}", "private String[] getReferencedJavaClasses() {\n\t\tclass ClassNameVisitor extends JVisitor {\n\t\t\tList<String> classNames = new ArrayList<String>();\n\n\t\t\t@Override\n\t\t\tpublic boolean visit(JClassType x, Context ctx) {\n\t\t\t\tclassNames.add(x.getName());\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tClassNameVisitor v = new ClassNameVisitor();\n\t\tv.accept(jprogram);\n\t\treturn v.classNames.toArray(new String[v.classNames.size()]);\n\t}", "public ArrayList<OWLClass> getClasses(OWLOntology ontology){\n\t\t\n\t\tArrayList<OWLClass> classes = new ArrayList<OWLClass>();\n\t\tfor (OWLClass cls : ontology.getClassesInSignature())\n\t\t\tclasses.add(cls);\n\t\treturn classes;\n\t}", "ISet<Class<?>> collectAllTypeWiredServices();", "public String[] readClasses();", "protected Class[] getSourceClassesImpl() throws Exception {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n public void loadClasses(String pckgname) throws ClassNotFoundException {\n File directory = null;\n try {\n ClassLoader cld = Thread.currentThread().getContextClassLoader();\n String path = \"/\" + pckgname.replace(\".\", \"/\");\n URL resource = cld.getResource(path);\n if (resource == null) {\n throw new ClassNotFoundException(\"sem classes no package \" + path);\n }\n directory = new File(resource.getFile());\n }\n catch (NullPointerException x) {\n throw new ClassNotFoundException(pckgname + \" (\" + directory + \") package invalido\");\n }\n if (directory.exists()) {\n String[] files = directory.list();\n for (int i = 0; i < files.length; i++) {\n if (files[i].endsWith(\".class\") && !files[i].contains(\"$\")) {\n Class cl = Class.forName(pckgname + '.' + files[i].substring(0, files[i].length() - 6));\n Method methods[] = cl.getDeclaredMethods();\n boolean ok = false;\n for (Method m : methods) {\n if ((m.getReturnType().equals(List.class) || m.getReturnType().isArray()) && m.getParameterTypes().length == 0) {\n ok = true;\n break;\n }\n }\n if (ok) {\n classes.add(cl);\n }\n }\n }\n }\n else {\n throw new ClassNotFoundException(pckgname + \" package invalido\");\n }\n }", "Set<CompiledClass> getCompiledClasses() {\n if (!isCompiled()) {\n return null;\n }\n if (exposedCompiledClasses == null) {\n FindTypesInCud typeFinder = new FindTypesInCud();\n cud.traverse(typeFinder, cud.scope);\n Set<CompiledClass> compiledClasses = typeFinder.getClasses();\n exposedCompiledClasses = Sets.normalizeUnmodifiable(compiledClasses);\n }\n return exposedCompiledClasses;\n }" ]
[ "0.7126845", "0.70885825", "0.7023687", "0.6936753", "0.68207353", "0.67807966", "0.6772946", "0.67682076", "0.6767098", "0.6646003", "0.663844", "0.66154087", "0.6605903", "0.65950495", "0.6580067", "0.65752083", "0.6532096", "0.65069157", "0.64293253", "0.6403301", "0.6363257", "0.63619757", "0.63566834", "0.6325817", "0.62853444", "0.62710625", "0.6217659", "0.6186126", "0.61702275", "0.6157026", "0.6136651", "0.6110091", "0.6108396", "0.61005586", "0.60960305", "0.6071993", "0.60568017", "0.60339314", "0.60299665", "0.59718066", "0.5971051", "0.59601605", "0.5917382", "0.5858716", "0.5830247", "0.5824081", "0.58096457", "0.58022225", "0.5798553", "0.5785806", "0.57794595", "0.5751962", "0.5738156", "0.5728521", "0.57234234", "0.57072735", "0.5703594", "0.57026553", "0.57024556", "0.56990993", "0.5687304", "0.56708944", "0.56540775", "0.5653372", "0.56443536", "0.5641495", "0.56389815", "0.56381065", "0.5611596", "0.5610632", "0.5598022", "0.55978304", "0.55935", "0.55890036", "0.5588095", "0.5587826", "0.5585919", "0.55828226", "0.5560678", "0.5531921", "0.5520967", "0.55189157", "0.5513923", "0.55124354", "0.5507112", "0.55052525", "0.55037427", "0.5499703", "0.5498618", "0.54983276", "0.5497423", "0.5497423", "0.54805475", "0.54801255", "0.54789186", "0.5475583", "0.5473039", "0.5472363", "0.5468392", "0.54675645" ]
0.69349927
4
Testet, ob ein gueltiges Set von Klassen angenommen wird.
@Test public void testSetClasses() { breaku1.setClasses(classes1); externu1.setClasses(classes1); meetingu1.setClasses(classes1); teachu1.setClasses(classes1); assertTrue(breaku1.getClasses().contains(class2)); assertTrue(externu1.getClasses().contains(class2)); assertTrue(meetingu1.getClasses().contains(class2)); assertTrue(teachu1.getClasses().contains(class2)); assertEquals(classes1, breaku1.getClasses()); assertEquals(classes1, externu1.getClasses()); assertEquals(classes1, meetingu1.getClasses()); assertEquals(classes1, teachu1.getClasses()); assertFalse(classes == breaku1.getClasses()); assertFalse(classes == externu1.getClasses()); assertFalse(classes == meetingu1.getClasses()); assertFalse(classes == teachu1.getClasses()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Set<String> classSet(String whichClass) {\n return subclasses.get(whichClass);\n }", "public <T> Set<T> mo31990d(Class<T> cls) {\n return (Set) mo32007c(cls).get();\n }", "public void testGetClasses() throws Exception {\n assertSetEquals(HasMemberClasses.class.getClasses(),\n HasMemberClassesSuperclass.B.class, HasMemberClasses.H.class);\n }", "public static Set typedSet(Set set, Class type) {\n/* 205 */ return TypedSet.decorate(set, type);\n/* */ }", "public static Set<Class<?>> getClassSetFromAnnotation(Class clazz) {\n Set<Class<?>> classSet = new HashSet<>();\n for (Class<?> cls : CLASS_SET) {\n if (cls.isAnnotationPresent(clazz)) {\n classSet.add(cls);\n }\n }\n return classSet;\n }", "protected abstract Set method_1559();", "public Set<String> getClassKeys();", "public static Set<Class<?>> getAllInterfacesForClassAsSet(Class<?> clazz) {\n return getAllInterfacesForClassAsSet(clazz, null);\n }", "Set<Class<?>> getClassSet(String packageName);", "@Test\r\n\tpublic void testGetClasses() {\r\n\t\tassertTrue(breaku1.getClasses().contains(class1));\r\n\t\tassertTrue(externu1.getClasses().contains(class1));\r\n\t\tassertTrue(meetingu1.getClasses().contains(class1));\r\n\t\tassertTrue(teachu1.getClasses().contains(class1));\r\n\r\n\t\tassertEquals(classes, breaku1.getClasses());\r\n\t\tassertEquals(classes, externu1.getClasses());\r\n\t\tassertEquals(classes, meetingu1.getClasses());\r\n\t\tassertEquals(classes, teachu1.getClasses());\r\n\r\n\t\tassertFalse(classes1 == breaku1.getClasses());\r\n\t\tassertFalse(classes1 == externu1.getClasses());\r\n\t\tassertFalse(classes1 == meetingu1.getClasses());\r\n\t\tassertFalse(classes1 == teachu1.getClasses());\r\n\t}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "@SuppressWarnings(\"rawtypes\")\n public static Set<Class> getAllInterfacesForClassAsSet(Class clazz, ClassLoader classLoader) {\n Preconditions.checkNotNull(clazz, \"Class must not be null\");\n if (clazz.isInterface() && isVisible(clazz, classLoader)) {\n return Collections.singleton(clazz);\n }\n Set<Class> interfaces = new LinkedHashSet<>();\n Class sclazz = clazz;\n while (sclazz != null) {\n Class<?>[] ifcs = sclazz.getInterfaces();\n for (Class<?> ifc : ifcs) {\n interfaces.addAll(getAllInterfacesForClassAsSet(ifc, classLoader));\n }\n sclazz = clazz.getSuperclass();\n }\n return interfaces;\n }", "private void restrictClasses() {\n\t\tSet<String> classes = classMap.keySet();\n\t\tSet<String> intersect;\n\t\tfor (String s : disjointsInfo.keySet()) {\n\t\t\tintersect = disjointsInfo.get(s);\n\t\t\tintersect.retainAll(classes);\n\t\t\tdisjointsInfo.put(s, intersect);\n\t\t}\n\t\tfor (String s : supersInfo.keySet()) {\n\t\t\tintersect = supersInfo.get(s);\n\t\t\tintersect.retainAll(classes);\n\t\t\tsupersInfo.put(s, intersect);\n\t\t}\n\t}", "@Test\r\n\tpublic void testContainsClass() {\r\n\t\tassertTrue(breaku1.containsClass(class1));\r\n\t\tassertTrue(externu1.containsClass(class1));\r\n\t\tassertTrue(meetingu1.containsClass(class1));\r\n\t\tassertTrue(teachu1.containsClass(class1));\r\n\t}", "@Override\n public <T> Set<Key<T>> typedKeySet(final Class<T> clazz) {\n Set<Key<T>> keys = new HashSet<>();\n for (Key k : this.keySet()) {\n if (k.valueType.equals(clazz)) {\n keys.add(k);\n }\n }\n return keys;\n }", "public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}", "public static synchronized Set<Class<?>> keySet() {\n\t\treturn ClassRegistry.dictionary.keySet();\n\t}", "Set<?> instantiation(Set<String> classNames, Class<?> tClass) throws IOException;", "private Set<Class<?>> describeClassTree(Class<?> inputClass) {\r\n if (inputClass == null) {\r\n return Collections.emptySet();\r\n }\r\n\r\n // create result collector\r\n Set<Class<?>> classes = Sets.newLinkedHashSet();\r\n\r\n // describe tree\r\n describeClassTree(inputClass, classes);\r\n\r\n return classes;\r\n }", "@Override\n public Set<Class<?>> getClasses() {\n HashSet h = new HashSet<Class<?>>();\n h.add(AffirmationService.class );\n return h;\n }", "public static Set<String> getMazeJavaClasses() {\r\n\t\treturn Collections.unmodifiableSet(mazeJavaClasses);\r\n\t}", "public SetSet() {\n\t}", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "Set<Class<?>> getClassSetBySuperClass(String packageName, Class<?> superClass);", "public static <T> FixtureBuilder<Set<T>> setOf(final Class<T> cls) {\n\t\treturn new FixtureBuilder.FixtureSetBuilder<T>(cls);\n\t}", "<T> Set<T> lookupAll(Class<T> type);", "Set<? extends Class<? extends Annotation>> annotations();", "private void describeClassTree(Class<?> inputClass, Set<Class<?>> setOfClasses) {\r\n // can't map null class\r\n if (inputClass == null) {\r\n return;\r\n }\r\n\r\n // don't further analyze a class that has been analyzed already\r\n if (Object.class.equals(inputClass) || setOfClasses.contains(inputClass)) {\r\n return;\r\n }\r\n\r\n // add to analysis set\r\n setOfClasses.add(inputClass);\r\n\r\n // perform super class analysis\r\n describeClassTree(inputClass.getSuperclass(), setOfClasses);\r\n\r\n // perform analysis on interfaces\r\n for (Class<?> hasInterface : inputClass.getInterfaces()) {\r\n describeClassTree(hasInterface, setOfClasses);\r\n }\r\n }", "public void testBasicClassTypeSets() \r\n\t{\r\n\t\tIrClassType irClassType = new IrClassType();\r\n\t\tirClassType.setName(\"className\");\r\n\t\tassert irClassType.getName().equals(\"className\") : \"ir class type should equal className\"; \r\n\t}", "private EmptySet() {}", "public static void main(String[] args) {\n Set<Inner> set = new HashSet<>();\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n System.out.println(set.add(new Inner(\"A\")));\n\n System.out.println(set);\n }", "Map<ParameterInstance, SetType> getInstanceSetTypes();", "public void testNormalEntrySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkEntrySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public static synchronized Set<Map.Entry<Class<?>, String>> entrySet() {\n\t\treturn ClassRegistry.dictionary.entrySet();\n\t}", "protected void lookupSetters(final Map<String, Property> properties, final MethodHolder<?> clazz)\r\n {\r\n for (Method<?> method : clazz.getMethods())\r\n {\r\n // Exclude static methods\r\n \r\n if (method.isStatic())\r\n {\r\n continue;\r\n }\r\n \r\n // Get type\r\n \r\n List<Parameter> parameters = method.getParameters();\r\n \r\n if (parameters.size() != 1)\r\n {\r\n continue;\r\n }\r\n \r\n // Get name\r\n \r\n String propertyName = isSetter(method);\r\n \r\n if (propertyName == null)\r\n {\r\n continue;\r\n }\r\n \r\n // Exclude based on other criteria\r\n //\r\n // (explicitly set to null in case we encountered an imbalanced field/getter)\r\n \r\n String type = parameters.get(0).getType();\r\n \r\n Field<?> privateField = getPrivateField((FieldHolder<?>) clazz, propertyName);\r\n \r\n if (privateField != null && this.privateFieldConvention == null)\r\n {\r\n propertyName = privateField.getName();\r\n }\r\n \r\n // Already found via its getter?\r\n \r\n Property existingProperty = properties.get(propertyName);\r\n \r\n if (existingProperty instanceof ForgeProperty)\r\n {\r\n ForgeProperty existingForgeProperty = (ForgeProperty) existingProperty;\r\n \r\n // Beware covariant return types: always prefer the getter's type\r\n \r\n properties.put(\r\n propertyName,\r\n new ForgeProperty(propertyName, existingForgeProperty.getType(),\r\n existingForgeProperty.getReadMethod(), method, getPrivateField((FieldHolder<?>) clazz,\r\n propertyName)));\r\n continue;\r\n }\r\n \r\n // Explicitly excluded based on getter already?\r\n \r\n if ((existingProperty == null) && properties.containsKey(propertyName))\r\n {\r\n continue;\r\n }\r\n \r\n properties\r\n .put(propertyName,\r\n new ForgeProperty(propertyName, type, null, method, privateField));\r\n }\r\n }", "Set createSet();", "@Test\n public void testGetClasses() throws Exception {\n for (Class clazz : TestClass.class.getClasses()) {\n System.out.println(clazz.getName());\n }\n }", "public Set<Class<?>> getScanClasses();", "@Override\n public LinkedHashSet<String> testSet() {\n LinkedHashSet<String> testNameSet = new LinkedHashSet<>();\n testNameSet.add(\"test1\");\n return testNameSet;\n }", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "private void getServiceClasses(Class<?> service, Set<ProviderClass> sp) {\n LOGGER.log(Level.CONFIG, \"Searching for providers that implement: \" + service);\n Class<?>[] pca = ServiceFinder.find(service, true).toClassArray();\n for (Class pc : pca) {\n if (constrainedTo(pc)) {\n LOGGER.log(Level.CONFIG, \" Provider found: \" + pc);\n }\n }\n // Add service-defined providers to the set after application-defined\n for (Class pc : pca) {\n if (constrainedTo(pc)) {\n sp.add(new ProviderClass(pc, true));\n }\n }\n }", "public static Class get_CLASS()\n {\n return WrapperMap.EntrySet.class;\n }", "protected Set<E> ensureSet()\n {\n Set<E> set = m_set;\n if (set == null)\n {\n set = m_set = new LiteSet<>();\n }\n return set;\n }", "private void setClasses(OWLClass cls, int depth, Set<String> supers) {\n\n\t\tif (depth > 0) {\n\t\t\tString nm = render(cls);\n\t\t\tsupersInfo.put(nm, supers);\n\t\t\tSet<OWLClass> children = theProvider.getDescendants(cls);\n\t\t\tString lbl = (children.size() > 0 && depth == 1) ? nm + \"+\" : nm;\n\t\t\tPair<String, OWLClass> nameInfo = new Pair<String, OWLClass>(lbl,\n\t\t\t\t\tcls);\n\t\t\tclassMap.put(nm, nameInfo);\n\t\t\tif (depth > 1) {\n\t\t\t\tSet<String> supers2 = new HashSet<String>(supers);\n\t\t\t\tsupers2.add(nm);\n\t\t\t\tint newDepth = --depth;\n\t\t\t\tfor (OWLClass sub : theProvider.getChildren(cls)) {\n\t\t\t\t\tsetClasses(sub, newDepth, supers2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// collect the spiders info\n\t\t\tSet<OWLIndividual> inds = cls.getIndividuals(mgr\n\t\t\t\t\t.getActiveOntologies());\n\t\t\t// TODO all individuals are reported as belonging to Thing, but not\n\t\t\t// to the other\n\t\t\t// superclasses of the class within which they are actually defined.\n\t\t\t// For now,\n\t\t\t// only show spiders for the actual class, c, within which they are\n\t\t\t// defined, and work\n\t\t\t// out how to show spiders in any superclass of c later on\n\t\t\tif (showSpiders && !inds.isEmpty() && !nm.equals(\"Thing\")) {\n\t\t\t\tArrayList<Pair<String, List<CVizZone>>> spInfo = new ArrayList<Pair<String, List<CVizZone>>>();\n\t\t\t\tfor (OWLIndividual i : inds) {\n\t\t\t\t\tif (i.isNamed()) {\n\t\t\t\t\t\tspInfo.add(new Pair<String, List<CVizZone>>(ren\n\t\t\t\t\t\t\t\t.render((OWLEntity) i),\n\t\t\t\t\t\t\t\tnew ArrayList<CVizZone>()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindMap.put(nm, spInfo);\n\t\t\t}\n\t\t\t// collect the children info\n\t\t\tSet<String> childrenStr = new HashSet<String>();\n\t\t\tIterator<OWLClass> it = children.iterator();\n\t\t\tOWLClass c;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tchildrenStr.add(render(it.next()));\n\t\t\t}\n\t\t\tchildrenInfo.put(nm, childrenStr);\n\n\t\t\t// collect the disjointness info\n\t\t\tNodeSet<OWLClass> ds = theReasoner.getDisjointClasses(cls);\n\t\t\tSet<String> disjoints = new HashSet<String>();\n\t\t\tIterator<Node<OWLClass>> it2 = ds.iterator();\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tc = it2.next().getRepresentativeElement();\n\t\t\t\tdisjoints.add(render(c));\n\t\t\t}\n\t\t\tif (disjoints.size() > 0)\n\t\t\t\tdisjointsInfo.put(nm, disjoints);\n\t\t\t// collect the equivalent classes info\n\t\t\tNode<OWLClass> equivs = theReasoner.getEquivalentClasses(cls);\n\t\t\tif (!equivs.isSingleton())\n\t\t\t\tequivsInfo.put(nm, new HashSet<OWLClass>(equivs.getEntities()));\n\t\t\t// collect the union classes info\n\t\t\tSet<OWLEquivalentClassesAxiom> eq;\n\t\t\tfor (OWLOntology ont : activeOntologies) {\n\t\t\t\teq = ont.getEquivalentClassesAxioms(cls);\n\t\t\t\tif (eq.size() > 0) {\n\t\t\t\t\tfor (OWLEquivalentClassesAxiom a : eq) {\n\t\t\t\t\t\tboolean isUnion = true;\n\t\t\t\t\t\tClassExpressionType t;\n\t\t\t\t\t\tfor (OWLClassExpression e : a.getClassExpressions()) {\n\t\t\t\t\t\t\tt = e.getClassExpressionType();\n\t\t\t\t\t\t\tif (!(t.equals(ClassExpressionType.OWL_CLASS) || t\n\t\t\t\t\t\t\t\t\t.equals(ClassExpressionType.OBJECT_UNION_OF))) {\n\t\t\t\t\t\t\t\tisUnion = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isUnion) {\n\t\t\t\t\t\t\tSet<OWLClass> us = a.getClassesInSignature();\n\t\t\t\t\t\t\tus.remove(cls);\n\t\t\t\t\t\t\tif (us.size() > 0)\n\t\t\t\t\t\t\t\tunionsInfo.put(render(cls), us);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// collect the inconsistent classes info\n\t\t\tif (!theReasoner.isSatisfiable(cls)) {\n\t\t\t\tinconsistentClasses.add(nm);\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testAddHash() {\n\t\t// add a new method for ordering\n\t\tMySet <String> s = loadSet();\n\t\ts.add(\"Alice\");\n\t\ts.add(\"Sue\");\n\t\ts.add(\"Bob\");\n\t\ts.add(\"Cindy\");\n\t\ts.add(\"Joe\");\n\t\t\n\t\tassertEquals(5, ((MyHashSet<String>)s).map.size());\n\t\t\n\t\t\t\n\t}", "<V extends Object> Set<V> getSet(String setName);", "public void setClasses(final Collection<Class> classes) {\n this.classes = classes;\n }", "public void validate (Set classes) throws ValidationException;", "@Test\n public void testGetClassAssociatedTeacher() {\n System.out.println(\"getClassAssociatedTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n instance.setClasses(classes);\n\n assertEquals(classes, instance.getClassAssociatedTeacher(teacher));\n System.out.println(\"PASS with associated teacher\");\n\n assertEquals(0, instance.getClassAssociatedTeacher(teacher2).size());\n System.out.println(\"PASS with unassociated teacher\");\n\n System.out.println(\"PASS ALL\");\n }", "private boolean proxySetters(ClassWriterTracker ct, String proxyClassDef, Class type) {\n Method[] meths = type.getMethods();\n\n int setters = 0;\n for (Method meth : meths) {\n if (isSetter(meth) && !Modifier.isFinal(meth.getModifiers())) {\n setters++;\n proxySetter(ct, type, meth);\n }\n }\n return setters > 0;\n }", "protected boolean allowsDuplicates(Class type) {\n return !Set.class.isAssignableFrom(type);\n }", "private void setKeySet(OwnSet<K> st){\n this.keySet = st; \n }", "public static Class get_CLASS()\n {\n return WrapperMap.KeySet.class;\n }", "private static HashSet<Class<?>> getInstrumentedAncestors(Class<?> cls) {\n HashSet<Class<?>> ancestors = new HashSet<>();\n\n for (Method m : cls.getDeclaredMethods()) {\n if (m.getName().startsWith(\"yGet_\")) {\n ancestors.add(cls);\n // If the current class is instrumented, check for its super classes.\n ancestors.addAll(getInstrumentedAncestors(cls.getSuperclass()));\n return ancestors;\n }\n }\n\n return ancestors;\n }", "public void byClass(HashSet<String> relatedClasses, String searchClass) {\n for (String callee : callerRelation.keySet()) {\n if (callee.split(\" \")[0].equals(searchClass)) {\n for (String caller : callerRelation.get(callee)) {\n relatedClasses.add(caller.split(\" \")[0]);\n if (relatedClasses.contains(caller.split(\" \")[0]))\n continue;\n // recursive to find caller related class,find\n byClass(relatedClasses, caller.split(\" \")[0]);\n }\n }\n }\n }", "@Override\n public Set<Class<?>> getClasses() {\n\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(CountryResource.class);\n resources.add(DepartmentResource.class);\n resources.add(JobResource.class);\n return resources;\n }", "private boolean addKnown(String superclass, String subclass) {\n\tSet<String> v;\n v = classSet(superclass);\n if (v == null) {\n v = new ConcurrentSkipListSet<String>();\n Set<String> existed = subclasses.putIfAbsent(superclass, v);\n if (existed != null) v = existed; // discard new set.\n }\n\treturn v.add(subclass);\n }", "Set<Concept> getSubclasses(Concept concept);", "boolean isCustomiseSet();", "public static NavigableSet method_156(NavigableSet var0) {\n return (NavigableSet)(var0 instanceof class_29 ? var0 : new class_78(var0));\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "public static Set<Class<?>> getAllInterfacesForClassAsSet(\n Class<?> clazz, @Nullable ClassLoader classLoader) {\n Assert.notNull(clazz, \"Class must not be null\");\n\n if (clazz.isInterface() && isVisible(clazz, classLoader)) {\n return Collections.singleton(clazz);\n }\n\n Set<Class<?>> interfaces = new LinkedHashSet<>();\n Class<?> currentClass = clazz;\n\n while (currentClass != null) {\n Class<?>[] interfaceArray = currentClass.getInterfaces();\n for (Class<?> cl : interfaceArray) {\n if (isVisible(cl, classLoader)) {\n interfaces.add(cl);\n }\n }\n currentClass = currentClass.getSuperclass();\n }\n\n return interfaces;\n }", "Class<?>[] getHandledClasses();", "ISet<Class<?>> collectAllTypeWiredServices();", "@Test\n public void testDeleteClass() {\n System.out.println(\"deleteClass\");\n School instance = new School();\n instance.setClasses(classes);\n instance.setStudentClass(studentClass);\n instance.setStudents(students);\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n Class c = new Class(\"guitar\", new LocalDate(2013, 3, 1), new LocalDate(2013, 12, 1), \"text\", ct3, 0);\n\n assertFalse(instance.deleteClass(c));\n System.out.println(\"PASS with class which is not finished yet\");\n\n Class c2 = new Class(\"piano\", new LocalDate(2013, 5, 1), new LocalDate(2013, 7, 1), \"text\", ct1, 0);\n classes.put(c2.getClassId(), c2);\n instance.setClasses(classes);\n instance.deleteClass(c2);\n classes.remove(c2.getClassId());\n assertEquals(classes, instance.getClasses());\n System.out.println(\"PASS with class which has not started yet\");\n\n studentClass.remove(sc11.getId());\n teacherClass.remove(tc1.getId());\n classes.remove(class1.getClassId());\n instance.deleteClass(class1);\n assertEquals(studentClass, instance.getStudentClass());\n assertEquals(teacherClass, instance.getTeacherClass());\n assertEquals(classes, instance.getClasses());\n\n System.out.println(\"PASS ALL\");\n }", "@Before public void setUp() {\n // Insert some initial values into the inheritance\n // tree\n //\n\n //\n treeManager = new InheritanceTreeManager(\n GNode.create(\"ClassDeclaration\"));\n // Put in some example classes\n GNode newClass = GNode.create(\"ClassDeclaration\", \"Point\");\n\n //\n ArrayList<String> point = new ArrayList<String>();\n point.add(\"qimpp\");\n point.add(\"Point\");\n treeManager.insertClass(point, null, newClass);\n\n //\n //\n\n //\n\n newClass = GNode.create(\"ClassDeclaration\", \"ColorPoint\");\n ArrayList<String> ColorPoint = new ArrayList<String>();\n ColorPoint.add(\"qimpp\");\n ColorPoint.add(\"ColorPoint\");\n treeManager.insertClass(ColorPoint, point, newClass);\n //\n\n //\n // Test that classes with the same name in different\n // packages are distinct\n //\n newClass = GNode.create(\"ClassDeclaration\", \"OtherColorPoint\");\n ColorPoint = new ArrayList<String>( \n Arrays.asList(\"org\", \"fake\", \"ColorPoint\") );\n treeManager.insertClass(ColorPoint, null, newClass);\n\n \n }", "public Set<Class<? extends Throwable>> getRegisteredExceptionClasses() {\n\t\treturn Collections.unmodifiableSet(registeredClasses);\n\t}", "public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public final Set<Class<?>> getInputClasses() {\n return inputClasses;\n }", "HashSet getGrantedClassNamesDirect() throws HsqlException {\n\n IntValueHashMap rights;\n HashSet out;\n Object key;\n int right;\n Iterator i;\n\n rights = rightsMap;\n out = new HashSet();\n i = rightsMap.keySet().iterator();\n\n while (i.hasNext()) {\n key = i.next();\n\n if (key instanceof String) {\n right = rights.get(key, 0);\n\n if (right == GranteeManager.ALL) {\n out.add(key);\n }\n }\n }\n\n return out;\n }", "@Test\n\tpublic void testSet() {\n\t}", "private Set() {\n this(\"<Set>\", null, null);\n }", "public Set<Class<?>> getUntestedInterfaces() {\n\t\tfinal Set<Class<?>> retval = new TreeSet<Class<?>>(\n\t\t\t\tCLASS_NAME_COMPARATOR);\n\n\t\tfor (final InterfaceInfo info : getInterfaceInfoMap().values()) {\n\t\t\t// no test and has methods\n\t\t\tif (info.getTests().isEmpty() && info.getName().getDeclaredMethods().length > 0) {\n\t\t\t\tretval.add(info.getName());\n\t\t\t}\n\t\t}\n\t\treturn retval;\n\t}", "Set<Class<?>> getClassSetByAnnotation(String packageName, Class<? extends Annotation> annotationClass);", "public DataEquivalentSetClass() {\n }", "public static void main(String[] args) {\n\t\tSet<Puppy> set = new LinkedHashSet<Puppy>(10);\n\t\t\n\t\t// this DS which can hold other object\n\t\tPuppy puppy1=new Puppy(\"Tommy\",10 );\n\t\tPuppy puppy2=new Puppy(\"AHH\", 12);\n\t\tPuppy puppy3=new Puppy(\"MYY\", 5);\n\t\tPuppy puppy4=new Puppy(\"NANY\", 3);\n\t\tPuppy puppy5=new Puppy(\"NANY\", 3);\n\t\t\n\t\t//dog4 and dog5 are duplicate elements\n\t\tset.add(puppy1);\n\t\tset.add(puppy2);\n\t\tset.add(puppy3);\n\t\tset.add(puppy4);\n\t\tset.add(puppy5);\n\t\t\n\t\tSystem.out.println(\"puppy4 . hashCode () = \"+puppy4.hashCode());\n\t\tSystem.out.println(\"puppy5 . hashCode () = \"+puppy5.hashCode());\n\t\t\n\t\tIterator<Puppy> iterator=set.iterator();\n\t\t\n\t\tSystem.out.println(\"Accessing data using Iterator interface!\");\n\t\twhile(iterator.hasNext()){\n\t\t\tPuppy puppy=iterator.next();\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"____________-----\");\n\t\tfor(Puppy puppy:set){\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\tPuppy puppy6=new Puppy(\"NANY\", 3);\n\t\t\n\t\tboolean b=set.contains(puppy6);\n\t\tif(b){\n\t\t\tSystem.out.println(\"puppy6 found in set!\"+puppy6);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Run it\");\n\t\t /* final Entry<K,V> getEntry(Object key) {\n\t\t int hash = (key == null) ? 0 : hash(key.hashCode());\n\t\t for (Entry<K,V> e = table[indexFor(hash, table.length)];\n\t\t e != null;\n\t\t e = e.next) {\n\t\t Object k;\n\t\t if (e.hash == hash &&\n\t\t ((k = e.key) == key || (key != null && key.equals(k))))\n\t\t return e;\n\t\t }\n\t\t return null;\n\t\t } */\n\t\t b=set.contains(puppy1);\n\t\tif(b){\n\t\t\tSystem.out.println(b+\"is found in set!\");\n\t\t}\n\t\t\n\n\t}", "public Collection hasAuxClasss(Collection auxClasssToCheck);", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public Set getOriginalAttributes() {\n\t\tSet out = new HashSet();\n\t\tfor (Iterator ci = getClasses().iterator(); ci.hasNext();) {\n\t\t\tSchemaClass cls = (SchemaClass) ci.next();\n\t\t\tfor (Iterator ai = cls.getAttributes().iterator(); ai.hasNext();) {\n\t\t\t\tSchemaAttribute att = (SchemaAttribute) ai.next();\n\t\t\t\tif (att.getOrigin() == cls) {\n\t\t\t\t\tout.add(att);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "public final Set<Class<?>> mo14296f() {\n return this.f9911a.zzazw();\n }", "private void __setClassDescription() {\n\t\tEOClassDescription cd = EOClassDescription.classDescriptionForClass(getClass());\n\t\tif (cd == null) {\n\t\t\tthrow new IllegalStateException(\"Unabled to find an EOClassDescription for objects of \" + getClass());\n\t\t}\n\t\t__setClassDescription(cd);\n\t}", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testAllNull() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(null);\r\n\t\t\t// check if set is null \r\n \t\t\tassertNull(testingSet);\r\n\t\t}", "@Test\n public void testGetDecalredClasses() {\n for (Class clazz : TestClass.class.getDeclaredClasses()) {\n System.out.println(clazz.getName());\n }\n }", "public static void main(String[] args){\n\t\tTreeSet hs=new TreeSet();\n\t\t\n\t\ths.add(\"d\");\n\t\ths.add(\"c\");\n\t\ths.add(\"b\");\n\t\ths.add(\"a\");\n\t\ths.add(\"c\");\n\t\ths.add(\"i\");\n\t\ths.add(\"l\");\n\t\ths.add(new Integer(2));\n\t\ths.add(new Float(2));\n\t\t\n\t\t\t\t\n\t\tSystem.out.println(\"Hashset is \"+hs);\n\t\tSystem.out.println(\"Size of Hashset is \"+ hs.size());\n\t\t\n\t\tSystem.out.println(\"Does hashset contains this 'u' element \" + hs.contains(\"u\"));\t\t\n\t\tSystem.out.println(\"is hashset empty \" + hs.isEmpty());\n\t\tSystem.out.println(\"remove the element \"+hs.remove(\"i\"));\n\t\t\n\t\t\n\t hs.clear();\n\t System.out.println(\"get class \" +hs.getClass());\n\t\t\n\t System.out.println(\"is hashset empty \" +hs.isEmpty());\n\t \n\t \n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSet<Numbers> enumSet = EnumSet.of(Numbers.ONE,Numbers.TWO,Numbers.THREE,Numbers.FOUR,Numbers.FIVE);\n\t\t \n\t\t\tSystem.out.println(\"enumSet: \" + enumSet);\n\t\t\tSystem.out.println(\"contains: \" + enumSet.contains(Numbers.ONE));\n\t\t\tSystem.out.println(\"isEmpty: \" + enumSet.isEmpty());\n\t\t\tSystem.out.println(\"iterator: \" + enumSet.iterator());\n\t\t\tSystem.out.println(\"remove: \" + enumSet.remove(Numbers.THREE));\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t\t\tSystem.out.println(\"size: \" + enumSet.size());\n\t\t\tenumSet.clear();\n\t\t\tSystem.out.println(\"treeSet: \" + enumSet);\n\t}", "@Test\n\tpublic void test1() {\n\t\t// add a new method for ordering\n\t\tMySet<String> s = loadSet();\n\t\ts.add(\"a\");\n\t\ts.add(\"b\");\n\t\ts.add(\"c\");\n\t\ts.add(\"d\");\n\t\ts.add(\"e\");\n\t\ts.add(\"f\");\n\t\ts.add(\"g\");\n\t\ts.add(\"h\");\n\t\tassertEquals(8, ((MyLinkedHashSet<String>) s).map.size());\n\n\t\tString exp = \"[ a b c d e f g h ]\";\n\t\tassertEquals(exp, s.toString());\n\n\t}", "Set<String> getBaseTypes();", "public static Set findAllImplementedInterfaces(Class clazz) {\n Set s = new HashSet();\n Class[] interfaces = clazz.getInterfaces();\n for (int i = 0; i < interfaces.length; i++) {\n s.add(interfaces[i]);\n }\n Class superclass = clazz.getSuperclass();\n if (superclass != null) {\n s.addAll(findAllImplementedInterfaces(superclass));\n }\n return s;\n }", "public static Set<Class<?>> getInterfaceClosure(Class<?> clazz) {\n Set<Class<?>> result = new HashSet<>();\n for (Class<?> classToDiscover = clazz; classToDiscover != null; classToDiscover = classToDiscover.getSuperclass()) {\n addInterfaces(classToDiscover, result);\n }\n return result;\n }", "public interface Set {\n\n /**\n * Create an empty set.\n *\n * @return the empty set\n */\n static Set createEmpty() {\n return new EmptySet();\n }\n\n /**\n * Checks if the ASet is empty.\n *\n * @return true if the set is empty, false otherwise\n */\n boolean isEmpty();\n\n /**\n * Given an {@code Integer} {@code element} add the element to the set. If {@code element} is\n * already a member of the set, we perform no operation and return back the set intact.\n *\n * @param element the new element to add to the set\n *\n * @return a newly created set that contains {@code element} and the original elements of the set.\n */\n Set add(Integer element);\n\n /**\n * Given an {@code Integer} {@code element} returns {@code true} if the element is already in the\n * set and {@code false} otherwise.\n *\n * @param element the element to check\n *\n * @return true if {@code element} is in the set, false otherwise\n */\n Boolean contains(Integer element);\n\n /**\n * Return the size of the set.\n *\n * @return return the size of the set\n */\n Integer size();\n\n /**\n * Given an element {@code element} remove it from the this list if it exists.\n *\n * @param element the element to remove\n *\n * @return set without {@code element}\n */\n Set remove(Integer element);\n\n\n /**\n * Given a set {@code other} return a new set which is the set union between {@code this} set and\n * {@code other} set.\n *\n * @param other set to perform union\n *\n * @return set union of this and other\n */\n Set union(Set other);\n\n\n /**\n * Returns the set intersection between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform intersection with\n *\n * @return set intersection between {@code this} and {@code otherSet}\n */\n Set intersect(Set otherSet);\n\n\n /**\n * Returns the set difference between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform set difference with\n *\n * @return set difference between {@code this} and {@code otherSet}\n */\n Set difference(Set otherSet);\n\n\n /**\n * Returns true if {@code this} set is a subset of {@code otherSet}.\n *\n * @param otherSet the set to check against\n *\n * @return true if this is a subset of otherSet, false otherwise\n */\n Boolean subset(Set otherSet);\n\n\n}", "public boolean isSetJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(JAVACLASS$24) != null;\r\n }\r\n }", "boolean getSet();", "boolean hasClassname();", "@Test\r\n public void testSetFilterCheque() {\r\n System.out.println(\"setFilterCheque\");\r\n List<Cheque> filterCheque = null;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setFilterCheque(filterCheque);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public Collection getSuperclasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "private Set getReferencers(Collection references, EReference reference, EClass type) {\n \t\tSet set = new HashSet();\n \t\tif (!references.isEmpty()) {\n \t\t\tfor (Iterator iter = references.iterator(); iter.hasNext(); ) {\n \t\t\t\tSetting setting = (Setting) iter.next();\n \t\t\t\tif (reference == null || reference == setting.getEStructuralFeature()) {\n \t\t\t\t\tEObject referencer = setting.getEObject();\n \t\t\t\t\tif (referencer != null && (type == null || type.isInstance(referencer))) {\n \t\t\t\t\t\tset.add(referencer);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn set;\n \t}", "private void findAllSubclassesOneClass(Class theClass,\r\n\t\t\tList listAllClasses, List listSubClasses) {\r\n\t\tfindAllSubclassesOneClass(theClass, listAllClasses, listSubClasses,\r\n\t\t\t\tfalse);\r\n\t}", "@Test\n public void testAddEligibleSetters() {\n System.out.println(\"addEligibleSetters\");\n int[] IDs = new int[2];\n IDs[0] = 98;\n IDs[1] = 99;\n\n instance.addEligibleSetters(IDs);\n\n assertTrue(\"Setters not added to eligibility lists\", instance.isSetterEligible(98)\n && instance.isSetterEligible(99));\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public interface TransformsToUnsortedSetTrait extends RichIterableTestCase\n{\n @Override\n default <T> UnsortedSetIterable<T> getExpectedTransformed(T... elements)\n {\n return Sets.immutable.with(elements);\n }\n\n @Override\n default <T> MutableSet<T> newMutableForTransform(T... elements)\n {\n return Sets.mutable.with(elements);\n }\n\n @Override\n default MutableBooleanSet newBooleanForTransform(boolean... elements)\n {\n return new BooleanHashSet(elements);\n }\n\n @Override\n default MutableByteSet newByteForTransform(byte... elements)\n {\n return new ByteHashSet(elements);\n }\n\n @Override\n default MutableCharSet newCharForTransform(char... elements)\n {\n return new CharHashSet(elements);\n }\n\n @Override\n default MutableDoubleSet newDoubleForTransform(double... elements)\n {\n return new DoubleHashSet(elements);\n }\n\n @Override\n default MutableFloatSet newFloatForTransform(float... elements)\n {\n return new FloatHashSet(elements);\n }\n\n @Override\n default MutableIntSet newIntForTransform(int... elements)\n {\n return new IntHashSet(elements);\n }\n\n @Override\n default MutableLongSet newLongForTransform(long... elements)\n {\n return new LongHashSet(elements);\n }\n\n @Override\n default MutableShortSet newShortForTransform(short... elements)\n {\n return new ShortHashSet(elements);\n }\n}", "public static void main(String[] args) {\n\t\tSet<String> set=new HashSet<>();\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\tSystem.out.println(set.add(\"abc\"));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t//System.out.println(set.add(null));\r\n\t\t\r\nSystem.out.println(set.size());\r\n\t\t/*for(Object o: set){\r\n\t\t\t\r\n\t\t\tSystem.out.println((String)o);\r\n\t\t\tset.add(\"test\");\r\n\t\t}*/\r\n\tIterator it=set.iterator();\r\n\t while(it.hasNext()){\r\n\t\t System.out.println(it.next());\r\n\t\t it.remove();\r\n\t }\r\n\t}" ]
[ "0.71214634", "0.64528567", "0.62230366", "0.6154181", "0.6084681", "0.6055141", "0.60380834", "0.60115856", "0.5998677", "0.5962628", "0.59478277", "0.5886698", "0.58789766", "0.5830579", "0.58288497", "0.57966924", "0.5794594", "0.5724048", "0.5720654", "0.57092166", "0.5696681", "0.5689054", "0.5687873", "0.56724226", "0.56683534", "0.5652187", "0.5639402", "0.5618374", "0.56152976", "0.5612841", "0.56005514", "0.5590958", "0.55772865", "0.55583936", "0.551669", "0.5509185", "0.5498868", "0.5496991", "0.5490123", "0.547795", "0.54616857", "0.54596645", "0.5440675", "0.5438367", "0.5438155", "0.54289633", "0.5425468", "0.5420369", "0.54177004", "0.5404944", "0.5402272", "0.5395657", "0.5381387", "0.5378075", "0.5369103", "0.53681517", "0.53615457", "0.53601617", "0.5359463", "0.5355601", "0.53513926", "0.5350869", "0.53486025", "0.5347967", "0.5345652", "0.5337945", "0.5326202", "0.5324494", "0.5301021", "0.5281182", "0.52794504", "0.5246992", "0.52456456", "0.5237257", "0.5236761", "0.5231958", "0.5225806", "0.5222299", "0.52206725", "0.5215255", "0.5210844", "0.5206641", "0.5189084", "0.5188727", "0.5187044", "0.5173512", "0.5170602", "0.5169409", "0.5165809", "0.5165743", "0.5162466", "0.5161025", "0.5158446", "0.5152922", "0.5149106", "0.51486814", "0.51476264", "0.51393116", "0.513924", "0.5137005" ]
0.6615127
1
Ueberprueft ob die Klasse enthalten ist.
@Test public void testContainsClass() { assertTrue(breaku1.containsClass(class1)); assertTrue(externu1.containsClass(class1)); assertTrue(meetingu1.containsClass(class1)); assertTrue(teachu1.containsClass(class1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getClass_();", "Object getClass_();", "public void consulterClassement() {\n\t\t\n\t}", "default boolean isClass() {\n return false;\n }", "@Override\n protected void checkSubclass() {\n }", "public Classe() {\r\n }", "public OOP_207(){\n\n }", "public MijnKlasse()\r\n\t\t{\r\n\t\t\tmijnMethode();\r\n\t\t}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "private UsineJoueur() {}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "@Override\n public String getClassName() {\n return kelas;\n }", "@Override\n public String getClassName() {\n return kelas;\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private TMCourse() {\n\t}", "public Clade() {}", "public InsulinType(){\n super();\n }", "@Override\n\tpublic void setClassMissing() {\n\n\t}", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "public TargetClass() {\n super();\n }", "@Override\r\n\tpublic Class getClase() {\n\t\treturn null;\r\n\t}", "private ClassUtil() {}", "protected void checkSubclass() {\n }", "@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}", "public String getClassName () { return _className; }", "Klassenstufe createKlassenstufe();", "VehicleClass() {}", "public SlanjePoruke() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "private void __setClassDescription() {\n\t\tEOClassDescription cd = EOClassDescription.classDescriptionForClass(getClass());\n\t\tif (cd == null) {\n\t\t\tthrow new IllegalStateException(\"Unabled to find an EOClassDescription for objects of \" + getClass());\n\t\t}\n\t\t__setClassDescription(cd);\n\t}", "private UtilityKlasse() {\n\n }", "private Infer() {\n\n }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "public Retrait() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public Husdjurshotell(){}", "private stendhal() {\n\t}", "@Override\n public String getClassType(){\n return \"Assistant Professor\";\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void init() {\n\n }", "public void initializeClass();", "public EvSocialClass ()\n {\n super();\n }", "@Override\n public void init() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"class FatherClass\";\n\t}", "@Override\n protected void init() {\n }", "protected GEDCOMType() {/* intentionally empty block */}", "@Override\n\tpublic void type() {\n\t\t\n\t}", "private ObjectMacroFront() {\n\n throw new InternalException(\"this class may not have instances\");\n }", "@Override\n public String getObjectClassName() {\n return className;\n }", "public AntrianPasien() {\r\n\r\n }" ]
[ "0.75657463", "0.75657463", "0.6912129", "0.6575747", "0.65519", "0.647124", "0.64496136", "0.64470285", "0.63914734", "0.63584447", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6351767", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6329015", "0.6323177", "0.6323177", "0.6323177", "0.62802553", "0.6275114", "0.6274733", "0.6264539", "0.6264539", "0.6264539", "0.62317556", "0.62317556", "0.6214256", "0.6190156", "0.61815226", "0.61487", "0.61417615", "0.6141623", "0.60726273", "0.60703915", "0.6068499", "0.60494", "0.60486066", "0.60474133", "0.60426015", "0.6035584", "0.6028443", "0.6023112", "0.6022433", "0.60157204", "0.6013576", "0.6006089", "0.6004662", "0.59989417", "0.59833246", "0.59833246", "0.59833246", "0.5977143", "0.59734964", "0.5971298", "0.59711117", "0.59652907", "0.59638876", "0.59627926", "0.5953926", "0.5944674", "0.59397095", "0.5939068", "0.5934479", "0.59164906", "0.5906192", "0.590518", "0.5899536", "0.5898701", "0.58976495", "0.5889621", "0.5885639", "0.5884328", "0.58742875", "0.5869958", "0.5867371" ]
0.0
-1
ExternUnit Testet, ob die Methode getTitle(), den Titel zurueckgibt.
@Test public void testGetTitleEU() { assertEquals("ExternUnit", externu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void titleTest() {\n // TODO: test title\n }", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "@Test\n public void testGetTitle() {\n }", "@Test\n\tpublic void test_getTitle() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"Sherlock\",t1.getTitle());\n }", "public void testGetTitle() {\n System.out.println(\"getTitle\");\n Wizard instance = new Wizard();\n String expResult = \"\";\n String result = instance.getTitle();\n assertEquals(expResult, result);\n }", "@Test\n public void testGetTitle() {\n System.out.println(\"getTitle\");\n \n String expResult = \"Title\";\n String result = instance.getTitle();\n assertEquals(\"Title not as expected\", expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\r\n\tpublic void testGetTitleMU() {\r\n\t\tassertEquals(\"MeetingUnit\", meetingu1.getTitle());\r\n\t}", "@Test(priority = 2, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"To Verify Title and Title Text\")\n\tpublic void VerifyTitleTxt() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tdata.VerifyTitlenText();\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Title and Title Text\", \"yes\");\n\t}", "public String getTitle()\n {\n return \"Test XY Data\";\n }", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "@Test(priority=3, dependsOnMethods= {\"validateUrl\"})\n\tpublic void validateTtitle() {\n\t\t\n\t\tString actualTtitle = driver.getTitle();\n\t\tString expectedTitle = \"Messenger\";\n\t\tAssert.assertEquals(actualTtitle, expectedTitle);\n\t\t\n\t\t\n\t\t\n\t\tReporter.log(\"Validating the messanger page title\");\n\t\t\n\t}", "@Test\r\n\tpublic void testSetTitleEU() {\r\n\t\texternu1.setTitle(\"UnitExtern\");\r\n\t\tassertEquals(\"UnitExtern\", externu1.getTitle());\r\n\t}", "public void testGetSetTitle() {\n exp = new Experiment(\"10\");\n exp.setTitle(\"test\");\n assertEquals(\"test/set title does not work\", \"test\", exp.getTitle());\n }", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "protected abstract String title ();", "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}", "@Test(dependsOnMethods = \"testAddTitleRequiredFields\")\n\tpublic void testAddTitle() {\n\t\t\n\t\t//Instantiate titles page object.\n\t\tTitlesPage titlesPageObject = new TitlesPage(driver);\n\t\t\n\t\t//Set the local title name variable to value created in titles page object.\n\t\ttitle = titlesPageObject.getTitleName();\n\t\t\n\t\t//Enter in the name value into the 'Name' field.\n\t\tReporter.log(\"Enter in a name value into the 'Name' field.<br>\");\n\t\ttitlesPageObject.enterTitleName();\n\t\t\n\t\t//Click the 'Create Title' button.\n\t\tReporter.log(\"Click the 'Create Title' button.<br>\");\n\t\ttitlesPageObject.clickCreateTitleButton();\n\t\t\n\t\t//Verify the success message is displayed to indicate a successful title creation.\n\t\tReporter.log(\"Verify an success message is displayed to indicate a successful title creation.<br>\");\n\t\tAssert.assertTrue(titlesPageObject.verifyTitlesPageSuccessMessage(), \"Unable to verify the title was successfully created; please investigate.\");\n\t\t\n\t\t//Verify the newly created title exists in the list of titles.\n\t\tReporter.log(\"Verify the newly created title value of [ \"+ title +\" ] is displayed in the list of titles on the page.<br>\");\n\t\tAssert.assertTrue(titlesPageObject.verifyTitleInList(title, true), \"Unable to verify the newly created title was found in the list of titles; please investigate.\");\n\t\t\n\t}", "@Override\n public void title()\n {\n }", "@SmallTest\n\tpublic void testTitle() {\n\t\tassertEquals(getActivity().getTitle(), solo.getString(R.string.title_activity_memory_game));\n\t}", "protected abstract void setTitle();", "public void testTitleSort() {\n sorter.inssortTitle();\n list = sorter.getLibrary();\n assertEquals(list.get(0).getTitle(), \"one\");\n assertEquals(list.get(1).getTitle(), \"three\");\n assertEquals(list.get(2).getTitle(), \"two\");\n }", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "@Override\n public void title_()\n {\n }", "@Override\n public String getTitle() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "@Override\r\n public String getTitle() {\n return title;\r\n }", "@Test(priority=0)\n\tpublic void titleVerification() {\n\t\tString expectedTitle = \"Facebook – log in or sign up\";\n\t\tString actualTitle = driver.getTitle();\n\t\tAssert.assertEquals(actualTitle, expectedTitle);\n\t}", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "@Test\r\n\tpublic void testSetTitleMU() {\r\n\t\tmeetingu1.setTitle(\"UnitMeeting\");\r\n\t\tassertEquals(\"UnitMeeting\", meetingu1.getTitle());\r\n\t}", "@Override\r\n public String getTitle() {\r\n return title;\r\n }", "@Override\n public String getTittle() {\n return tittleText;\n }", "public java.lang.String getTitle();", "@Test\n public void panelTitleTest() {\n Player.GetItem item = getPlayerHandler().getMediaItem();\n onView(withId(R.id.title)).check(matches(withText(item.getTitle())));\n }", "@Override\n public String getTitle() {\n return title;\n }", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "String getTitle();", "public String getTitle() { return this.title; }", "@Test\r\n public void testGetListingTitle() {\r\n System.out.println(\"getListingTitle\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getListingTitle();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "public void assertTitle(final String title);", "@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}", "public String getTitle() { return title; }", "@Test\n public void testSetTitle() {\n System.out.println(\"setTitle\");\n String title = \"Title\";\n \n instance.setTitle(title);\n \n assertTrue(\"Title unchanged\", title.equals(instance.getTitle()));\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public abstract CharSequence getTitle();", "@Test\r\n\t\tpublic void testShowsCorrectTitle() {\r\n\t\t\t\r\n\t\t\t// Simply check that the title contains the word \"Hoodpopper\"\r\n\t\t\t\r\n\t\t\tString title = driver.getTitle();\r\n\t\t\tassertTrue(title.contains(\"Hoodpopper\"));\r\n\t\t}", "@Test\r\n\tpublic void testWinnerTitle() {\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\tassertNotNull(title);\r\n\t}", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "@Test\n\tpublic void accountsPageTitleTest(){\n\t\tSystem.out.println(\"Test 1\");\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(\"Page Title is: \" + title);\n\t\tAssert.assertEquals(title, \"My Account\"); // Assert is a Class and AssertEquals is a Static method as it is referred by class name\n\t}", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "@NonNull\n String getTitle() throws Exception;", "public String getTitle() { return mTitle; }", "@Test\n void setDescription() {\n }", "@Test\n public void verifyTitleOfHomePageTest()\n {\n\t \n\t String abc=homepage.validateHomePageTitle();\n\t Assert.assertEquals(\"THIS IS DEMO SITE FOR \",abc );\n }", "@Test\n\tpublic void setTitelleisteTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.queuetrack ) {\n\t\t\t\n\t\t\t\n\t\t\tstart();\n\t\t\tgui.setTitelleiste(\"test\");\n\t\t\t\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\t\n\t\t\tassertEquals(g.getTitle(),\"test\");\n\t\t\t}\n\t}", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "public String GetTitle(){ return(title); }", "String get_title()\n {\n return title;\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public void testSetTitle() {\n System.out.println(\"setTitle\");\n String s = \"\";\n Wizard instance = new Wizard();\n instance.setTitle(s);\n }", "@Override\n public String getTitle() {\n return getName();\n }", "String getTitle() {\r\n return title;\r\n }" ]
[ "0.771582", "0.7569986", "0.75566196", "0.75515217", "0.7460001", "0.74457127", "0.7377818", "0.7343963", "0.73426783", "0.7278359", "0.72402173", "0.72354156", "0.7180702", "0.71781176", "0.7167029", "0.71430725", "0.71430725", "0.71430725", "0.71430725", "0.708504", "0.7029129", "0.70159113", "0.7006859", "0.693976", "0.6939664", "0.68938327", "0.68891734", "0.68600434", "0.680289", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.6799176", "0.67835295", "0.67835295", "0.67835295", "0.67835295", "0.67835295", "0.6780216", "0.6765521", "0.6763249", "0.67588085", "0.67461306", "0.6723976", "0.67183584", "0.6712282", "0.6705807", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.6697812", "0.66741335", "0.66539925", "0.6652814", "0.6647048", "0.66341734", "0.66312146", "0.6629582", "0.66279274", "0.66238254", "0.66101056", "0.6607333", "0.6586361", "0.6567459", "0.65655357", "0.65645045", "0.65607935", "0.6554863", "0.6553196", "0.65528846", "0.6543095", "0.6538676", "0.65315735", "0.651713", "0.6505202" ]
0.7387005
6
Testet, ob die Methode setTitle(), den Titel richtig setzt.
@Test public void testSetTitleEU() { externu1.setTitle("UnitExtern"); assertEquals("UnitExtern", externu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void setTitle();", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(String t)\n {\n title = t;\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}", "public void setTitle(java.lang.String title);", "void setTitle(java.lang.String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "public void setTitle(String title) { this.title = title; }", "@Override\n\tpublic void setTitle(CharSequence title) {\n\t\t\n\t}", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(String title){\n this.title = title;\n }", "@Override\r\npublic void setTitle(String title) {\n\tsuper.setTitle(title);\r\n}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_esfTournament.setTitle(title);\n\t}", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "public void setTitle(String titleTemplate);", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\n this.title = title;\n etvTitle.setText(title);\n }", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "public void setTitle(String mTitle) {\n this.mTitle = mTitle;\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "public void setTitle(String value) {\n/* 337 */ setTitle((String)null, value);\n/* */ }", "@Override\n public void setTitle( final String title ) {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "private void setWindowTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "public void setTitle(String text) {\n title.setText(text);\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(final String title)\n {\n this.title = title;\n }" ]
[ "0.8464512", "0.84373087", "0.83917975", "0.8268956", "0.8268512", "0.8268512", "0.8268512", "0.8263147", "0.82472616", "0.82405764", "0.822263", "0.822263", "0.822263", "0.822263", "0.822263", "0.8105573", "0.808819", "0.7994693", "0.7985727", "0.79654884", "0.794239", "0.79268944", "0.79268944", "0.79228324", "0.791991", "0.79147905", "0.791045", "0.78960353", "0.78960353", "0.7888315", "0.78695995", "0.7865284", "0.7857581", "0.7857581", "0.7857581", "0.7857581", "0.7857581", "0.7851556", "0.7851556", "0.7851556", "0.7838668", "0.78381807", "0.78241813", "0.7818619", "0.78117347", "0.7808594", "0.7808527", "0.7803651", "0.7802465", "0.7802465", "0.7802465", "0.7802465", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.780246", "0.78005856", "0.77929676", "0.7776958", "0.77741826", "0.777308", "0.77595127", "0.77518284", "0.7750586", "0.772118", "0.7716843", "0.7703776", "0.77036476", "0.77036476", "0.77036476", "0.77036476", "0.77036476", "0.77036476", "0.77036476", "0.77036476", "0.77036476", "0.77007705", "0.7690502", "0.7681736", "0.7678272", "0.7666625", "0.76597023", "0.7639057", "0.76378155", "0.76378155", "0.76378155", "0.76226276" ]
0.0
-1
Testet, ob die Methode equals(), beim Vergleichen true zurueckgibt
@Test public void testEqualsEU() { ExternUnit externu2 = externu1.clone(); assertTrue(externu1.equals(externu2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "@Override\n\tpublic boolean equals(Object other)\n\t{\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "@Override\n public boolean equals(Object other) {\n return false;\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object o) {\n return false;\n }", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "@Override\n public final boolean equals( Object obj ) {\n return super.equals(obj);\n }", "@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Override\n public boolean equals(Object o) {\n return true;\n }", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn super.equals(o);\n\t}", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "@Override\n\tpublic boolean equals(TestObject obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n public boolean equals(Object obj) {\r\n return super.equals(obj);\r\n }", "@Override\n\t\tpublic boolean equals(Object obj) {\n\t\t\treturn super.equals(obj);\n\t\t}", "@Override public boolean equals(Object o) { // since 1.3.1\n // should these ever match actually?\n return (o == this);\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "@Override\n boolean equals(Object o);", "@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override public boolean equals(Object object);", "@Override \n boolean equals(Object obj);", "@Override\n boolean equals(Object obj);", "@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object obj){\n\t\treturn super.equals(obj);\n\t}", "@Override\n public final boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Override\n boolean equals(Object other);", "@Override\n public boolean equals(final Object obj) {\n return super.equals(obj);\n }", "@Override\r\n\t\tpublic boolean implementEquals(Object obj) {\n\t\t\treturn false;\r\n\t\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}", "@Override\n\tpublic abstract boolean equals(Object other);", "@Test\r\n public void testEquals() {\r\n Articulo art = new Articulo();\r\n articuloPrueba.setCodigo(1212);\r\n art.setCodigo(1212);\r\n boolean expResult = true;\r\n boolean result = articuloPrueba.equals(art);\r\n assertEquals(expResult, result);\r\n }", "@Override\n public boolean equals(Object obj) {\n \n //TODO: Complete Method\n \n return true;\n }", "private Equals() {}", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "@Override\n public abstract boolean equals(Object obj);", "@Override\n public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "@Override\r\n\tpublic boolean equals(Object arg0) {\n\t\treturn super.equals(arg0);\r\n\t}", "@Override\n public boolean equals(Object o1) {\n return super.equals(o1);\n }", "@Test\n public void equals() {\n assertTrue(semester.equals(new Semester(1, 0)));\n\n // same object -> returns true\n assertTrue(semester.equals(semester));\n\n // null -> returns false\n assertFalse(semester.equals(null));\n\n // different type -> returns false\n assertFalse(semester.equals(5));\n\n // different year -> returns false\n assertFalse(semester.equals(new Semester(2, 0)));\n\n // different index -> returns false\n assertFalse(semester.equals(new Semester(1, 1)));\n\n // different modules -> returns false\n Semester differentSemester = new Semester(1, 0);\n differentSemester.addModules(getTypicalModules());\n assertFalse(semester.equals(differentSemester));\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object outroObjecto = new RegistoExposicoes();\n RegistoExposicoes instance = new RegistoExposicoes();\n assertTrue(instance.equals(outroObjecto));\n }", "@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn super.equals(arg0);\n\t}", "@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn super.equals(arg0);\n\t}", "@Override\n public abstract boolean equals(final Object o);", "@Override\n public abstract boolean equals(final Object o);", "@Test\n public void equalsTrueMySelf() {\n Player player1 = new Player(PlayerColor.BLACK, \"\");\n assertTrue(player1.equals(player1));\n assertTrue(player1.hashCode() == player1.hashCode());\n }", "@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Override\r\n \tpublic boolean equals(final Object obj) {\r\n \t\t// Insert code to compare the receiver and obj here.\r\n \t\t// This implementation forwards the message to super. You may replace or supplement this.\r\n \t\t// NOTE: obj might be an instance of any class\r\n \t\treturn super.equals(obj);\r\n \t}", "@Test\n\tpublic void testEqualsVerdadeiro() {\n\t\t\n\t\tassertTrue(contato1.equals(contato3));\n\t}", "@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }", "@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }", "@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }", "public abstract boolean equals(Object o);", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (getClass() != obj.getClass()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn (!super.equals(obj));\n\t}", "@Test\r\n public void testEquals() {\r\n System.out.println(\"equals\");\r\n Object obj = null;\r\n RevisorParentesis instance = null;\r\n boolean expResult = false;\r\n boolean result = instance.equals(obj);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testEquals() {\n\tSystem.out.println(\"equals\");\n\tObject obj = null;\n\tJenkinsBuild instance = new JenkinsBuild();\n\tboolean expResult = false;\n\tboolean result = instance.equals(obj);\n\tassertEquals(expResult, result);\n\tJenkinsBuild newObj = new JenkinsBuild();\n\tnewObj.setBuildNumber(0);\n\tnewObj.setSystemLoadId(\"\");\n\tnewObj.setJobName(\"\");\n\tassertEquals(expResult, instance.equals(newObj));\n }", "@Test\n public void testEquals() {\n \n Beneficiaire instance = ben2;\n Beneficiaire unAutreBeneficiaire = ben3;\n boolean expResult = false;\n boolean result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n\n unAutreBeneficiaire = ben2;\n expResult = true;\n result = instance.equals(unAutreBeneficiaire);\n assertEquals(expResult, result);\n }", "@Test\n\tpublic void testEqualsFalso() {\n\t\t\n\t\tassertFalse(contato1.equals(contato2));\n\t}", "public abstract boolean equals(Object other);", "public boolean equals(java.lang.Object other){\n return false; //TODO codavaj!!\n }", "@Test public void equalsTest() throws NegativeValueException {\n PetBunny pb1 = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n PetBunny same = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n PetBunny badName = new PetBunny(\"Flop\", \"Holland Lop\", 3.5);\n PetBunny badBreed = new PetBunny(\"Floppy\", \"Holland Plop\", 3.5);\n PetBunny badWeight = new PetBunny(\"Floppy\", \"Holland Lop\", 5.0);\n String nothing = \"test\";\n \n Assert.assertTrue(pb1.equals(same));\n Assert.assertFalse(pb1.equals(nothing));\n Assert.assertFalse(pb1.equals(badName));\n Assert.assertFalse(pb1.equals(badBreed));\n Assert.assertFalse(pb1.equals(badWeight));\n }", "public void equals() {\r\n // todo Implement this java.lang.Object method\r\n throw new UnsupportedOperationException(\"Method equals() not yet implemented.\");\r\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean equals(Object o) {\n return false;\n }", "@Test\n public void testEquals01() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n SocialNetwork sn = new SocialNetwork();\n boolean result = sn.equals(otherObject);\n assertTrue(result);\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Commissioner instance = new Commissioner();\n Commissioner instance2 = new Commissioner();\n instance.setLogin(\"genie\");\n instance2.setLogin(\"genie\");\n boolean expResult = true;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Test)) {\n return false;\n }\n Test other = (Test) object;\n if ((this.idtest == null && other.idtest != null) || (this.idtest != null && !this.idtest.equals(other.idtest))) {\n return false;\n }\n return true;\n }", "@Test\n public void testEquals() {\n System.out.println(\"Animal.equals\");\n Animal newAnimal = new Animal(252, \"Candid Chandelier\", 10, \"Cheetah\", 202);\n assertTrue(animal1.equals(newAnimal));\n assertFalse(animal2.equals(newAnimal));\n }", "public void testEqualsObject()\n {\n Mana meme = new Mana( myMise );\n Assert.assertEquals( myMise, meme );\n \n System.out.println( myMise.toString());\n Mana autre = new Mana( 49 );\n Assert.assertFalse( myMise.equals( autre ));\n autre = new Mana( 50 );\n Assert.assertTrue( myMise.equals( autre ));\n }", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object object = null;\n Paciente instance = new Paciente();\n boolean expResult = false;\n boolean result = instance.equals(object);\n assertEquals(expResult, result);\n\n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Object object = null;\n Reserva instance = new Reserva();\n boolean expResult = false;\n boolean result = instance.equals(object);\n assertEquals(expResult, result);\n \n }", "public boolean equals(Object o) {\n\t\treturn false;\n\t}", "@Test\n public void equals() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 0);\n SmartPlayer y = new SmartPlayer(0, 0);\n assertTrue(x.equals(y));\n }", "public boolean equals(Object object) {\n/* 4770 */ if (this == object)\n/* */ {\n/* 4772 */ return true;\n/* */ }\n/* 4774 */ if (object != null && object.getClass() == getClass()) {\n/* */ \n/* 4776 */ VolaTile tile = (VolaTile)object;\n/* 4777 */ return (tile.getTileX() == this.tilex && tile.getTileY() == this.tiley && tile.surfaced == this.surfaced);\n/* */ } \n/* 4779 */ return false;\n/* */ }", "@Test\n public void equals_DifferentObjects_Test() {\n Assert.assertFalse(bq1.equals(ONE));\n }", "@java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }" ]
[ "0.81873083", "0.78291905", "0.7744933", "0.773949", "0.7730933", "0.77159107", "0.7654566", "0.7648517", "0.7643974", "0.7643974", "0.7643974", "0.7643974", "0.7643064", "0.7640806", "0.7579346", "0.7573811", "0.7556779", "0.7534883", "0.7524133", "0.7519195", "0.7515662", "0.7515662", "0.7515662", "0.7515662", "0.74948615", "0.74948615", "0.74948615", "0.7494724", "0.74863875", "0.74722034", "0.7452578", "0.74449015", "0.7438284", "0.7435313", "0.7435313", "0.7435313", "0.7435313", "0.7435313", "0.7435313", "0.7431058", "0.7428454", "0.7419786", "0.74109757", "0.74109757", "0.74109757", "0.74109757", "0.7407844", "0.7405181", "0.7393901", "0.73869926", "0.7366028", "0.73606384", "0.73606384", "0.7328247", "0.7319969", "0.7312604", "0.73059446", "0.72942686", "0.7272866", "0.7267928", "0.7267928", "0.7252168", "0.7218624", "0.7197225", "0.7174461", "0.7164033", "0.7164033", "0.71330833", "0.71330833", "0.7122184", "0.70979077", "0.7097683", "0.70956594", "0.7093539", "0.7093539", "0.7093539", "0.70873207", "0.70858943", "0.70835876", "0.7067594", "0.7044323", "0.7042221", "0.7034528", "0.7024483", "0.7020511", "0.70163244", "0.7014812", "0.701373", "0.70112085", "0.7007185", "0.69987136", "0.69951254", "0.6975858", "0.6961882", "0.6955262", "0.69442135", "0.6943513", "0.69066966", "0.69047505", "0.6903721", "0.6901253" ]
0.0
-1
Testet, ob die Methode clone(), ein identisches Objekt erstellt.
@Test public void testCloneEU() { ExternUnit externu2 = externu1.clone(); assertTrue(externu1.equals(externu2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "@Override\n public Object clone() {\n return super.clone();\n }", "Object clone();", "Object clone();", "public abstract Object clone() ;", "@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "public abstract Object clone();", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\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}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n\tpublic Object clone() \n\t{\n\t\ttry{\n\t\t// Note all state is primitive so no need to deep copy reference types.\n\t\treturn (Tile) super.clone();\n\t\t} catch (CloneNotSupportedException e) \n\t\t{\n\t\t\t// We should not ever be here as we implement Cloneable.\n\t\t\t// It is better to deal with the exception here rather than letting\n\t\t\t// clone throw it as we would have to catch it in more places then.\n\t\t\treturn null;\n\t\t}\n\t}", "public Object clone()\n {\n Object o = null;\n try\n {\n o = super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n e.printStackTrace();\n }\n return o;\n}", "@Override\n\tpublic Object clone() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\n\t}", "@Override\n public Object clone() throws CloneNotSupportedException{\n return super.clone();\n }", "public void testClone() {\n System.out.println(\"clone\");\n Play instance = new Play(\"Player1\", new Card(Rank.QUEEN, Suit.SPADES));\n Play expResult = instance;\n Play result = instance.clone();\n assertNotSame(expResult, result);\n }", "public Object clone() throws CloneNotSupportedException { return super.clone(); }", "@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}", "public final Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "public Object clone() throws CloneNotSupportedException {\r\n\t\tthrow new CloneNotSupportedException();\r\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 Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\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}", "public abstract Pessoa clone();", "public DessertVO clone() {\r\n return (DessertVO) super.clone();\r\n }", "public void testClone()\n {\n // as lifted from the JDK Object JavaDoc for clone:\n // x.clone() Creates and returns a copy of x.\n // The precise meaning of \"copy\" may depend on\n // the class of the object. The general intent\n // is that, for any object x, the expression: \n // x.clone() != x \n // will be true, and that the expression: \n // x.clone().getClass() == x.getClass()\n // will be true, but these are not absolute requirements.\n // While it is typically the case that:\n // x.clone().equals(x)\n // will be true, this is not an absolute requirement.\n // For EthernetAddress, this test will check that all the above\n // ARE true in the case of EthernetAddress clone() because it is\n // the desired behavior.\n EthernetAddress x = new EthernetAddress(VALID_ETHERNET_ADDRESS_STRING);\n assertTrue(\"x.clone() != x did not return true\",\n x.clone() != x);\n assertTrue(\"x.clone().getClass() == x.getClass() did not return true\",\n x.clone().getClass() == x.getClass());\n assertTrue(\"x.clone().equals(x) did not return true\",\n x.clone().equals(x));\n }", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\treturn super.clone();\n\t}", "public Object clone ()\n\t{\n\t\ttry \n\t\t{\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n throw new InternalError(e.toString());\n\t\t}\n\t}", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException(\"clone() is not supported in \"+this.getClass().getName());\n }", "public Object clone() throws CloneNotSupportedException\n\t{\n\t\tthrow new CloneNotSupportedException();\n\t}", "public Object clone() {\r\n try {\r\n return super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n return null;\r\n }\r\n }", "public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }", "public Object clone() throws CloneNotSupportedException{\n\t\tthrow (new CloneNotSupportedException());\n\t}", "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 }", "@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 }", "public final Object clone() throws java.lang.CloneNotSupportedException {\n\t\tthrow new java.lang.CloneNotSupportedException();\n\t}", "@Override \n public Score clone()\n {\n try\n { \n return (Score)super.clone();\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }", "public Object clone() throws CloneNotSupportedException {\n // return INSTANCE\n throw new CloneNotSupportedException();\n }", "public Function clone();", "@Override\n public JokerVehicle clone(){\n return new JokerVehicle();\n }", "public Object clone() {\n return this.copy();\n }", "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException(\"Singleton class doesn't support cloning of object.\");\n }", "@SuppressWarnings(\"unchecked\")\n \tprivate <T extends Entity<T>> T _clone(Entity<T> obj) throws RaplaException {\n \t\tEntity<T> deepClone = ((Mementable<T>) obj).deepClone();\n \t\tT clone = deepClone.cast();\n \n \t\tRaplaType raplaType = clone.getRaplaType();\n \t\tif (raplaType == Appointment.TYPE) {\n \t\t\t// Hack for 1.6 compiler compatibility\n \t\t\tObject temp = clone;\n \t\t\t((AppointmentImpl) temp).removeParent();\n \t\t}\n \t\tif (raplaType == Category.TYPE) {\n \t\t\t// Hack for 1.6 compiler compatibility\n \t\t\tObject temp = clone;\n \t\t\t((CategoryImpl) temp).removeParent();\n \t\t}\n \n \t\tsetNew((RefEntity<T>) clone, this.workingUser);\n \t\treturn clone;\n \t}", "public Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "protected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone()\n {\n Object o = null;\n try \n { o = super.clone(); } \n catch(CloneNotSupportedException e) \n { System.err.println(\"Erreur dans le clonage de la cellule...\"); }\n return o;\n }", "public Object clone () {\n\t\t\ttry {\n\t\t\t\treturn super.clone();\n\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\tthrow new InternalError(e.toString());\n\t\t\t}\n\t\t}", "public Object clone() {\n try {\n return super.clone();\n } catch (Exception exception) {\n throw new InternalError(\"Clone failed\");\n }\n }", "public Object clone() {\n\t\ttry {\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch(CloneNotSupportedException exc) {\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract GameObject clone();", "public void testClone() {\n Enzyme e = new Enzyme(\"Test\", \"KR\", \"P\", \"Cterm\", 5);\n Enzyme clone = (Enzyme)e.clone();\n\n Assert.assertEquals(new String(e.getCleavage()), new String(clone.getCleavage()));\n Assert.assertEquals(e.getMiscleavages(), clone.getMiscleavages());\n Assert.assertEquals(e.getPosition(), clone.getPosition());\n Assert.assertEquals(new String(e.getRestrict()), new String(clone.getRestrict()));\n Assert.assertEquals(e.getTitle(), clone.getTitle());\n\n // Get a cleaved set of peptides from a sequence.\n final Protein p = new Protein(\">Test protein.\\nLENNARTMARTENS\");\n Protein[] controlCleave = e.cleave(p);\n // Get a cleaved set from the clone.\n Protein[] cloneCleave = clone.cleave(p);\n // Compare the sets. They should be identical.\n for(int i = 0; i < cloneCleave.length; i++) {\n Assert.assertEquals(controlCleave[i], cloneCleave[i]);\n }\n\n // Now change the clone and see if the original changes.\n clone.setCleavage(\"GH\");\n clone.setMiscleavages(1);\n clone.setPosition(Enzyme.NTERM);\n clone.setRestrict(\"L\");\n clone.setTitle(\"Clone\");\n\n // Clone should have changed.\n Assert.assertEquals(\"GH\", new String(clone.getCleavage()));\n Assert.assertEquals(1, clone.getMiscleavages());\n Assert.assertEquals(Enzyme.NTERM, clone.getPosition());\n Assert.assertEquals(\"L\", new String(clone.getRestrict()));\n Assert.assertEquals(\"Clone\", clone.getTitle());\n\n // Original should remain the same.\n Assert.assertEquals(\"KR\", new String(e.getCleavage()));\n Assert.assertEquals(5, e.getMiscleavages());\n Assert.assertEquals(Enzyme.CTERM, e.getPosition());\n Assert.assertEquals(\"P\", new String(e.getRestrict()));\n Assert.assertEquals(\"Test\", e.getTitle());\n }", "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}", "public Object clone() throws CloneNotSupportedException {\n\tthrow new CloneNotSupportedException(\"This is a Singleton Ojbect; Buzz off\");\n }", "public IVenda clone ();", "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n // return super.clone(); // OR we can return the already present :: return getInstance();\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}", "@Override\n\tpublic GameUnit clone() throws CloneNotSupportedException {\n\t\t// this is a shallow copy, because of the Point3D properties and that is the only property of this class (GameUnit) a shallow copy is enough\n\t\tGameUnit unit = (GameUnit)super.clone();\n\t\t// reset the position property state before returning the cloned class\n\t\tunit.initialize();\n\t\treturn unit;\n\t}", "@Test\n public void cloneTestObstaclesCopy() {\n Playground original = new Playground(7);\n String originalObstacles = original.printObstacles();\n\n Playground clone = original.clone();\n String clonedObstacles = clone.printObstacles();\n\n if (!originalObstacles.equals(clonedObstacles))\n fail();\n }", "public Clone() {}", "public MovableObject lightClone()\n\t\t{\n\t\t\tfinal MovableObject clone = new MovableObject();\n\t\t\tclone.assCount = this.assCount;\n\t\t\tclone.associatable = this.associatable;\n\t\t\tclone.bound = this.bound;\n\t\t\tclone.coords = new int[this.coords.length];\n\t\t\tfor(int i=0; i < this.coords.length; i++)\n\t\t\t\tclone.coords[i] = this.coords[i];\n\t\t\tclone.highlighted = this.highlighted;\n\t\t\tclone.hotSpotLabel = this.hotSpotLabel;\n\t\t\tclone.keyCode = this.keyCode;\n\t\t\tclone.label = this.label;\n\t\t\tclone.maxAssociations = this.maxAssociations;\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Rectangle(coords[0]-3,coords[1]-3,coords[2]+6,coords[3]+6);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tclone.obj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t\tclone.pos = new Point(this.pos.x,this.pos.y);\n\t\t\tclone.shape = this.shape;\n\t\t\tclone.startPos = this.startPos;\n\t\t\tclone.value = this.value;\n\n\t\t\treturn clone;\n\t\t}", "public Object clone() {\n try {\n // clones itself\n return super.clone();\n } catch (Exception exception) {\n ;\n }\n return null;\n }", "public final PaintObject clone() {\n \t\n \ttry {\n\t\t\treturn (PaintObject) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "@Override\n public PhoneNumberCloneable clone() {\n try {\n return (PhoneNumberCloneable) super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(); // Can't happen}\n }\n }", "@Override\r\n\tprotected A clone() throws CloneNotSupportedException {\r\n\t\tA clone = (A)super.clone();\r\n//\t\tclone.b = new B();\r\n\t\treturn clone;\r\n\t}", "public /*@ non_null @*/ Object clone() {\n return this;\n }", "@Override\r\n\tprotected B clone() throws CloneNotSupportedException {\r\n\t\tB clone = (B)super.clone();\r\n//\t\tclone.a = new A();\r\n\t\treturn clone;\r\n\t}", "@Override\n public Drop clone() {\n try {\n return (Drop) super.clone();\n } catch (CloneNotSupportedException ex) {\n // Never.\n return null;\n }\n }", "public Object clone(){\n\t\tVehicle car;\n\t\ttry{\n\t\t\tcar = (Vehicle) super.clone();\n\t\t} catch(CloneNotSupportedException e){\n\t\t\treturn null;\n\t\t}\n\t\t\treturn car;\n\t\t}", "@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\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}", "@Override\n public Object clone() throws CloneNotSupportedException {\n\t return new TypeCloner(this, super.clone()).invoke();\n\t}", "@SuppressWarnings(\"resource\")\n @Test\n public void testClone() {\n try {\n SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions1 = new SubtenantPolicyGroupListOptions(Integer.valueOf(-110),\n Long.valueOf(78),\n Order.getDefault(),\n \"08618abe-660a-4e54-bad6-818ca0dfef42\",\n null,\n null);\n SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions2 = subtenantpolicygrouplistoptions1.clone();\n assertNotNull(subtenantpolicygrouplistoptions1);\n assertNotNull(subtenantpolicygrouplistoptions2);\n assertNotSame(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1);\n assertEquals(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "public T cloneDeep();", "public Object clone(){\n \t\n \treturn this;\n \t\n }", "@Override\npublic Object clone() throws CloneNotSupportedException {\n\tSystem.out.println(\"Clone is running....\"+namr);\n\treturn super.clone();\n}", "public Object clone() {\n/* */ try {\n/* 111 */ return super.clone();\n/* */ }\n/* 113 */ catch (CloneNotSupportedException cloneNotSupportedException) {\n/* 114 */ throw new InternalError(cloneNotSupportedException.toString(), cloneNotSupportedException);\n/* */ } \n/* */ }", "@Override\n\tpublic Component clone() {\n\t\treturn null;\n\t}", "public Object clone() {\t\n\t\tGrille o = new Grille();\t\t//On créé une nouvelle grille\n\t\to.score=this.score;\n\t\tfor (Case i : this.grille){\n\t\t\tCase i2= (Case) i.clone();\t//On copie chaque case de la grille\n\t\t\ti2.setGrille(o);\n\t\t\to.grille.add(i2);\t\t\t//On les ajoute à la nouvelle grille\n\t\t}\n\t\t// on renvoie le clone\n\t\treturn o;\n\t}", "@Override\r\n\tpublic Student clone() \r\n\t{\n\t\ttry {\r\n\t\t\treturn (Student)super.clone();\r\n\t\t}\r\n\t\tcatch (CloneNotSupportedException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override \n public Door clone()\n {\n try\n {\n Door copy = (Door)super.clone();\n \n //a copy of the location class\n copy.room = room.clone(); \n \n return copy;\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }" ]
[ "0.78995377", "0.7785374", "0.74653435", "0.73998237", "0.73998237", "0.73970014", "0.7376612", "0.7354558", "0.73323834", "0.7310976", "0.7310976", "0.7310976", "0.7310976", "0.72414756", "0.7222764", "0.7222764", "0.7222764", "0.7210623", "0.7201507", "0.71982425", "0.7195651", "0.7179002", "0.71768886", "0.71700203", "0.7169305", "0.71591556", "0.71465284", "0.71460015", "0.710663", "0.7096893", "0.7096893", "0.7096893", "0.7096893", "0.7096893", "0.7096893", "0.7096893", "0.7096893", "0.7096893", "0.70950603", "0.7069516", "0.7069516", "0.7069516", "0.7040827", "0.70121133", "0.7010111", "0.70085263", "0.6992115", "0.699169", "0.6971134", "0.69664973", "0.6956824", "0.6953337", "0.693828", "0.6909906", "0.6896881", "0.6880938", "0.6864111", "0.68310857", "0.68284243", "0.6810351", "0.68087345", "0.6802213", "0.680135", "0.67985475", "0.6796902", "0.6794163", "0.67496353", "0.6745294", "0.67116517", "0.67023313", "0.668999", "0.667966", "0.66702795", "0.66644365", "0.6658515", "0.66525155", "0.6650357", "0.66448265", "0.6635054", "0.6622364", "0.660701", "0.6604464", "0.65985894", "0.65954804", "0.65916246", "0.6581633", "0.6563958", "0.6558201", "0.65419424", "0.6539559", "0.652328", "0.652215", "0.65215933", "0.6519049", "0.65054727", "0.6498096", "0.6493834", "0.64905286", "0.6488414", "0.648811" ]
0.6641787
78
MeetingUnit Testet, ob die Methode getTitle(), den Titel zurueckgibt.
@Test public void testGetTitleMU() { assertEquals("MeetingUnit", meetingu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetTitleMU() {\r\n\t\tmeetingu1.setTitle(\"UnitMeeting\");\r\n\t\tassertEquals(\"UnitMeeting\", meetingu1.getTitle());\r\n\t}", "protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}", "@Test(priority=3, dependsOnMethods= {\"validateUrl\"})\n\tpublic void validateTtitle() {\n\t\t\n\t\tString actualTtitle = driver.getTitle();\n\t\tString expectedTitle = \"Messenger\";\n\t\tAssert.assertEquals(actualTtitle, expectedTitle);\n\t\t\n\t\t\n\t\t\n\t\tReporter.log(\"Validating the messanger page title\");\n\t\t\n\t}", "@Test\n\tpublic void test_getTitle() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"Sherlock\",t1.getTitle());\n }", "public void testGetTitle() {\n System.out.println(\"getTitle\");\n Wizard instance = new Wizard();\n String expResult = \"\";\n String result = instance.getTitle();\n assertEquals(expResult, result);\n }", "@Test\n public void titleTest() {\n // TODO: test title\n }", "@Test(priority = 2, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"To Verify Title and Title Text\")\n\tpublic void VerifyTitleTxt() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tdata.VerifyTitlenText();\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Title and Title Text\", \"yes\");\n\t}", "@Test\n public void titlesTest() {\n // TODO: test titles\n }", "@Test\r\n\tpublic void testWinnerTitle() {\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\tassertNotNull(title);\r\n\t}", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "@Test\n public void testGetTitle() {\n }", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _esfTournament.getTitle();\n\t}", "public void testGetSetTitle() {\n exp = new Experiment(\"10\");\n exp.setTitle(\"test\");\n assertEquals(\"test/set title does not work\", \"test\", exp.getTitle());\n }", "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}", "@Test(dependsOnMethods = \"testAddTitleRequiredFields\")\n\tpublic void testAddTitle() {\n\t\t\n\t\t//Instantiate titles page object.\n\t\tTitlesPage titlesPageObject = new TitlesPage(driver);\n\t\t\n\t\t//Set the local title name variable to value created in titles page object.\n\t\ttitle = titlesPageObject.getTitleName();\n\t\t\n\t\t//Enter in the name value into the 'Name' field.\n\t\tReporter.log(\"Enter in a name value into the 'Name' field.<br>\");\n\t\ttitlesPageObject.enterTitleName();\n\t\t\n\t\t//Click the 'Create Title' button.\n\t\tReporter.log(\"Click the 'Create Title' button.<br>\");\n\t\ttitlesPageObject.clickCreateTitleButton();\n\t\t\n\t\t//Verify the success message is displayed to indicate a successful title creation.\n\t\tReporter.log(\"Verify an success message is displayed to indicate a successful title creation.<br>\");\n\t\tAssert.assertTrue(titlesPageObject.verifyTitlesPageSuccessMessage(), \"Unable to verify the title was successfully created; please investigate.\");\n\t\t\n\t\t//Verify the newly created title exists in the list of titles.\n\t\tReporter.log(\"Verify the newly created title value of [ \"+ title +\" ] is displayed in the list of titles on the page.<br>\");\n\t\tAssert.assertTrue(titlesPageObject.verifyTitleInList(title, true), \"Unable to verify the newly created title was found in the list of titles; please investigate.\");\n\t\t\n\t}", "@Test\r\n\tpublic void testGetTitleEU() {\r\n\t\tassertEquals(\"ExternUnit\", externu1.getTitle());\r\n\t}", "@Override\n public String getTittle() {\n return tittleText;\n }", "@SmallTest\n\tpublic void testTitle() {\n\t\tassertEquals(getActivity().getTitle(), solo.getString(R.string.title_activity_memory_game));\n\t}", "@Test\r\n\tpublic void testSetTitleEU() {\r\n\t\texternu1.setTitle(\"UnitExtern\");\r\n\t\tassertEquals(\"UnitExtern\", externu1.getTitle());\r\n\t}", "@Override\n public void title()\n {\n }", "@Test\n public void testGetTitle() {\n System.out.println(\"getTitle\");\n \n String expResult = \"Title\";\n String result = instance.getTitle();\n assertEquals(\"Title not as expected\", expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\n public void panelTitleTest() {\n Player.GetItem item = getPlayerHandler().getMediaItem();\n onView(withId(R.id.title)).check(matches(withText(item.getTitle())));\n }", "@Override\r\n public String getTitle() {\n return title;\r\n }", "protected abstract String title ();", "@Override\r\n public String getTitle() {\r\n return title;\r\n }", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "public abstract String getTitle();", "@Override\n public String getTitle() {\n return title;\n }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "public String getTitle() { return this.title; }", "public String getTitle() { return title; }", "public String getTitle()\n {\n return \"Test XY Data\";\n }", "@Test\n public void testSetTitle() {\n System.out.println(\"setTitle\");\n String title = \"Title\";\n \n instance.setTitle(title);\n \n assertTrue(\"Title unchanged\", title.equals(instance.getTitle()));\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "protected abstract void setTitle();", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "@Test\n\tpublic void setTitelleisteTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.queuetrack ) {\n\t\t\t\n\t\t\t\n\t\t\tstart();\n\t\t\tgui.setTitelleiste(\"test\");\n\t\t\t\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\t\n\t\t\tassertEquals(g.getTitle(),\"test\");\n\t\t\t}\n\t}", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "@Override\n public void title_()\n {\n }", "String get_title()\n {\n return title;\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public String getTitle() { return mTitle; }", "public Title getTitle() {\r\n return title;\r\n }", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "public String getThatTitle(){\n return this.title;\n }", "public void testSetTitle() {\n System.out.println(\"setTitle\");\n String s = \"\";\n Wizard instance = new Wizard();\n instance.setTitle(s);\n }", "@Test\r\n public void testGetListingTitle() {\r\n System.out.println(\"getListingTitle\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getListingTitle();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "@Test\r\n\tpublic void testSetGetInvalidTitle() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setTitle(titleInvalid);\r\n\t\tassertEquals(titleInvalid, doctor.getTitle());\r\n\r\n\t}", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Test\n void setDescription() {\n }", "@Test\r\n\t\tpublic void testShowsCorrectTitle() {\r\n\t\t\t\r\n\t\t\t// Simply check that the title contains the word \"Hoodpopper\"\r\n\t\t\t\r\n\t\t\tString title = driver.getTitle();\r\n\t\t\tassertTrue(title.contains(\"Hoodpopper\"));\r\n\t\t}", "String getTitle() {\r\n return title;\r\n }", "public String getTittle() {\r\n\t\treturn tittle;\r\n\t}", "@Override\n public String getTitle() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "public String getTitle();", "@Test(priority=0)\n\tpublic void titleVerification() {\n\t\tString expectedTitle = \"Facebook – log in or sign up\";\n\t\tString actualTitle = driver.getTitle();\n\t\tAssert.assertEquals(actualTitle, expectedTitle);\n\t}", "@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "private String getTitle() {\n return title;\n }", "@Test// Execute 5 \n\t public void googleTitleTest() {\n\t\t System.out.println(\"google Title test\");\n\t }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "@Test\n\tpublic void testGetSubtitlesTimeS2() {\n\t\ttry {\n\t\t\tSubtitleSeq seq = SubtitleSeqFactory.getSubtitleSeq();\n\t\t\tseq.addSubtitle(new SubtitleSt(new TimeSt(\"00\", \"00\", \"35\", \"536\"), new TimeSt(\"00\", \"00\", \"37\", \"746\"), \"[whistling]\"));\n\n\t\t\tassertNull(\"Method getSubtitle(Time) not working correctly\", seq.getSubtitle(new TimeSt(\"00\", \"00\", \"30\", \"536\")));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public java.lang.String getTitle();", "@Override\r\npublic String getTitle() {\n\treturn super.getTitle();\r\n}", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "public String GetTitle(){ return(title); }", "public String getTitle()\n {\n return title;\n }", "@Test\r\n\tpublic void testSetGetValidTitle() {\r\n\t\tDoctor doctor = new Doctor();\r\n\t\tdoctor.setTitle(titleValid);\r\n\t\tassertEquals(titleValid, doctor.getTitle());\r\n\t}", "public String getTitle(){\n return this.title;\n }", "@Test(expected = Exception.class)\r\n\tpublic void testSetTitulo() throws Exception {\n\t\ttry {\r\n\t\t\tvideo = new Youtube(\"w\", \"rdkglfoprtf\");\r\n\t\t\tfail(\"Deberia haber lanzado excepcion\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception(\"Titulo debe ser entre \" + Youtube.LONGITUD_MIN_TITULO + \" y \" + Youtube.LONGITUD_MAX_TITULO);\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tvideo = new Youtube(\"wkfjeuiewfoafjbaksbfbasibalbsfIHBDAFILhabfdlaDBFLhfdajlhbAFDLCBHaildchfbLJAHBFLkhbafljhACLDBHAljshbfLAIHSBDLJahdsfljhbdaJLHBLhbaihbfiJADSBFLahfdblhbsfljhbflIHBFLihjbsaflHBFSIk\", \"rdkglfoprtf\");\r\n\t\t\tfail(\"Deberia haber lanzado excepcion\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception(\"Titulo debe ser entre \" + Youtube.LONGITUD_MIN_TITULO + \" y \" + Youtube.LONGITUD_MAX_TITULO);\r\n\t\t}\r\n\r\n\t}", "String getTitre();", "@Test(priority=1)\r\n\tpublic void getTitle() {\r\n\t\tString title=driver.getTitle();\r\n\t\tSystem.out.println(( title).toUpperCase());\r\n\t}", "public void testGetSongTitle()\r\n {\r\n assertTrue(songTitle.equals(song.\r\n getSongTitle()));\r\n }", "@Test(dependsOnMethods = \"testUpdateTitleRequiredFields\")\n\tpublic void testUpdateTitle() {\n\t\t\n\t\t//Instantiate titles page object.\n\t\tTitlesPage titlesPageObject = new TitlesPage(driver);\n\t\t\n\t\t//Set the local updated title name variable to value created in titles page object.\n\t\tupdatedTitle = titlesPageObject.getTitleName();\n\t\t\n\t\t//Enter in the name value into the 'Name' field.\n\t\tReporter.log(\"Enter in a name value into the 'Name' field.<br>\");\n\t\ttitlesPageObject.clearTitleNameField();\n\t\ttitlesPageObject.enterTitleName();\n\t\t\n\t\t//Click the 'Update Title' button.\n\t\tReporter.log(\"Click the 'Update Title' button.<br>\");\n\t\ttitlesPageObject.clickUpdateTitleButton();\n\t\t\n\t\t//Verify the success message is displayed to indicate an successful title update.\n\t\tReporter.log(\"Verify an success message is displayed to indicate a successful title update.<br>\");\n\t\tAssert.assertTrue(titlesPageObject.verifyTitlesPageSuccessMessage(), \"Unable to verify the title was successfully updated; please investigate.\");\n\t\t\n\t\t//Verify the newly created title exists in the list of titles.\n\t\tReporter.log(\"Verify the newly updated title value of [ \"+ updatedTitle +\" ] is displayed in the list of titles on the page.<br>\");\n\t\tAssert.assertTrue(titlesPageObject.verifyTitleInList(updatedTitle, true), \"Unable to verify the newly updated title was found in the list of titles; please investigate.\");\n\t\t\n\t}", "public String getTitle() {\n\treturn title;\n}" ]
[ "0.70835274", "0.6814272", "0.6795269", "0.67864484", "0.66546696", "0.6594764", "0.6594228", "0.6572338", "0.65075034", "0.64822036", "0.64793295", "0.6464499", "0.645138", "0.64208066", "0.64116776", "0.64055204", "0.6377691", "0.63472587", "0.63468874", "0.63042295", "0.6286815", "0.6254983", "0.62537515", "0.62427074", "0.62299734", "0.6197579", "0.6197579", "0.6197579", "0.6197579", "0.6191194", "0.61347353", "0.6134536", "0.61237425", "0.61171424", "0.611555", "0.6099379", "0.6072261", "0.605344", "0.6047986", "0.60452133", "0.60412115", "0.60383123", "0.60169154", "0.6007327", "0.60067314", "0.60067314", "0.60067314", "0.60059386", "0.60043716", "0.60025746", "0.5988923", "0.59826547", "0.5973617", "0.59715116", "0.5950296", "0.59475124", "0.5945763", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5943012", "0.5935158", "0.5927945", "0.5919137", "0.5919137", "0.5919137", "0.5919137", "0.5919137", "0.59190124", "0.5918174", "0.5914496", "0.5914496", "0.59018314", "0.58968663", "0.58959347", "0.58904266", "0.5887713", "0.5883598", "0.58820736", "0.58798754", "0.58795905", "0.58793324", "0.5879287", "0.5875755", "0.58704305", "0.5865031" ]
0.7840631
0
Testet, ob die Methode getMembers(), die Personen zurueckgibt.
@Test public void testGetMembers() { assertTrue(meetingu1.getMembers().contains(teach1)); assertTrue(meetingu1.getMembers().contains(teach2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetMembers()\n {\n System.out.println(\"getMembers\");\n Party instance = null;\n ArrayList<Account> expResult = null;\n ArrayList<Account> result = instance.getMembers();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n\tpublic List<Member> getAllMember() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Member> getMemberList() {\n\t\treturn null;\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "public ImmutableList<Member> getMembers() {\n return ImmutableList.copyOf(members);\n }", "public List<XmlsonMember> getMembers() {\n\t\treturn Collections.unmodifiableList(members);\n\t}", "public List<User> getMembers() {\n return members;\n }", "public List<DataSetMember<t>> getMembers()\n\t{\n\t\treturn _data;\n\t}", "public ArrayList getMembers()\n\t{\n\t\treturn this.members;\n\t}", "@Override\r\n\tpublic List<Member> getAllMember() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tList<Member> list = session.createCriteria(Member.class).list();\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic int nbMembers() {\n\t\treturn 0;\n\t}", "public List<DN> getMembers() {\n\t\treturn members;\n\t}", "@Test\n\tpublic void testIsMember() {\n\t\tresetTestVars();\n\t\t\n\t\tassertFalse(\"Nothing in list\", sn.isMember(\"Hello\"));\n\t\tuser1.setID(\"1\");\n\t\tsn.addUser(user1);\n\t\tassertTrue(\"User with given ID exists\", sn.isMember(\"1\"));\n\t}", "boolean isMember();", "public List<String> getMembers() {\n return this.members;\n }", "public void printMembers() {\n\t\tthis.getListUsers().printList();\n\t}", "@Override\n\tpublic List<MemberDTO> getListMember() {\n\t\treturn mdao.getListMember();\n\t}", "public ArrayList<Member> getAllMembers() {\n return memberDAO.getAllMembers();\n }", "public List<Member> members() {\n return list;\n }", "@Override\n\tpublic List<Member> getAllMember() {\n\t\tSession session =sessionFactory.getCurrentSession();\n\t\tString hql = \"from Member\";\n\t\tList<Member> listMember = session.createQuery(hql).list();\n\t\t\n\t\tif(listMember.isEmpty()) {\n\t\t\t\treturn new ArrayList<>();\n\t\t}\n\t\t\n\t\treturn listMember;\n\t}", "public static int getMembers() {\n\t\treturn members; \n\t}", "public final ArrayList<Account> getMemberList()\n\t{\n\t\treturn members;\n\t}", "@Import(\"isMembers\")\n\tboolean isMembers();", "protected Member getMembersData() {\r\n String firstName = txtFieldFirstName.getText();\r\n String lastName = txtFieldLastName.getText();\r\n String dateOfBirth = txtFieldDateOfBirth.getText();\r\n String iban = txtFieldIBAN.getText();\r\n String entranceDate = txtFieldEntranceDate.getText();\r\n String leavingDate = txtFieldLeavingDate.getText();\r\n String disabilities = txtAreaDisabilities.getText();\r\n String notes = txtAreaNotes.getText();\r\n String sex = comBoxSexSelection.getItemAt(comBoxSexSelection.getSelectedIndex());\r\n int boardMember = (comBoxBoardMember.getItemAt(comBoxBoardMember.getSelectedIndex()) == \"Ja\") ? 1 : 0;\r\n\r\n Member member = new Member.Builder()\r\n .firstName(firstName)\r\n .lastName(lastName)\r\n .dateOfBirth(dateOfBirth)\r\n .iban(iban)\r\n .sex(sex)\r\n .disabilities(disabilities)\r\n .boardMember(boardMember)\r\n .entranceDate(entranceDate)\r\n .leavingDate(leavingDate)\r\n .notes(notes)\r\n .build();\r\n\r\n return member;\r\n }", "public int getMembers() {\n\t\treturn members;\n\t}", "public void showMembers() {\r\n\t\tfor(Member m: members) {\r\n\t\t\tm.show();\r\n\t\t}\r\n\t}", "public void setMembers(\n final List<MemberType> members)\n {\n this.members = members;\n }", "@Test\r\n\tpublic void testGetFriends() {\r\n\t\tPerson p = new Person(0);\r\n\t\tArrayList<Friend> f = p.getFriends();\r\n\t\tassertNotNull(f);\r\n\t}", "public void checkMembers(LocalDate date) {\n\t\t//TODO: This flow is waaay to shitty.\n\t\tfor (int i = 0; i < members.size(); i++) {\n\t\t\tBonusMember member = members.get(i);\n\t\t\tBonusMember newMember = checkGoldLimit(member, date);\n\t\t\t\n\t\t\tif (newMember instanceof GoldMember) {\n\t\t\t\tmembers.set(i, newMember);\n\t\t\t\tSystem.out.println(newMember.getPersonals().getFirstname() + \" er nå \" + newMember.getClass());\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tnewMember = checkSilverLimit(member, date);\n\t\t\tif (newMember instanceof SilverMember) {\n\t\t\t\tmembers.set(i, newMember);\n\t\t\t\tSystem.out.println(newMember.getPersonals().getFirstname() + \" er nå \" + newMember.getClass());\n\t\t\t}\n\t\t}\n\t}", "public Collection members() {\n return this.<Collection>get(\"members\");\n }", "public Member getMember() {\n\t\treturn member; ////changed 'MeMbEr' to 'member'\r\n\t}", "public interface IMember {\n\n\n /**\n * Returns the title for this member.\n *\n * @return the title for this member.\n */\n String getTitle();\n\n /**\n * Sets the title for this member.\n *\n * @param title the title for this member.\n */\n void setTitle(String title);\n\n /**\n * Returns the initials for this member.\n *\n * @return the initials for this member.\n */\n String getInitials();\n\n /**\n * Sets the initials for this member.\n *\n * @param initials the initials for this member.\n */\n void setInitials(String initials);\n\n /**\n * Returns the firstName for this member.\n *\n * @return the firstName for this member.\n */\n String getFirstName();\n\n /**\n * Sets the firstName for this member.\n *\n * @param firstName the firstName for this member.\n */\n void setFirstName(String firstName);\n\n /**\n * Returns the surname for this member.\n *\n * @return the surname for this member.\n */\n String getSurname();\n\n /**\n * Sets the surname for this member.\n *\n * @param surname the surname for this member.\n */\n void setSurname(String surname);\n\n /**\n * Returns the idNumber for this member.\n *\n * @return the idNumber for this member.\n */\n String getIdNumber();\n\n /**\n * Sets the idNumber for this member.\n *\n * @param idNumber the idNumber for this member.\n */\n void setIdNumber(String idNumber);\n\n /**\n * Returns the {@link GenderStatus genderStatus} for this member.\n *\n * @return the {@link GenderStatus genderStatus} for this member.\n */\n GenderStatus getGenderStatus();\n\n /**\n * Sets the {@link GenderStatus genderStatus} for this member.\n *\n * @param genderStatus the {@link GenderStatus genderStatus} for this member.\n */\n void setGenderStatus(GenderStatus genderStatus);\n\n /**\n * Returns the date of birth for this member.\n *\n * @return the date of birth for this member.\n */\n LocalDate getDateOfBirth();\n\n /**\n * Sets the date of birth for this member.\n *\n * @param dateOfBirth the date of birth for this patient.\n */\n void setDateOfBirth(LocalDate dateOfBirth);\n\n /**\n * Returns the mugShot for this member.\n *\n * @return the mugShot for this member.\n */\n ILogo getMugShot();\n\n /**\n * Sets the mugShot for this member.\n *\n * @param mugShot for this member.\n */\n void setMugShot(ILogo mugShot);\n\n /**\n * Gets the {@link ISystemUser user} of the member.\n *\n * @return { {@link ISystemUser user} of the member.\n */\n ISystemUser getSystemUser();\n\n /**\n * Sets the {@link ISystemUser user} of the member.\n *\n * @param user of the area user was created member.\n */\n void setSystemUser(ISystemUser user);\n}", "public ArrayList<Entry> getMembers(){\n return members;\n }", "Item[] getMembers() throws AccessManagementException;", "public Set<TCSObjectReference<?>> getMembers() {\n return Collections.unmodifiableSet(members);\n }", "private void init(){\n //Get instance of Members to access Members Lists\n Members members = Members.getInstance();\n \n //add to patient members list\n members.getPatients().addMember(this);\n }", "public void setMembers(List<DN> members) {\n\t\tthis.members = members;\n\t}", "public ArrayList<Member> getMemberWholeList() {\n\t\t return dao.selectMemberwholeList();\r\n\t}", "public ArrayList<CrewMember> getCrewMembers() {\r\n\t\treturn crewMembers;\r\n\t}", "public interface Member {\n\n public String getFirstName();\n\n public String getSurName();\n\n public Date getBithday();\n\n public String getGender();\n\n public List<Contact> getContacts();\n\n\n}", "public ArrayList<String> getMembers() {\n if(!members.isEmpty()){\n return new ArrayList(members.keySet());\n }else{\n return null;\n }\n }", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "@Override\r\n\tpublic List<Member> getAllMembers(int start, int numberOfRecords)\r\n\t\t\tthrows NotFoundException, ExistException, MissingParameter,\r\n\t\t\tInvalidParameter {\n\t\treturn null;\r\n\t}", "public void clearMembers() {\n\t\tmembers.clear();\n\t}", "public List<Annotation> getMembers();", "public int size() { return mMembers!=null?mMembers.size():0; }", "public Member getMember()\n {\n return m_member;\n }", "public String getMembers() {\r\n \t\tString members = _creator;\r\n \t\tfor (String member : _otherMembersList) {\r\n \t\t\tmembers.concat(\", \" + member);\r\n \t\t}\r\n \t\treturn members;\r\n \t}", "@Override\n public String toString() {\n return \"Member{\" +\n \"memberId='\" + memberId + '\\'' +\n \", name='\" + name + '\\'' +\n \", membershipDuration=\" + membershipDuration +\n \", noOfMembers=\" + noOfMember +\n '}';\n }", "public final List<Member> getSlicerMembers() {\n return slicerMembers;\n }", "public ArrayList<Familymember> getMyFamilymembers() {\n\t\treturn myFamilymembers;\n\t}", "public ArrayList<Member> getAllMembers() {\n\t\t\n\t\tArrayList<Member> returnArr = new ArrayList<Member>();\n\t\tfor (Iterator<Member> it = db.iterator(); it.hasNext(); ) {\n\t\t\tMember m = it.next();\n\t\t\treturnArr.add(m);\n\t\t\t\n\t\t}\n\t\t \n\t\treturn returnArr;\n\t}", "@Override\n\tpublic List<MemberVO> selectAllMembers() {\n\t\treturn sqlSession.selectList(\"com.coderdy.myapp.member.dao.mapper.MemberMapper.selectAllMembers\");\n\t}", "@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}", "private Collection<MetaMember> getAllMetaMembers() throws XavaException { \n\t\tif (!hasSections()) return getMetaMembers();\n\t\tif (allMetaMembers == null) {\t\t\n\t\t\tallMetaMembers = new ArrayList();\n\t\t\tallMetaMembers.addAll(getMetaMembers());\n\t\t\tIterator it = getSections().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tMetaView section = (MetaView) it.next();\n\t\t\t\tallMetaMembers.addAll(section.getAllMetaMembers());\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn allMetaMembers;\n\t}", "@Override\r\n\tpublic List<MemberVo> listAll() throws SQLException {\n\t\treturn client.selectList(\"member.listAll\");\r\n\t}", "public Collection<AccessUser> getMembers()\n {\n return username_to_profile.values();\n }", "@Test\r\n\tpublic void testRemoveMember1() {\n\t\tproject.addMember(MEMBER_NAME1);\r\n\t\t\r\n\t\tproject.removeMember(MEMBER_NAME1);\r\n\t\t\r\n\t\tassertEquals(0, project.getMembers().size());\r\n\t}", "public ImmutableList<String> getMemberNames() {\n return members.stream().map(m -> m.getName()).collect(ImmutableList.toImmutableList());\n }", "public List<FamilyMember> listAllFamilyMembers() {\n if (isFamilyMemberMapNullOrEmpty(familyMemberMap)) {\n return new ArrayList<>();\n }\n return new ArrayList<>(familyMemberMap.values());\n }", "@Override\r\n public Map<String, String> getMembers(String room) {\r\n Objects.requireNonNull(room);\r\n final Map<String, String> roomMembers = members.get(room);\r\n LOG.debug(\"Room: {}, room members: {}\", room, roomMembers);\r\n return roomMembers == null ? Collections.EMPTY_MAP : \r\n Collections.unmodifiableMap(roomMembers);\r\n }", "@Override\n\tpublic Member getMember(int id) {\n\t\treturn null;\n\t}", "String getMemberOf();", "@Override\r\n\tpublic List<MemberDto> list() {\n\t\treturn jdbcTemplate.query(\"select * from s_member\", mapper);\r\n\t}", "@SuppressWarnings(\"serial\")\n\tpublic HashMap<String,ArrayList<String>> getMembers() throws Exception{\n\t\treturn new HashMap<String,ArrayList<String>>(){{\n\t\t\tUserRegistry ur = UserRegistry.findOrCreate(doc);\n\t\t\tGroups groups = Groups.findOrCreate(ur);\n\t\t\tfor(Group g:Group.list(groups)){\n\t\t\t\tfinal Group tmp=g;\n\t\t\t\tput(g.getAttribute(\"name\"),new ArrayList<String>(){{\n\t\t\t\t\tfor (Member m:Member.list(tmp))\n\t\t\t\t\t\tadd(m.getAttribute(\"username\"));\t\t\t\t\n\t\t\t\t}});\n\t\t\t}\n\t\t}};\n\t}", "public List<String> getMemberList()\n\t{\n\t\treturn source.getMemberList();\n\t}", "@Override\r\n\tpublic int compareTo(Member o) {\n\t\treturn 0;\r\n\t}", "public List<Member> findAll() {\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n\n CriteriaQuery<Member> criteriaQuery = criteriaBuilder.createQuery(Member.class);\n\n Root<Member> m = criteriaQuery.from(Member.class);\n criteriaQuery.select(m);\n\n TypedQuery<Member> query = entityManager.createQuery(criteriaQuery);\n List<Member> members = query.getResultList();\n return members;\n }", "@Override\n public void initialView(final Collection<Address> members) {\n }", "@Test\r\n\tpublic void testRemoveMember2() {\n\t\tproject.addMember(MEMBER_NAME1);\r\n\t\tproject.addMember(MEMBER_NAME2);\r\n\t\t\r\n\t\tproject.removeMember(MEMBER_NAME1);\r\n\t\t\r\n\t\tassertEquals(1, project.getMembers().size());\r\n\t\tassertFalse(project.getMembers().contains(MEMBER_NAME1));\r\n\t\tassertTrue(project.getMembers().contains(MEMBER_NAME2));\r\n\t}", "public java.util.List<People> getFriendListList() {\n return java.util.Collections.unmodifiableList(\n instance.getFriendListList());\n }", "public Set<TopLevel> getMembers() {\n\t\tSet<TopLevel> result = new HashSet<>();\n\t\tfor (URI memberURI : members) {\n\t\t\tTopLevel member = this.getSBOLDocument().getTopLevel(memberURI);\n\t\t\tif(member != null) {\n\t\t\t\tresult.add(member);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n\tpublic List<MemberVo> listAll(Map<String, Object> params) throws SQLException {\n\t\treturn null;\r\n\t}", "public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}", "public abstract int compareMembers(T m1, T m2);", "public void addMember()\r\n\t{\r\n\t\tlistOfMembers.add(new Member(\r\n\t\t\t\tgetUserString(\"Enter Member's First Name\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Surname\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Email\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Telephone\"),\r\n\t\t\t\tgetUserInt(\"Enter Member's Number\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Type\")\r\n\t\t\t\t));\r\n\t\t\r\n\t}", "@Override\n public boolean isMember(String groupPath, Person person) {\n if (person.getUsername() != null) {\n return isMember(groupPath, person.getUsername());\n }\n\n WsHasMemberResults memberResults = grouperFS.makeWsHasMemberResults(groupPath, person);\n\n WsHasMemberResult[] memberResultArray = memberResults.getResults();\n\n for (WsHasMemberResult hasMember : memberResultArray) {\n if (hasMember.getResultMetadata().getResultCode().equals(IS_MEMBER)) {\n return true;\n }\n }\n return false;\n\n }", "@Override\r\n\tpublic ArrayList<Person> getAllPersons() {\n\t\treturn null;\r\n\t}", "@Override\n public ArrayList<ClanMember> getClanMembers(int hitPoints)\n {\n ArrayList<ClanMember> fullClanMembers = new ArrayList<>();\n\n PeekeWarriorMember Warrior = new PeekeWarriorMember(getClanID());\n PeekeHealerMember Healer = new PeekeHealerMember(getClanID());\n\n fullClanMembers.addAll(Warrior.getClanMembers(hitPoints));\n fullClanMembers.addAll(Healer.getClanMembers(hitPoints));\n\n return fullClanMembers;\n }", "public void setMyFamilymembers(ArrayList<Familymember> myFamilymembers) {\n\t\tthis.myFamilymembers = myFamilymembers;\n\t}", "public List<String> requiredMembers() {\n return this.requiredMembers;\n }", "public static void personTest(){\n ArrayList<Person> people = new ArrayList<>();\n //people[0] = new Person(\"Fer\", \"Mendoza\", true);\n people.add(new Person(\"Fer\", \"Mendoza\", true));\n people.add(new Person(\"Stacy\", \"Malibu\", false));\n people.add(new Person(\"Ana\", \"Morton\", true));\n\n for (Person person : people) {\n System.out.println(\"person.getFullName() = \" + person.getFullName());\n }\n\n }", "public String serializeMembers() {\n String retString = \"\";\n\n for (String str : this.members) {\n retString += str + \",\";\n }\n\n return retString.substring(0, Math.max(retString.length() - 1, 0)); // Remove the last comma\n }", "public void deleteAllMember()\n\t{\n\t\tmembers.clear();\n\t}", "public GetMembers(String fn,String ln){\r\n\t\tfname = fn;\r\n\t\tlname = ln;\r\n\t\tmembers ++;\r\n\t\t\r\n\t\tSystem.out.printf(\"Constructor for %s %s, Members in the club %d.\\n\", fname,lname,members);\r\n\t}", "@Override\n\tpublic List<DiscoveredMember> list() throws DiscoveryException {\n\t\tif(this.myself == null) {\n\t\t\tthrow new DiscoveryException(\"Jmdns not yet registered!!!\");\n\t\t}\n\t\t\n\t\tServiceInfo[] list = this.jmDns.list(this.type);\n\t\tList<DiscoveredMember> members = new ArrayList<DiscoveredMember>();\n\n\t\tfor (ServiceInfo info : list) {\n\t\t\tif (!info.getName().equals(this.myself.getName())\n\t\t\t\t\t&& info.getName().startsWith(this.cloudName)) {\n\t\t\t\t//todo-discovery: it could lead to problems if it retunrs multiple inetAdresses\n\t\t\t\tfor (InetAddress ad : info.getInetAddresses()) {\n\t\t\t\t\tDiscoveredMember member = discoveredMemberProvider.get();\n\t\t\t\t\tmember.setInetAdresses(ad);\n\t\t\t\t\tmember.setPort(info.getPort());\n\t\t\t\t\tmember.setName(info.getName());\n\t\t\t\t\tmembers.add(member);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tPieLogger.trace(this.getClass(), \"We discovered {} members!\", members.size());\n\n\t\treturn members;\n\t}", "public com.jspgou.cms.entity.ShopMember getMember () {\r\n\t\treturn member;\r\n\t}", "@Override\r\n\tpublic List<MemberRefGd> getMemberRefList() {\r\n\t\t//\r\n\t\treturn this.memberRefDgMap.valueList();\r\n\t}", "protected ArrayList<Long> getRoomMembers() {\n\treturn roomMembers;\n }", "private static List<Member> extractMembers(HttpResponse response) {\n List<Member> members = new ArrayList<>();\n try {\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Member>>() {\n }.getType();\n members = gson.fromJson(EntityUtils.toString(response.getEntity()), listType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return members;\n }", "public void refreshMemberList () {\n if (tourMemberAdapter != null) {\n tourMemberAdapter.notifyDataSetChanged();\n }\n }", "@Test\r\n\tpublic void testLazyGetters() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tArrayList<FriendRequest> x;\r\n\t\tx = p1.getFriendRequests();\r\n\t\tassertNotNull(x);\r\n\t\tx = null;\r\n\t\tx = p1.getFriendRequestsOutgoing();\r\n\t\tassertNotNull(x);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic ArrayList<Person> getAllGroupMembers(int id) throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tGroup g = new Group();\r\n\t\tg.setId(id);\r\n\t\tArrayList<Person> members = this.personMapper.findAllGroupMembers(g);\r\n\t\tfor (Person p : members) {\r\n\t\t\tPerson person = personMapper.findById(p.getId());\r\n\t\t\tp.setName(person.getName());\r\n\t\t}\r\n\t\treturn members;\r\n\t}", "public void setMemberID(String memberID){ this.memberID=memberID; }", "@Override\n\tpublic List<AdmissionCommiteeMember> viewAllCommiteeMembers() {\n\t\treturn repository.findAll();\n\t}", "protected void findMembersRigorous(FoundShape shape, List<PointVectorNN> points, List<PointVectorNN> members) {\n\t\tShapeDescription desc = models.get(shape.whichShape);\n\t\tDistanceFromModel function = desc.modelDistance;\n\t\tdouble threshold = desc.thresholdFit;\n\n\t\tfunction.setModel(shape.modelParam);\n\n\t\tfor (int i = 0; i < points.size(); i++) {\n\t\t\tPointVectorNN pv = points.get(i);\n\t\t\tdouble d = function.computeDistance(pv);\n\t\t\tif (d <= threshold) {\n\t\t\t\tmembers.add(pv);\n\t\t\t}\n\t\t}\n\t}", "public static void testMembre() throws DaoException {\r\n MembreDao membreDao = MembreDaoImpl.getInstance();\r\n\r\n System.out.println(\"\\nMembers tests\\n\");\r\n\r\n List<Membre> list = new ArrayList<Membre>();\r\n list = membreDao.getList();\r\n System.out.println(\"\\n Total list utilized \" + list);\r\n\r\n Membre membreByID = new Membre();\r\n membreByID = membreDao.getById(1);\r\n System.out.println(\"\\n Member by ID : \" + membreByID);\r\n\r\n int idMember = membreDao.create(\"Rodrigues\", \"Henrique\", \"ENSTA\", \"henrique@email.fr\", \"+33071234567\", Abonnement.VIP);\r\n System.out.println(\"\\n New id initialized: \" + idMember);\r\n Membre membreByID2 = new Membre();\r\n membreByID2 = membreDao.getById(idMember);\r\n System.out.println(\"\\n Member by ID : \" + membreByID2);\r\n\r\n Membre test = new Membre(idMember, \"LASTNAME\", \"NAME\", \"ENSTA\", \"email@ensta-paris.fr\", \"+33077654321\", Abonnement.PREMIUM);\r\n membreDao.update(test);\r\n Membre membreByID3 = new Membre();\r\n membreByID3 = membreDao.getById(idMember);\r\n System.out.println(\"\\n Member by ID : \" + membreByID3);\r\n\r\n membreDao.delete(idMember);\r\n list = membreDao.getList();\r\n System.out.println(\"\\n Total list updated : \" + list);\r\n\r\n int totalMembers = membreDao.count();\r\n System.out.println(\"\\n Total members : \" + totalMembers);\r\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn HHFamilyMember.size();\r\n\t}", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "@Override\n protected void removeMember() {\n }" ]
[ "0.6970229", "0.6942182", "0.69249785", "0.6794664", "0.6738268", "0.67164564", "0.66988015", "0.6685247", "0.6663672", "0.6632983", "0.66328526", "0.6617604", "0.6602617", "0.6567525", "0.65529495", "0.65304035", "0.6529899", "0.65179336", "0.6515777", "0.65140206", "0.64552236", "0.64526486", "0.6444353", "0.6431217", "0.64046097", "0.6366177", "0.6316447", "0.62553364", "0.62486017", "0.62084866", "0.6208398", "0.6207354", "0.6205371", "0.61792773", "0.6175054", "0.6173101", "0.6160889", "0.6154861", "0.61375993", "0.6133599", "0.61202395", "0.6111033", "0.60974413", "0.6096224", "0.60660523", "0.60539275", "0.6049925", "0.6030105", "0.6022903", "0.6003703", "0.6001946", "0.60007125", "0.5981485", "0.595969", "0.59488165", "0.594533", "0.59293264", "0.5911852", "0.5910779", "0.59020835", "0.5883502", "0.5850288", "0.5848707", "0.58430064", "0.5836481", "0.58312726", "0.5824953", "0.5808715", "0.58073854", "0.578779", "0.5780929", "0.5774129", "0.5763988", "0.57544655", "0.5751477", "0.5751098", "0.5732276", "0.57179713", "0.5700777", "0.5686514", "0.5680667", "0.56476235", "0.5645758", "0.5639642", "0.5635399", "0.56350887", "0.5634941", "0.5633554", "0.5632866", "0.5620533", "0.56197834", "0.5618325", "0.5618286", "0.56094605", "0.5607541", "0.5604087", "0.56006247", "0.55951256", "0.5582986", "0.5581367" ]
0.7134075
0
Testet, ob die Methode setTitle(), den Titel richtig setzt.
@Test public void testSetTitleMU() { meetingu1.setTitle("UnitMeeting"); assertEquals("UnitMeeting", meetingu1.getTitle()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void setTitle();", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String t)\n {\n title = t;\n }", "@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}", "public void setTitle(java.lang.String title);", "void setTitle(java.lang.String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "public void setTitle(String title) { this.title = title; }", "@Override\n\tpublic void setTitle(CharSequence title) {\n\t\t\n\t}", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle(String title){\n this.title = title;\n }", "@Override\r\npublic void setTitle(String title) {\n\tsuper.setTitle(title);\r\n}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_esfTournament.setTitle(title);\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "public void setTitle(String titleTemplate);", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\n this.title = title;\n etvTitle.setText(title);\n }", "@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}", "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "public void setTitle(String mTitle) {\n this.mTitle = mTitle;\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "public void setTitle(String value) {\n/* 337 */ setTitle((String)null, value);\n/* */ }", "@Override\n public void setTitle( final String title ) {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "private void setWindowTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "public void setTitle(String text) {\n title.setText(text);\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(final String title)\n {\n this.title = title;\n }" ]
[ "0.8465342", "0.843755", "0.8392147", "0.8269759", "0.8269759", "0.8269759", "0.82680535", "0.8262356", "0.8248331", "0.82416624", "0.8223729", "0.8223729", "0.8223729", "0.8223729", "0.8223729", "0.8106128", "0.80890346", "0.7994451", "0.79859304", "0.7965609", "0.7942552", "0.7927318", "0.7927318", "0.79235303", "0.7919936", "0.7915043", "0.7911537", "0.7896507", "0.7896507", "0.78887784", "0.78704166", "0.7865112", "0.7857788", "0.7857788", "0.7857788", "0.7857788", "0.7857788", "0.7852158", "0.7852158", "0.7852158", "0.78396153", "0.7838496", "0.7824873", "0.78186655", "0.7811695", "0.78088003", "0.78087944", "0.78040487", "0.7803042", "0.7803042", "0.7803042", "0.7803042", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.7802948", "0.78008485", "0.7793539", "0.7777226", "0.7774642", "0.7773551", "0.77598834", "0.7751736", "0.77510047", "0.77211165", "0.77167165", "0.7704184", "0.7703838", "0.7703838", "0.7703838", "0.7703838", "0.7703838", "0.7703838", "0.7703838", "0.7703838", "0.7703838", "0.77011615", "0.7690778", "0.7682532", "0.7677926", "0.7666689", "0.76602405", "0.7639523", "0.7637937", "0.7637937", "0.7637937", "0.7622872" ]
0.0
-1
Testet, ob die Methode setMembers(), die Personen richtig setzt.
@Test public void testsetMembers() { Set<Person> persons1 = new HashSet<Person>(); meetingu1.setMembers(persons1); assertTrue(meetingu1.getMembers().equals(persons1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMembers(\n final List<MemberType> members)\n {\n this.members = members;\n }", "public void setMembers(List<DN> members) {\n\t\tthis.members = members;\n\t}", "public void setMembers(Iterable<Integer> members) {\n\t\tthis.clear();\n\t\tfor (int member: members)\n\t\t\tthis.add(member);\n\t}", "@Override\n\tprotected void setMembers(int[] members) {\n\t\tthis.clear();\n\t\tfor (int member: members)\n\t\t\tthis.add(member);\n\t}", "@Override\n public void initialView(final Collection<Address> members) {\n }", "public void setMyFamilymembers(ArrayList<Familymember> myFamilymembers) {\n\t\tthis.myFamilymembers = myFamilymembers;\n\t}", "private void init(){\n //Get instance of Members to access Members Lists\n Members members = Members.getInstance();\n \n //add to patient members list\n members.getPatients().addMember(this);\n }", "public void clearMembers() {\n\t\tmembers.clear();\n\t}", "@Override\r\n\tprotected void setData(GroupMember t) {\n\r\n\t}", "public void setMemberID(String memberID){ this.memberID=memberID; }", "@Override\n\tpublic int nbMembers() {\n\t\treturn 0;\n\t}", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "@Test\r\n\tpublic void testGetMembers() {\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach1));\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach2));\r\n\t}", "public void checkMembers(LocalDate date) {\n\t\t//TODO: This flow is waaay to shitty.\n\t\tfor (int i = 0; i < members.size(); i++) {\n\t\t\tBonusMember member = members.get(i);\n\t\t\tBonusMember newMember = checkGoldLimit(member, date);\n\t\t\t\n\t\t\tif (newMember instanceof GoldMember) {\n\t\t\t\tmembers.set(i, newMember);\n\t\t\t\tSystem.out.println(newMember.getPersonals().getFirstname() + \" er nå \" + newMember.getClass());\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tnewMember = checkSilverLimit(member, date);\n\t\t\tif (newMember instanceof SilverMember) {\n\t\t\t\tmembers.set(i, newMember);\n\t\t\t\tSystem.out.println(newMember.getPersonals().getFirstname() + \" er nå \" + newMember.getClass());\n\t\t\t}\n\t\t}\n\t}", "public void showMembers() {\r\n\t\tfor(Member m: members) {\r\n\t\t\tm.show();\r\n\t\t}\r\n\t}", "public void setMemberIDs(ArrayList<Integer> memberIDs) {\n this.memberIDs = memberIDs;\n }", "public void deleteAllMember()\n\t{\n\t\tmembers.clear();\n\t}", "@Test\n\tpublic void testIsMember() {\n\t\tresetTestVars();\n\t\t\n\t\tassertFalse(\"Nothing in list\", sn.isMember(\"Hello\"));\n\t\tuser1.setID(\"1\");\n\t\tsn.addUser(user1);\n\t\tassertTrue(\"User with given ID exists\", sn.isMember(\"1\"));\n\t}", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 0;\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setMemberId(memberId);\r\n }", "@Override\n\tpublic void updateMember(MemberDTO mdto) {\n\t\tmdao.updateMember(mdto);\n\t}", "private void setMemberInformationPanelEditableTrue() {\n \n fNameTF.setEditable(true);\n lNameTF.setEditable(true);\n cprTF.setEditable(true);\n cityTF.setEditable(true);\n adressTF.setEditable(true);\n emailTF.setEditable(true);\n memberIdTF.setEditable(true);\n fNameTF.setEditable(true);\n phoneTF.setEditable(true);\n postalCodeTF.setEditable(true);\n adressNrTF.setEditable(true);\n changePictureBTN.setEnabled(true);\n }", "public void printMembers() {\n\t\tthis.getListUsers().printList();\n\t}", "public void setPerson( Person person )\r\n\t{\r\n\t\tthis.person = person;\r\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 }", "public void setMembersFromDB(ArrayList<ArrayList<String>> memberList)\n{\n\tfor(int i =0; i < memberList.size(); i++)\n\t{\n\t\tPerson newMember = new Person();\n\t\t//arbitrary order\n\t\t//TODO generalize this method\n\t\tnewMember.setLastName(memberList.get(i).get(0));\n\t\tnewMember.setFirstName(memberList.get(i).get(1));\n\t\tnewMember.setInstrument(memberList.get(i).get(2));\n\t\tthis.addMember(newMember);\n\t}\n}", "private void setPersonPagerData() {\n viewPageAdaptor = new ViewPagePersonAdaptor(getChildFragmentManager());\n viewPagerPerson.setAdapter(viewPageAdaptor);\n tbPerson.setupWithViewPager(viewPagerPerson);\n }", "public void setMemberTypes( java.util.List memberTypes )\n\t{\n\t}", "public void setOtherMembers(String value) {\r\n \r\n \t\t_otherMembersList = new ArrayList<String>();\r\n \r\n \t\tif (value.matches(\"\"))\r\n \t\t\treturn;\r\n \r\n \t\tLog.d(\"DEBUG\", value);\r\n \r\n \t\tString[] others = value.split(\"(\\\\s+)?,(\\\\s+)?\");\r\n \r\n \t\tfor (String member : others) {\r\n \t\t\t_otherMembersList.add(member);\r\n \t\t}\r\n \r\n \t\tCollections.sort(_otherMembersList);\r\n \t}", "@Test\r\n\tpublic void testSetPersonTime() {\r\n\t\tteachu1.setPersonTime(newPersonTime);\r\n\r\n\t\tassertTrue(teachu1.getPersons().contains(person2));\r\n\t\tassertFalse(teachu1.getPersons().contains(person1));\r\n\t}", "protected Member getMembersData() {\r\n String firstName = txtFieldFirstName.getText();\r\n String lastName = txtFieldLastName.getText();\r\n String dateOfBirth = txtFieldDateOfBirth.getText();\r\n String iban = txtFieldIBAN.getText();\r\n String entranceDate = txtFieldEntranceDate.getText();\r\n String leavingDate = txtFieldLeavingDate.getText();\r\n String disabilities = txtAreaDisabilities.getText();\r\n String notes = txtAreaNotes.getText();\r\n String sex = comBoxSexSelection.getItemAt(comBoxSexSelection.getSelectedIndex());\r\n int boardMember = (comBoxBoardMember.getItemAt(comBoxBoardMember.getSelectedIndex()) == \"Ja\") ? 1 : 0;\r\n\r\n Member member = new Member.Builder()\r\n .firstName(firstName)\r\n .lastName(lastName)\r\n .dateOfBirth(dateOfBirth)\r\n .iban(iban)\r\n .sex(sex)\r\n .disabilities(disabilities)\r\n .boardMember(boardMember)\r\n .entranceDate(entranceDate)\r\n .leavingDate(leavingDate)\r\n .notes(notes)\r\n .build();\r\n\r\n return member;\r\n }", "public void setAll(Person person) {\n this.lastName = person.getLastName();\n this.firstName = person.getFirstName();\n this.address = person.getAddress();\n this.tid = person.getOid();\n this.phone = person.getPhone();\n this.mobile = person.getMobile();\n this.email = person.getEmail();\n }", "@Override\n\tpublic List<Member> getMemberList() {\n\t\treturn null;\n\t}", "@Test\r\n public void testSetMemberId()\r\n {\r\n System.out.println(\"setMemberId\");\r\n int memberId = 8;\r\n FoodBean instance = new FoodBean();\r\n instance.setMemberId(memberId);\r\n assertEquals(memberId, instance.getMemberId());\r\n }", "@Override\r\n\tpublic void member() {\n\t\t\r\n\t}", "public void addMember(Person person) {\n\t\tmembers.add(person);\n\t}", "public void addMember()\r\n\t{\r\n\t\tlistOfMembers.add(new Member(\r\n\t\t\t\tgetUserString(\"Enter Member's First Name\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Surname\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Email\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Telephone\"),\r\n\t\t\t\tgetUserInt(\"Enter Member's Number\"),\r\n\t\t\t\tgetUserString(\"Enter Member's Type\")\r\n\t\t\t\t));\r\n\t\t\r\n\t}", "public void setOwner(Person person) \n {\n owner = person;\n }", "public List<XmlsonMember> getMembers() {\n\t\treturn Collections.unmodifiableList(members);\n\t}", "public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }", "public void setMember_id(String member_id) {\r\n this.member_id = member_id;\r\n }", "public void setPeopleAct(ArrayList<CastMember> peopleAct) \n\t{\n\t\tthis.peopleAct = peopleAct;\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n Member instance = member;\n \n String name = \"new Name\";\n instance.setName(name);\n \n String expResult = \"new Name\";\n String result = instance.getName();\n \n assertEquals(expResult,result);\n }", "@Override\n\tpublic List<Member> getAllMember() {\n\t\treturn null;\n\t}", "public void setMember (com.jspgou.cms.entity.ShopMember member) {\r\n\t\tthis.member = member;\r\n\t}", "@Test\n public void setPermissions() {\n cleanEntity0();\n\n entity0.setPermissions(permissionsS);\n assertEquals(permissionsS, ReflectionTestUtils.getField(entity0, \"permissions\"));\n }", "private void updateMemberList(Set<ChatRoomUser> chatRoomUserSet,\n boolean removeMember)\n {\n Iterator<ChatRoomUser> it = chatRoomUserSet.iterator();\n\n while (it.hasNext())\n {\n ChatRoomUser user = it.next();\n String uid = user.getScreenname().getFormatted();\n\n // we want to add a member and he/she is not in our member list\n if (!removeMember && !participants.containsKey(uid)\n && !uid.equals(provider.getAccountID().getUserID()))\n {\n OperationSetPersistentPresenceIcqImpl presenceOpSet =\n (OperationSetPersistentPresenceIcqImpl) getParentProvider()\n .getOperationSet(OperationSetPersistentPresence.class);\n\n Contact participant =\n presenceOpSet.getServerStoredContactList()\n .findContactByScreenName(uid);\n\n participants.put(uid, participant);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_JOINED,\n null);\n }\n // we want to remove a member and found him/her in our member list\n if (removeMember && participants.containsKey(uid))\n {\n Contact participant = participants.get(uid);\n\n participants.remove(uid);\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n null);\n }\n }\n }", "protected void addMember(MondrianMember member) {\r\n aMembers.add(member);\r\n }", "public MutableNodeSet(Graph graph, int[] members) {\n\t\tthis(graph);\n\t\tthis.setMembers(members);\n\t}", "public ImmutableList<Member> getMembers() {\n return ImmutableList.copyOf(members);\n }", "public Member(int memberID, String firstName, String lastName, String address, String email, String phoneNum, boolean gender) {\n this.memberID = memberID;\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n this.email = email;\n this.phoneNum = phoneNum;\n this.gender = gender;\n }", "public UserMember() {\r\n //this.email = \"user@user.com\";\r\n this.email = \"\";\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n this.username = \"\";\r\n this.password = \"\";\r\n this.memberId = 0;\r\n }", "private void setMemberInformationPanelEditableFalse() {\n \n fNameTF.setEditable(false);\n lNameTF.setEditable(false);\n cprTF.setEditable(false);\n cityTF.setEditable(false);\n adressTF.setEditable(false);\n emailTF.setEditable(false);\n memberIdTF.setEditable(false);\n fNameTF.setEditable(false);\n phoneTF.setEditable(false);\n postalCodeTF.setEditable(false);\n adressNrTF.setEditable(false);\n changePictureBTN.setEnabled(false);\n }", "@Override\n protected void removeMember() {\n }", "public Members(String type, String name, String surname, String phoneNum, String emailAddress, String physicalAddress)\r\n {\r\n this.type = type;\r\n this.name = name;\r\n this.surname = surname;\r\n this.phoneNum = phoneNum;\r\n this.emailAddress = emailAddress;\r\n this.physicalAddress = physicalAddress;\r\n }", "public void setMembership(final boolean theMembership) {\r\n myMembership = theMembership;\r\n }", "@Override\n\tpublic void change(MemberBean member) {\n\n\t}", "public void setPeople(Person[] persons) {\n setUser(persons[0]);\n\n for (int i = 0; i < persons.length; i++) {\n people.put(persons[i].getPersonID(), persons[i]);\n }\n\n setSpouse();\n setFamilyTree();\n }", "@Test\n public void testSetAddress() {\n System.out.println(\"setAddress\");\n Member instance = member;\n \n String address = \"10 New Road, Hackney, London\";\n instance.setAddress(address);\n \n String expResult = address;\n String result = instance.getAddress();\n \n assertEquals(expResult,result);\n }", "public interface IMember {\n\n\n /**\n * Returns the title for this member.\n *\n * @return the title for this member.\n */\n String getTitle();\n\n /**\n * Sets the title for this member.\n *\n * @param title the title for this member.\n */\n void setTitle(String title);\n\n /**\n * Returns the initials for this member.\n *\n * @return the initials for this member.\n */\n String getInitials();\n\n /**\n * Sets the initials for this member.\n *\n * @param initials the initials for this member.\n */\n void setInitials(String initials);\n\n /**\n * Returns the firstName for this member.\n *\n * @return the firstName for this member.\n */\n String getFirstName();\n\n /**\n * Sets the firstName for this member.\n *\n * @param firstName the firstName for this member.\n */\n void setFirstName(String firstName);\n\n /**\n * Returns the surname for this member.\n *\n * @return the surname for this member.\n */\n String getSurname();\n\n /**\n * Sets the surname for this member.\n *\n * @param surname the surname for this member.\n */\n void setSurname(String surname);\n\n /**\n * Returns the idNumber for this member.\n *\n * @return the idNumber for this member.\n */\n String getIdNumber();\n\n /**\n * Sets the idNumber for this member.\n *\n * @param idNumber the idNumber for this member.\n */\n void setIdNumber(String idNumber);\n\n /**\n * Returns the {@link GenderStatus genderStatus} for this member.\n *\n * @return the {@link GenderStatus genderStatus} for this member.\n */\n GenderStatus getGenderStatus();\n\n /**\n * Sets the {@link GenderStatus genderStatus} for this member.\n *\n * @param genderStatus the {@link GenderStatus genderStatus} for this member.\n */\n void setGenderStatus(GenderStatus genderStatus);\n\n /**\n * Returns the date of birth for this member.\n *\n * @return the date of birth for this member.\n */\n LocalDate getDateOfBirth();\n\n /**\n * Sets the date of birth for this member.\n *\n * @param dateOfBirth the date of birth for this patient.\n */\n void setDateOfBirth(LocalDate dateOfBirth);\n\n /**\n * Returns the mugShot for this member.\n *\n * @return the mugShot for this member.\n */\n ILogo getMugShot();\n\n /**\n * Sets the mugShot for this member.\n *\n * @param mugShot for this member.\n */\n void setMugShot(ILogo mugShot);\n\n /**\n * Gets the {@link ISystemUser user} of the member.\n *\n * @return { {@link ISystemUser user} of the member.\n */\n ISystemUser getSystemUser();\n\n /**\n * Sets the {@link ISystemUser user} of the member.\n *\n * @param user of the area user was created member.\n */\n void setSystemUser(ISystemUser user);\n}", "public void addMember(Member m) {\r\n\t\tint index=isDuplicate(m);\r\n\t\tif((index==-1)&&(!m.getName().equals(\"000\"))) {ms.add(m);}\r\n\t\tif(index!=-1) {\r\n\t\t\tif(!m.getName().equals(\"000\")) {ms.get(index).setName(m.getName());}\r\n\t\t\tif(m.hasAddress()) {ms.get(index).setAddress(m.getAddress());ms.get(index).setHasAddress();}\r\n\t\t\tif(m.hasBirthday()) {ms.get(index).setBirthday(Member.updateBirthday(m.getBirthday()));ms.get(index).setHasBirthday();}\r\n\t\t\tif(m.hasPoints()) {ms.get(index).setPoints(m.getPoints());ms.get(index).setHasPoints();}\r\n\t\t\tif(m.hasMileage()) {ms.get(index).setMileage(m.getMileage());ms.get(index).setHasMileage();}\r\n\t\t\tif(m.hasTier()) {ms.get(index).setTier(m.getTier());ms.get(index).setHasTier();}\r\n\t\t}\r\n\t}", "@Test\n public void testGetMembers()\n {\n System.out.println(\"getMembers\");\n Party instance = null;\n ArrayList<Account> expResult = null;\n ArrayList<Account> result = instance.getMembers();\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 void refreshMemberList () {\n if (tourMemberAdapter != null) {\n tourMemberAdapter.notifyDataSetChanged();\n }\n }", "@Test\r\n\tpublic void testRemoveMember1() {\n\t\tproject.addMember(MEMBER_NAME1);\r\n\t\t\r\n\t\tproject.removeMember(MEMBER_NAME1);\r\n\t\t\r\n\t\tassertEquals(0, project.getMembers().size());\r\n\t}", "@Override\r\n\tpublic void MemberUpdate() {\n\r\n\t}", "@Test\n public void testSetPersonaPaciente() {\n System.out.println(\"setPersonaPaciente\");\n Persona personaPaciente = null;\n Paciente instance = new Paciente();\n instance.setPersonaPaciente(personaPaciente);\n\n }", "public void setMembers( List<String> list )\r\n {\r\n specifiedMembers = new ArrayList<Dependency>();\r\n for ( String str: list )\r\n {\r\n Member member = null;\r\n int index = str.lastIndexOf( '.' );\r\n String className = str.substring( 0, index );\r\n String memberName = str.substring( index + 1 );\r\n Class<?> clazz = createClass( className );\r\n if ( memberName.endsWith( \"()\" ) )\r\n {\r\n memberName = memberName.substring( 0, memberName.lastIndexOf( \"()\" ) );\r\n member = findSimpleSetterMethod( clazz, memberName );\r\n }\r\n else\r\n {\r\n member = findField( clazz, memberName );\r\n }\r\n specifiedMembers.add( createDependency( member, \"\" ) );\r\n }\r\n }", "public void setPersonnames(List<Personname> personnames) {\r\n\r\n this.personnames = personnames;\r\n\r\n }", "public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }", "public void setMemberId(Integer memberId) {\n this.memberId = memberId;\n }", "public List<DataSetMember<t>> getMembers()\n\t{\n\t\treturn _data;\n\t}", "public void setPersons(Hashtable<String, Person> persons) {\r\n\t\tthis.persons = persons;\r\n\t}", "public MutableNodeSet(Graph graph, Collection<Integer> members) {\n\t\tthis(graph);\n\t\tthis.setMembers(members);\n\t}", "private void saveMemberList () {\r\n\t\tStringBuffer\tmembers\t\t= new StringBuffer();\r\n\t\tboolean\t\t\taddSplit\t= false;\r\n\t\t\r\n\t\tfor (String member : this.members) {\r\n\t\t\tif (addSplit)\r\n\t\t\t\tmembers.append(splitMember);\r\n\t\t\tmembers.append(member);\r\n\t\t\taddSplit = true;\r\n\t\t}\r\n\t\t\r\n\t\tstorage.setString(namedStringMembers, members.toString());\r\n\t}", "public Set<TCSObjectReference<?>> getMembers() {\n return Collections.unmodifiableSet(members);\n }", "private static void assignMemberOwnerToMembership(Object[] membershipArray) {\r\n PITMembershipView membership = (PITMembershipView)membershipArray[0];\r\n PITMember member = (PITMember)membershipArray[2];\r\n\r\n membership.setPITMember(member);\r\n }", "@Test\r\n\tpublic void testAddFriend() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tFriend p2 = new Friend(\"Dave\");\r\n\t\tassertTrue(p1.addFriend(p2));\r\n\t\tassertFalse(p1.addFriend(p2));\r\n\t}", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "private void contentSet() {\n\t\tmemDTO = new MemberDTO();\n\t\tmemDTO.setId(txtID.getText().toString());\n\t\tmemDTO.setPw(new String(txtPW.getPassword()));\n\t}", "public void setMemberType(MemberType memberType) {\n this.memberType = memberType;\n }", "@SuppressWarnings(\"unchecked\")\n public Builder withMembers(Member... members) {\n if (members == null)\n throw new NullPointerException(\"members cannot be null\");\n return withMembers(Arrays.asList(members));\n }", "public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }", "public int getMembers() {\n\t\treturn members;\n\t}", "boolean isMember();", "public void updatePerson() {\n\t\tSystem.out.println(\"update person\");\n\t}", "@Schema(hidden = true)\n public void setPerson(Person person) {\n this.person = person;\n }", "Member() {}", "public MemberList(List members)\n/* 10: */ {\n/* 11:10 */ this.members = members;\n/* 12: */ }", "@Test\n public void testSetDob() {\n System.out.println(\"setDob\");\n Member instance = member;\n \n String dob = \"2000-01-01\"; \n instance.setDob(dob);\n \n String expResult = dob;\n String result = instance.getDob();\n \n assertEquals(expResult,result);\n }", "public void setOwner(Person person) {\n _owner = person;\n }", "public static int getMembers() {\n\t\treturn members; \n\t}", "@Test\n public void resetData_withDuplicateMembers_throwsDuplicateMemberException() {\n Member editedAlice =\n new MemberBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).withPositions(VALID_POSITION_HUSBAND)\n .build();\n List<Member> newMembers = Arrays.asList(ALICE, editedAlice);\n AddressBookStub newData = new AddressBookStub(newMembers);\n\n assertThrows(DuplicateMemberException.class, () -> addressBook.resetData(newData));\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "@Test\n public void testSetDor() {\n System.out.println(\"setDor\");\n Member instance = member;\n \n String dor = \"2019-11-01\";\n instance.setDor(dor);\n \n String expResult = dor;\n String result = instance.getDor();\n \n assertEquals(expResult,result);\n }", "public void setMemberProps(PafDimMemberProps memberProps) {\r\n\t\tthis.memberProps = memberProps;\r\n\t}", "public MemberIterator(final List<Member> points) {\n \tthis.members = points;\n \tthis.nextIndex = 0;\n }", "public void setMemberId(Integer memberId) {\n\t\tthis.memberId = memberId;\n\t}", "public void setSize(int size) {\n\t members = size;\n\t}", "public ArrayList getMembers()\n\t{\n\t\treturn this.members;\n\t}", "private void initEventMembers()\n {\n if(mMarkersMap==null)\n mMarkersMap = new HashMap<>();\n memberPresentFlags= new HashMap<>();\n memberHandler=new Handler();\n\n runnable = new Runnable() {\n @Override\n public void run() {\n for(Map.Entry<String,Boolean> isMemberPresentFlag: memberPresentFlags.entrySet())\n {\n if(!isMemberPresentFlag.getValue())\n {\n //Member not present. Remove marker\n mMarkersMap.get(isMemberPresentFlag.getKey()).remove();\n mMarkersMap.remove(isMemberPresentFlag.getKey());\n }\n else\n {\n //Member present. Set marker to false\n isMemberPresentFlag.setValue(false);\n }\n }\n\n getEventMembers();\n Toast.makeText(getContext(),Double.toString(radius),Toast.LENGTH_SHORT).show();\n memberHandler.postDelayed(this,2500);\n }\n } ;\n\n memberHandler.postDelayed(runnable,2500);\n\n }" ]
[ "0.708318", "0.67435527", "0.643677", "0.6412629", "0.62750816", "0.6203968", "0.6121797", "0.6061706", "0.59953344", "0.5947525", "0.5907317", "0.5906268", "0.5832813", "0.58058393", "0.5788427", "0.57841015", "0.5781527", "0.57624036", "0.5753849", "0.5743374", "0.56827736", "0.56806844", "0.5661249", "0.56564677", "0.5652055", "0.562447", "0.5576223", "0.5573043", "0.5569992", "0.55646884", "0.5544682", "0.5534781", "0.55150056", "0.5509988", "0.549995", "0.5496355", "0.54878473", "0.5470586", "0.546586", "0.54565465", "0.54565465", "0.5450174", "0.54487973", "0.5446357", "0.5435382", "0.54325324", "0.54221714", "0.54193485", "0.5413413", "0.54106945", "0.5395843", "0.53856677", "0.53649366", "0.536426", "0.53623474", "0.53607124", "0.5360686", "0.53603584", "0.5344548", "0.5330349", "0.53243136", "0.53142476", "0.5298633", "0.5295984", "0.5291836", "0.52906716", "0.5290357", "0.52893543", "0.52890646", "0.52890646", "0.5284927", "0.52842224", "0.5282401", "0.5277247", "0.5261306", "0.5261172", "0.5259911", "0.5252336", "0.52460265", "0.52403116", "0.5235078", "0.52336276", "0.522939", "0.5228073", "0.52249753", "0.5224269", "0.5213218", "0.52129173", "0.5211699", "0.5210151", "0.5203718", "0.51995456", "0.5198775", "0.519798", "0.51867", "0.51824296", "0.51777834", "0.5160899", "0.5159671", "0.5157438" ]
0.73814416
0
Testet, ob die Methode setYear(), den Jahrgang richtig setzt.
@Test public void testSetYear() { meetingu1.setYear(3); assertTrue(meetingu1.getYear() == 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setYear(int _year) { year = _year; }", "public void setYear(int value) {\r\n this.year = value;\r\n }", "public void setYear(int year) {\r\n this.year = year;\r\n }", "public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}", "public void setYear (int yr) {\n year = yr;\n }", "public void setYear(int value) {\n\tthis.year = value;\n }", "public void setYear(int year)\n {\n this.year = year;\n }", "public void setYear(int year) {\n\tthis.year = year;\n}", "public void setYear(int year) {\n this.year = year;\n }", "public void setYear(int year) {\n\t\tthis.date.setYear(year);\n\t}", "public void setYear(int year) \n\t{\n\t\tthis.year = year;\n\t}", "public void setYear(Integer year) {\r\n this.year = year;\r\n }", "public void setYear(Integer year) {\r\n this.year = year;\r\n }", "public void setYear(int year) {\n\t\tthis.year = year;\n\t}", "public void setYear(int year) {\n\t\tthis.year = year;\n\t}", "public void setYear(Integer year) {\n this.year = year;\n }", "public void setYear(Integer year) {\n this.year = year;\n }", "public void setYear(Integer year) {\n this.year = year;\n }", "public void setYear(String year)\r\n {\r\n this.year = year; \r\n }", "public void setYear(int y){\n\t\tyear = y ; \n\t}", "public void setYear(int Year) {\n\t this.year= Year;\n\t}", "public void setYear(final int year) {\n\t\tthis.year = year;\n\t}", "@Override\n\tpublic void setYear(int year) throws RARException {\n\t\tthis.year = year;\n\t}", "public void setYear(String year) {\n this.year = year;\n }", "public void setYear(String year) {\n this.year = year;\n }", "@Override\n\tpublic void setYear(int year) {\n\t\t_esfShooterAffiliationChrono.setYear(year);\n\t}", "public void setYear(String year) {\n\t\tthis.year = year;\n\t}", "public boolean setYear(int newYear) {\n\t\tthis.year = newYear;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\treturn true;\n\t}", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(String value) {\n setAttributeInternal(YEAR, value);\n }", "public void setYear(int year) throws InvalidDateException {\r\n\t\tif (year <= 2100 & year >= 2000) {\r\n\t\t\tthis.year = year;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic year for the date (between 2000 and 2100) !\");\r\n\t\t}\r\n\t}", "public ConcreteYear(int year) {\r\n if (year > 0) {\r\n this.year = year;\r\n }\r\n }", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(String year) {\n this.put(\"year\", year);\n }", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(short value) {\r\n this.year = value;\r\n }", "@Override\n\tpublic int getYear() {\n\t\treturn year;\n\t}", "public void setDocumentYear(int documentYear);", "public int getYear(){\r\n\t\treturn year;\r\n\t}", "public void setSelectedYear(int selectedYear) {\n this.selectedYear = selectedYear;\n }", "public void setSelectedYear(int year) {\n this.selectedYear = year;\n }", "public int getYear() {\r\n return year;\r\n }", "public int getYear() { return year; }", "public int getYear() { return year; }", "public void setCalendarYear(int year) {\r\n\t\tcalendar.setCalendarYear(year);\r\n\t}", "public final native double setFullYear(int year) /*-{\n this.setFullYear(year);\n return this.getTime();\n }-*/;", "public int getYear() {\r\n\t\treturn year;\r\n\t}", "public int getYear() {\r\n return year;\r\n }", "public int getYear(){\n\t\treturn year; \n\t}", "public int getYear() {\n\t return year;\n\t}", "public int getYear() {\n return year;\n }", "public int getYear(){\n\t\treturn year;\n\t}", "public int getYear() {\r\n return this.year;\r\n }", "public int getYear() {\n\treturn year;\n }", "public int getYear() {\n\t\treturn year; \n\t}", "public int getYear() {\n\t\treturn year;\n\t}", "public void setYear (jkt.hms.masters.business.MasStoreFinancial year) {\n\t\tthis.year = year;\n\t}", "public Integer getYear() {\r\n return year;\r\n }", "public Integer getYear() {\r\n return year;\r\n }", "public void setOriginalReleaseYear(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}", "public int getYear() {\n\t\treturn year;\n\t}", "public int getYear() {\n\t\treturn year;\n\t}", "public int getYear() {\n\t\treturn year;\n\t}", "public double getYear() {\n return year;\n }", "public int getYear() \n\t{\n\t\treturn year;\n\t}", "public int getYear() {\n return year;\n }", "public int getYear() {\n return year;\n }", "public String getYear()\r\n {\r\n return year;\r\n }", "public void setYears(int years) {\n this.years = years;\n }", "public int getYear()\n {\n return year;\n }", "public void setYear(int year){\r\n\t\ttry{\r\n\t\t\tif(year>=1900)\r\n\t\t\tthis.year = year;\r\n\t\t\telse\r\n\t\t\t\tthrow new cardYearException();\r\n\t\t}catch(cardYearException ex){\r\n\t\t\tSystem.out.println(\"Baseball Cards weren't invented \"\r\n\t\t\t\t\t+ \"before 1900!\");\r\n\t\t\tSystem.out.print(\"Please enter a valid year: \");\r\n\t\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\tint retry = input.nextInt();\r\n\t\t\t\tsetYear(retry);\r\n\t\t}\r\n\t}", "public String getYear() {\n\t\treturn year;\r\n\t}", "public Integer getYear() {\n return year;\n }", "public Integer getYear() {\n return year;\n }", "public Integer getYear() {\n return year;\n }", "public void setYearmade(int yearmade)\n {\n if(checker.acceptYearmade(Integer.toString(yearmade)))\n this.yearmade = yearmade;\n else\n this.yearmade = 0;\n }", "public int getYear () {\n return year;\n }", "public EventsCalendarYear() {\n initYear();\n }", "public int getYear()\n\t{\n\t\treturn m_year;\n\t}", "public int getYear() {\n\t\treturn this.year;\n\t}", "public String getYear() {\n return year;\n }", "public String getYear() {\n return year;\n }", "public String getYear() {\n\t\treturn year;\n\t}", "public String getYear() {\n\t\treturn year;\n\t}", "public int getYear() {\r\n\t\treturn (this.year);\r\n\t}", "public boolean setYear(int newYear, boolean check) {\n\t\tthis.year = newYear;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\tif (check) {\n\t\t\tdouble oldMonth = this.month;\n\t\t\tdouble oldDay = this.day;\n\t\t\tIDate dt = swe_revjul(this.jd, this.calType); // -> erzeugt neues\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Datum\n\t\t\tthis.year = dt.year;\n\t\t\tthis.month = dt.month;\n\t\t\tthis.day = dt.day;\n\t\t\tthis.hour = dt.hour;\n\t\t\treturn (this.year == newYear && this.month == oldMonth && this.day == oldDay);\n\t\t}\n\t\treturn true;\n\t}", "public void setPrevYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()-1);\n\n\t}", "public int getYear() {\n\treturn year;\n}", "public void setStartYear(int startYear) {\n\t\tthis.startYear = startYear;\n\t}", "public int getSelectedYear() {\n return selectedYear;\n }", "public String getYear()\n {\n return year;\n }", "public int getYear(){\n\t return this.year;\n }", "int getYear();", "public short getYear() {\n return year;\n }", "public void setStartYear(java.math.BigInteger startYear) {\r\n this.startYear = startYear;\r\n }", "public void setYear(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setYear(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setYear(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setYear(int):void\");\n }", "public int getYear()\n {\n return yr;\n }" ]
[ "0.85502374", "0.8436481", "0.8389931", "0.83657616", "0.83602315", "0.8356243", "0.8334775", "0.8320834", "0.8317072", "0.8257052", "0.82264906", "0.81896824", "0.81896824", "0.8161901", "0.8161901", "0.813255", "0.813255", "0.813255", "0.8108997", "0.81057394", "0.80485594", "0.80413705", "0.7924537", "0.79230964", "0.79230964", "0.79228103", "0.7778711", "0.7757214", "0.7732284", "0.7658587", "0.7645989", "0.7645108", "0.76427114", "0.7625383", "0.7625383", "0.7625383", "0.76013035", "0.7542346", "0.7540955", "0.75401413", "0.7498867", "0.7494004", "0.7478344", "0.7470483", "0.7451812", "0.74394655", "0.74394655", "0.7438703", "0.7438238", "0.7421853", "0.7411639", "0.74053824", "0.7397316", "0.7388412", "0.73834383", "0.73509353", "0.73498535", "0.73472315", "0.73321444", "0.7323999", "0.7322086", "0.7322086", "0.7319766", "0.7310831", "0.7310831", "0.7310831", "0.7292724", "0.72893953", "0.7289256", "0.72752315", "0.72674835", "0.7263084", "0.7258768", "0.7256136", "0.7241031", "0.7238187", "0.7238187", "0.7238187", "0.72315145", "0.7225574", "0.72221446", "0.7220297", "0.7198355", "0.7181321", "0.7181321", "0.7177478", "0.7177478", "0.7175255", "0.717358", "0.7162965", "0.7138973", "0.7110389", "0.71048284", "0.71016514", "0.7096539", "0.70764196", "0.70747083", "0.7065115", "0.7063023", "0.70544505" ]
0.8084735
20
TeachingUnit Der Test soll ueberpruefen, ob die Methode getPersons(), das richtige Set zurueckgibt mit den enthaltenen PersonTime Objekten.
@Test public void testGetPersons() { assertTrue(teachu1.getPersons().contains(person1)); assertFalse(teachu1.getPersons().contains(new PersonTime())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetPersonTime() {\r\n\t\tteachu1.setPersonTime(newPersonTime);\r\n\r\n\t\tassertTrue(teachu1.getPersons().contains(person2));\r\n\t\tassertFalse(teachu1.getPersons().contains(person1));\r\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "public void testGetPersonChanges() throws Exception {\r\n LOG.info(\"getPersonChanges\");\r\n String startDate = \"\";\r\n String endDate = \"\";\r\n tmdb.getPersonChanges(ID_PERSON_BRUCE_WILLIS, startDate, endDate);\r\n }", "@Test\n public void testFindAll_Person_TimeSlot() {\n // more or less tested in testFindEntity_Person_TimeSlot()\n }", "@Test\r\n\tpublic void teachingUnitContainsPersons() {\r\n\t\tassertTrue(teachu1.containsPerson(\"ErK\"));\r\n\t\tassertTrue(teachu1.containsPerson(\"AlP\"));\r\n\t\tassertFalse(teachu1.containsPerson(\"MaP\"));\r\n\t}", "@Test\r\n\tpublic void testGetTimeslot() {\r\n\t\tassertEquals(time1, breaku1.getTimeslot());\r\n\t\tassertEquals(time1, externu1.getTimeslot());\r\n\t\tassertEquals(time1, meetingu1.getTimeslot());\r\n\t\tassertEquals(time1, teachu1.getTimeslot());\r\n\t}", "@Test\n public void testGetters() {\n LocalDateTime now = LocalDateTime.now();\n user2.setRegistrationDate(now);\n\n assertEquals(\"Email should be a\", \"a\", user2.getEmail());\n assertEquals(\"FirstName should be b\", \"b\", user2.getFirstName());\n assertEquals(\"LastName should be c\", \"c\", user2.getLastName());\n assertEquals(\"Manager should be true\", true, user2.isManager());\n assertEquals(\"Password should be d\", \"d\", user2.getPassword());\n assertEquals(\"RegistrationDate should be \" + now.toString(), now, user2.getRegistrationDate());\n assertEquals(\"UserId should be 1\", 1, user2.getUserId());\n assertEquals(\"Username should be e\", \"e\", user2.getUsername());\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\trooms.add(room1);\r\n\t\trooms1.add(room2);\r\n\r\n\t\tclasses.add(class1);\r\n\t\tclasses1.add(class2);\r\n\r\n\t\tnewPersonTime.add(person2);\r\n\t\tnewSubjects.add(sub2);\r\n\r\n\t\tteachu1.getSubjects().add(sub1);\r\n\r\n\t\t// Hinzufuegen von Klassen\r\n\t\tbreaku1.setClasses(classes);\r\n\t\texternu1.setClasses(classes);\r\n\t\tmeetingu1.setClasses(classes);\r\n\t\tteachu1.setClasses(classes);\r\n\r\n\t\t// Hinzufuegen von Raeumen\r\n\t\tbreaku1.setRooms(rooms);\r\n\t\texternu1.setRooms(rooms);\r\n\t\tmeetingu1.setRooms(rooms);\r\n\t\tteachu1.setRooms(rooms);\r\n\r\n\t\t// Hinzufuegen von Personen\r\n\t\tmeetingu1.getMembers().add(teach1);\r\n\t\tmeetingu1.getMembers().add(teach2);\r\n\r\n\t\t// Hinzufuegen von PersonTime\r\n\t\tteachu1.getPersons().add(person1);\r\n\t\tteachu1.getPersons().add(person2);\r\n\r\n\t\t// setId()\r\n\t\tbreaku1.setId(1);\r\n\t\texternu1.setId(2);\r\n\t\tmeetingu1.setId(3);\r\n\t\tteachu1.setId(4);\r\n\t}", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "@Test\r\n\tpublic void testSetTimeslot() {\r\n\t\tTimeslot t = new Timeslot(20, WEEKDAYS.MONDAY, \"09\", \"00\");\r\n\t\tbreaku1.setTimeslot(t);\r\n\t\texternu1.setTimeslot(t);\r\n\t\tmeetingu1.setTimeslot(t);\r\n\t\tteachu1.setTimeslot(t);\r\n\r\n\t\tassertEquals(t, breaku1.getTimeslot());\r\n\t\tassertEquals(t, externu1.getTimeslot());\r\n\t\tassertEquals(t, meetingu1.getTimeslot());\r\n\t\tassertEquals(t, teachu1.getTimeslot());\r\n\t}", "@Test\n public void getAllPersons() {\n List<Person> persons = personService.getAllPersons();\n\n //Assert\n assertEquals(\"Fulano\", persons.get(0).getFirstName());\n assertEquals(\"John\", persons.get(1).getFirstName());\n }", "@Test\n public void testSetLocations() {\n System.out.println(\"setLocations\");\n List<DTO_Location> locations = new ArrayList<>();\n locations.add(new DTO_Location(new GregorianCalendar().toString(), 2L, 0.1, 0.2));\n DTO_Ride instance = dtoRide;\n instance.setLocations(locations);\n List<DTO_Location> result = instance.getLocations();\n assertEquals(1, locations.size());\n }", "@Test\r\n\tpublic void testGetMembers() {\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach1));\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach2));\r\n\t}", "@Test\r\n\tpublic void testGetStarttime() {\r\n\t\tassertTrue(breaku1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(externu1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(meetingu1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(teachu1.getStarttime().equals(\"08:00\"));\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\n\r\n\t\tut1 = new UpcomingTuition(\"Alice\", \"C1\", \"English Language\", \"25 Aug 2021\");\r\n\t\tut2 = new UpcomingTuition(\"Benny\", \"C2\", \"History\", \"31 Aug 2021\");\r\n\r\n\t\tUTuition = new ArrayList<UpcomingTuition>();\r\n\r\n\t}", "@Test\r\n public void testSetTimeEaten()\r\n {\r\n System.out.println(\"setTimeEaten\");\r\n Time timeEaten = Time.valueOf(\"12:34:56\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n instance.setTimeEaten(timeEaten);\r\n assertEquals(timeEaten, instance.getTimeEaten());\r\n }", "@Test\n void deve_retornar_uma_lista_de_time() {\n List<TimeEntity> timeEntityList = TimeEntityStub.getTimeEntityList();\n when(timeManagementRepository.findAllByUserIdAndAndDate(any(), any())).thenReturn(timeEntityList);\n List<LocalTime> times = timeService.findTimes(TimeModelStub.getTimeModel());\n Assert.assertEquals(\"10:30:00.000\", times.get(0).toString());\n }", "@Before\n public void setUp() throws Exception {\n Person.checkTables();\n this.pat1 = new Patient(\"test1\", \"test\" , \"1\", \"password\", \"male\",\n \"111 E St\", \"insuroco\", \"5555555555\", \"1111111111\", new Date());\n this.pat2 = new Patient(\"test2\", \"test\" , \"2\", \"password2\", \"female\",\n \"111 E St\", \"insuroco\", \"5555555555\", \"1111111111\", new Date());\n this.hp1 = new HealthProfessional(\"pro1\", \"Pro\", \"1\", \"pass1\",\n false, true, false);\n }", "@Test\r\n\tpublic void testSetYear() {\r\n\t\tmeetingu1.setYear(3);\r\n\t\tassertTrue(meetingu1.getYear() == 3);\r\n\t}", "@Test\r\n\tpublic void testSetGetTravelNeeded() {\r\n\t\tteachu1.setTravelNeed(false);\r\n\t\tassertFalse(teachu1.getTravelNeed());\r\n\r\n\t\tteachu1.setTravelNeed(true);\r\n\t\tassertTrue(teachu1.getTravelNeed());\r\n\t}", "@Override\n\tpublic List<PersonVO> test() {\n\t\tSystem.out.println(\"Service 접근\");\n\t\treturn mongoDAO.test();\n\t}", "@Test\n void setDate() {\n }", "@Test\n @Ignore\n public void testGetPerson() {\n Person person = dao.getPerson(\"KWCB-HZV\", \"\");\n assertEquals(\"KWCB-HZV\", person.id);\n assertEquals(\"Willis Aaron Dial\", person.name);\n assertFalse(person.living);\n \n assertArrayEquals(\"Facts don't match expected: \" + Arrays.deepToString(person.facts),\n new Fact[] { \n new Fact(\"birth\", \"23 December 1897\", null, 1897, \"Hooper, Weber, Utah, United States\"),\n new Fact(\"death\", \"19 January 1985\", null, 1985, \"Logan, Cache, Utah, United States\") },\n person.facts);\n assertArrayEquals(\"Parents don't match expected: \" + Arrays.deepToString(person.parents),\n new PersonReference[] {\n new PersonReference(\"KWZP-8K5\", \"William Burris Dial\", \"father\"),\n new PersonReference(\"KWZP-8KG\", \"Temperance Lavina Moore\", \"mother\")\n },\n person.parents);\n assertArrayEquals(\"Spouses don't match expected: \" + Arrays.deepToString(person.spouses),\n new PersonReference[] {\n new PersonReference(\"KWCB-HZ2\", \"Ida Lovisa Beckstrand\", \"wife\")\n },\n person.spouses);\n assertArrayEquals(\"Children don't match expected: \" + Arrays.deepToString(person.children),\n new PersonReference[] {\n new PersonReference(\"KWC6-X7D\", \"Glen \\\"B\\\" Dial\", \"son\"),\n new PersonReference(\"KWJJ-4XH\", \"Merlin \\\"B\\\" Dial\", \"son\")\n },\n person.children);\n }", "@Test\n public void testSetUsersList() {\n System.out.println(\"setUsersList\");\n Set<User> usersList = new HashSet<>();\n usersList.add(new User(\"test1\", \"test@email.com\"));\n sn10.setUsersList(usersList);\n assertEquals(usersList, sn10.getUsersList());\n }", "@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 }", "@Test\n\t \t\n\t public void listAll() {\n\t \n\t List<Persona> list = personaDao.listPersons();\n\t \n\t Assert.assertNotNull(\"Error listado\", list);\n\n\t }", "@Test\n public void getTimeListsByMonth(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNotNull(timeListResource.getTimeListsByMonth(1990,0));\n\n //clean up\n timeListDAO.removeTimeList(1990,0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "@BeforeEach\n public void setup() {\n testTaskList = new TaskList();\n testUi = new Ui();\n\n Event testEvent = new Event(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"31/01/20 0800\"),\n Parser.parseDate(\"31/01/20 1200\"), \"testing\");\n Assignment testAssign = new Assignment(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"20/03/20 0000\"),\n \"testing\");\n testTaskList.addTask(testEvent);\n testTaskList.addTask(testAssign);\n }", "@Test\r\n public void testGetTimeEaten()\r\n {\r\n System.out.println(\"getTimeEaten\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n Time expResult = Time.valueOf(\"10:00:00\");\r\n Time result = instance.getTimeEaten();\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void getPersonsListTest() {\n \tHelloWorldImpl hello=new HelloWorldImpl();\n \tPersonList personInputList=new PersonList();\n \tList<PersonRequest> pl=new ArrayList<PersonRequest>();\n \tPersonRequest pr1=new PersonRequest();\n \tpr1.setName(\"Satish\");\n \tpr1.setSurname(\"Namdeo\");\n \tpr1.setLocation(\"Servicesource\");\n \tPersonRequest pr2=new PersonRequest();\n \tpr2.setName(\"Rahul\");\n \tpr2.setSurname(\"Jain\");\n \tpr2.setLocation(\"Bigdata\");\n \tpl.add(pr1);\n \tpl.add(pr2);\n \tpersonInputList.setPersonList(pl);\n \tPersonList actualResult=hello.getPersonsList(personInputList);\n \t//check for result is not empty.\n \tassertNotNull(\"Result is not null\",actualResult);\n \t\n \tPersonRequest pr3=new PersonRequest();\n \tpr1.setName(\"Sakhshi\");\n \tpr1.setSurname(\"Jain\");\n \tpr1.setLocation(\"Servicesource\");\n \tpl.add(pr3);\n \t\n \t//check for equality\n \tPersonRequest[] actualResultArray = actualResult.getPersonList().toArray(new PersonRequest[actualResult.getPersonList().size()]);\n \tPersonRequest[] expectedArray = pl.toArray(new PersonRequest[pl.size()]);\n \tassertArrayEquals(\"list elements are not equal\",expectedArray, actualResultArray);\n \t//System.out.println(\"personsListDisplayTest result : \"+result.getPersonList().size());\n }", "@Test\n public void setNumberOfHoursTest() {\n e1.setNumberOfHours(200);\n int expected = 200;\n\n assertEquals(\"The expected new number of hours does not match the actual: \"\n , expected, e1.getNumberOfHours());\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tfutureDate = Calendar.getInstance();\n\t\tfutureDate.set(2015, 1, 1);\n\t\tpastDate = Calendar.getInstance();\n\t\tpastDate.set(2000, 1, 1);\n\t}", "@Test\n public void testSetPersonaPaciente() {\n System.out.println(\"setPersonaPaciente\");\n Persona personaPaciente = null;\n Paciente instance = new Paciente();\n instance.setPersonaPaciente(personaPaciente);\n\n }", "@Test\n public void testGetUsersList() {\n System.out.println(\"getUsersList\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "@Test\n public void getOtherPersonTestPerson() throws ParsingException, NoSuchFieldException, ParseException, IllegalAccessException {\n //Init\n Person person = new Person(null);\n Person partner = new Person(null);\n Person otherPerson = new Person(null);\n Union union = new Union(person, partner, new FullDate(\"05 MAR 2020\"), new Town(\"Saintes\", \"Charente-Maritime\"), UnionType.HETERO_MAR);\n\n //Reflection init\n Field idField = person.getClass().getDeclaredField(\"id\");\n idField.setAccessible(true);\n\n //Reflection set\n idField.set(person, \"1\");\n idField.set(partner, \"2\");\n\n //Verification\n assertEquals(partner, union.getOtherPerson(person));\n assertEquals(person, union.getOtherPerson(partner));\n assertNull(union.getOtherPerson(otherPerson));\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tHotel hotel = new Hotel();\n\t\thotel.setName(\"Hennessy Pub\");\n\t\tfinal DateFormat formatDate = new SimpleDateFormat(\"hh:mm a\");\n\t\tTimeSlot slot = new TimeSlot();\n\t\ttry {\n\t\t\tslot.setEndTime((Date)formatDate.parse(\"2:00 am\"));\n\t\t\tslot.setStartTime((Date)formatDate.parse(\"11:30 am\"));\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tMap<Integer, TimeSlot> timeSlots = new HashMap<>(); \n\t\ttimeSlots.put(1, slot);\n\t\ttimeSlots.put(2, slot);\n\t\ttimeSlots.put(7, slot);\n\t\thotel.setTimeSlotsMap(timeSlots);\n\t\t\n\t\thotelsSampleData.add(hotel);\n\t\t\n\t}", "@Test\n public void testGetPersonWithHobby() {\n System.out.println(\"getPersonWithHobby\");\n String hobbyName = \"Gladiator\";\n FacadePerson instance = new FacadePerson(emf);\n // List<PersonDTO> expResult = new ArrayList<>();\n List<PersonDTO> result = instance.getPersonWithHobby(hobbyName);\n assertThat(result.size(), is(2));\n }", "@Test\n public void validSetFlightInformation() {\n testUser.setUsername(\"username\");\n testUser.setLastName(\"lastname\");\n testUser.setPassword(\"password\");\n testUser.setFirstName(\"firstname\");\n\n Assertions.assertEquals(\"username\", testUser.getUsername());\n Assertions.assertEquals(\"lastname\", testUser.getLastName());\n Assertions.assertEquals(\"password\", testUser.getPassword());\n Assertions.assertEquals(\"firstname\", testUser.getFirstName());\n }", "@Test\n public void testSetElections() {\n System.out.println(\"setElections\");\n Collection<Election> elections = new ArrayList<Election>();\n Election mock = new Election();\n elections.add(mock);\n Commissioner instance = new Commissioner();\n instance.setElections(elections);\n assertEquals(instance.getElections(),elections);\n }", "@Test\n public void getTimeListsById(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNotNull(timeListResource.getTimeListById(\"dummy\"));\n\n //clean up\n timeListDAO.removeTimeList(1990,0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "public List<SamplePerson> getAllPeople() {\n //TODO\n throw new NotImplementedException();\n }", "@Test\n public void testSetAge() {\n System.out.println(\"Animal.setAge\");\n animal1.setAge(20);\n animal2.setAge(5);\n assertEquals(20, animal1.getAge());\n assertEquals(5, animal2.getAge());\n }", "@BeforeAll\n public static void setUp() {\n\n unsolvedCourseSchedule = new RoomSchedule();\n\n \n // fixed periods I'm defining\n \tRoomPeriods fixedRoomPeriod1=new RoomPeriods(1, 1);\n \tfixedRoomPeriod1.setSessionName(\"Session Fixed 1\");\n \t\n \tRoomPeriods fixedRoomPeriod2=new RoomPeriods(1, 2);\n \tfixedRoomPeriod2.setSessionName(\"Session Fixed 2\");\n \t\n // I'm adding fixed periods to schedule, these are known fixed schedule items\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod1);\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod2); \n \n /* I'm adding 10 more schedule items which are [null,null] , I'm expecting optoplanner assign period and room numbers. \n * [ THEY ARE LINKED with annotations, @PlanningVariable,\t@ValueRangeProvider(id = \"availablePeriods\", @ProblemFactCollectionProperty]\n */\n for(int i = 0; i < 10; i++){ \t \t\n unsolvedCourseSchedule.getLectureList().add(new RoomPeriods()); \n }\n \n // \n unsolvedCourseSchedule.getPeriodList().addAll(Arrays.asList(new Integer[] { 1, 2, 3 }));\n unsolvedCourseSchedule.getRoomList().addAll(Arrays.asList(new Integer[] { 1, 2 }));\n }", "@Test\n void setWith1PersonInList() {\n //given index, and person chnage person in address book\n //doNothing().when(addressBookMock).set(0,test_Person);\n controllerTest.add(test_Person);\n controllerTest.set(0,test_Person);\n\n assertEquals(controllerTest.get(0),test_Person);\n }", "@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();\r\n\t\t\r\n\t\tPersonaje enemigo=new Orco();\r\n\t\tEspecialidad guerrero=new Guerrero();\r\n\t\tenemigo.setCasta(guerrero);\r\n\t\tenemigo.bonificacionDeCasta();\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(44,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t//ataque normal\r\n\t\tperso.atacar(enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t// utilizar hechizo\r\n\t\tperso.getCasta().getHechicero().agregarHechizo(\"Engorgio\", new Engorgio());\r\n\t\tperso.getCasta().getHechicero().hechizar(\"Engorgio\",enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(20,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t}", "@Test\n public void testFindAllPassengers() {\n System.out.println(\"findAllPassengers\");\n PassengerHandler instance = new PassengerHandler();\n ArrayList<Passenger> expResult = new ArrayList();\n for(int i = 1; i < 24; i++){\n Passenger p = new Passenger();\n p.setPassengerID(i);\n p.setForename(\"Rob\");\n p.setSurname(\"Smith\");\n p.setDOB(new Date(2018-02-20));\n p.setNationality(\"USA\");\n p.setPassportNumber(i);\n expResult.add(p);\n }\n \n ArrayList<Passenger> result = instance.findAllPassengers();\n assertEquals(expResult, result);\n }", "public static Person teste() {\n\t\treturn null;\n\t}", "@Test\n public void testSetFechaPago() {\n System.out.println(\"setFechaPago\");\n Date fechaPago = null;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setFechaPago(fechaPago);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testPerson() {\n }", "@Test\r\n\tpublic void loadTeams() {\r\n\t\tSet<Team> response = null;\r\n\t\tresponse = service.loadTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadTeams\r\n\t}", "@Test\r\n public void testGetPersonInfo() throws MovieDbException {\r\n LOG.info(\"getPersonInfo\");\r\n Person result = tmdb.getPersonInfo(ID_PERSON_BRUCE_WILLIS);\r\n assertTrue(\"Wrong actor returned\", result.getId() == ID_PERSON_BRUCE_WILLIS);\r\n }", "@Test\n void getAndSetDate() {\n }", "@Test\n public void addTimeTest() {\n // TODO: test addTime\n }", "@Before\n public void setUp() throws Exception{\n\n testTerminsatz = new Terminsatz();\n System.out.println(\"Terminsatz erstellt\");\n\n testTermin1 = new Termin();\n testTermin1.setBez(\"Vorlesung Softwaretechnik\"); //neues Terminobjekt anlegen\n testTermin1.setStt(sdf.parse(\"2011.02.15-09:45:00\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin1.setStp(sdf.parse(\"2011.02.15-11:15:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin1.setQuelle(1); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin1.setPrio(10);\n testTermin1.setVbz(0);\n testTermin1.setNbz(30);\n testTermin1.setOrt(\"8-203\");\n testTermin1.setTyp(\"Vorlesung\");\n testTermin1.setBem(\"Schreibzeug mitnehmen\");\n testTerminsatz.tAnlegen(testTermin1);\n System.out.println(\"Termin 1 eingefügt\");\n\n testTermin2 = new Termin();\n testTermin2.setBez(\"Seminar\"); //neues Terminobjekt anlegen\n testTermin2.setStt(sdf.parse(\"2011.02.15-09:15:00\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin2.setStp(sdf.parse(\"2011.02.15-10:45:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin2.setQuelle(1); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin2.setPrio(9);\n testTermin2.setVbz(15);\n testTermin2.setNbz(15);\n testTermin2.setOrt(\"Mittweida\");\n testTermin2.setTyp(\"Seminar\");\n testTermin2.setBem(\"\");\n testTerminsatz.tAnlegen(testTermin2);\n System.out.println(\"Termin 2 eingefügt\");\n/*\n testTermin3 = new Termin();\n testTermin3.setBez(\"C#\"); //neues Terminobjekt anlegen\n testTermin3.setStt(sdf.parse(\"2009.03.09-12:45:00\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin3.setStp(sdf.parse(\"2009.03.08-14:00:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin3.setQuelle(1); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin3.setPrio(-1);\n testTermin3.setVbz(0);\n testTermin3.setNbz(\"ABC\");\n testTermin3.setOrt(\"//////.\");\n testTermin3.setTyp(\"Praktikum\");\n testTermin3.setBem(\"1337\");\n System.out.println(\"Termin einfügen: \" + testTerminsatz.tAnlegen(testTermin3));\n\n testTermin4 = new Termin();\n testTermin4.setBez(\"Zahnarzt\"); //neues Terminobjekt anlegen\n testTermin4.setStt(sdf.parse(\"\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin4.setStp(sdf.parse(\"2013.AA.32-25:61:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin4.setQuelle(2); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin4.setPrio(\"A\");\n testTermin4.setVbz(\"<---\"\");\n testTermin4.setNbz(\"---\");\n testTermin4.setOrt(\"Praxis\");\n testTermin4.setTyp(\"Zahnarzt\");\n testTermin4.setBem(\"----\");\n System.out.println(\"Termin einfügen: \" + testTerminsatz.tAnlegen(testTermin4));\n*/ }", "@Test\n public void setFetchCount()\n {\n TimeLine timeLine = new TimeLine();\n int expected = 5;\n \n timeLine.setFetchCount(expected);\n int actual = timeLine.getFetchCount();\n \n // assertEquals() afirma que dos valores u objetos son iguales\n assertEquals(expected, actual);\n }", "@Test\n public void testGetClassAssociatedTeacher() {\n System.out.println(\"getClassAssociatedTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n instance.setClasses(classes);\n\n assertEquals(classes, instance.getClassAssociatedTeacher(teacher));\n System.out.println(\"PASS with associated teacher\");\n\n assertEquals(0, instance.getClassAssociatedTeacher(teacher2).size());\n System.out.println(\"PASS with unassociated teacher\");\n\n System.out.println(\"PASS ALL\");\n }", "@Test\r\n public void testSetHobbies() {\r\n System.out.println(\"setHobbies\");\r\n String hobbies = null;\r\n Interviewee instance = new Interviewee();\r\n instance.setHobbies(hobbies);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "public TreeMap<Integer, Person> getPersons() {\n return _persons;\n }", "@Before\n public void setUp() {\n e1 = new Employee(\"Pepper Potts\", 16.0, 152);\n e2 = new Employee(\"Nancy Clementine\", 22.0, 140);\n\n }", "@Test\n public void testGetInfluentialUsers01() {\n System.out.println(\"getInfluentialUsers\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n\n Set<User> result = sn10.getInfluentialUsers();\n assertEquals(expResult, result);\n }", "@Test\n public void updateTimeList(){\n userDAO.createUser(new User(\"dummy2\", \"dummy2\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy2\", 1990, 0, 60, 0, 0));\n\n assertTrue(timeListResource.updateTimeList(new TimeList(\"dummy2\", 1990, 0, 65, 1, 1)));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy2\");\n userDAO.removeUser(\"dummy2\");\n }", "@Override\r\n @BeforeEach\r\n public void init() throws Exception\r\n {\r\n objetTest = new LocalDateTimeConverter();\r\n }", "private static void LessonClassObjects() {\n Person person1 = new Person();\n Person person2 = new Person();\n\n //Set title, firstname and lastname\n person1.setTitle(\"Mr.\");\n person1.setFirstName(\"Jordan\");\n person1.setLastName(\"Walker\");\n\n person2.setTitle(\"Mrs.\");\n person2.setFirstName(\"Kelsey\");\n person2.setLastName(\"Walker\");\n\n //Print out\n System.out.println(person1.getTitle()+ \" \" + person1.getFirstName() + \" \" + person1.getLastName());\n System.out.println(person2.getTitle()+ \" \" + person2.getFirstName() + \" \" + person2.getLastName());\n\n // Set super BaseBO class\n person1.setId(7);\n System.out.println(person1.getFirstName() + \" Id is: \" + person1.getId());\n }", "@Test\n public void testSetCitiesList() {\n System.out.println(\"setCitiesList\");\n Set<City> citiesList = new HashSet<>();\n\n sn10.setCitiesList(citiesList);\n assertEquals(citiesList, sn10.getCitiesList());\n }", "@Test\r\n public void testSetStartTime() {\r\n System.out.println(\"setStartTime\");\r\n String startTime = \"\";\r\n \r\n instance.setStartTime(startTime);\r\n assertEquals(startTime, instance.getStartTime());\r\n \r\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 }", "@Test\n public void testGetMyTasks_ByPotentialOwner() throws HTException {\n\n log.info(\"testGetMyTasks_ByPotentialOwner\");\n \n Task t = createTask_OnePotentialOwner();\n\n List<Task> results = this.services.getMyTasks(\"user1\", TaskTypes.ALL,\n GenericHumanRole.POTENTIAL_OWNERS, null,\n new ArrayList<Status>(), null, null, null, null, 0);\n\n Assert.assertEquals(1, results.size());\n\n Task taskToCheck = results.get(0);\n Person p = this.assigneeDao.getPerson(\"user1\");\n Assert.assertNotNull(p);\n \n log.info(taskToCheck.getPotentialOwners());\n Assert.assertEquals(taskToCheck.getActualOwner(), p);\n Assert.assertEquals(taskToCheck.getPotentialOwners().size(), 1);\n \n log.info(\"Potential owner: \" + taskToCheck.getPotentialOwners().iterator().next());\n log.info(\"Potential owner: \" + p);\n \n Assert.assertEquals(p, taskToCheck.getPotentialOwners().iterator().next());\n \n //TODO why it fails??? jnb???\n //Assert.assertTrue(taskToCheck.getPotentialOwners().contains(p));\n \n log.info(\"~testGetMyTasks_ByPotentialOwner\");\n }", "@Test\n public void getTimeListsByIdCatch(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertTrue(timeListResource.getTimeListById(\"notdummy\").isEmpty());\n\n //clean up\n timeListDAO.removeTimeList(1990,0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "@Test\n @DisplayName(\"PersonDTOAssembler - WithMotherAndFather\")\n void personDTOAssembler_WithMotherAndFather() {\n String mariaEmail = \"maria@gmail.com\";\n String mariaName = \"Maria Silva\";\n LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25);\n String mariaBirthplace = \"Braga\";\n\n Email emailMaria = Email.createEmail(mariaEmail);\n Name nameMaria = Name.createName(mariaName);\n Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate);\n Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace);\n\n PersonID fatherID = PersonID.createPersonID(\"pp@gmail.com\");\n String fatherEmail = fatherID.getEmail().getEmail();\n PersonID motherID = PersonID.createPersonID(\"mm@gmail.com\");\n String motherEmail = motherID.getEmail().getEmail();\n\n\n\n //PersonDTO\n String personMariaBirthdate = birthateMaria.getBirthdate().toString();\n\n //Expected\n PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, fatherEmail, motherEmail);\n\n //Act\n PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler();\n PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID);\n\n //Assert\n assertEquals(personDTOExpected, personDTO);\n }", "@Test\r\n\t// numero 43\r\n\tvoid testGetTime() {\n\t\tclock.setVirtual(true);\r\n\t\tlong result = clock.getTime();\r\n\t\tlong expected = 0;\r\n\t\tassertEquals(expected, result);\r\n\t\r\n\t// numero 44\r\n\t\t//sinon cela retourne Date().getTime()\r\n\t\tclock.setVirtual(false);\r\n\t\tlong result2 = clock.getTime();\r\n\t\tlong expected2 = new Date().getTime();\r\n\t\tassertEquals(expected2, result2);\r\n\r\n\t}", "@Test\n public void testSetPagamentos() {\n }", "@Test\n public void testGetCitiesList() {\n System.out.println(\"getCitiesList\");\n Set<City> expResult = new HashSet<>();\n expResult.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n expResult.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n expResult.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n expResult.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n expResult.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n expResult.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n expResult.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n expResult.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n expResult.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n expResult.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n Set<City> result = sn10.getCitiesList();\n assertEquals(expResult, result);\n }", "void populateObjects(UnitTestDescriptor unitTestDescriptor) {\n if (!unitTestDescriptor.isExternalTcesEnabled()) {\n PipelineTask tpsPipelineTask = createPipelineTask(TPS_TASK_ID, TPS_INSTANCE_ID);\n tpsDbResults = DvMockUtils.mockTpsResult(dvJMockTest,\n tpsOperations, FluxType.SAP,\n unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(),\n tpsPipelineTask,\n unitTestDescriptor.getSkyGroupId(),\n unitTestDescriptor.getStartKeplerId(),\n unitTestDescriptor.getEndKeplerId(),\n unitTestDescriptor.getTargetsPerTable(),\n unitTestDescriptor.getPlanetaryCandidatesFilterParameters());\n keplerIds.clear();\n List<FsId> fsIdList = new ArrayList<FsId>(tpsDbResults.size());\n for (TpsDbResult tpsDbResult : tpsDbResults) {\n fsIdList.add(TpsFsIdFactory.getDeemphasizedNormalizationTimeSeriesId(\n TPS_INSTANCE_ID,\n tpsDbResult.getKeplerId(),\n tpsDbResult.getTrialTransitPulseInHours()));\n keplerIds.add(tpsDbResult.getKeplerId());\n }\n if (tpsDbResults.size() > 0) {\n producerTaskIds.add(TPS_TASK_ID);\n MockUtils.mockReadFloatTimeSeries(dvJMockTest, getFsClient(),\n unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(), TPS_TASK_ID,\n fsIdList.toArray(new FsId[fsIdList.size()]), false);\n }\n dvJMockTest.allowing(tpsCrud).retrieveLatestTpsRun(TpsType.TPS_FULL);\n dvJMockTest.will(returnValue(tpsPipelineTask.getPipelineInstance()));\n } else {\n externalTceModel = DvMockUtils.mockExternalTceModel(dvJMockTest,\n externalTceModelOperations,\n unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(),\n unitTestDescriptor.getSkyGroupId(),\n unitTestDescriptor.getStartKeplerId(),\n unitTestDescriptor.getEndKeplerId(),\n unitTestDescriptor.getTargetsPerTable(),\n unitTestDescriptor.getPlanetaryCandidatesFilterParameters());\n keplerIds.clear();\n for (ExternalTce tce : externalTceModel.getExternalTces()) {\n if (!keplerIds.contains(tce.getKeplerId())) {\n keplerIds.add(tce.getKeplerId());\n }\n }\n DvMockUtils.mockSkyGroupIdsForKeplerIds(dvJMockTest,\n celestialObjectOperations, keplerIds,\n unitTestDescriptor.getSkyGroupId());\n }\n celestialObjectParametersListByKeplerId = DvMockUtils.mockCelestialObjectParameterLists(\n dvJMockTest, celestialObjectOperations, keplerIds,\n unitTestDescriptor.getSkyGroupId(),\n unitTestDescriptor.getBoundedBoxWidth());\n targetTableLogs = DvMockUtils.mockTargetTables(dvJMockTest, targetCrud,\n TargetType.LONG_CADENCE, unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(),\n unitTestDescriptor.getTargetTableCount());\n cadenceTimes = MockUtils.mockCadenceTimes(dvJMockTest, mjdToCadence,\n CadenceType.LONG, unitTestDescriptor.getStartCadence(),\n unitTestDescriptor.getEndCadence(), true, false);\n quarters = new ArrayList<Integer>(targetTableLogs.size());\n for (int i = 0; i < targetTableLogs.size(); i++) {\n quarters.add(i + 1);\n }\n skyGroups = DvMockUtils.mockSkyGroups(dvJMockTest, kicCrud,\n unitTestDescriptor.getSkyGroupId());\n observedTargetsList = DvMockUtils.mockTargets(dvJMockTest, targetCrud,\n targetTableLogs, keplerIds, allTargetFsIds);\n\n ancillaryPipelineDataByTargetTableLog = DvMockUtils.mockAncillaryPipelineData(\n dvJMockTest, mjdToCadence, rollTimeOperations, ancillaryOperations,\n unitTestDescriptor.getAncillaryPipelineMnemonics(),\n targetTableLogs, quarters, ANCILLARY_TASK_ID);\n if (unitTestDescriptor.getAncillaryPipelineMnemonics().length > 0) {\n producerTaskIds.add(ANCILLARY_TASK_ID);\n }\n DvMockUtils.mockArgabrighteningIndices(dvJMockTest, fsClient,\n targetTableLogs, ARGABRIGHTENING_TASK_ID);\n producerTaskIds.add(ARGABRIGHTENING_TASK_ID);\n backgroundBlobFileSeriesList = DvMockUtils.mockBackgroundBlobFileSeries(\n dvJMockTest, blobOperations, targetTableLogs,\n BACKGROUND_BLOB_TASK_ID);\n if (backgroundBlobFileSeriesList.size() > 0) {\n producerTaskIds.add(BACKGROUND_BLOB_TASK_ID);\n }\n motionBlobFileSeriesList = DvMockUtils.mockMotionBlobFileSeries(\n dvJMockTest, blobOperations, targetTableLogs, MOTION_BLOB_TASK_ID);\n if (motionBlobFileSeriesList.size() > 0) {\n producerTaskIds.add(MOTION_BLOB_TASK_ID);\n }\n cbvBlobFileSeriesList = DvMockUtils.mockCbvBlobFileSeries(dvJMockTest,\n blobOperations, targetTableLogs, CBV_BLOB_TASK_ID);\n if (cbvBlobFileSeriesList.size() > 0) {\n producerTaskIds.add(CBV_BLOB_TASK_ID);\n }\n\n DvMockUtils.mockUkirtImages(dvJMockTest, blobOperations,\n AbstractDvPipelineModuleTest.MATLAB_WORKING_DIR, keplerIds);\n\n DvMockUtils.mockPlannedTargets(dvJMockTest, targetSelectionCrud,\n new HashSet<Integer>(keplerIds));\n }", "public void testGetAllTimeEntries() throws Exception {\r\n assertEquals(\"The time_entry table should be empty.\", 0, instance.getAllTimeEntries().length);\r\n }", "@Override\n public TestingSet createTestingSet(int individuals) \n {\n return TestingSet.createSingleTrialForAllIndividuals(individuals);\n }", "@Test\n\tpublic void testListsAndSets() throws Exception {\n\t\ttestWith(TestClassListAndSet.getInstance());\n\t}", "public void testGetTimeEntries() throws Exception {\r\n TimeEntry timeEntry = AccuracyTestHelper.createTimeEntry(null);\r\n instance.createTimeEntries(new TimeEntry[] {timeEntry}, true);\r\n TimeEntry[] timeEntries = instance.getTimeEntries(new long[] {timeEntry.getId()});\r\n\r\n assertEquals(\"Failed to get the time entries.\", timeEntries[0], timeEntry);\r\n }", "@Test\n\tpublic static void runAllTheTests() {\n\t\ttestGetters();\n\t}", "@Test\n public void testGetElections() {\n testSetElections();\n }", "@Test(dependsOnMethods = {\"testAddTeam\"})\n\tpublic void testUpdateTeam() {\n\t}", "@Test\r\n\tpublic void testGetFriends() {\r\n\t\tPerson p = new Person(0);\r\n\t\tArrayList<Friend> f = p.getFriends();\r\n\t\tassertNotNull(f);\r\n\t}", "@Test\n public void getStaff() {\n \n Assert.assertEquals(aService.getDoctorAge(), 23);\n Assert.assertEquals(nService.getDoctorName(), \"Karriem\");\n }", "public void setPersons(Hashtable<String, Person> persons) {\r\n\t\tthis.persons = persons;\r\n\t}", "@Test\n public void testSetNotesTaken() {\n System.out.println(\"setNotesTaken\");\n ArrayList<Note> notesTaken = new ArrayList<>();\n notesTaken.add(new Note());\n CharterDto instance = new CharterDto(\"Test name\");\n instance.setNotesTaken(notesTaken);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@Override\n public LinkedHashSet<String> testSet() {\n LinkedHashSet<String> testNameSet = new LinkedHashSet<>();\n testNameSet.add(\"test1\");\n return testNameSet;\n }", "@BeforeEach\n void setUp() {\n personListTest = new ArrayList<>();\n test_Person = new Person(\"Jane\",\"Dorian\",\n \"987 Westbrook Blvd\",\"Chincinnati\",\"OH\",\"43123\",\"123456789\");\n\n// model.addColumn(\"Col1\");\n// model.addColumn(\"Col2\");\n// model.addColumn(\"Col3\");\n// model.addColumn(\"Col4\");\n// model.addColumn(\"Col5\");\n// model.addColumn(\"Col6\");\n// model.addColumn(\"Col7\");\n test_AddressBook = new AddressBook();\n controllerTest = new AddressBookController(test_AddressBook);\n }", "@Test\n public void createTimelist(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n assertTrue(timeListResource.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0)));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy\");\n userDAO.removeUser((\"dummy\"));\n }", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "@Override\r\n\tpublic ArrayList<Person> getAllPersons() {\n\t\treturn null;\r\n\t}", "@BeforeClass\r\n public static void setUpClass() throws Exception {\r\n P1 = new Partido(\"Camp Nou\",\"2010-04-28\");\r\n P2 = new Partido(\"Camp Nou\",\"2010-04-28\");\r\n P3 = new Partido(\"Camp Nou\",\"2010-04-28\"); \r\n PE = new Partido(\"Camp Nou\",\"2010-04-28\"); \r\n }", "@Test\n public void testGetPersonaPaciente() {\n System.out.println(\"getPersonaPaciente\");\n Paciente instance = new Paciente();\n Persona expResult = null;\n Persona result = instance.getPersonaPaciente();\n assertEquals(expResult, result);\n\n }", "@Test\n\tpublic void testPersonGETMethod() {\n\n\t\tString emailId = \"himani@abc.com\";\n\t\tPerson person = null;\n\t\tClient client = Client.create();\n\t\tWebResource webResource2 = client\n\t\t\t\t.resource(\"http://localhost:8080/MeetingSchedulerProject/meeting/personservice/\"\n\t\t\t\t\t\t+ emailId);\n\t\tClientResponse response2 = webResource2.accept(\n\t\t\t\tMediaType.APPLICATION_JSON).get(ClientResponse.class);\n\t\tperson = response2.getEntity(Person.class);\n\t\tassertEquals(person.getEmailId(), \"himani@abc.com\");\n\t}", "public static ArrayList<TeeTime> getTestTeeTimes(int day)\r\n\t{\r\n\t\t// String name, int golfers, int time, String rate, int day, String uid\r\n\t\t\r\n\t\t// Create a bunch of tee times\r\n\t\tTeeTime test1 = new TeeTime(\"Smith\", 4, 730, \"Regular\", 1, \"Josh101\");\r\n\t\tTeeTime test2 = new TeeTime(\"Johnson\", 4, 750, \"Regular\", 1, \"Josh101\");\r\n\t\tTeeTime test3 = new TeeTime(\"Franks\", 4, 1230, \"Internet\", 1, \"Josh101\");\r\n\t\tTeeTime test4 = new TeeTime(\"Williams\", 4, 700, \"Regular\", 2, \"Josh101\");\r\n\t\tTeeTime test5 = new TeeTime(\"Stine\", 4, 730, \"Hotel\", 2, \"Josh101\");\r\n\t\tTeeTime test6 = new TeeTime(\"Boyer\", 2, 740, \"Internet\", 2, \"Josh101\");\r\n\t\tTeeTime test7 = new TeeTime(\"Cooper\", 1, 740, \"Regular\", 2, \"Josh101\");\r\n\t\t\r\n\t\t// Add them to ArrayList\r\n\t\t\r\n\t\tArrayList<TeeTime> test = new ArrayList<>();\r\n\t\ttest.add(test1);\r\n\t\ttest.add(test2);\r\n\t\ttest.add(test3);\r\n\t\ttest.add(test4);\r\n\t\ttest.add(test5);\r\n\t\ttest.add(test6);\r\n\t\ttest.add(test7);\r\n\t\t\r\n\t\t// Get rid of the days that are not asked for\r\n\t\tfor(int i = 0; i < test.size(); i++)\r\n\t\t{\r\n\t\t\tif(test.get(i).getDay() != day) \r\n\t\t\t{\r\n\t\t\t\ttest.remove(i);\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\treturn test;\r\n\r\n\t}", "@Test\n\tpublic void testGetEnrolledVolunteers() {\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 0);\n\t\tinitialJob.addVolunteer((Volunteer) volunteer, WorkLoad.MEDIUM);\n\t\tassertEquals(initialJob.getEnrolledVolunteers().size(), 1);\n\t\t\n\t\t// tests the equivalence of the volunteers in the list\n\t\tassertTrue(initialJob.getEnrolledVolunteers().get(0).equals(volunteer));\n\t}", "@Test\r\n\tpublic void testLazyGetters() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tArrayList<FriendRequest> x;\r\n\t\tx = p1.getFriendRequests();\r\n\t\tassertNotNull(x);\r\n\t\tx = null;\r\n\t\tx = p1.getFriendRequestsOutgoing();\r\n\t\tassertNotNull(x);\r\n\t\t\r\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n user.setName(\"Mauricio\");\n assertEquals(\"Mauricio\", user.getName());\n }", "@Ignore\n @Test\n public void whenAddTwoUsersWithTheSameNameAndBirthdayToHashMapThenGetTwoElementsAdded() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", birthday);\n\n Map<User, String> map = new HashMap<>();\n map.put(john, \"John Snow\");\n map.put(snow, \"John Snow\");\n System.out.println(map);\n\n assertThat(\"Map has two values.\", map.size(), is(2));\n }", "@Test\n public void getSingleTimeList() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNotNull(timeListResource.getSingleTimeList(1990, 0, \"dummy\"));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy\");\n userDAO.removeUser(\"dummy\");\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}", "@Test\n public void testSetValue() throws Exception {\n\n Map<String, IMetaData<SampleMark>> name2MetaData;\n name2MetaData = factory.class2MetaDataByFullPath(Person.class);\n\n for (Person p : persons) {\n\n float weight = SampleDataGenerator.getSampleWeight(random, p.weight);\n int age = p.getAge();\n String lastName = p.getLastname();\n\n IMetaData<SampleMark> metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|weight\");\n metaData.setValue(p, weight);\n Person.assertPerson(p, lastName, weight, age);\n }\n\n for (Person p : persons) {\n\n float weight = p.weight;\n int age = p.getAge();\n String lastName =\n SampleDataGenerator.getSampleLastName(random, p.getLastname());\n IMetaData<SampleMark> metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|lastname\");\n metaData.setValue(p, lastName);\n Person.assertPerson(p, lastName, weight, age);\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Car.class);\n for (Car c : cars) {\n\n Driver driver = c.getDriver();\n String lastName = driver.getLastname();\n float weight = SampleDataGenerator.getSampleWeight(random, driver.weight);\n int age = driver.getAge();\n boolean hasDrivingLicense = driver.hasDrivingLicense;\n\n Engine engine = c.getEngine();\n String productName =\n SampleDataGenerator.getSampleProductName(random, engine.productName);\n\n Oil oil = engine.oil;\n String producentName = oil.producentName;\n String vendorName = oil.vendorName;\n\n IMetaData<SampleMark> metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\");\n\n metaData.setValue(c, weight);\n\n metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\");\n\n metaData.setValue(c, productName);\n\n Driver.assertDriver(driver, lastName, weight, age,\n hasDrivingLicense);\n\n Engine.assertEngine(engine, productName);\n\n Oil.assertOil(oil, vendorName, producentName);\n\n }\n\n }" ]
[ "0.75827634", "0.651128", "0.63047045", "0.61985606", "0.6143282", "0.6114574", "0.6101377", "0.60213834", "0.5981455", "0.59103364", "0.5887411", "0.58433133", "0.5808419", "0.57477415", "0.570556", "0.56915", "0.5626328", "0.56243235", "0.55635256", "0.5531218", "0.5513927", "0.5475478", "0.54514927", "0.54476756", "0.5442557", "0.5411546", "0.5404193", "0.5401454", "0.53973776", "0.53746045", "0.5374372", "0.5359609", "0.53583723", "0.534966", "0.5337304", "0.53249484", "0.53166515", "0.5311149", "0.53074175", "0.5300921", "0.5299402", "0.52888674", "0.5275834", "0.52643913", "0.5262586", "0.5254583", "0.5247625", "0.52472913", "0.5246131", "0.5241092", "0.5238651", "0.52245176", "0.52125746", "0.52081054", "0.520014", "0.5195693", "0.51955116", "0.5190629", "0.51905274", "0.51891786", "0.5184507", "0.5184066", "0.51817715", "0.51806104", "0.5177006", "0.51745164", "0.5173069", "0.5170119", "0.51676047", "0.51674736", "0.5167137", "0.516432", "0.5161254", "0.515839", "0.5158374", "0.5158204", "0.5157642", "0.51547223", "0.5154483", "0.5151246", "0.51488626", "0.51443034", "0.51419234", "0.5141007", "0.5138101", "0.5135855", "0.51348364", "0.5133749", "0.5131538", "0.5130249", "0.5121865", "0.5118893", "0.5118765", "0.511494", "0.5111649", "0.51092285", "0.5108309", "0.51072574", "0.51023334", "0.50979334" ]
0.7355842
1
Der Test soll ueberpruefen, ob die Methode getSubjects(), das richtige Set zurueckgibt mit den enthaltenen Subject Objekten.
@Test public void testGetSubjects() { assertTrue(teachu1.getSubjects().contains(sub1)); assertFalse(teachu1.getSubjects().contains(sub2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetSubjects() {\r\n\t\tteachu1.setSubjects(newSubjects);\r\n\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub2));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub1));\r\n\t}", "@Test\n public void subjectSetTest() {\n // TODO: test subjectSet\n }", "@Test\r\n\tpublic void testContainsSubject() {\r\n\t\tassertTrue(teachu1.containsSubject(sub1));\r\n\t\tassertFalse(teachu1.containsSubject(sub2));\r\n\t}", "public String getSubjects() {\r\n return subjects;\r\n }", "public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }", "public ArrayList<MatchList> getSubjects() { return this.subjects; }", "public void setSubject(Subject subject);", "public void setSubject (String s) {\n subject = s;\n }", "public List<ACSubjectInfo> getSubjects() {\n return subjects;\n }", "public void setSubjects(List<ACSubjectInfo> subjects) {\n this.subjects = subjects;\n }", "public Hashtable<String, Subject> getMySubjects(){\n\t\treturn mySubjects;\n\t}", "@Test\n public void subjectTest() {\n // TODO: test subject\n }", "public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }", "public Name getSubject() {\r\n return subject;\r\n }", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "public void setSubject(String subject)\n {\n _subject = subject;\n }", "public SubjectInfo getSubject() {\n return this.subject;\n }", "public void setSubject(String subject)\r\n {\r\n m_subject = subject;\r\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject()\r\n {\r\n return subject;\r\n }", "public void addSubject(Subject s) {\n // TODO implement here\n }", "Subject getSubject(){\n\t\treturn subject;\n\t}", "public String getSubject() {\n return subject;\n }", "@Test\n public void getSubjectTest() throws Exception {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n\n Subject[] hosts = {\n newSubject(\"router\", \"IP\", \"router\", \"172.16.1.1\", \"support@ebayopensource.org\"),\n newSubject(\"localip\", \"IP\", \"locaip\", \"172.16.1.100\", \"support@ebayopensource.org\"),\n newSubject(\"localhost\", \"IP\", \"localhost\", \"127.0.0.1\", \"support@ebayopensource.org\"),\n };\n int len = hosts.length;\n \n int idx = -1;\n SubjectKey[] keys = new SubjectKey[len];\n for (Subject host : hosts) {\n keys[++idx] = ip.createSubject(host, userKey);\n assertEquals(hosts[idx].getSubjectName(), keys[idx].getSubjectName());\n }\n \n for (SubjectKey key : keys) {\n Long subjectId = key.getSubjectId();\n Map<Long, Subject> result = ip.getSubjectById(subjectId);\n\n assertNotNull(result);\n \n Subject value = result.values().toArray(new Subject[1])[0];\n assertEquals(subjectId, result.keySet().toArray(new Long[1])[0]);\n assertEquals(key.getSubjectName(), value.getSubjectName());\n }\n\n for (SubjectKey key : keys) {\n String subjectName = key.getSubjectName();\n Map<Long, Subject> result = ip.getSubjectByName(subjectName);\n \n assertNotNull(result);\n \n Subject value = result.values().toArray(new Subject[1])[0];\n assertEquals(key.getSubjectId(), result.keySet().toArray(new Long[1])[0]);\n assertEquals(key.getSubjectName(), value.getSubjectName());\n }\n }", "public Subject getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public void setSubject(String v) \n {\n \n if (!ObjectUtils.equals(this.subject, v))\n {\n this.subject = v;\n setModified(true);\n }\n \n \n }", "public Subject getSubject();", "public Subject getSubject(){\n\t\treturn sub;\n\t}", "public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}", "public void setSubject(Name subject) {\r\n this.subject = subject;\r\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public String[] getSubjects() {\n/* 329 */ return getStringArray(\"subject\");\n/* */ }", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public List<Subject> getSubject() {\n\t\treturn sub_dao.getSubject();\r\n\t}", "boolean isSetSubject();", "@Test\n public void subjectIdTest() {\n // TODO: test subjectId\n }", "public void setSubject(String subject) {\r\n\t\tthis.subject= subject;\r\n\t}", "public String getmSubject() {\n return mSubject;\n }", "@Test\n public void getSubjectAssignmentOfSubjectGroupTest() throws Exception\n {\n createSubjectGroupTest();\n \n String groupName = \"network\";\n IPSubject ip = new IPSubject();\n\n Map<Long, SubjectGroup> result = ip.getSubjectGroupInfoByName(groupName);\n\n assertNotNull(result);\n Long groupId = result.keySet().toArray(new Long[1])[0];\n\n Map<Long, Subject> resultSubject = ip.getSubjectAssignmentOfSubjectGroup(groupId);\n \n assertNotNull(resultSubject);\n Subject[] subjectList = resultSubject.values().toArray(new Subject[0]);\n \n assertEquals(2, subjectList.length);\n assertEquals(\"workstation\", subjectList[0].getSubjectName());\n assertEquals(\"gateway\", subjectList[1].getSubjectName());\n }", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "@Override\n\t\tpublic Resource getSubject() {\n\t\t\treturn subject;\n\t\t}", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public String getSubject()\r\n {\r\n return (m_subject);\r\n }", "public void setSubject(Subject subject) {\n\t\tthis.subject = subject;\n\t}", "@Override\n\tpublic List<Tsubject> randomOneFindSubject() {\n\t\treturn subjectMapper.randomOneFindSubject();\n\t}", "public void setSubject(String newValue);", "Object getSubject();", "void setSubject(org.hl7.fhir.ResourceReference subject);", "public List<Subject> getSubjectList() {\r\n\r\n\t\tlogger.info(\"*** Service : Displaying Subject information ***\");\r\n\t\treturn subjectRepository.findAll();\r\n\t}", "@Override\n public boolean isSubject() {\n return false;\n }", "public void setmSubject(String mSubject) {\n this.mSubject = mSubject;\n }", "public void setSubject(String subject) {\n\t\tthis.subject = subject;\n\t}", "@Test\n public void getSubjectTypeInfoTest() throws Exception {\n IPSubject subjType = new IPSubject();\n \n SubjectTypeInfo typeInfo = subjType.getSubjectTypeInfo();\n assertEquals(\"IP\", typeInfo.getName());\n assertEquals(false, typeInfo.isExternal());\n }", "@Test\n public void testGetSet() {\n\n Transform test1 = new Transform();\n test1.setOrientation(new Quaternion(6, 7, 8, 9));\n test1.setPosition(new Vector3(1, 2, 3));\n\n Assert.assertEquals(test1.getOrientation().equals(new Quaternion(6, 7, 8, 9)), true);\n Assert.assertEquals(test1.getPosition().equals(new Vector3(1, 2, 3)), true);\n\n Transform test2 = new Transform(new Vector3(4, 5, 6), new Quaternion(4, 3, 2, 1));\n test2.set(test1);\n\n Assert.assertEquals(test2.getOrientation().equals(new Quaternion(6, 7, 8, 9)), true);\n Assert.assertEquals(test2.getPosition().equals(new Vector3(1, 2, 3)), true);\n }", "@Test\n public void getManyCoursesOfCurrentSemesterForSubjectTest() throws Exception {\n Lehrveranstaltung course1 = courseRepository.save(new Lehrveranstaltung(subject, ws2016));\n Lehrveranstaltung course2 = courseRepository.save(new Lehrveranstaltung(subject, ws2016));\n\n // the user should see a list of courses of this subject\n mockMvc.perform(\n get(\"/student/lehrveranstaltungen/semester/subject\")\n .with(user(\"student\").roles(\"STUDENT\"))\n .param(\"subjectId\", subject.getId().toString())\n ).andExpect(\n view().name(\"/student/courses-for-subject\")\n ).andExpect(\n model().attribute(\"coursesForSemesterAndSubject\", asList(course1, course2))\n );\n }", "public List getSubjectVariables() {\r\n return subjectVariables;\r\n }", "@Override\n\tpublic List<Subject> getAllSubjects() throws SQLException {\n\t\treturn null;\n\t}", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public java.util.Set<jkt.hms.masters.business.MasSubTest> getMasSubTests() {\n\t\treturn masSubTests;\n\t}", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "@Test\n public void createSubjectTest() throws Exception {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n Subject localhost = newSubject(\"localhost\", \"IP\", \"localhost\", \"127.0.0.1/24\", \"support@ebayopensource.org\");\n SubjectKey ipKey = ip.createSubject(localhost, userKey);\n \n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.Subject savedSubject =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.Subject.class, \n ipKey.getSubjectId());\n assertNotNull(savedSubject);\n } finally {\n EntityManagerContext.close();\n }\n }", "public SubjectInfo getSubjectInfo() {\r\n\t\treturn subjectInfo;\r\n\t}", "public void testRegisterSubjectForStudent() {\n System.out.println(\"registerSubjectForStudent\");\n Map<String, Object> request = null;\n RegisterService instance = new RegisterService();\n instance.registerSubjectForStudent(request);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\r\n\tpublic Subjects getById( int id) {\n\t\treturn subectsDao.getById( id);\r\n\t}", "@JsonProperty(\"subject\")\n public WbExpression<? extends EntityIdValue> getSubject() {\n return subject;\n }", "public int getIdSubject() {\n\t\treturn idSubject;\n\t}", "@Test\n public void fieldSubject() throws Exception {\n Document doc = new Document();\n\n // Set a value for the document's \"Subject\" built-in property.\n doc.getBuiltInDocumentProperties().setSubject(\"My subject\");\n\n // Create a SUBJECT field to display the value of that built-in property.\n DocumentBuilder builder = new DocumentBuilder(doc);\n FieldSubject field = (FieldSubject) builder.insertField(FieldType.FIELD_SUBJECT, true);\n field.update();\n\n Assert.assertEquals(field.getFieldCode(), \" SUBJECT \");\n Assert.assertEquals(field.getResult(), \"My subject\");\n\n // If we give the SUBJECT field's Text property value and update it, the field will\n // overwrite the current value of the \"Subject\" built-in property with the value of its Text property,\n // and then display the new value.\n field.setText(\"My new subject\");\n field.update();\n\n Assert.assertEquals(field.getFieldCode(), \" SUBJECT \\\"My new subject\\\"\");\n Assert.assertEquals(field.getResult(), \"My new subject\");\n\n Assert.assertEquals(\"My new subject\", doc.getBuiltInDocumentProperties().getSubject());\n\n doc.save(getArtifactsDir() + \"Field.SUBJECT.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SUBJECT.docx\");\n\n Assert.assertEquals(\"My new subject\", doc.getBuiltInDocumentProperties().getSubject());\n\n field = (FieldSubject) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SUBJECT, \" SUBJECT \\\"My new subject\\\"\", \"My new subject\", field);\n Assert.assertEquals(\"My new subject\", field.getText());\n }", "@Test\n public void openSubjectsActivity() {\n }", "@Test\n public void updateSubjectGroupTest() throws Exception\n {\n createSubjectGroupTest();\n \n String groupName = \"network\";\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n Map<Long, SubjectGroup> result = ip.getSubjectGroupInfoByName(groupName);\n \n assertNotNull(result);\n SubjectGroup subjectGroup = result.values().toArray(new SubjectGroup[1])[0];\n Long groupId = result.keySet().toArray(new Long[1])[0];\n \n SubjectGroupEditObject sgEditObj = new SubjectGroupEditObject();\n List<Long> addList = sgEditObj.getAddSubjectList();\n addList.add(ip.getSubjectByName(\"server\").keySet().toArray(new Long[1])[0]);\n List<Long> remList = sgEditObj.getRemoveSubjectList();\n remList.add(ip.getSubjectByName(\"workstation\").keySet().toArray(new Long[1])[0]);\n\n SubjectGroupKey groupKey = ip.updateSubjectGroup(subjectGroup, sgEditObj, userKey);\n EntityManagerContext.open(factory);\n try {\n Query query = EntityManagerContext.get().createQuery(\"select sg.subjects from \" +\n \"org.ebayopensource.turmeric.policyservice.model.SubjectGroup as sg \" + \n \"where sg.id = \" + groupId);\n List<org.ebayopensource.turmeric.policyservice.model.Subject> subjectList =\n query.getResultList();\n assertEquals(2, subjectList.size());\n assertEquals(\"gateway\", subjectList.get(0).getSubjectName());\n assertEquals(\"server\", subjectList.get(1).getSubjectName());\n } finally {\n EntityManagerContext.close();\n }\n }", "@Test\n public void testAddIterateRemove() {\n final Registrar<Object> testSubject = onCreateTestSubject();\n final Object testObserver = new Object();\n\n testSubject.addListener(testObserver);\n\n int iterations = 0;\n boolean foundSubject = false;\n for (Object listener : testSubject) {\n if (listener == testObserver) {\n foundSubject = true;\n }\n ++iterations;\n }\n assertTrue(foundSubject);\n assertEquals(1, iterations);\n }", "@Secured(\"ROLE_ADMIN\")\n\t@RequestMapping(method = RequestMethod.GET)\n\tpublic Iterable<SubjectEntity> getAllSubjects() {\n\treturn subjectRepository.findAll();\n\t}", "String getSubject();", "String getSubject();", "@Override\n public LinkedHashSet<String> testSet() {\n LinkedHashSet<String> testNameSet = new LinkedHashSet<>();\n testNameSet.add(\"test1\");\n return testNameSet;\n }", "public Long getSubjectId() {\n\t\treturn subjectId;\n\t}", "@Test\n public void setGetCourses() {\n final CourseType courseType = new CourseType();\n final List<Course> COURSES = List.of(new Course(\"C1\"), new Course(\"C2\"));\n courseType.setCourses(COURSES);\n\n assertSame(COURSES, courseType.getCourses());\n }", "@Override\n public ResourceId subject() {\n return super.subject();\n }", "public void setTestSuite(TestSuite aTS) {\r\n\t\t//PRECONDIZIONE\r\n\t\tassert aTS!=null : \"Chiamato setTestSuite con un TS nullo\";\r\n\t\tts = aTS;\r\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "public List<Subject> findAllSubjects() throws StructureManagementException {\n\n\t\tList<Subject> list;\n\t\ttry {\n\t\t\tlist = subjectDAO.findAll();\n\t\t} catch (DataManagementException e) {\n\t\t\tStructureManagementException ex = new StructureManagementException(\"Subjects could not be found. Cause: \" + e.getMessage());\n\t\t\tthrow ex;\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\r\n public void setSubject(ISubject sub) {\n this.topic=sub;\r\n\r\n }", "public Subject getEachSubject(int subject_id) {\n\t\treturn sub_dao.getEachSubject(subject_id);\r\n\t}", "public ArrayList<Subject> getSubjects() throws myException {\n\t\tArrayList<Subject> subjectList = new ArrayList<Subject>();\n\t\t// Subject[] sub = new Subject[5];\n\t\tConnection con = GetConnection.getConnection();\n\t\tResultSet rs = null;\n\t\tString query = \"select * from subject\";\n\t\tStatement st = null;\n\t\tint i = 0;\n\t\ttry {\n\t\t\tst = con.createStatement();\n\t\t\trs = st.executeQuery(query);\n\t\t} catch (Exception e) {\n\t\t\tthrow new myException(e.getMessage());\n\t\t}\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\t// if ((rs.getString(\"teacherName\")).equals(name)) {\n\t\t\t\tSubject sub2 = new Subject(rs.getShort(\"subjectId\"), rs.getString(\"subjectName\"),\n\t\t\t\t\t\trs.getString(\"teacherName\"));\n\t\t\t\tsubjectList.add(sub2);\n\t\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}\n\t\treturn subjectList;\n\t}", "public ResourceReferenceDt getSubject() { \n\t\tif (mySubject == null) {\n\t\t\tmySubject = new ResourceReferenceDt();\n\t\t}\n\t\treturn mySubject;\n\t}", "@Test\n public void testForumSubscribe() {\n try {\n ForumDTO forumDTO = forumService.subscribeTo(FORUM_ID, USER_ID_2);\n assertTrue(forumDTO.getSubscribers().stream()\n .map(UserDTO::getUsername)\n .collect(Collectors.toSet())\n .contains(USER_NAME)\n );\n assertTrue(forumDTO.getSubscribers().stream()\n .map(UserDTO::getUsername)\n .collect(Collectors.toSet())\n .contains(USER_NAME_2)\n );\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "public Subject getSubjectByName(String name);", "@Override\n\tpublic void setTest() {\n\t}", "@Override\r\n\tpublic List<Subjects> getListAll() {\n\t\treturn subectsDao.getListAll();\r\n\t}", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSubjectBytes() {\n java.lang.Object ref = subject_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n subject_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Test\n public void testGetBusinessObjectDefinitionSubjectMatterExpert()\n {\n BusinessObjectDefinitionEntity businessObjectDefinitionEntity =\n businessObjectDefinitionDaoTestHelper.createBusinessObjectDefinitionEntity(BDEF_NAMESPACE, BDEF_NAME, DATA_PROVIDER_NAME, DESCRIPTION);\n\n // Create a business object definition subject matter expert entity.\n BusinessObjectDefinitionSubjectMatterExpertEntity businessObjectDefinitionSubjectMatterExpertEntity =\n businessObjectDefinitionSubjectMatterExpertDaoTestHelper\n .createBusinessObjectDefinitionSubjectMatterExpertEntity(businessObjectDefinitionEntity, USER_ID);\n\n // Get business object definition subject matter expert.\n assertEquals(businessObjectDefinitionSubjectMatterExpertEntity,\n businessObjectDefinitionSubjectMatterExpertDao.getBusinessObjectDefinitionSubjectMatterExpert(businessObjectDefinitionEntity, USER_ID));\n\n // Get business object definition subject matter expert by passing all case-insensitive parameters in uppercase.\n assertEquals(businessObjectDefinitionSubjectMatterExpertEntity, businessObjectDefinitionSubjectMatterExpertDao\n .getBusinessObjectDefinitionSubjectMatterExpert(businessObjectDefinitionEntity, USER_ID.toUpperCase()));\n\n // Get business object definition subject matter expert by passing all case-insensitive parameters in lowercase.\n assertEquals(businessObjectDefinitionSubjectMatterExpertEntity, businessObjectDefinitionSubjectMatterExpertDao\n .getBusinessObjectDefinitionSubjectMatterExpert(businessObjectDefinitionEntity, USER_ID.toLowerCase()));\n\n // Try invalid values for all input parameters.\n assertNull(businessObjectDefinitionSubjectMatterExpertDao.getBusinessObjectDefinitionSubjectMatterExpert(\n businessObjectDefinitionDaoTestHelper.createBusinessObjectDefinitionEntity(BDEF_NAMESPACE, BDEF_NAME_2, DATA_PROVIDER_NAME, DESCRIPTION), USER_ID));\n assertNull(\n businessObjectDefinitionSubjectMatterExpertDao.getBusinessObjectDefinitionSubjectMatterExpert(businessObjectDefinitionEntity, \"I_DO_NOT_EXIST\"));\n }" ]
[ "0.7975142", "0.7597144", "0.6873267", "0.6790583", "0.67227185", "0.6670554", "0.65832305", "0.6445888", "0.643834", "0.6428961", "0.6362033", "0.63188803", "0.6293034", "0.62360346", "0.62358576", "0.623208", "0.62176985", "0.6201033", "0.6196246", "0.6196246", "0.61618644", "0.6159436", "0.6137503", "0.61302906", "0.6116583", "0.6116244", "0.61135876", "0.61135876", "0.6103194", "0.61013794", "0.60959476", "0.6091216", "0.6085877", "0.6061796", "0.6061796", "0.6051111", "0.6038585", "0.6038585", "0.60309935", "0.602681", "0.6025989", "0.60131574", "0.5952781", "0.5950404", "0.5949774", "0.5949774", "0.59336925", "0.5932375", "0.5932375", "0.5932375", "0.5916955", "0.5913898", "0.59095937", "0.5885366", "0.58702505", "0.5867003", "0.5846026", "0.5843413", "0.5842248", "0.5814957", "0.5808415", "0.57850873", "0.5758053", "0.57155466", "0.56950057", "0.5693325", "0.5693325", "0.5673765", "0.5650727", "0.5647889", "0.56411684", "0.5627789", "0.56105477", "0.56077564", "0.5590626", "0.558795", "0.5575054", "0.55723035", "0.55610573", "0.5553038", "0.55509776", "0.55509776", "0.55445063", "0.55383074", "0.55312073", "0.5517551", "0.55145895", "0.5514329", "0.5512877", "0.55123544", "0.55091184", "0.54937327", "0.54834086", "0.5468591", "0.54626554", "0.5454751", "0.5453959", "0.5427672", "0.5427672", "0.5426502" ]
0.76516265
1
Testet , ob die Methode getTravelNeeded(), true zurueckgibt, wenn das Gebaeude gewechselt werden muss. Testet , ob die Methode setTravelNeeded(), ob das Gebaeude gewechselt werden kann.
@Test public void testSetGetTravelNeeded() { teachu1.setTravelNeed(false); assertFalse(teachu1.getTravelNeed()); teachu1.setTravelNeed(true); assertTrue(teachu1.getTravelNeed()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCanTravel() {\n return canTravel;\n }", "public void setTravel(Travel travel) {\n this.travel = travel;\n }", "public void setCanTravel(boolean canTravel) {\n this.canTravel = canTravel;\n }", "public Travel getTravel() {\n return travel;\n }", "@Override\n public boolean isTripAvailable() {\n return true;\n }", "public void setTravelAdvance(TravelAdvance travelAdvance) {\n this.travelAdvance = travelAdvance;\n }", "public boolean zugVerschrotten() {\n if (depot > 0) {\n geld = geld + getGeldZugZurueck();\n depot--;\n return true;\n } else {\n return false;\n }\n }", "@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}", "public boolean driveTruck(){\n\t\treturn driveTruck;\n\t}", "protected boolean reserveerTrein(Reiziger passagier) {\r\n int vertrekpunt = passagier.getVertrekpunt();\r\n int bestemming = passagier.getEindpunt();\r\n int vertrektijd = passagier.getVertrekTijd();\r\n Trein trein = zoekBeschikbareTrein(vertrekpunt, vertrektijd, new Trein[0]);\r\n if (trein == null) {\r\n return false;\r\n }\r\n if (!trein.heeftVolgTaak()) {\r\n trein.setVolgTaak(vertrekpunt, bestemming, vertrektijd);\r\n }\r\n trein.setPassagier(passagier);\r\n if (trein.getVertrekTijd() < vertrektijd) {\r\n trein.setVertrekTijd(vertrektijd);\r\n }\r\n return true;\r\n }", "@Test\n public void readyToTravel()\n {\n Position p = country1.readyToTravel(cityA, cityB);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),4);\n assertEquals(p.getTotal(),4);\n //From.equals(To)\n p = country1.readyToTravel(cityA, cityA);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityA);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //No direct path from from to to.\n p = country1.readyToTravel(cityB, cityC);\n assertEquals(p.getFrom(), cityB);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //From not in the country.\n p = country1.readyToTravel(cityG, cityA);\n assertEquals(p.getFrom(), cityG);\n assertEquals(p.getTo(), cityG);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n \n //To is in another country\n p = country1.readyToTravel(cityD, cityF);\n assertEquals(p.getFrom(), cityD);\n assertEquals(p.getTo(), cityF);\n assertEquals(p.getDistance(),3);\n assertEquals(p.getTotal(),3);\n }", "private boolean needToTurn() {\n\t\tdouble curDir = sens.getDirection();\n\t\tdouble desDirPlusAmount = desiredDirection + TURNSPEED;\n\t\tdouble desDirMinusAmount = desiredDirection - TURNSPEED;\n\n\t\t// if desired direction is <||> +_ x degrees\n\t\tif (curDir < desDirMinusAmount || curDir > desDirPlusAmount) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean fly() {\n\t\treturn this.canFly;\n\t}", "private boolean turnIfNeeded() {\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void updateTravelledAndVisited() {\n Storage storage = Main.getStorage();\n routeStatsCalculator.updateLeastTravelledRoute(storage.getHistory());\n routeStatsCalculator.updateMostTravelledRoute(storage.getHistory());\n airportStatsCalculator.updateMostVisitedSrcAirports(storage.getHistorySrcAirports());\n airportStatsCalculator.updateLeastVisitedSrcAirports(storage.getHistorySrcAirports());\n airportStatsCalculator.updateMostVisitedDestAirports(storage.getHistoryDestAirports());\n airportStatsCalculator.updateLeastVisitedDestAirports(storage.getHistoryDestAirports());\n }", "public boolean moveStep() {\n\t\t// TODO: take orientation into account\n\t\t\n\t\t// Work out the distance to the destination\n\t\tDouble2D delta = destination.subtract(getPosition());\n//\t\tSystem.out.println(this.toString() + \"has \" + delta.length() + \" to go.\"); // Debug\n\t \n\t // If this is below a small value, we have arrived, return true\n\t if (delta.length() < 4) return true;\n\t \n\t // FIXME: a better model allow different speed for different vehicle class\n\t // update the speed of vehicle\n\t velocity.setTo(delta.x * 0.004, delta.y * 0.004);;\n\t \n\t // FIXME: avoidance?\n\t \n\t // FIXME: orientation?\n//\t\torientation += angularRate;\n\t // update the vehicle location\n\t\tDouble2D location = _siteState.getArea().getObjectLocation(this);\n\t\t_siteState.getArea().setObjectLocation(this, location.add(new Double2D(velocity)));\n\t \n\t\treturn false;\n\t}", "@Override\n public Point determineCoup() {\n while(!aEteJoueParInterface) {}\n aEteJoueParInterface = false;\n return p;\n }", "public boolean isSolvable() {\n\t\tif (goal == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "@java.lang.Override\n public boolean hasRemainingDistanceMeters() {\n return remainingDistanceMeters_ != null;\n }", "public boolean hasReturnFlightLeg() {\n return returnFlightLeg_ != null;\n }", "public void travel();", "public void propagateAdvanceInformationIfNeeded() {\n if (!ObjectUtils.isNull(getTravelAdvance()) && getTravelAdvance().getTravelAdvanceRequested() != null) {\n if (!ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setCheckTotalAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n final TemSourceAccountingLine maxAmountLine = getAccountingLineWithLargestAmount();\n if (!TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus())) {\n getAdvanceAccountingLines().get(0).setAmount(getTravelAdvance().getTravelAdvanceRequested());\n }\n if (!allParametersForAdvanceAccountingLinesSet() && !TemConstants.TravelStatusCodeKeys.AWAIT_FISCAL.equals(getFinancialSystemDocumentHeader().getApplicationDocumentStatus()) && !advanceAccountingLinesHaveBeenModified(maxAmountLine)) {\n // we need to set chart, account, sub-account, and sub-object from account with largest amount from regular source lines\n if (maxAmountLine != null) {\n getAdvanceAccountingLines().get(0).setChartOfAccountsCode(maxAmountLine.getChartOfAccountsCode());\n getAdvanceAccountingLines().get(0).setAccountNumber(maxAmountLine.getAccountNumber());\n getAdvanceAccountingLines().get(0).setSubAccountNumber(maxAmountLine.getSubAccountNumber());\n }\n }\n // let's also propogate the due date\n if (getTravelAdvance().getDueDate() != null && !ObjectUtils.isNull(getAdvanceTravelPayment())) {\n getAdvanceTravelPayment().setDueDate(getTravelAdvance().getDueDate());\n }\n }\n }", "boolean CanBuyRoad();", "boolean hasReturnFlightLeg();", "public boolean isCarried() {\n return transportable != null\n && transportable.getLocation() == carrier;\n }", "public boolean isSolvable() {\n return goal != null;\n }", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "public boolean hasReturnFlightLeg() {\n return returnFlightLegBuilder_ != null || returnFlightLeg_ != null;\n }", "@Test\n public void test_SuccessfulTravel() {\n \n // Test 1: Setting up planets with a pythagorean triplet\n setup(154, 1);\n \n SolarSystems.ADI.changeLocation(SolarSystems.SHALKA);\n \n // Tests the player's current fuel.\n assertEquals(141, player.getFuel());\n \n // Tests the player's current location after travel.\n assertEquals(SolarSystems.SHALKA, player.getSolarSystems());\n \n //----------------------------------------------------------------------\n \n // Test 2: Setting up coordinates with a random triangle\n setup(777, 2);\n \n SolarSystems.ERMIL.changeLocation(SolarSystems.SHIBI);\n \n // Tests the player's current fuel.\n assertEquals(646, player.getFuel());\n \n // Tests the player's current location after travel.\n assertEquals(SolarSystems.SHIBI, player.getSolarSystems());\n \n }", "public boolean isWalk() {\n return journeyLegType().equals(ItineraryLegType.WALK);\n }", "public boolean isWalkway(){\n\t\treturn (cellType == CellType.WALKWAY);\n\t}", "public void setFields(Viaje travel) {\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n if (travel.getFecha() != null) {\n getDateTxt().setText(df.format(travel.getFecha()));\n getProvidedHourTxt().setText(getUtils().gethhmm(travel.getFecha()));\n }\n if (travel.getIngreso() != null) {\n getTravelValueTxt().setText(travel.getIngreso().toString());\n }\n if (travel.getPagoACamionero() != null) {\n getMoneyforDriverTxt().setText(travel.getPagoACamionero().toString());\n }\n getDistanceTxt().setText(travel.getKms());\n getContainerTxt().setText(travel.getNumeroContenedor());\n getSealTxt().setText(travel.getPrecinto());\n getContainerTypeTxt().setText(travel.getTipoContenedor());\n if (travel.getReferencia() != null) {\n getReferenceTxt().setText(travel.getReferencia());\n }\n if (travel.getBultos() != null) {\n getPackageTxt().setText(travel.getBultos().toString());\n }\n if (travel.getEstadoContenedor() != null && travel.getEstadoContenedor().equals(\"lleno\")) {\n getContainerStateCkb().setSelected(true);\n } else {\n getContainerStateCkb().setSelected(false);\n }\n getCommodityTxt().setText(travel.getMercancia());\n if (travel.getPeso() != null) {\n getWeightTxt().setText(travel.getPeso().toString());\n }\n if (travel.getOrigen() != null) {\n getOriginTxt().setText(travel.getOrigen());\n }\n if (travel.getDestino() != null) {\n getDestinationTxt().setText(travel.getDestino());\n }\n getCollectionPlaceTxt().setText(travel.getLugarRecogida());\n getLoadPlaceTxt().setText(travel.getLugarCarga());\n getCarrierTxt().setText(travel.getCargador());\n SimpleDateFormat hhmmDf = new SimpleDateFormat(\"hh:mm\");\n if (travel.getHoraLlegada() != null) {\n getArriveHourTxt().setText(getUtils().gethhmm(travel.getHoraLlegada()));\n }\n if (travel.getHoraSalida() != null) {\n getExitHourTxt().setText(getUtils().gethhmm(travel.getHoraSalida()));\n }\n getDeliveryPlaceTxt().setText(travel.getLugarEntrega());\n if (travel.getTipoPago() != null) {\n getPaymentTypeTxt().setText(travel.getTipoPago().toString());\n }\n\n getShippingExpensesTxt().setText(travel.getGastosNaviera());\n getCustomsTxt().setText(travel.getAduana());\n getOthersDescriptionTFld().setText(travel.getOtrosGastos());\n getOtherExpensesTxt().setText(travel.getCantidadOtros());\n getShippingTxt().setText(travel.getNaviera());\n getBoatTxt().setText(travel.getBuque());\n getObservationsTxt().setText(travel.getObservaciones());\n\n Transportista driver = travel.getTransportista();\n if (travel.getIva() != null) {\n ObservableList ivaItems = getIvaCb().getItems();\n String iva = \"\";\n if (travel.getIva().equals(\"S\")) {\n iva = \"Abonado por cliente\";\n } else if (travel.getIva().equals(\"N\")) {\n iva = \"No abonado por cliente\";\n }\n for (int i = 0; i < ivaItems.size(); i++) {\n if (iva.equals(ivaItems.get(i))) {\n getIvaCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoCliente() != null) {\n ObservableList clientPaymentItems = getClientPaymentCb().getItems();\n for (int i = 0; i < clientPaymentItems.size(); i++) {\n if (travel.getEstadoCliente().equals(clientPaymentItems.get(i))) {\n getClientPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoTransportista() != null) {\n ObservableList driverPaymentItemsList = getDriverPaymentCb().getItems();\n for (int i = 0; i < driverPaymentItemsList.size(); i++) {\n if (travel.getEstadoTransportista().equals(driverPaymentItemsList.get(i))) {\n getDriverPaymentCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getCliente() != null) {\n ObservableList clientItems = getClientCb().getItems();\n for (int i = 0; i < clientItems.size(); i++) {\n if (travel.getCliente().getNombre().equals(clientItems.get(i))) {\n getClientCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getTransportista() != null) {\n ObservableList driverItems = getDriverCb().getItems();\n String fullDriverName = travel.getTransportista().getNombre().trim() + \" \" + travel.getTransportista().getApellido1().trim() + \" \" + travel.getTransportista().getApellido2().trim();\n for (int i = 0; i < driverItems.size(); i++) {\n if (fullDriverName.equals(driverItems.get(i))) {\n getDriverCb().getSelectionModel().select(i);\n }\n }\n }\n String travelType = travel.getTipoViaje();\n if (travelType != null) {\n ObservableList travelsTypeItems = getTravelTypeCb().getItems();\n if (travelType.equals(\"T\")) {\n travelType = \"Terrestre\";\n } else if (travel.getTipoViaje().equals(\"EX\")) {\n travelType = \"Exportación\";\n }\n for (int i = 0; i < travelsTypeItems.size(); i++) {\n if (travelType.equals(travelsTypeItems.get(i))) {\n getTravelTypeCb().getSelectionModel().select(i);\n }\n }\n }\n if (travel.getEstadoHacienda() != null) {\n ObservableList treasuryStateItems = getTreasuryStateCb().getItems();\n for (int i = 0; i < treasuryStateItems.size(); i++) {\n if (travel.getEstadoHacienda().equals(treasuryStateItems.get(i))) {\n getTreasuryStateCb().getSelectionModel().select(i);\n }\n }\n if (!travel.getEstadoHacienda().equals(\"Ninguno\")) {\n getTreasuryStateCb().setVisible(true);\n }\n }\n ObservableList dispatcherItems = getDispatcherCb().getItems();\n for (int i = 0; i < dispatcherItems.size(); i++) {\n if (travel.getDespachante() != null && travel.getDespachante().equals(dispatcherItems.get(i))) {\n getDispatcherCb().getSelectionModel().select(i);\n }\n }\n }", "@Override\n protected boolean shouldRouteByProfileAccount() {\n return getBlanketTravel() || !getTripType().isGenerateEncumbrance() || hasOnlyPrepaidExpenses();\n }", "public Trip(Vehicle v, boolean round) {\r\n this.vehicle = v;\r\n roundTrip = round;\r\n }", "@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }", "private void travelMethod(RouteFinder routeFinder){\n routeFinder.carPressed(); //by default\n HashMap<JButton, Boolean> buttonMap = routePanel.getButtonDownMap();\n for (JButton button : buttonMap.keySet()) {\n boolean isPressed = buttonMap.get(button);\n if (button.equals(routePanel.getBicycleButton()) && isPressed) routeFinder.bikePressed();\n else if (button.equals(routePanel.getFootButton()) && isPressed) routeFinder.walkPressed();\n else if (button.equals(routePanel.getCarButton()) && isPressed) routeFinder.carPressed();\n }\n }", "boolean hasOriginFlightLeg();", "@Override\r\n\tpublic void travelMode() {\n\t\tthis.travelMode = \"Car\";\r\n\t\tSystem.out.println(\"Mode of travel selected is \"+ this.travelMode);\r\n\r\n\t}", "@Override\n\tpublic void travel(float strafe, float vertical, float forward) {\n\t\tif (!isFlying()) {\n\t\t\tsuper.travel(strafe, vertical, forward);\n\t\t}\n\t}", "public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }", "public boolean needCoordinates() { return needCoords; }", "public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }", "public boolean evaluateTravelled(int i)\n\t{\n\t\tboolean blnResult;\t\t\t\t\t\t//if player has travelled here or not\n\t\t\n\t\tblnResult = hasTravelled.contains(i);\n\t\t\n\t\treturn blnResult;\n\t\t\n\t}", "public double getTravelTime() {\n return travelTime;\n }", "protected void onTick() {\n\t\tif(car.drivingInfo.pathToGet.size() == 0 && car.carData.to == null) {\n\t\t\tcar.state = Car.WAIT_PASSENGER_TO_GO_INSIDE;\n\t\t\tSystem.out.println(\"engaged with from drive\" + car.engagedWithAID.toString());\n\t\t\tcar.addBehaviour(new TakePassenger());\n\t\t\tthis.stop();\n\t\t\treturn;\n\t\t}\n\t\t\t\t\n\t\tif(car.carData.to == null) {\n\t\t\tHouseData nextHouseToGo = car.drivingInfo.pathToGet.remove(0);\n\t\t\tcar.carData.to = nextHouseToGo;\n\t\t}\n\t\t\n\t\tint distanceDone = car.carData.distance;\n\t\tint distanceToDo = (int) SmaUtils.computeDistance(car.carData.from.position, car.carData.to.position);\n\t\t\n\t\t// if the distance left is higher than the distance the car can do in one tick, we increment the distance\n\t\tif(distanceDone+Car.CAR_SPEED < distanceToDo) {\n\t\t\tcar.carData.distance += Car.CAR_SPEED;\n\t\t\treturn;\n\t\t} \n\t\t// else, we put the car on the next house\n\t\telse if(distanceDone <= distanceToDo) {\n\t\t\tcar.carData.from = car.carData.to;\n\t\t\tcar.carData.to = null;\n\t\t\tcar.carData.distance = 0;\n\t\t\treturn;\n\t\t}\n\t}", "public void setAdvanceTravelPayment(TravelPayment advanceTravelPayment) {\n this.advanceTravelPayment = advanceTravelPayment;\n }", "private synchronized boolean getGo(){\n return this.go;\n }", "public boolean getTraiteGauche() {\r\n return traiteGauche;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.DirectionOfTravelPEL getDirectionOfTravel();", "private boolean buildStreetIsAllowed() {\r\n\t\tif (clickedRoad.getEnd() == lastSettlementNode\r\n\t\t\t\t|| clickedRoad.getStart() == lastSettlementNode) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());\n }\n return false;\n }", "public void geolocTransfered() {\n\t\tthis.geolocTransfered = true;\n\t}", "public boolean isLetGo() {\r\n if (letGo) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean getValidGPSRequired()\n {\n return this.validGPS;\n }", "public Boolean isRoad() {\r\n\t \treturn this.road;\r\n\t }", "private void calculateDirection(){\n\t\tif(waypoints.size() > 0){\n\t\t\tif(getDistanceToWaypoint() <= getSpeed()){\n\t\t\t\tsetPosition(new Vector2(waypoints.remove(0)));\n\t\t\t\tsetCurrentWaypoint(getCurrentWaypoint() + 1);\n\t\t\t}else{\t\t\n\t\t\t\tVector2 target = new Vector2(waypoints.get(0));\n\t\t\t\tVector2 newDirection = new Vector2(target.sub(getPosition())); \n\t\t\t\tsetDirection(newDirection);\n\t\t\t}\n\t\t}else{\n\t\t\tsetDirection(new Vector2(0, 0));\n\t\t}\n\t}", "@java.lang.Override\n public boolean hasWaypointsVersion() {\n return waypointsVersion_ != null;\n }", "public void setRoad(Boolean bool) {\r\n\t \tthis.road = bool;\r\n\t }", "boolean getIsVegetable();", "protected boolean requiresTravelerApprovalRouting() {\n //If there's travel advances, route to traveler if necessary\n return requiresTravelAdvanceReviewRouting() && !getTravelAdvance().getTravelAdvancePolicy();\n }", "boolean hasDistanceView();", "public boolean carryingPassengers() {\n\t\treturn carryingPassengers;\n\t}", "public boolean checkGoal() {\r\n\t\tif (goal) {\r\n\t\t\tgoal = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean canBike() {\r\n\t\tif (location == Location.SAFARI || location == Location.TOWN || location == Location.CAVE) {\r\n\t\t\treturn items.containsKey(Bicycle.getBicycleInstance());\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isOnWay(){\n\t\treturn onWay;\n\t}", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "public boolean hasRemainingDistanceMeters() {\n return remainingDistanceMetersBuilder_ != null || remainingDistanceMeters_ != null;\n }", "public boolean fitVehicle(Vehicle veh){\r\n // return true value if the vehicle fits\r\n // return statement\r\n return veh.canFitSpot(this) && isAvailable();\r\n }", "boolean isSetRoadTerrain();", "public boolean getAccessibleToSpecialNeeds()\r\n\t{\r\n\t\treturn this._accessibleToSpecialNeeds;\r\n\t}", "public boolean parkVehicle(Vehicle ve){\r\n if (!fitVehicle(ve)){\r\n // return statement\r\n return false;\r\n }\r\n veh = ve;\r\n veh.parkSpots(this);\r\n // return statement\r\n return true;\r\n }", "public boolean isGoal();", "public final void setWaypoint(AbstractWaypoint value) {\n this.waypointProperty().setValue(value);\n }", "abstract boolean estValideDirection(Coup c);", "boolean canPlaceRoad(EdgeLocation edgeLoc, boolean free);", "public void setHasLeveledUp(boolean value) {\n this.hasLeveledUp = value;\n }", "public void setIsInDepot(boolean b) {\n\t\tisInDepot = b;\n\t}", "public int getTravelTime() {\r\n return travelTime;\r\n }", "protected boolean drillVertex() {\n return drillVertex;\n }", "public void VehiclePositionIsFinal() {\n\t\tInteger idVehicle ;\n\t\tdouble lat;\n\t\tdouble lon;\n\t\tVehicle vehicle;\n\ttry {\n\t\tVehicleIntervention vehicleIntervention = VehicleIntervention.getInstance();\n\t\tif( ! vehicleIntervention.listIntervention.isEmpty()) {\n\t\t\t//parcourir toutes les interventions\n\t\t\t for( InterventionDto intervention: vehicleIntervention.listIntervention) {\n\t\t\t\t idVehicle = intervention.getVehicle().getId();\n\t\t\t\t lat = intervention.getFireLat();\n\t\t\t\t lon = intervention.getFireLon();\n\t\t\t\t vehicle = getVehicleById(idVehicle);\nSystem.out.println(\"vehicle:\" +vehicle.getId()+ \" at \"+vehicle.getLat() +\":\"+vehicle.getLon());\n \n\t\t\t\t //si le vehicule arrive a proximite et l'intensite du fire est nulle \n\t\t\t\t if( Math.abs(vehicle.getLat() - lat)<1e-3 \n\t\t\t\t\t\t && Math.abs(vehicle.getLon() - lon)<1e-3\n\t\t\t\t\t\t &&isFireOut(lat,lon) ) {\n\t\t\t\t\t //supprimer le vehicule de la liste\n\t\t\t\t\t vehicleIntervention.listIntervention.remove(intervention);\n\t\t\t\t\t //changer l'etat du vehicule\n\t\t\t\t\t Vehicle getvehicle = vRepository.findById(idVehicle).get();\n\t\t\t\t\t getvehicle.setIntervention(false);\n\t\t\t\t\t vRepository.save(getvehicle);\n\t\t\t\t\t \nSystem.out.println(\"Fire:\" + \" at \"+lat +\":\"+lon+\" is out thanks to vehicle: \"+idVehicle+\" Intervention:\"+getvehicle.isIntervention());\n\t\t\t\t }\n\t\t\t \t}\n\t\t }\n\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public void setReadyToFly(boolean readyToFly) {\r\n this.readyToFly = readyToFly;\r\n }", "public Boolean allowGatewayTransit() {\n return this.innerProperties() == null ? null : this.innerProperties().allowGatewayTransit();\n }", "protected boolean canTriggerWalking()\n {\n return false;\n }", "public boolean needsNeighborhood()\r\n\t{\r\n\t\treturn m_needsNeighborhood;\t\r\n\t}", "public void setValidGPSRequired(boolean reqGPS)\n {\n this.validGPS = reqGPS;\n }", "@java.lang.Override\n public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypoint_ != null;\n }", "public boolean hasOriginFlightLeg() {\n return originFlightLeg_ != null;\n }", "@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n final boolean oldDone = entity.done;\n\n entity.done = false;\n final boolean result = \n super.isValidEntity(entity, game, useValidNonInfantryCheck);\n entity.done = oldDone;\n return result;\n }", "@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n final boolean oldDone = entity.done;\n entity.done = false;\n final boolean result = \n super.isValidEntity(entity, game, useValidNonInfantryCheck);\n entity.done = oldDone;\n return result;\n }", "@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n final boolean oldDone = entity.done;\n entity.done = false;\n final boolean result = \n super.isValidEntity(entity, game, useValidNonInfantryCheck);\n entity.done = oldDone;\n return result;\n }", "@Override\r\n\tpublic void stepHasBeenTaken(boolean hasAccurateDistance, int totalDistance) {\n\t\tif(hasAccurateDistance == false)\r\n\t\t\treturn;\r\n\t\tTextView calcDistance = (TextView) findViewById(R.id.calcDistanceTaken_cl);\r\n\t\tcalcDistance.setText(\"Distance: \" + totalDistance);\r\n\t\t\r\n\t}", "boolean isSetDirection();", "protected abstract long waitToTravel();", "boolean canPlaceSettlement(VertexLocation vertLoc, boolean free);", "@Override\r\n protected boolean isGoal(Point node) {\r\n return (node.equals(finish));\r\n }", "public void setReached(boolean reached);", "@Override\n\t\tpublic boolean goalTest() {\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tif (state[i] != xGoals[i] || state[i + k] != yGoals[i]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean isSolvable()\n {\n if (goalNode!=null && goalNode.board.isGoal()){\n return true;\n }\n return false;\n\n }", "public boolean isDegreeRequired ()\r\n {\r\n return degreeRequired;\r\n }", "public boolean is_set_destPellet() {\n return this.destPellet != null;\n }" ]
[ "0.6655102", "0.6324691", "0.619629", "0.59000033", "0.55362266", "0.5467256", "0.5430309", "0.53950244", "0.5365531", "0.5356278", "0.53512365", "0.5349872", "0.53211886", "0.5282557", "0.52770096", "0.527696", "0.52566755", "0.5245847", "0.5236469", "0.5228321", "0.519443", "0.5166221", "0.51643956", "0.51564145", "0.51525277", "0.5151669", "0.5150319", "0.5148394", "0.51345015", "0.5131443", "0.5128175", "0.5124685", "0.5122598", "0.511284", "0.510968", "0.5107044", "0.5104497", "0.5104147", "0.51004064", "0.50951517", "0.50898117", "0.5081194", "0.5051275", "0.5037265", "0.50367063", "0.5034068", "0.5029427", "0.50286704", "0.50277424", "0.50274646", "0.5027074", "0.5011787", "0.5008961", "0.5001309", "0.50009084", "0.4991513", "0.49903423", "0.49687698", "0.496853", "0.49586794", "0.49517414", "0.49475202", "0.49395978", "0.49344334", "0.49322432", "0.49250925", "0.49234158", "0.49200356", "0.49137595", "0.49133393", "0.49127832", "0.49106485", "0.4910602", "0.49084955", "0.49079576", "0.4907034", "0.4904431", "0.49033427", "0.4903252", "0.4899988", "0.4898879", "0.48966303", "0.4893054", "0.48924834", "0.4891426", "0.48846656", "0.48796088", "0.4877085", "0.4875963", "0.4875963", "0.4872225", "0.486334", "0.48632848", "0.48584387", "0.4857477", "0.48422673", "0.48411608", "0.48389477", "0.4838271", "0.48353466" ]
0.7312083
0
Der Test soll ueberpruefen, ob die Methode setSubjects(), das richtige Set mit den enthaltenen Subject Objekten gesetzt wird.
@Test public void testSetSubjects() { teachu1.setSubjects(newSubjects); assertTrue(teachu1.getSubjects().contains(sub2)); assertFalse(teachu1.getSubjects().contains(sub1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void subjectSetTest() {\n // TODO: test subjectSet\n }", "@Test\r\n\tpublic void testGetSubjects() {\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub1));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub2));\r\n\t}", "public void setSubject(Subject subject);", "public void setSubjects(String subjects) {\r\n this.subjects = subjects;\r\n }", "@Test\r\n\tpublic void testContainsSubject() {\r\n\t\tassertTrue(teachu1.containsSubject(sub1));\r\n\t\tassertFalse(teachu1.containsSubject(sub2));\r\n\t}", "public void setSubjects(List<ACSubjectInfo> subjects) {\n this.subjects = subjects;\n }", "public void setSubject (String s) {\n subject = s;\n }", "public void setSubject(String s)\r\n {\r\n mySubject = s;\r\n }", "public void setSubject(String subject)\n {\n _subject = subject;\n }", "public void setSubject(String subject)\r\n {\r\n m_subject = subject;\r\n }", "public void setSubject(String v) \n {\n \n if (!ObjectUtils.equals(this.subject, v))\n {\n this.subject = v;\n setModified(true);\n }\n \n \n }", "@Test\n public void subjectTest() {\n // TODO: test subject\n }", "public void setSubject(Name subject) {\r\n this.subject = subject;\r\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void setSubject(String subject) {\n this.subject = subject;\n }", "public void addSubject(Subject s) {\n // TODO implement here\n }", "public void setSubject(String subject) {\r\n\t\tthis.subject= subject;\r\n\t}", "public void setSubject(Subject subject) {\n\t\tthis.subject = subject;\n\t}", "public void setSubject(List<String> subject) {\n\t this.subject = subject;\n\t}", "public void setSubject(String newValue);", "void setSubject(org.hl7.fhir.ResourceReference subject);", "public String getSubjects() {\r\n return subjects;\r\n }", "public void setSubject(String subject) {\n\t\tthis.subject = subject;\n\t}", "public void setmSubject(String mSubject) {\n this.mSubject = mSubject;\n }", "public ArrayList<MatchList> getSubjects() { return this.subjects; }", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public Builder setSubject(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n subject_ = value;\n onChanged();\n return this;\n }", "public void setIdSubject(int idSubject) {\n\t\tthis.idSubject = idSubject;\n\t}", "@Test\n public void subjectIdTest() {\n // TODO: test subjectId\n }", "public void testRegisterSubjectForStudent() {\n System.out.println(\"registerSubjectForStudent\");\n Map<String, Object> request = null;\n RegisterService instance = new RegisterService();\n instance.registerSubjectForStudent(request);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setSubject(javax.security.auth.Subject subject)\n {\n __m_Subject = subject;\n }", "public void changeSubject(String a) {\r\n subject = a;\r\n }", "boolean isSetSubject();", "@Test\n public void updateSubjectGroupTest() throws Exception\n {\n createSubjectGroupTest();\n \n String groupName = \"network\";\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n Map<Long, SubjectGroup> result = ip.getSubjectGroupInfoByName(groupName);\n \n assertNotNull(result);\n SubjectGroup subjectGroup = result.values().toArray(new SubjectGroup[1])[0];\n Long groupId = result.keySet().toArray(new Long[1])[0];\n \n SubjectGroupEditObject sgEditObj = new SubjectGroupEditObject();\n List<Long> addList = sgEditObj.getAddSubjectList();\n addList.add(ip.getSubjectByName(\"server\").keySet().toArray(new Long[1])[0]);\n List<Long> remList = sgEditObj.getRemoveSubjectList();\n remList.add(ip.getSubjectByName(\"workstation\").keySet().toArray(new Long[1])[0]);\n\n SubjectGroupKey groupKey = ip.updateSubjectGroup(subjectGroup, sgEditObj, userKey);\n EntityManagerContext.open(factory);\n try {\n Query query = EntityManagerContext.get().createQuery(\"select sg.subjects from \" +\n \"org.ebayopensource.turmeric.policyservice.model.SubjectGroup as sg \" + \n \"where sg.id = \" + groupId);\n List<org.ebayopensource.turmeric.policyservice.model.Subject> subjectList =\n query.getResultList();\n assertEquals(2, subjectList.size());\n assertEquals(\"gateway\", subjectList.get(0).getSubjectName());\n assertEquals(\"server\", subjectList.get(1).getSubjectName());\n } finally {\n EntityManagerContext.close();\n }\n }", "public void addSubject(Subject subject) {\n\t\t\r\n\t}", "public void setForSubject(boolean forSubject) {\n\t\t_forSubject = forSubject;\n\t}", "public void setTestSuite(TestSuite aTS) {\r\n\t\t//PRECONDIZIONE\r\n\t\tassert aTS!=null : \"Chiamato setTestSuite con un TS nullo\";\r\n\t\tts = aTS;\r\n\t}", "public void setSubject(JTextField subject) {\n\t\tthis.subject = subject;\n\t}", "public List<ACSubjectInfo> getSubjects() {\n return subjects;\n }", "@Override\r\n public void setSubject(ISubject sub) {\n this.topic=sub;\r\n\r\n }", "@Test\n public void createSubjectTest() throws Exception {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n Subject localhost = newSubject(\"localhost\", \"IP\", \"localhost\", \"127.0.0.1/24\", \"support@ebayopensource.org\");\n SubjectKey ipKey = ip.createSubject(localhost, userKey);\n \n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.Subject savedSubject =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.Subject.class, \n ipKey.getSubjectId());\n assertNotNull(savedSubject);\n } finally {\n EntityManagerContext.close();\n }\n }", "@Test\n public void fieldSubject() throws Exception {\n Document doc = new Document();\n\n // Set a value for the document's \"Subject\" built-in property.\n doc.getBuiltInDocumentProperties().setSubject(\"My subject\");\n\n // Create a SUBJECT field to display the value of that built-in property.\n DocumentBuilder builder = new DocumentBuilder(doc);\n FieldSubject field = (FieldSubject) builder.insertField(FieldType.FIELD_SUBJECT, true);\n field.update();\n\n Assert.assertEquals(field.getFieldCode(), \" SUBJECT \");\n Assert.assertEquals(field.getResult(), \"My subject\");\n\n // If we give the SUBJECT field's Text property value and update it, the field will\n // overwrite the current value of the \"Subject\" built-in property with the value of its Text property,\n // and then display the new value.\n field.setText(\"My new subject\");\n field.update();\n\n Assert.assertEquals(field.getFieldCode(), \" SUBJECT \\\"My new subject\\\"\");\n Assert.assertEquals(field.getResult(), \"My new subject\");\n\n Assert.assertEquals(\"My new subject\", doc.getBuiltInDocumentProperties().getSubject());\n\n doc.save(getArtifactsDir() + \"Field.SUBJECT.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SUBJECT.docx\");\n\n Assert.assertEquals(\"My new subject\", doc.getBuiltInDocumentProperties().getSubject());\n\n field = (FieldSubject) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SUBJECT, \" SUBJECT \\\"My new subject\\\"\", \"My new subject\", field);\n Assert.assertEquals(\"My new subject\", field.getText());\n }", "public void setSecuritySubject(Subject securitySubject) {\n this.securitySubject = securitySubject;\n }", "void changeSubject(String subject) throws IOException;", "@Test\n public void testGetSet() {\n\n Transform test1 = new Transform();\n test1.setOrientation(new Quaternion(6, 7, 8, 9));\n test1.setPosition(new Vector3(1, 2, 3));\n\n Assert.assertEquals(test1.getOrientation().equals(new Quaternion(6, 7, 8, 9)), true);\n Assert.assertEquals(test1.getPosition().equals(new Vector3(1, 2, 3)), true);\n\n Transform test2 = new Transform(new Vector3(4, 5, 6), new Quaternion(4, 3, 2, 1));\n test2.set(test1);\n\n Assert.assertEquals(test2.getOrientation().equals(new Quaternion(6, 7, 8, 9)), true);\n Assert.assertEquals(test2.getPosition().equals(new Vector3(1, 2, 3)), true);\n }", "public void updateSubject(Subject subject) {\n\t\tsub_dao.updateSubject(subject);\r\n\t\t\r\n\t}", "@Override\n public boolean isSubject() {\n return false;\n }", "public String getSubject() {\n return this.subject;\n }", "public String getSubject() {\n return this.subject;\n }", "@Test\n public void getSubjectAssignmentOfSubjectGroupTest() throws Exception\n {\n createSubjectGroupTest();\n \n String groupName = \"network\";\n IPSubject ip = new IPSubject();\n\n Map<Long, SubjectGroup> result = ip.getSubjectGroupInfoByName(groupName);\n\n assertNotNull(result);\n Long groupId = result.keySet().toArray(new Long[1])[0];\n\n Map<Long, Subject> resultSubject = ip.getSubjectAssignmentOfSubjectGroup(groupId);\n \n assertNotNull(resultSubject);\n Subject[] subjectList = resultSubject.values().toArray(new Subject[0]);\n \n assertEquals(2, subjectList.length);\n assertEquals(\"workstation\", subjectList[0].getSubjectName());\n assertEquals(\"gateway\", subjectList[1].getSubjectName());\n }", "@Test\n public void getSubjectTest() throws Exception {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n\n Subject[] hosts = {\n newSubject(\"router\", \"IP\", \"router\", \"172.16.1.1\", \"support@ebayopensource.org\"),\n newSubject(\"localip\", \"IP\", \"locaip\", \"172.16.1.100\", \"support@ebayopensource.org\"),\n newSubject(\"localhost\", \"IP\", \"localhost\", \"127.0.0.1\", \"support@ebayopensource.org\"),\n };\n int len = hosts.length;\n \n int idx = -1;\n SubjectKey[] keys = new SubjectKey[len];\n for (Subject host : hosts) {\n keys[++idx] = ip.createSubject(host, userKey);\n assertEquals(hosts[idx].getSubjectName(), keys[idx].getSubjectName());\n }\n \n for (SubjectKey key : keys) {\n Long subjectId = key.getSubjectId();\n Map<Long, Subject> result = ip.getSubjectById(subjectId);\n\n assertNotNull(result);\n \n Subject value = result.values().toArray(new Subject[1])[0];\n assertEquals(subjectId, result.keySet().toArray(new Long[1])[0]);\n assertEquals(key.getSubjectName(), value.getSubjectName());\n }\n\n for (SubjectKey key : keys) {\n String subjectName = key.getSubjectName();\n Map<Long, Subject> result = ip.getSubjectByName(subjectName);\n \n assertNotNull(result);\n \n Subject value = result.values().toArray(new Subject[1])[0];\n assertEquals(key.getSubjectId(), result.keySet().toArray(new Long[1])[0]);\n assertEquals(key.getSubjectName(), value.getSubjectName());\n }\n }", "public void setSubjectInfo(SubjectInfo subjectInfo) {\r\n\t\tthis.subjectInfo = subjectInfo;\r\n\t}", "public void addSubject(Subject subject) {\n\t\tsub_dao.addSubject(subject);\r\n\t\t\r\n\t}", "@Test\n public void testClickSubject() {\n Matcher<View> viewMatcher = withId(R.id.subjectRecyclerView);\n ViewInteraction viewInteraction = onView(viewMatcher);\n\n // Click on first subject in RecyclerView\n ViewAction viewAction = actionOnItemAtPosition(0, click());\n viewInteraction.perform(viewAction);\n }", "public String getSubject()\r\n {\r\n return subject;\r\n }", "@BeforeEach\n\tpublic void setUp() throws Exception {\n\t\ttestSubject=new Builder(value, sigFig, totalFig, precision)\n\t\t\t\t\t\t.meaning(meaning)\n\t\t\t\t\t\t.originatorsFlag(originatorsFlag)\n\t\t\t\t\t\t.qualityFlag(qualityFlag)\n\t\t\t\t\t\t.qualityFlagString(qualityFlagString)\n\t\t\t\t\t\t.build();\n\t\t\n\n\n\n\n\n\n\n\t}", "public String getSubject() {\n return subject;\n }", "public String getSubject() {\n return subject;\n }", "public void setSubjectId(int newSubjectId) {\n if (this.subjectId == newSubjectId)\n return;\n this.subjectId = newSubjectId;\n VideoAPIManager.getCategoriesFor(subjectId, new VideoAPIManager.VideoCategoryLoaderListener() {\n @Override\n public void onSuccess(HashMap<VideoCategoryItem, ArrayList<VideoCategoryItem>> results) {\n mAdapter.setData(results);\n mAdapter.notifyDataSetChanged();\n }\n @Override\n public void onFailure(Error error) {\n if (getActivity() == null)\n return;\n Toast.makeText(getActivity(), error != null ? error.getMessage() : \"Unknown Error Occurred\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public String getSubject() {\n return subject;\n }", "public Name getSubject() {\r\n return subject;\r\n }", "@Test\n public void getManyCoursesOfCurrentSemesterForSubjectTest() throws Exception {\n Lehrveranstaltung course1 = courseRepository.save(new Lehrveranstaltung(subject, ws2016));\n Lehrveranstaltung course2 = courseRepository.save(new Lehrveranstaltung(subject, ws2016));\n\n // the user should see a list of courses of this subject\n mockMvc.perform(\n get(\"/student/lehrveranstaltungen/semester/subject\")\n .with(user(\"student\").roles(\"STUDENT\"))\n .param(\"subjectId\", subject.getId().toString())\n ).andExpect(\n view().name(\"/student/courses-for-subject\")\n ).andExpect(\n model().attribute(\"coursesForSemesterAndSubject\", asList(course1, course2))\n );\n }", "@Override\n public void reset() {\n setSubject(null);\n }", "public void setSubjects(SubjectStudyPeriodDtoContainer container) {\n List<Long> subjectIds = StreamUtil.toMappedList(s -> s.getSubject(), container.getSubjectStudyPeriodDtos());\n List<Subject> subjects = subjectService.findAllById(subjectIds);\n List<AutocompleteResult> dtos = StreamUtil.toMappedList(AutocompleteResult::of, subjects);\n container.setSubjects(dtos);\n }", "public Hashtable<String, Subject> getMySubjects(){\n\t\treturn mySubjects;\n\t}", "@Test\n public void openSubjectsActivity() {\n }", "public List<String> getSubject() {\n\t return this.subject;\n\t}", "@Test\n public void testAddIterateRemove() {\n final Registrar<Object> testSubject = onCreateTestSubject();\n final Object testObserver = new Object();\n\n testSubject.addListener(testObserver);\n\n int iterations = 0;\n boolean foundSubject = false;\n for (Object listener : testSubject) {\n if (listener == testObserver) {\n foundSubject = true;\n }\n ++iterations;\n }\n assertTrue(foundSubject);\n assertEquals(1, iterations);\n }", "Subject getSubject(){\n\t\treturn subject;\n\t}", "private SubjectManagement() {\n\n\t}", "public Subject getSubject();", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public String getSubject() {\r\n\t\treturn subject;\r\n\t}", "public void setMasSubTests(\n\t\t\tjava.util.Set<jkt.hms.masters.business.MasSubTest> masSubTests) {\n\t\tthis.masSubTests = masSubTests;\n\t}", "public Subject getSubject() {\n\t\treturn subject;\n\t}", "void unsetSubject();", "public SubjectInfo getSubject() {\n return this.subject;\n }", "public void setSnsubject(final String val) {\n snsubject = val;\n }", "public Subject() {\n\t}", "Course(Subject subject){\n \t\tthis.subject = subject;\n\t\tdaysToRun = subject.getDuration();\n\t\tenrolled = new ArrayList<Student>();\n\t\tcancelled = false;\n\t\tfinished = false;\n \t}", "public Subject getSubject(){\n\t\treturn sub;\n\t}", "public void subjectChanged(){\n return; //TODO codavaj!!\n }", "@Override\n public boolean followsSubject(String subjectType) {\n return false;\n }", "public ImagingStudy setSubject(ResourceReferenceDt theValue) {\n\t\tmySubject = theValue;\n\t\treturn this;\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "public void setMessageSubject(String tmp) {\n this.messageSubject = tmp;\n }", "public String[] getSubjects() {\n/* 329 */ return getStringArray(\"subject\");\n/* */ }", "public static void clearFailureSubjects(String sub){\n if(subject1 == sub)\n subject1 = \"\";\n else if (subject2 == sub)\n subject2 = \"\";\n else if(subject3 == sub)\n subject3 = \"\";\n else if (subject4 == sub)\n subject4 = \"\"; \n }", "public String getSubject() {\n\t\treturn subject;\n\t}", "public String getSubject() {\n\t\treturn subject;\n\t}", "public void testSetEssay() {\r\n s1.setEssay(\"new essay for s1\");\r\n assertEquals(s1.getEssay(), \"new essay for s1\");\r\n }", "public void setPublicSubject(String publicSubject) {\n this.publicSubject = publicSubject;\n }", "void setCreaedBy(Subject creator)\n {\n this.creator = creator;\n }", "public String getmSubject() {\n return mSubject;\n }", "java.lang.String getSubject();", "java.lang.String getSubject();", "java.lang.String getSubject();", "public Subject createSubject(Subject subject);", "public Builder clearSubject() {\n \n subject_ = getDefaultInstance().getSubject();\n onChanged();\n return this;\n }" ]
[ "0.7519667", "0.7449625", "0.7130721", "0.71257114", "0.6894335", "0.68906724", "0.68321943", "0.674185", "0.6724354", "0.6695609", "0.6590603", "0.6520592", "0.65092164", "0.64920753", "0.64920753", "0.64852816", "0.64623475", "0.6451887", "0.64276123", "0.6398294", "0.6317327", "0.6271495", "0.6252232", "0.6164778", "0.6162098", "0.6067052", "0.6059313", "0.6059313", "0.59919304", "0.59898645", "0.596649", "0.59544826", "0.5868462", "0.58597535", "0.58391345", "0.58331084", "0.58330816", "0.5826818", "0.58206266", "0.58054143", "0.5796538", "0.5781852", "0.5778468", "0.5755424", "0.57528055", "0.5752147", "0.5746118", "0.5741472", "0.5740707", "0.5740707", "0.5730371", "0.573015", "0.5722917", "0.569395", "0.5673816", "0.5670052", "0.5667883", "0.56658804", "0.56658804", "0.56587815", "0.56570166", "0.565683", "0.5654267", "0.5646885", "0.56463534", "0.56433344", "0.56425726", "0.56396765", "0.56132317", "0.561141", "0.5605859", "0.5577338", "0.5568525", "0.5568525", "0.5566031", "0.55527264", "0.5550822", "0.55483234", "0.55414593", "0.5538729", "0.5529092", "0.5524889", "0.5520705", "0.551516", "0.5493974", "0.5493517", "0.54916453", "0.5489676", "0.54889035", "0.5476936", "0.5476936", "0.5456686", "0.5448204", "0.54411215", "0.54378104", "0.5425395", "0.5425395", "0.5425395", "0.5419924", "0.54156345" ]
0.8363902
0
Der Test soll ueberpruefen, ob die Methode setPersons(), das richtige Set mit den enthaltenen PersonTime Objekten gesetzt wird.
@Test public void testSetPersonTime() { teachu1.setPersonTime(newPersonTime); assertTrue(teachu1.getPersons().contains(person2)); assertFalse(teachu1.getPersons().contains(person1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "@Test\r\n\tpublic void testSetTimeslot() {\r\n\t\tTimeslot t = new Timeslot(20, WEEKDAYS.MONDAY, \"09\", \"00\");\r\n\t\tbreaku1.setTimeslot(t);\r\n\t\texternu1.setTimeslot(t);\r\n\t\tmeetingu1.setTimeslot(t);\r\n\t\tteachu1.setTimeslot(t);\r\n\r\n\t\tassertEquals(t, breaku1.getTimeslot());\r\n\t\tassertEquals(t, externu1.getTimeslot());\r\n\t\tassertEquals(t, meetingu1.getTimeslot());\r\n\t\tassertEquals(t, teachu1.getTimeslot());\r\n\t}", "public void setPeople(Person[] persons) {\n setUser(persons[0]);\n\n for (int i = 0; i < persons.length; i++) {\n people.put(persons[i].getPersonID(), persons[i]);\n }\n\n setSpouse();\n setFamilyTree();\n }", "public void setPersons(Hashtable<String, Person> persons) {\r\n\t\tthis.persons = persons;\r\n\t}", "public void testGetPersonChanges() throws Exception {\r\n LOG.info(\"getPersonChanges\");\r\n String startDate = \"\";\r\n String endDate = \"\";\r\n tmdb.getPersonChanges(ID_PERSON_BRUCE_WILLIS, startDate, endDate);\r\n }", "@Test\r\n public void testSetTimeEaten()\r\n {\r\n System.out.println(\"setTimeEaten\");\r\n Time timeEaten = Time.valueOf(\"12:34:56\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n instance.setTimeEaten(timeEaten);\r\n assertEquals(timeEaten, instance.getTimeEaten());\r\n }", "public void setPeople(Set<PersonCreateRequest> people) {\n\t\tthis.people = people;\n\t}", "@Test\r\n\tpublic void teachingUnitContainsPersons() {\r\n\t\tassertTrue(teachu1.containsPerson(\"ErK\"));\r\n\t\tassertTrue(teachu1.containsPerson(\"AlP\"));\r\n\t\tassertFalse(teachu1.containsPerson(\"MaP\"));\r\n\t}", "@Test\n public void testSetPersonaPaciente() {\n System.out.println(\"setPersonaPaciente\");\n Persona personaPaciente = null;\n Paciente instance = new Paciente();\n instance.setPersonaPaciente(personaPaciente);\n\n }", "public void setNowPeople(int nowPeople) {\n\t\tthis.nowPeople = nowPeople;\n\t}", "@Test\r\n\tpublic void testSetYear() {\r\n\t\tmeetingu1.setYear(3);\r\n\t\tassertTrue(meetingu1.getYear() == 3);\r\n\t}", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "public void setPerson( Person person )\r\n\t{\r\n\t\tthis.person = person;\r\n\t}", "public void setPerson(Person[] person) {\n\t\tthis.person = person;\n\t}", "@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 }", "@Test\n public void testSetLocations() {\n System.out.println(\"setLocations\");\n List<DTO_Location> locations = new ArrayList<>();\n locations.add(new DTO_Location(new GregorianCalendar().toString(), 2L, 0.1, 0.2));\n DTO_Ride instance = dtoRide;\n instance.setLocations(locations);\n List<DTO_Location> result = instance.getLocations();\n assertEquals(1, locations.size());\n }", "@Test\n\tpublic void testSetValueOkMult1toN() {\n\n\t\t// create 1 Address and 2 Persons\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\t// create a new collection and use the collection\n\t\t// property's setter\n\t\tCollection<Person> persons = new ArrayList<Person>();\n\t\tpersons.add(martin);\n\t\tpersons.add(jojo);\n\t\tadr.setInhabitants(persons);\n\n\t\t// assert the Persons being linked to the Address\n\t\tAssert.assertEquals(2, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(jojo, iter.next());\n\t\t// assert the Address being linked to both Persons implicitely\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertSame(adr, jojo.getAddress());\n\t}", "public void setPersonData(List<Person> persons)\n\t{\n\t\t//Count number of people having their birthday in the same month.\n\t\tint[] monthCounter = new int[12];\n\t\tfor(Person p: persons)\n\t\t{\n\t\t\tint month = p.getBirthday().getMonthValue() - 1;\n\t\t\tmonthCounter[month]++;\n\t\t}\n\t\t\n\t\tXYChart.Series<String, Integer> series = new XYChart.Series<>();\n\t\t\n\t\t//Creates xy chart object for each month and adds to the series.\n\t\tfor(int i = 0; i< monthCounter.length; i++)\n\t\t\t{\n\t\t\tseries.getData().add(new XYChart.Data<>(monthNames.get(i), monthCounter[i]));\n\t\t\t}\n\t\tbarChart.getData().add(series);\n\t}", "@Test\n public void testGetters() {\n LocalDateTime now = LocalDateTime.now();\n user2.setRegistrationDate(now);\n\n assertEquals(\"Email should be a\", \"a\", user2.getEmail());\n assertEquals(\"FirstName should be b\", \"b\", user2.getFirstName());\n assertEquals(\"LastName should be c\", \"c\", user2.getLastName());\n assertEquals(\"Manager should be true\", true, user2.isManager());\n assertEquals(\"Password should be d\", \"d\", user2.getPassword());\n assertEquals(\"RegistrationDate should be \" + now.toString(), now, user2.getRegistrationDate());\n assertEquals(\"UserId should be 1\", 1, user2.getUserId());\n assertEquals(\"Username should be e\", \"e\", user2.getUsername());\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\trooms.add(room1);\r\n\t\trooms1.add(room2);\r\n\r\n\t\tclasses.add(class1);\r\n\t\tclasses1.add(class2);\r\n\r\n\t\tnewPersonTime.add(person2);\r\n\t\tnewSubjects.add(sub2);\r\n\r\n\t\tteachu1.getSubjects().add(sub1);\r\n\r\n\t\t// Hinzufuegen von Klassen\r\n\t\tbreaku1.setClasses(classes);\r\n\t\texternu1.setClasses(classes);\r\n\t\tmeetingu1.setClasses(classes);\r\n\t\tteachu1.setClasses(classes);\r\n\r\n\t\t// Hinzufuegen von Raeumen\r\n\t\tbreaku1.setRooms(rooms);\r\n\t\texternu1.setRooms(rooms);\r\n\t\tmeetingu1.setRooms(rooms);\r\n\t\tteachu1.setRooms(rooms);\r\n\r\n\t\t// Hinzufuegen von Personen\r\n\t\tmeetingu1.getMembers().add(teach1);\r\n\t\tmeetingu1.getMembers().add(teach2);\r\n\r\n\t\t// Hinzufuegen von PersonTime\r\n\t\tteachu1.getPersons().add(person1);\r\n\t\tteachu1.getPersons().add(person2);\r\n\r\n\t\t// setId()\r\n\t\tbreaku1.setId(1);\r\n\t\texternu1.setId(2);\r\n\t\tmeetingu1.setId(3);\r\n\t\tteachu1.setId(4);\r\n\t}", "void birthDateValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setBirthdate(null);\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }", "public void setAll(Person person) {\n this.lastName = person.getLastName();\n this.firstName = person.getFirstName();\n this.address = person.getAddress();\n this.tid = person.getOid();\n this.phone = person.getPhone();\n this.mobile = person.getMobile();\n this.email = person.getEmail();\n }", "@Test\n public void testFindAll_Person_TimeSlot() {\n // more or less tested in testFindEntity_Person_TimeSlot()\n }", "public void setPeople(People people,String id)\n {\n myCamp = people;\n this.id = id;\n }", "public void setPeopleAct(ArrayList<CastMember> peopleAct) \n\t{\n\t\tthis.peopleAct = peopleAct;\n\t}", "@Test\n void setWith1PersonInList() {\n //given index, and person chnage person in address book\n //doNothing().when(addressBookMock).set(0,test_Person);\n controllerTest.add(test_Person);\n controllerTest.set(0,test_Person);\n\n assertEquals(controllerTest.get(0),test_Person);\n }", "@Test\n\tpublic void testSetValueMult1to1Ok() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser user = new TestUser(\"admin\");\n\t\tAssert.assertNull(martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t\tAssert.assertNull(user.getPerson());\n\n\t\t// test\n\t\tuser.setPerson(martin);\n\t\tAssert.assertSame(martin, user.getPerson());\n\t\tAssert.assertSame(user, martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t}", "@Before\n public void setUp() throws Exception {\n Person.checkTables();\n this.pat1 = new Patient(\"test1\", \"test\" , \"1\", \"password\", \"male\",\n \"111 E St\", \"insuroco\", \"5555555555\", \"1111111111\", new Date());\n this.pat2 = new Patient(\"test2\", \"test\" , \"2\", \"password2\", \"female\",\n \"111 E St\", \"insuroco\", \"5555555555\", \"1111111111\", new Date());\n this.hp1 = new HealthProfessional(\"pro1\", \"Pro\", \"1\", \"pass1\",\n false, true, false);\n }", "public void setPersonnames(List<Personname> personnames) {\r\n\r\n this.personnames = personnames;\r\n\r\n }", "@Test\n public void whenTestTwoUsersWithTheSameNameAndBirthdayTheGetTrue() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", (Calendar) birthday.clone());\n\n assertTrue(john.equals(snow));\n }", "@Test\n public void testSetUsersList() {\n System.out.println(\"setUsersList\");\n Set<User> usersList = new HashSet<>();\n usersList.add(new User(\"test1\", \"test@email.com\"));\n sn10.setUsersList(usersList);\n assertEquals(usersList, sn10.getUsersList());\n }", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "@Override\n public boolean equals(Object person) {\n if(!(person instanceof Person)){\n // If the argument is not a person object return false\n return false;\n }\n // Create person object\n Person btPerson = (Person) person;\n\n // Check equality\n boolean status = (this.getName().equals(btPerson.getName()) &&\n this.getCrossingTime() == btPerson.getCrossingTime());\n return status;\n }", "public void setPeople(String people) {\n\t\tthis.people = people.trim();\r\n\t}", "private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }", "@Test\n public void testSetAge() {\n System.out.println(\"Animal.setAge\");\n animal1.setAge(20);\n animal2.setAge(5);\n assertEquals(20, animal1.getAge());\n assertEquals(5, animal2.getAge());\n }", "@Test\r\n public void testSetHobbies() {\r\n System.out.println(\"setHobbies\");\r\n String hobbies = null;\r\n Interviewee instance = new Interviewee();\r\n instance.setHobbies(hobbies);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "@ReactMethod\n public void peopleSet(ReadableMap properties) {\n mixpanel.getPeople().set(this.readableMapToJson(properties));\n }", "@Test\n public void testSetElections() {\n System.out.println(\"setElections\");\n Collection<Election> elections = new ArrayList<Election>();\n Election mock = new Election();\n elections.add(mock);\n Commissioner instance = new Commissioner();\n instance.setElections(elections);\n assertEquals(instance.getElections(),elections);\n }", "public void initPeople() {\n this.people = new ArrayList<>();\n this.people.addAll(services.getPeopleList());\n }", "@Test\n public void testSetNotesTaken() {\n System.out.println(\"setNotesTaken\");\n ArrayList<Note> notesTaken = new ArrayList<>();\n notesTaken.add(new Note());\n CharterDto instance = new CharterDto(\"Test name\");\n instance.setNotesTaken(notesTaken);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testSetDateEaten()\r\n {\r\n System.out.println(\"setDateEaten\");\r\n Date dateEaten = Date.valueOf(\"1982-04-08\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n instance.setDateEaten(dateEaten);\r\n assertEquals(dateEaten, instance.getDateEaten());\r\n }", "@Test\r\n\tpublic void testGetTimeslot() {\r\n\t\tassertEquals(time1, breaku1.getTimeslot());\r\n\t\tassertEquals(time1, externu1.getTimeslot());\r\n\t\tassertEquals(time1, meetingu1.getTimeslot());\r\n\t\tassertEquals(time1, teachu1.getTimeslot());\r\n\t}", "@Test\n public void setNumberOfHoursTest() {\n e1.setNumberOfHours(200);\n int expected = 200;\n\n assertEquals(\"The expected new number of hours does not match the actual: \"\n , expected, e1.getNumberOfHours());\n }", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "@BeforeEach\n void setUp() {\n personListTest = new ArrayList<>();\n test_Person = new Person(\"Jane\",\"Dorian\",\n \"987 Westbrook Blvd\",\"Chincinnati\",\"OH\",\"43123\",\"123456789\");\n\n// model.addColumn(\"Col1\");\n// model.addColumn(\"Col2\");\n// model.addColumn(\"Col3\");\n// model.addColumn(\"Col4\");\n// model.addColumn(\"Col5\");\n// model.addColumn(\"Col6\");\n// model.addColumn(\"Col7\");\n test_AddressBook = new AddressBook();\n controllerTest = new AddressBookController(test_AddressBook);\n }", "@Test\n public void testSetPlayers() {\n List<Player> emptyPlayerList = new ArrayList<>();\n mTournament.setPlayerCollection(emptyPlayerList);\n assertTrue(\"Players list must be empty\", mTournament.getPlayerCollection().size() == 0);\n\n mTournament.setPlayerCollection(null);\n assertTrue(\"Players list is not null\", mTournament.getPlayerCollection().size() == 0);\n }", "public void setPeople(com.hps.july.persistence.People aPeople) throws java.rmi.RemoteException {\n\tthis.getPeopleLink().set(aPeople);\n}", "@Test\r\n\tpublic void testSetGetTravelNeeded() {\r\n\t\tteachu1.setTravelNeed(false);\r\n\t\tassertFalse(teachu1.getTravelNeed());\r\n\r\n\t\tteachu1.setTravelNeed(true);\r\n\t\tassertTrue(teachu1.getTravelNeed());\r\n\t}", "@Test\n\tpublic void testSetValueMult1to1Overwrite() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser user = new TestUser(\"admin\");\n\t\tuser.setPerson(jojo);\n\t\tAssert.assertSame(jojo, user.getPerson());\n\t\tAssert.assertSame(user, jojo.getUser());\n\t\tAssert.assertNull(martin.getUser());\n\n\t\t// test: relink user to martin\n\t\tuser.setPerson(martin);\n\t\tAssert.assertSame(martin, user.getPerson());\n\t\tAssert.assertSame(user, martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t}", "@Test\n public void getOtherPersonTestPerson() throws ParsingException, NoSuchFieldException, ParseException, IllegalAccessException {\n //Init\n Person person = new Person(null);\n Person partner = new Person(null);\n Person otherPerson = new Person(null);\n Union union = new Union(person, partner, new FullDate(\"05 MAR 2020\"), new Town(\"Saintes\", \"Charente-Maritime\"), UnionType.HETERO_MAR);\n\n //Reflection init\n Field idField = person.getClass().getDeclaredField(\"id\");\n idField.setAccessible(true);\n\n //Reflection set\n idField.set(person, \"1\");\n idField.set(partner, \"2\");\n\n //Verification\n assertEquals(partner, union.getOtherPerson(person));\n assertEquals(person, union.getOtherPerson(partner));\n assertNull(union.getOtherPerson(otherPerson));\n }", "public void clearPeople() {\n personNames.clear();\n personIds.clear();\n personPhotos.clear();\n personSelections.clear();\n addDefaultPerson();\n }", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "@Test\n\tpublic void testResponderEjercicio2(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(0));\n\t\tassertFalse(ej1.responderEjercicio(nacho, array));\n\t\tassertTrue(nacho.getEstadisticas().isEmpty());\n\t}", "@Test\n public void testSetAddress() {\n System.out.println(\"setAddress\");\n user.setAddress(\"Tiquipaya\");\n assertEquals(\"Tiquipaya\", user.getAddress());\n }", "@Test\n public void testSetFechaPago() {\n System.out.println(\"setFechaPago\");\n Date fechaPago = null;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setFechaPago(fechaPago);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "void setBirthDate(Date birthDate);", "@Schema(hidden = true)\n public void setPerson(Person person) {\n this.person = person;\n }", "private void setPersonPagerData() {\n viewPageAdaptor = new ViewPagePersonAdaptor(getChildFragmentManager());\n viewPagerPerson.setAdapter(viewPageAdaptor);\n tbPerson.setupWithViewPager(viewPagerPerson);\n }", "@Test\n @Ignore\n public void testGetPerson() {\n Person person = dao.getPerson(\"KWCB-HZV\", \"\");\n assertEquals(\"KWCB-HZV\", person.id);\n assertEquals(\"Willis Aaron Dial\", person.name);\n assertFalse(person.living);\n \n assertArrayEquals(\"Facts don't match expected: \" + Arrays.deepToString(person.facts),\n new Fact[] { \n new Fact(\"birth\", \"23 December 1897\", null, 1897, \"Hooper, Weber, Utah, United States\"),\n new Fact(\"death\", \"19 January 1985\", null, 1985, \"Logan, Cache, Utah, United States\") },\n person.facts);\n assertArrayEquals(\"Parents don't match expected: \" + Arrays.deepToString(person.parents),\n new PersonReference[] {\n new PersonReference(\"KWZP-8K5\", \"William Burris Dial\", \"father\"),\n new PersonReference(\"KWZP-8KG\", \"Temperance Lavina Moore\", \"mother\")\n },\n person.parents);\n assertArrayEquals(\"Spouses don't match expected: \" + Arrays.deepToString(person.spouses),\n new PersonReference[] {\n new PersonReference(\"KWCB-HZ2\", \"Ida Lovisa Beckstrand\", \"wife\")\n },\n person.spouses);\n assertArrayEquals(\"Children don't match expected: \" + Arrays.deepToString(person.children),\n new PersonReference[] {\n new PersonReference(\"KWC6-X7D\", \"Glen \\\"B\\\" Dial\", \"son\"),\n new PersonReference(\"KWJJ-4XH\", \"Merlin \\\"B\\\" Dial\", \"son\")\n },\n person.children);\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tfutureDate = Calendar.getInstance();\n\t\tfutureDate.set(2015, 1, 1);\n\t\tpastDate = Calendar.getInstance();\n\t\tpastDate.set(2000, 1, 1);\n\t}", "@Test\n\tpublic void testResponderEjercicio3(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(20));\n\t\tassertFalse(ej1.responderEjercicio(nacho, array));\n\t\tassertTrue(nacho.getEstadisticas().isEmpty());\n\t}", "@Test\n public void validSetFlightInformation() {\n testUser.setUsername(\"username\");\n testUser.setLastName(\"lastname\");\n testUser.setPassword(\"password\");\n testUser.setFirstName(\"firstname\");\n\n Assertions.assertEquals(\"username\", testUser.getUsername());\n Assertions.assertEquals(\"lastname\", testUser.getLastName());\n Assertions.assertEquals(\"password\", testUser.getPassword());\n Assertions.assertEquals(\"firstname\", testUser.getFirstName());\n }", "public void setBirthDate(Date birthDate);", "@Test\r\n public void testSetUserHobbies()\r\n {\r\n System.out.println(\"setUserHobbies\");\r\n String[] userHobbies = {\"Football\", \"Rugby\"};\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setUserHobbies(userHobbies);\r\n Assert.assertArrayEquals(userHobbies, instance.getUserHobbies());\r\n }", "@BeforeAll\n public static void setUp() {\n\n unsolvedCourseSchedule = new RoomSchedule();\n\n \n // fixed periods I'm defining\n \tRoomPeriods fixedRoomPeriod1=new RoomPeriods(1, 1);\n \tfixedRoomPeriod1.setSessionName(\"Session Fixed 1\");\n \t\n \tRoomPeriods fixedRoomPeriod2=new RoomPeriods(1, 2);\n \tfixedRoomPeriod2.setSessionName(\"Session Fixed 2\");\n \t\n // I'm adding fixed periods to schedule, these are known fixed schedule items\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod1);\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod2); \n \n /* I'm adding 10 more schedule items which are [null,null] , I'm expecting optoplanner assign period and room numbers. \n * [ THEY ARE LINKED with annotations, @PlanningVariable,\t@ValueRangeProvider(id = \"availablePeriods\", @ProblemFactCollectionProperty]\n */\n for(int i = 0; i < 10; i++){ \t \t\n unsolvedCourseSchedule.getLectureList().add(new RoomPeriods()); \n }\n \n // \n unsolvedCourseSchedule.getPeriodList().addAll(Arrays.asList(new Integer[] { 1, 2, 3 }));\n unsolvedCourseSchedule.getRoomList().addAll(Arrays.asList(new Integer[] { 1, 2 }));\n }", "@Test\n public void updateTimeList(){\n userDAO.createUser(new User(\"dummy2\", \"dummy2\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy2\", 1990, 0, 60, 0, 0));\n\n assertTrue(timeListResource.updateTimeList(new TimeList(\"dummy2\", 1990, 0, 65, 1, 1)));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy2\");\n userDAO.removeUser(\"dummy2\");\n }", "@Test(expected = IllegalArgumentException.class)\n public void testSetRegistrationDate2() {\n user1.setRegistrationDate(LocalDateTime.now().plusHours(1));\n }", "@Test\n public void getAllPersons() {\n List<Person> persons = personService.getAllPersons();\n\n //Assert\n assertEquals(\"Fulano\", persons.get(0).getFirstName());\n assertEquals(\"John\", persons.get(1).getFirstName());\n }", "@Test\n\tpublic void testSetFecha2(){\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(2);\n\t\tassertFalse(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void setPreferences(Person... person) {\r\n int count = 0;\r\n for (Person p : person) {\r\n preferences[count] = p;\r\n count++;\r\n }\r\n }", "@Ignore\n @Test\n public void whenTestTwoUsersWithTheSameNameAndBirthdayTheGetFalse() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", (Calendar) birthday.clone());\n\n assertFalse(john.equals(snow));\n }", "@Test\r\n public void testSetStartTime() {\r\n System.out.println(\"setStartTime\");\r\n String startTime = \"\";\r\n \r\n instance.setStartTime(startTime);\r\n assertEquals(startTime, instance.getStartTime());\r\n \r\n }", "public void testSyncDates(){\r\n \ts1.syncDates();\r\n \ts2.syncDates();\r\n \tassertSame(si.getStartDate(), s1.getStartDate());\r\n \tassertSame(si.getStartDate(), s2.getStartDate());\r\n \t\r\n \tassertSame(si.getEndDate(), s1.getEndDate());\r\n \tassertSame(si.getEndDate(), s2.getEndDate());\r\n \t\r\n \t//site investigator is null. \r\n \tDate now = new Date();\r\n \tStudyInvestigator s3 = new StudyInvestigator();\r\n \ts3.setStartDate(now);\r\n \ts3.syncDates();\r\n \tassertSame(now, s3.getStartDate());\r\n \tassertNull(s3.getEndDate());\r\n \t\r\n \t\r\n }", "public void setPersonService(PersonService personService) {\n\t\tthis.personService = personService;\n\t}", "public void setBirth(Date birth) {\r\n this.birth = birth;\r\n }", "private static void test2(Person p, int x, int[] arr) {\r\n\t\tString name = \"original\";\r\n\t\tp.setFirstName(name);\r\n\t}", "public void setBirth(Date birth) {\n this.birth = birth;\n }", "public void setBirth(Date birth) {\n this.birth = birth;\n }", "public void setPersonId(long personId);", "@Test\n public void testSetFecha() {\n System.out.println(\"setFecha\");\n Date fecha = null;\n Reserva instance = new Reserva();\n instance.setFecha(fecha);\n \n }", "@Test\r\n\tpublic void testSetRooms() {\r\n\t\tbreaku1.setRooms(rooms1);\r\n\t\texternu1.setRooms(rooms1);\r\n\t\tmeetingu1.setRooms(rooms1);\r\n\t\tteachu1.setRooms(rooms1);\r\n\r\n\t\tassertEquals(rooms1, breaku1.getRooms());\r\n\t\tassertEquals(rooms1, externu1.getRooms());\r\n\t\tassertEquals(rooms1, meetingu1.getRooms());\r\n\t\tassertEquals(rooms1, teachu1.getRooms());\r\n\t}", "@Test\n\tpublic void testSetFecha7(){\n\t\tPlataforma.closePlataforma();\n\t\t\n\t\tfile = new File(\"./data/plataforma\");\n\t\tfile.delete();\n\t\tPlataforma.openPlataforma();\n\t\tPlataforma.login(\"1\", \"contraseniaprofe\");\n\t\t\n\t\tPlataforma.setFechaActual(Plataforma.fechaActual.plusDays(2));\n\t\tej1.responderEjercicio(nacho, array);\n\t\t\t\t\n\t\tLocalDate fin = Plataforma.fechaActual.plusDays(10);\n\t\tLocalDate ini = Plataforma.fechaActual.plusDays(3);\n\t\tassertTrue(ej1.setFechaFin(fin));\n\t\tassertFalse(ej1.setFechaIni(ini));\n\t}", "public void setParticipantsToday (byte p) {\n\t\tParticipantsToday = p;\n\t}", "@Test\n public void updateTimeListCatch(){\n userDAO.createUser(new User(\"dummy2\", \"dummy2\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy2\", 1990, 0, 60, 0, 0));\n\n assertFalse(timeListResource.updateTimeList(new TimeList(\"notdummy2\", 1990, 0, 65, 1, 1)));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy2\");\n userDAO.removeUser(\"dummy2\");\n }", "@Override\r\n @BeforeEach\r\n public void init() throws Exception\r\n {\r\n objetTest = new LocalDateTimeConverter();\r\n }", "public void setPersonData(org.afscme.enterprise.person.PersonData personData) {\n this.personData = personData;\n }", "private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }", "@Test\r\n\tpublic void testSetSubjects() {\r\n\t\tteachu1.setSubjects(newSubjects);\r\n\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub2));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub1));\r\n\t}", "@Test\r\n\tpublic void testSetDisplayedPregnancies() {\r\n\t\tList<PregnancyInfo> list = new ArrayList<PregnancyInfo>();\r\n\t\toic.setDisplayedPregnancies(list);\r\n\t\tAssert.assertTrue(oic.getDisplayedPregnancies().equals(list));\r\n\t}", "@Test\n public void testSetLastName1() {\n user1.setLastName(\"a\");\n assertEquals(\"LastName should be a\", \"a\", user1.getLastName());\n }", "@Before\n public void setUp() {\n e1 = new Employee(\"Pepper Potts\", 16.0, 152);\n e2 = new Employee(\"Nancy Clementine\", 22.0, 140);\n\n }", "@Test\r\n public void testSetDob() {\r\n System.out.println(\"setDob\");\r\n String dob = null;\r\n Interviewee instance = new Interviewee();\r\n instance.setDob(dob);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "public void setOwner(Person person) \n {\n owner = person;\n }", "public void testGetSetDate() {\n exp = new Experiment(\"10\");\n Date date = new Date();\n exp.setDate(date);\n assertEquals(\"get/setDate does not work\", date, exp.getDate());\n }", "@Test\n void setDate() {\n }", "public void seedPeopleInfections(\n Int2ObjectMap<InfectionState> personStates,\n Int2ObjectMap<IntSet> peopleByLocation\n ) {\n IntSet animalKeys = startLocations.getLocationsByPeopleId().keySet();\n for (int animalID : animalKeys) {\n personStates.put(animalID, InfectionState.SUSCEPTIBLE);\n }\n NationalSampler ns = nsf.build(peopleByLocation);\n IntSet sampledSeeds = ns.getSampledPeople();\n for (int personID : sampledSeeds) {\n AgeClass ageClass = peopleAgeClasses.get(personID);\n //Get what age group the person is in\n switch (ageClass) {\n case YOUNG:\n personStates.put(personID, EXPOSED_YOUNG);\n break;\n case ADULT:\n personStates.put(personID, EXPOSED_ADULT);\n break;\n case ELDERLY:\n personStates.put(personID, EXPOSED_ELDERLY);\n break;\n default:\n throw new UnsupportedOperationException(\"Age class not known- for recovered event\");\n }\n }\n }", "private void setObjUser(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n objUser_ = value;\n \n }", "@Test\r\n\tpublic void testGetStarttime() {\r\n\t\tassertTrue(breaku1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(externu1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(meetingu1.getStarttime().equals(\"08:00\"));\r\n\t\tassertTrue(teachu1.getStarttime().equals(\"08:00\"));\r\n\t}" ]
[ "0.69165146", "0.6537546", "0.60199004", "0.6018611", "0.589728", "0.5837913", "0.57590365", "0.5705418", "0.56566465", "0.5629039", "0.5605746", "0.5599476", "0.55975527", "0.55910885", "0.553724", "0.5514116", "0.551293", "0.54749626", "0.5448444", "0.54125375", "0.53927296", "0.5386245", "0.5385376", "0.5366853", "0.53566587", "0.5355215", "0.5350999", "0.53413796", "0.5328334", "0.5310661", "0.52894807", "0.52675784", "0.52578706", "0.52526844", "0.52402073", "0.52062184", "0.5184595", "0.518398", "0.51839465", "0.51814747", "0.51802343", "0.5176285", "0.51739705", "0.515953", "0.5134615", "0.5130403", "0.5128093", "0.51240885", "0.5119798", "0.51180494", "0.5117268", "0.51163065", "0.51111436", "0.510359", "0.5095645", "0.50943726", "0.5094118", "0.5087745", "0.50875306", "0.5085404", "0.5080342", "0.5070503", "0.50664127", "0.50630164", "0.506278", "0.50566477", "0.5056032", "0.50403327", "0.5038952", "0.5026381", "0.50168854", "0.50112695", "0.50109565", "0.50027704", "0.5002183", "0.4991124", "0.4988371", "0.49839258", "0.49835858", "0.49835858", "0.49799103", "0.49739796", "0.4959655", "0.49596453", "0.49482667", "0.4944488", "0.49389604", "0.4929603", "0.4927334", "0.49250978", "0.49222365", "0.49187604", "0.49165124", "0.4912902", "0.4899606", "0.48955452", "0.4892184", "0.4891452", "0.4888776", "0.48870686" ]
0.80679
0
Der Test soll ueberpruefen, ob die Methode containsPersons(), ob ein Person Objekt in dem Set enthalten ist.
@Test public void teachingUnitContainsPersons() { assertTrue(teachu1.containsPerson("ErK")); assertTrue(teachu1.containsPerson("AlP")); assertFalse(teachu1.containsPerson("MaP")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}", "boolean hasPerson();", "@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}", "@Test\r\n\tpublic void testSetPersonTime() {\r\n\t\tteachu1.setPersonTime(newPersonTime);\r\n\r\n\t\tassertTrue(teachu1.getPersons().contains(person2));\r\n\t\tassertFalse(teachu1.getPersons().contains(person1));\r\n\t}", "@Test\r\n public void testisMenber1() {\r\n Assert.assertEquals(true, set1.isMember(4));\r\n }", "@Test\n @Ignore\n public void testGetPerson() {\n Person person = dao.getPerson(\"KWCB-HZV\", \"\");\n assertEquals(\"KWCB-HZV\", person.id);\n assertEquals(\"Willis Aaron Dial\", person.name);\n assertFalse(person.living);\n \n assertArrayEquals(\"Facts don't match expected: \" + Arrays.deepToString(person.facts),\n new Fact[] { \n new Fact(\"birth\", \"23 December 1897\", null, 1897, \"Hooper, Weber, Utah, United States\"),\n new Fact(\"death\", \"19 January 1985\", null, 1985, \"Logan, Cache, Utah, United States\") },\n person.facts);\n assertArrayEquals(\"Parents don't match expected: \" + Arrays.deepToString(person.parents),\n new PersonReference[] {\n new PersonReference(\"KWZP-8K5\", \"William Burris Dial\", \"father\"),\n new PersonReference(\"KWZP-8KG\", \"Temperance Lavina Moore\", \"mother\")\n },\n person.parents);\n assertArrayEquals(\"Spouses don't match expected: \" + Arrays.deepToString(person.spouses),\n new PersonReference[] {\n new PersonReference(\"KWCB-HZ2\", \"Ida Lovisa Beckstrand\", \"wife\")\n },\n person.spouses);\n assertArrayEquals(\"Children don't match expected: \" + Arrays.deepToString(person.children),\n new PersonReference[] {\n new PersonReference(\"KWC6-X7D\", \"Glen \\\"B\\\" Dial\", \"son\"),\n new PersonReference(\"KWJJ-4XH\", \"Merlin \\\"B\\\" Dial\", \"son\")\n },\n person.children);\n }", "@Test\r\n\tpublic void testGetMembers() {\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach1));\r\n\t\tassertTrue(meetingu1.getMembers().contains(teach2));\r\n\t}", "public boolean hasPerson() {\n return dataBodyCase_ == 2;\n }", "boolean hasIsPersonType();", "public boolean hasPerson() {\n return dataBodyCase_ == 2;\n }", "@Override\n public boolean equals(Object o) \n {\n if (o == null) return false;\n if (o instanceof Person) {\n Person p = (Person)o;\n return (vorname.equals(p.vorname) && nachname.equals(p.nachname));\n } else\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Test\r\n public void testContains() {\r\n System.out.println(\"contains\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"teste@isep.ipp.pt\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = true;\r\n boolean result = instance.contains(o);\r\n assertEquals(expResult, result);\r\n \r\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif( !(obj instanceof Person ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tPerson p2 = (Person) obj;\r\n\t\treturn vorname.equals(p2.vorname) && nachname.equals(p2.nachname);\r\n\t}", "public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>(10);\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\" + i, i));\n }\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\", 15));\n }\n Person p1 = new Person(\"person\", 15);\n Person p2 = new Person(\"person\", 15);\n System.out.println(p1 + \" hascode: \" + p1.hashCode());\n System.out.println(p2 + \" hascode: \" + p2.hashCode());\n System.out.println(\"person1 equals person2 \" + p1.equals(p2));\n for (Person person : set) {\n System.out.println(person);\n }\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof People)) {\n return false;\n }\n return id != null && id.equals(((People) o).id);\n }", "@Test\r\n public void testAddPers1() {\r\n assertEquals(p1.toString(), bank.searchPerson(p1.getFullName()).toString());\r\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Persona)) {\n return false;\n }\n Persona other = (Persona) object;\n if ((this.perId == null && other.perId != null) || (this.perId != null && !this.perId.equals(other.perId))) {\n return false;\n }\n return true;\n }", "public void test_findUniqueByPropertys() {\r\n\t\tPerson person = (Person) this.persistenceService.findUniqueByPropertys(Person.class, getParamMap(2));\r\n\t\tassertForFindUniquePerson(person);\r\n\t}", "public boolean equals(Person person) {\n\t\treturn false;\n\t\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PersonType)) {\n return false;\n }\n PersonType other = (PersonType) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Personel)) {\r\n return false;\r\n }\r\n Personel other = (Personel) object;\r\n if ((this.personelId == null && other.personelId != null) || (this.personelId != null && !this.personelId.equals(other.personelId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Persona)) {\r\n return false;\r\n }\r\n Persona other = (Persona) object;\r\n if ((this.identificacion == null && other.identificacion != null) || (this.identificacion != null && !this.identificacion.equals(other.identificacion))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean equals(Person p) {\n if (this.name == p.getName() && this.surname == p.getSurname())\n return true;\n else\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Personne)) {\n return false;\n }\n Personne other = (Personne) object;\n if ((this.idPersonne == null && other.idPersonne != null) || (this.idPersonne != null && !this.idPersonne.equals(other.idPersonne))) {\n return false;\n }\n return true;\n }", "@Test\r\n\tpublic void testGetFriends() {\r\n\t\tPerson p = new Person(0);\r\n\t\tArrayList<Friend> f = p.getFriends();\r\n\t\tassertNotNull(f);\r\n\t}", "@Override\n public boolean equals(Object person) {\n if(!(person instanceof Person)){\n // If the argument is not a person object return false\n return false;\n }\n // Create person object\n Person btPerson = (Person) person;\n\n // Check equality\n boolean status = (this.getName().equals(btPerson.getName()) &&\n this.getCrossingTime() == btPerson.getCrossingTime());\n return status;\n }", "@Test\n public void getAllPersons() {\n List<Person> persons = personService.getAllPersons();\n\n //Assert\n assertEquals(\"Fulano\", persons.get(0).getFirstName());\n assertEquals(\"John\", persons.get(1).getFirstName());\n }", "public abstract boolean ContainsContactObjects();", "@Test\n public void testEquals04() {\n System.out.println(\"equals\");\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n Object otherObject = new SocialNetwork(new HashSet(), cities);\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof PersonEntity)) {\n return false;\n }\n PersonEntity other = (PersonEntity) object;\n if ((this.personId == null && other.personId != null) || (this.personId != null && !this.personId.equals(other.personId))) {\n return false;\n }\n return true;\n }", "@Test\n public void testEquals03() {\n System.out.println(\"equals\");\n\n Set<User> users = new HashSet<>();\n users.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n users.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n users.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n users.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n users.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n users.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n users.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n users.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n users.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n users.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n SocialNetwork otherSN = new SocialNetwork(users, cities);\n boolean result = sn10.equals(otherSN);\n assertTrue(result);\n }", "@Test\n public void getPerrosTest() {\n List<PerroEntity> list = perroLogic.getPerros();\n Assert.assertEquals(Perrodata.size(), list.size());\n for (PerroEntity entity : list) {\n boolean found = false;\n for (PerroEntity storedEntity : Perrodata) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "@Test\n\tpublic void testGetPeople() {\n\t\tShare savedShare = new Share(1L, \"Vodafone\", 2000, 1.5);\n\t\tList<Share> sharesList = List.of(savedShare);\n\n\t\t// Telling mocked repository what to do\n\t\tMockito.when(this.repo.findAll()).thenReturn(sharesList);\n\n\t\t// Test\n\t\tassertThat(this.service.getShares().equals(sharesList));\n\t\tMockito.verify(this.repo, Mockito.times(1)).findAll();\n\t}", "@Override\n public boolean equals(Object obj) {\n if (obj instanceof Person) {\n Person comparedObj = (Person) obj;\n return name.equals(comparedObj.getName()) &&\n surname.equals(comparedObj.getSurname()) &&\n birthday.equals(comparedObj.getBirthday());\n }\n return false;\n }", "public boolean equals(Personnel p){\nreturn numPers.equals(p.numPers);\n}", "@Test\r\n\tpublic void testContains() {\r\n\t\tAssert.assertTrue(list.contains(new Munitions(2, 3, \"iron\")));\r\n\t\tAssert.assertFalse(list.contains(new Munitions(2, 5, \"ferrum\")));\r\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 Person person = (Person) o;\n return Objects.equals(name, person.name)\n && Objects.equals(surname, person.surname);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.pid == null && other.pid != null) || (this.pid != null && !this.pid.equals(other.pid))) {\n return false;\n }\n return true;\n }", "private boolean searchPersonNew(Register entity) {\n\t\tboolean res = false;\n\t\tfor(Person ele : viewAll()) {\n\t\t\tif(ele.getName().equals(entity.getName()) && ele.getSurname().equals(entity.getSurname())) {\n\t\t\t\tres = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public void testGetObjects()\n {\n assertNotNull( map.getObjects() );\n }", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "@Test\r\n public void testAddPers2() {\r\n assertEquals(p2.toString(), bank.searchPerson(p2.getFullName()).toString());\r\n }", "Set<Person> getContacts();", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof APerson)) {\n return false;\n }\n APerson other = (APerson) object;\n if ((this.personId == null && other.personId != null) || (this.personId != null && !this.personId.equals(other.personId))) {\n return false;\n }\n return true;\n }", "@Test\n\tpublic void testListOperations() {\n\t\tassertFalse(streetAddresses.contains(s1PlusNine));\n\t\tassertTrue(streetAddresses.stream().anyMatch(s -> comparator.compare(s1PlusNine, s) == 0));\n\t}", "@Test\n public void testContains_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n\n boolean expResult = true;\n boolean result = instance.contains(1);\n assertEquals(expResult, result);\n }", "@Override\n public boolean equals(Object obj){\n if(this == obj) return true;\n if (obj == null || getClass() != obj.getClass()) return false;\n Person o = (Person) obj;\n if(o.name == null && this.name == null) return this.age == o.age;\n if(o.name == null || this.name == null) return false;\n return this.age == o.age && this.name.equals(o.name);\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Personaje)) {\r\n return false;\r\n }\r\n Personaje other = (Personaje) object;\r\n if ((this.idPersonaje == null && other.idPersonaje != null) || (this.idPersonaje != null && !this.idPersonaje.equals(other.idPersonaje))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Test\n public void testGetInfluentialUsers01() {\n System.out.println(\"getInfluentialUsers\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n\n Set<User> result = sn10.getInfluentialUsers();\n assertEquals(expResult, result);\n }", "@Override\r\n\tpublic List<Person> meetCriteria(List<Person> persons) {\n\t\tList<Person> firstCriteriaItem = criteria.meetCriteria(persons);\r\n\t\tList<Person> otherCriteriaItem = otherCriteria.meetCriteria(persons);\r\n\t\t\r\n\t\tfor(Person person: otherCriteriaItem)\r\n\t\t{\r\n\t\t\tif(!(firstCriteriaItem.contains(person)))\r\n\t\t\t\tfirstCriteriaItem.add(person);\r\n\t\t}\r\n\t\t\r\n\t\treturn firstCriteriaItem;\r\n\t\t\r\n\t\t}", "public boolean isMember(T o)\n {\n return (objectSet.search(o) != null);\n }", "boolean hasSearchPersonTypeId();", "@Test\r\n\tpublic void testGetSubjects() {\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub1));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub2));\r\n\t}", "public boolean findPerson(Person person){\n for(Person p : personList){\n if(p.equals(person)){return true;}\n }\n return false;\n }", "public boolean personEquals(Person p) {\n return (this.firstNames.equals(p.firstNames) && this.lastName.equals(p.getLastName()));\n }", "@Test\n void registerVeichle() {\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n\n assertTrue(vr.getVeichles().contains(dieselCar) && vr.getVeichles().contains(dieselCar2));\n assertFalse(vr.registerVeichle(dieselCar));\n }", "boolean hasPersonCharacteristicIds();", "@Test\n public void testContains() {\n p.addPackage(p1);\n assertFalse(p.contains(p2));\n assertTrue(p.contains(p1));\n\n p.addPackage(p2);\n assertTrue(p.contains(p1));\n assertTrue(p.contains(p2));\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof Person)) {\n return false;\n }\n\n Person otherPerson = (Person) other;\n return otherPerson.getName().equals(getName())\n && otherPerson.getPhone().equals(getPhone())\n && otherPerson.getEmail().equals(getEmail())\n && otherPerson.getAddress().equals(getAddress())\n && otherPerson.getSalary().equals(getSalary())\n && otherPerson.getProjects().equals(getProjects())\n && otherPerson.getProfilePic().equals(getProfilePic())\n && otherPerson.getUsername().equals(getUsername())\n && otherPerson.getPassword().isSamePassword(getPassword())\n && otherPerson.getLeaveApplications().equals(getLeaveApplications());\n }", "boolean hasOrderPersonId();", "@Override\n\tpublic boolean equals(Object target) {\n\t\treturn name.equals(((Person)target).getName());\n\t}", "@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 Person person = (Person) o;\n if (person.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), person.getId());\n }", "public boolean isRegistered(Person person) {\n // TODO 2\n return members.contains(person);\n }", "@Test\n\tpublic void testSetValueOkMult1toN() {\n\n\t\t// create 1 Address and 2 Persons\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\t// create a new collection and use the collection\n\t\t// property's setter\n\t\tCollection<Person> persons = new ArrayList<Person>();\n\t\tpersons.add(martin);\n\t\tpersons.add(jojo);\n\t\tadr.setInhabitants(persons);\n\n\t\t// assert the Persons being linked to the Address\n\t\tAssert.assertEquals(2, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(jojo, iter.next());\n\t\t// assert the Address being linked to both Persons implicitely\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertSame(adr, jojo.getAddress());\n\t}", "@Test\n public void testGetPersonWithHobby() {\n System.out.println(\"getPersonWithHobby\");\n String hobbyName = \"Gladiator\";\n FacadePerson instance = new FacadePerson(emf);\n // List<PersonDTO> expResult = new ArrayList<>();\n List<PersonDTO> result = instance.getPersonWithHobby(hobbyName);\n assertThat(result.size(), is(2));\n }", "public boolean inGroup(Person p){\n\t return false;\n }", "@Test\n public void testGetMyTasks_ByPotentialOwner() throws HTException {\n\n log.info(\"testGetMyTasks_ByPotentialOwner\");\n \n Task t = createTask_OnePotentialOwner();\n\n List<Task> results = this.services.getMyTasks(\"user1\", TaskTypes.ALL,\n GenericHumanRole.POTENTIAL_OWNERS, null,\n new ArrayList<Status>(), null, null, null, null, 0);\n\n Assert.assertEquals(1, results.size());\n\n Task taskToCheck = results.get(0);\n Person p = this.assigneeDao.getPerson(\"user1\");\n Assert.assertNotNull(p);\n \n log.info(taskToCheck.getPotentialOwners());\n Assert.assertEquals(taskToCheck.getActualOwner(), p);\n Assert.assertEquals(taskToCheck.getPotentialOwners().size(), 1);\n \n log.info(\"Potential owner: \" + taskToCheck.getPotentialOwners().iterator().next());\n log.info(\"Potential owner: \" + p);\n \n Assert.assertEquals(p, taskToCheck.getPotentialOwners().iterator().next());\n \n //TODO why it fails??? jnb???\n //Assert.assertTrue(taskToCheck.getPotentialOwners().contains(p));\n \n log.info(\"~testGetMyTasks_ByPotentialOwner\");\n }", "public boolean knows(Person otherPerson) {\n\t\tif (otherPerson == this) {\n\t\t\tthrow new RuntimeException();\n\t\t} else {\n\t\t\t// no for loop\n\t\t\t/*\n\t\t\t * Person person = listOfFriends.getFront()\n\t\t\t * while(listOfFriends.getFront() != null) { if(otherPerson ==\n\t\t\t * listOfFriends.getFront()) return true; person =\n\t\t\t * getFront().getNext(); }\n\t\t\t */\n\t\t\t/*List<Person> iter = new ArrayList<Person>();\n\t\t\tfor(Person person : listOfFriends)\n\t\t\t\titer.add(person);\n\t\t\t*/\n\t\t\tfor (Person person : listOfFriends ) {\n\t\t\t\tif (person == otherPerson){\n\t\t\t\t\treturn true;}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\r\n public void testGetUsuarios() throws Exception \r\n {\r\n List<UsuarioEntity> list;\r\n list = usuarioLogic.getUsuarios();\r\n Assert.assertEquals(dataUs.size(), list.size()); \r\n for(UsuarioEntity entity : list)\r\n {\r\n boolean found = false;\r\n for(UsuarioEntity storedEntity : dataUs)\r\n {\r\n if(entity.getId().equals(storedEntity.getId()))\r\n {\r\n found=true;\r\n }\r\n }\r\n Assert.assertTrue(found);\r\n }\r\n }", "public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}", "boolean isCustomiseSet();", "@Test\n public void getPersonsListTest() {\n \tHelloWorldImpl hello=new HelloWorldImpl();\n \tPersonList personInputList=new PersonList();\n \tList<PersonRequest> pl=new ArrayList<PersonRequest>();\n \tPersonRequest pr1=new PersonRequest();\n \tpr1.setName(\"Satish\");\n \tpr1.setSurname(\"Namdeo\");\n \tpr1.setLocation(\"Servicesource\");\n \tPersonRequest pr2=new PersonRequest();\n \tpr2.setName(\"Rahul\");\n \tpr2.setSurname(\"Jain\");\n \tpr2.setLocation(\"Bigdata\");\n \tpl.add(pr1);\n \tpl.add(pr2);\n \tpersonInputList.setPersonList(pl);\n \tPersonList actualResult=hello.getPersonsList(personInputList);\n \t//check for result is not empty.\n \tassertNotNull(\"Result is not null\",actualResult);\n \t\n \tPersonRequest pr3=new PersonRequest();\n \tpr1.setName(\"Sakhshi\");\n \tpr1.setSurname(\"Jain\");\n \tpr1.setLocation(\"Servicesource\");\n \tpl.add(pr3);\n \t\n \t//check for equality\n \tPersonRequest[] actualResultArray = actualResult.getPersonList().toArray(new PersonRequest[actualResult.getPersonList().size()]);\n \tPersonRequest[] expectedArray = pl.toArray(new PersonRequest[pl.size()]);\n \tassertArrayEquals(\"list elements are not equal\",expectedArray, actualResultArray);\n \t//System.out.println(\"personsListDisplayTest result : \"+result.getPersonList().size());\n }", "public boolean isValidPerson() {\n\t \n\t final Validator validator = Validation.buildDefaultValidatorFactory().getValidator();\n\t \n\t final Set<ConstraintViolation<Pessoa>> violations = validator.validate(this);\n\t \n\t errors = \"\";\n\t if (!violations.isEmpty()) {\n\t for (ConstraintViolation violation : violations) {\n\t \tif(!errors.isEmpty()){\n\t \t\terrors += System.lineSeparator();\n\t \t}\n\t \t\n\t errors += \"- \" + violation.getMessage();\n\t }\n\t return false;\n\t }\n\t return true;\n\t}", "@Override\n\tpublic List<PersonVO> test() {\n\t\tSystem.out.println(\"Service 접근\");\n\t\treturn mongoDAO.test();\n\t}", "@Test\r\n\tpublic void testAddFriend() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tFriend p2 = new Friend(\"Dave\");\r\n\t\tassertTrue(p1.addFriend(p2));\r\n\t\tassertFalse(p1.addFriend(p2));\r\n\t}", "@Test\n\t \t\n\t public void listAll() {\n\t \n\t List<Persona> list = personaDao.listPersons();\n\t \n\t Assert.assertNotNull(\"Error listado\", list);\n\n\t }", "@Test\n public void testAddUser_User04() {\n System.out.println(\"addUser\");\n\n User user = new User(\"test\", \"test@email.com\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n expResult.add(user);\n\n sn10.addUser(user);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "public static void main(String[] args) {\n\t\tclass Person {\n\t\t\tprivate String nome;\n\n\t\t\tpublic Person(String nome) {\n\t\t\t\tthis.nome = nome;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn nome;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean equals(Object obj) {\n\t\t\t\tSystem.out.println(\"Equals\");\n\t\t\t\tPerson person = (Person) obj;\n\t\t\t\treturn this.nome.equals(person.nome) ? true : false;\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int hashCode() {\n\t\t\t\tSystem.out.println(\"Hashcode!\");\n\t\t\t\treturn nome.charAt(0);\n\t\t\t}\n\t\t}\n\t\tSet<String> setComHashSet = new HashSet<>();\n\t\tsetComHashSet.add(\"Nicholas\");\n\t\tsetComHashSet.add(\"Cabral\");\n\t\tsetComHashSet.add(\"Barbosa\");\n\t\tSystem.out.println(\"I dont care about order! I care about performance to add() \" + setComHashSet);\n\t\tSet<String> setTreeSet = new TreeSet<>(Set.copyOf(setComHashSet));\n\t\tSystem.out.println(\"I care about order, however I dont care about performance to add() \" + setTreeSet);\n\t\tSystem.out.println();\n\t\tSet<Person> setPerson = new HashSet<>();\n\t\tPerson person = new Person(\"Nicholas\");\n\t\tPerson person2 = new Person(\"Nicholas2\");\n\t\tsetPerson.add(person);\n\t\tsetPerson.add(person2);\n\t\tSystem.out.println(setPerson);\n\t\tString[] arr = { \"Nihcolas\" };\n\t\tList<String> lista = Arrays.asList(arr);\n\n\t\tA a = new A();\n\t\tSetCollection b = (SetCollection) a;\n\t\tSystem.out.println(a == b);\n\t}", "@Test\n public void equals() {\n Person aliceCopy = new PersonBuilder(ALICE).build();\n assertTrue(ALICE.equals(aliceCopy));\n\n // same object -> returns true\n assertTrue(ALICE.equals(ALICE));\n\n // null -> returns false\n assertFalse(ALICE.equals(null));\n\n // different type -> returns false\n assertFalse(ALICE.equals(5));\n\n // different person -> returns false\n assertFalse(ALICE.equals(BOB));\n\n // different name -> returns false\n Person editedAlice = new PersonBuilder(ALICE).withName(VALID_NAME_BOB).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different phone -> returns false\n editedAlice = new PersonBuilder(ALICE).withPhone(VALID_PHONE_BOB).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different email -> returns false\n editedAlice = new PersonBuilder(ALICE).withEmail(VALID_EMAIL_BOB).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different address -> returns false\n editedAlice = new PersonBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different clientSources -> returns false\n editedAlice = new PersonBuilder(ALICE).withClientSources(VALID_CLIENTSOURCE_HUSBAND).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different note -> returns false\n editedAlice = new PersonBuilder(ALICE).withNote(VALID_NOTE_DOG).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different policy -> returns false\n editedAlice = new PersonBuilder(ALICE).withPolicy(VALID_POLICY_NAME_BOB, VALID_POLICY_DESCRIPTION_BOB).build();\n assertFalse(ALICE.equals(editedAlice));\n }", "@Test\n\tpublic void testAddPerson_whenPersonToAddNotExist_thenVerifyIfPersonIsAdded() {\n\t\t// GIVEN\n\t\tPerson personToAdd = new Person(\"Jojo\", \"Dupond\", \"1509 rue des fleurs\", \"Roubaix\", \"59100\", \"000-000-0012\",\n\t\t\t\t\"jojod@email.com\");\n\t\twhen(personDAOMock.getPersons()).thenReturn(mockList);\n\t\twhen(personDAOMock.save(anyInt(), any())).thenReturn(personToAdd);\n\t\t// WHEN\n\t\tPerson resultAfterAddPerson = personServiceTest.addPerson(personToAdd);\n\t\t// THEN\n\t\tverify(personDAOMock, times(1)).getPersons();\n\t\tverify(personDAOMock, times(1)).save(anyInt(), any());\n\t\tassertEquals(personToAdd, resultAfterAddPerson);\n\t\tassertEquals(personToAdd.getEmail(), resultAfterAddPerson.getEmail());\n\t\tassertEquals(personToAdd.getFirstName(), resultAfterAddPerson.getFirstName());\n\t}", "@Test\n public void testFindAll_Person_TimeSlot() {\n // more or less tested in testFindEntity_Person_TimeSlot()\n }", "public boolean isAllowedWithPerson() {\n return allowedState.contains(States.WITH_PERSON);\n }", "@Test\n\tpublic void testGetListPersons_thenReturnListOfPersons() {\n\t\t// GIVEN\n\t\tPerson personJohnBoyd = new Person(\"John\", \"Boyd\", \"1509 Culver St\", \"Culver\", \"97451\", \"841-874-6512\",\n\t\t\t\t\"jaboyd@email.com\");\n\t\twhen(personDAOMock.getPersons()).thenReturn(mockList);\n\t\t// WHEN\n\t\tList<Person> resultListgetted = personServiceTest.getListPersons();\n\t\t// THEN\n\t\tassertEquals(personJohnBoyd, resultListgetted.get(0));\n\t\t// the list contain 4 elements\n\t\tassertEquals(4, resultListgetted.size());\n\t}", "@Test\r\n\tpublic void testGetContributors() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tObservableList<Contributor> con = cm.getContributors();\r\n\t\tfor(Contributor c:con) {\r\n\t\t\tassertTrue(cm.getContributors().contains(c));\r\n\t\t}\r\n\t}", "public boolean equals(Object obj)\r\n\t{\r\n\t\tif(obj instanceof Person) \r\n\t\t{\r\n\t\t\tPerson c =(Person)obj; \t\t\t \r\n\t\t\tif(getId() != null && getId().equals(c.getId()))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "public boolean containsRelations();", "boolean containsCreature(Creature creature) {\n/* 1585 */ return (this.creatures != null && this.creatures.contains(creature));\n/* */ }", "@Test\n public void testAddUser_Nickname_Email04() {\n System.out.println(\"addUser\");\n String nickname = \"test1\";\n String email = \"test_1_@sapo.pt\";\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n expResult.add(new User(nickname, email));\n\n sn10.addUser(nickname, email);\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "@Test\n public void testContains_Not_Contain() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n\n boolean expResult = false;\n boolean result = instance.contains(3);\n assertEquals(expResult, result);\n }", "@Test\n public void testGetUsersList() {\n System.out.println(\"getUsersList\");\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick0\", \"mail_0_@sapo.pt\"));\n expResult.add(new User(\"nick1\", \"mail_1_@sapo.pt\"));\n expResult.add(new User(\"nick2\", \"mail_2_@sapo.pt\"));\n expResult.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n expResult.add(new User(\"nick4\", \"mail_4_@sapo.pt\"));\n expResult.add(new User(\"nick5\", \"mail_5_@sapo.pt\"));\n expResult.add(new User(\"nick6\", \"mail_6_@sapo.pt\"));\n expResult.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n expResult.add(new User(\"nick8\", \"mail_8_@sapo.pt\"));\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n Set<User> result = sn10.getUsersList();\n assertEquals(expResult, result);\n }", "public boolean equals(Person rsp) {\r\n\t\treturn id.equals(rsp.getId());\r\n\t}", "public void _hasPropertyByName() {\n requiredMethod(\"getProperties()\");\n tRes.tested(\"hasPropertyByName()\",\n (\n (oObj.hasPropertyByName(IsThere.Name)) &&\n (!oObj.hasPropertyByName(\"Jupp\")) )\n );\n }", "Collection<? extends WrappedIndividual> getIsPartOf();", "public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>();\n Person p1 = new Person(\"小妹妹\", 18);\n Person p2 = new Person(\"小妹妹\", 18);\n Person p3 = new Person(\"小妹妹\", 19);\n System.out.println(p1.hashCode());\n System.out.println(p2.hashCode());\n System.out.println(p1 == p2);\n System.out.println(p1.equals(p2));\n set.add(p1);\n set.add(p2);\n set.add(p3);\n System.out.println(set);\n }", "public boolean isPerson (String lemma){\n \n if (lemma.equals(\"man\")){\n return true;\n }\n\n if (this.gNet != null){\n\n List < Synset > synsets ;\n synsets = this.gNet.getSynsets(lemma);\n /*\n * check if synsnet is empty, if not empty, just continue with the block below\n * else, run some morphological analysis, and retry synset.\n * \n * This only covers the person filter. Also need to cover what is and is not a subject expression\n */\n for (Synset synset: synsets){\n List<List<Synset>> hypernyms = synset.getTransRelatedSynsets(ConRel.has_hypernym);\n for (List<Synset> hypernym: hypernyms){\n for (Synset s: hypernym){\n // ID for human / person, not living being in general and ID for group\n if (s.getId() == 34063 || s.getId() == 22562){\n return true;\n }\n }\n\n }\n }\n return false;\n }\n return false;\n }", "public boolean filter(Element e) {\n\t\t\t\tif(e.getRepresentedBy() instanceof ClassElement) {\r\n\t\t\t\t\treturn ((ClassElement) e.getRepresentedBy())\r\n\t\t\t\t\t\t.getRepresents().getName().equals(\"Person\"); \r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}" ]
[ "0.80999595", "0.66038847", "0.66036403", "0.6400047", "0.63837403", "0.6305065", "0.620926", "0.60702616", "0.60449064", "0.6015658", "0.5994754", "0.5960961", "0.5960961", "0.5960961", "0.5953369", "0.5913466", "0.58870983", "0.5874061", "0.58617723", "0.58530736", "0.5846109", "0.58158135", "0.58051807", "0.58050805", "0.5783129", "0.57734704", "0.5760061", "0.5741298", "0.5738712", "0.5732146", "0.5728411", "0.5719342", "0.57137674", "0.5711756", "0.5703907", "0.56748426", "0.56717384", "0.56655973", "0.566086", "0.5655072", "0.5639874", "0.56375855", "0.5631688", "0.5631223", "0.5627402", "0.5621389", "0.56133807", "0.56096065", "0.56023026", "0.5600521", "0.55901086", "0.5584531", "0.5583843", "0.5577174", "0.55756843", "0.5574695", "0.55704623", "0.55601597", "0.55582845", "0.55511755", "0.554243", "0.5536967", "0.55313444", "0.5526429", "0.5519641", "0.5513227", "0.54968286", "0.5492904", "0.5491163", "0.5479104", "0.547569", "0.5474175", "0.54675686", "0.5458721", "0.54583484", "0.5454996", "0.5452569", "0.54515284", "0.544402", "0.544228", "0.543978", "0.54380697", "0.543545", "0.543261", "0.5420808", "0.54023653", "0.540199", "0.5389449", "0.53862834", "0.5382329", "0.53804106", "0.53776807", "0.53756154", "0.53696626", "0.53678656", "0.53652096", "0.53647083", "0.5364344", "0.53618073", "0.53601253" ]
0.7562313
1